This commit is contained in:
LDOUBLEV 2020-07-23 11:12:35 +08:00
parent a43c0b3240
commit 8a11d97da8
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ demo/cxx/ocr/
|-- debug/ |-- debug/
| |--ch_det_mv3_db_opt.nb Detection model | |--ch_det_mv3_db_opt.nb Detection model
| |--ch_rec_mv3_crnn_opt.nb Recognition model | |--ch_rec_mv3_crnn_opt.nb Recognition model
| |--11.jpg image for OCR | |--11.jpg Image for OCR
| |--ppocr_keys_v1.txt Dictionary file | |--ppocr_keys_v1.txt Dictionary file
| |--libpaddle_light_api_shared.so C++ .so file | |--libpaddle_light_api_shared.so C++ .so file
| |--config.txt Config file | |--config.txt Config file

View File

@ -78,7 +78,7 @@ class MobileNetV3():
supported_scale = [0.35, 0.5, 0.75, 1.0, 1.25] supported_scale = [0.35, 0.5, 0.75, 1.0, 1.25]
assert self.scale in supported_scale, \ assert self.scale in supported_scale, \
"supported scale are {} but input scale is {}".format(supported_scale, self.scale) "supported scales are {} but input scale is {}".format(supported_scale, self.scale)
def __call__(self, input): def __call__(self, input):
scale = self.scale scale = self.scale