mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-01 15:32:24 +08:00
fix: resolve high vulnerability V-003 (#17289)
Automatically generated security fix Co-authored-by: orbisai0security <orbisai0security@users.noreply.github.com> Co-authored-by: Lin Manhui <mhlin425@whu.edu.cn>
This commit is contained in:
@@ -61,6 +61,11 @@ def read_params():
|
||||
cfg.cls_batch_num = 30
|
||||
cfg.cls_thresh = 0.9
|
||||
|
||||
# Model download URLs using HTTPS for secure transmission
|
||||
cfg.det_model_url = "https://paddle-ocr-models.bj.bcebos.com/dygraph_v2.0/ch/ch_pp-ocrv2_det_infer.tar"
|
||||
cfg.rec_model_url = "https://paddle-ocr-models.bj.bcebos.com/dygraph_v2.0/ch/ch_pp-ocrv2_rec_infer.tar"
|
||||
cfg.cls_model_url = "https://paddle-ocr-models.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar"
|
||||
|
||||
cfg.use_pdserving = False
|
||||
cfg.use_tensorrt = False
|
||||
cfg.drop_score = 0.5
|
||||
|
||||
Reference in New Issue
Block a user