[Bug Fix] Fix bugs in acc eval (#1276)

fix bugs in acc eval
This commit is contained in:
yeliang2258
2023-02-09 10:04:04 +08:00
committed by GitHub
parent fe6cbfdb65
commit ef852579a9
8 changed files with 13 additions and 13 deletions

2
tests/acc_eval/ppocr/eval_ppocrv3.py Normal file → Executable file
View File

@@ -103,7 +103,7 @@ rec_model = fd.vision.ocr.Recognizer(
runtime_option=runtime_option)
# PPOCR的Rec模型开启静态推理, 其他硬件不需要的话请注释掉.
rec_model.preprocessor.static_shape = True
rec_model.preprocessor.static_shape_infer = True
# 创建PP-OCR串联3个模型其中cls_model可选如无需求可设置为None
ppocr_v3 = fd.vision.ocr.PPOCRv3(