2021-06-04 15:23:23 +00:00
|
|
|
Global:
|
2021-06-18 17:44:04 +08:00
|
|
|
infer_imgs: "./images/wangzai.jpg"
|
2022-09-02 03:40:03 +00:00
|
|
|
rec_inference_model_dir: "./models/general_PPLCNetV2_base_pretrained_v1.0_infer"
|
2021-06-04 15:23:23 +00:00
|
|
|
batch_size: 1
|
|
|
|
use_gpu: False
|
2021-07-14 13:58:45 +08:00
|
|
|
enable_mkldnn: True
|
|
|
|
cpu_num_threads: 10
|
2021-06-04 15:23:23 +00:00
|
|
|
enable_benchmark: True
|
|
|
|
use_fp16: False
|
|
|
|
ir_optim: True
|
|
|
|
use_tensorrt: False
|
|
|
|
gpu_mem: 8000
|
|
|
|
enable_profile: False
|
|
|
|
|
|
|
|
RecPreProcess:
|
|
|
|
transform_ops:
|
|
|
|
- ResizeImage:
|
2022-09-04 14:20:07 +00:00
|
|
|
size: [224, 224]
|
|
|
|
return_numpy: False
|
|
|
|
interpolation: bilinear
|
|
|
|
backend: cv2
|
2021-06-04 15:23:23 +00:00
|
|
|
- NormalizeImage:
|
2022-09-04 14:20:07 +00:00
|
|
|
scale: 1.0/255.0
|
2021-06-04 15:23:23 +00:00
|
|
|
mean: [0.485, 0.456, 0.406]
|
|
|
|
std: [0.229, 0.224, 0.225]
|
2022-09-04 14:20:07 +00:00
|
|
|
order: hwc
|
2021-06-04 15:23:23 +00:00
|
|
|
- ToCHWImage:
|
|
|
|
|
2022-08-31 17:02:37 +00:00
|
|
|
RecPostProcess: null
|