PP-OCRv6_medium_det_onnx / inference.yml
xiaohei66's picture
Upload inference.yml with huggingface_hub
cdf88ae verified
Global:
model_name: PP-OCRv6_medium_det
Hpi:
backend_configs:
paddle_infer:
trt_dynamic_shapes: &id001
x:
- - 1
- 3
- 32
- 32
- - 1
- 3
- 736
- 736
- - 1
- 3
- 4000
- 4000
tensorrt:
dynamic_shapes: *id001
PostProcess:
box_thresh: 0.45
max_candidates: 3000
name: DBPostProcess
thresh: 0.2
unclip_ratio: 1.4
PreProcess:
transform_ops:
- DecodeImage:
channel_first: false
img_mode: BGR
- DetLabelEncode: null
- DetResizeForTest: null
- 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