Ver Fonte

改变参数

zyc há 3 anos atrás
pai
commit
1189738e28

+ 6 - 0
logs/all-2021-03-12.log

@@ -268,3 +268,9 @@ TypeError: The input data is inconsistent with expectations.
 [2021-03-12 14:10:42,951] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 374
 [2021-03-12 14:11:00,533] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
 [2021-03-12 14:11:13,776] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
+[2021-03-12 14:31:33,213] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
+[2021-03-12 14:31:42,325] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 480
+[2021-03-12 14:32:00,245] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 403
+[2021-03-12 14:32:27,593] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
+[2021-03-12 14:32:33,975] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
+[2021-03-12 14:32:46,174] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454

+ 1 - 1
utils/PaddleOCR/deploy/hubserving/ocr_system/params.py

@@ -32,7 +32,7 @@ def read_params():
     cfg.rec_algorithm = "CRNN"
     cfg.rec_model_dir = "./utils/PaddleOCR/inference/ch_ppocr_mobile_v2.0_rec_infer/"
 
-    cfg.rec_image_shape = "3, 32, 96"
+    cfg.rec_image_shape = "3, 32, 64"
     cfg.rec_char_type = 'ch'
     cfg.rec_batch_num = 1
     cfg.max_text_length = 20