Download PP-OCRv4_server_seal_det/config.json from shiharuharu/via-ocr-onnx: direct link, hf CLI and curl.
- Browser
- Download file 2.9 kB
-
https://huggingface.co/shiharuharu/via-ocr-onnx/resolve/main/PP-OCRv4_server_seal_det/config.json
- Command line
-
hf download hf://shiharuharu/via-ocr-onnx/PP-OCRv4_server_seal_det/config.json
-
curl -L -o config.json https://huggingface.co/shiharuharu/via-ocr-onnx/resolve/main/PP-OCRv4_server_seal_det/config.json
2.9 kB
| { | |
| "Global": { | |
| "model_name": "PP-OCRv4_server_seal_det" | |
| }, | |
| "Hpi": { | |
| "backend_configs": { | |
| "paddle_infer": { | |
| "trt_dynamic_shapes": { | |
| "x": [ | |
| [ | |
| 1, | |
| 3, | |
| 32, | |
| 32 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 736, | |
| 736 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 4000, | |
| 4000 | |
| ] | |
| ] | |
| } | |
| }, | |
| "tensorrt": { | |
| "dynamic_shapes": { | |
| "x": [ | |
| [ | |
| 1, | |
| 3, | |
| 32, | |
| 32 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 736, | |
| 736 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 4000, | |
| 4000 | |
| ] | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "PreProcess": { | |
| "transform_ops": [ | |
| { | |
| "DecodeImage": { | |
| "channel_first": false, | |
| "img_mode": "BGR" | |
| } | |
| }, | |
| { | |
| "DetLabelEncode": null | |
| }, | |
| { | |
| "DetResizeForTest": { | |
| "resize_long": 736 | |
| } | |
| }, | |
| { | |
| "NormalizeImage": { | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "order": "hwc", | |
| "scale": "1./255.", | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ] | |
| } | |
| }, | |
| { | |
| "ToCHWImage": null | |
| }, | |
| { | |
| "KeepKeys": { | |
| "keep_keys": [ | |
| "image", | |
| "shape", | |
| "polys", | |
| "ignore_tags" | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "PostProcess": { | |
| "name": "DBPostProcess", | |
| "thresh": 0.2, | |
| "box_thresh": 0.6, | |
| "max_candidates": 1000, | |
| "unclip_ratio": 0.5, | |
| "box_type": "poly" | |
| } | |
| } |