소스 검색

改变参数

zyc 3 년 전
부모
커밋
1189738e28
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 0
      logs/all-2021-03-12.log
  2. 1 1
      utils/PaddleOCR/deploy/hubserving/ocr_system/params.py

+ 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