Skip to content
Discussion options

You must be logged in to vote

您好,确实是文本行分类模型太老,需要更换了,可以执行下面的命令下载最新的文本行模型

wget https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x0_25_textline_ori_infer.tar
tar -xf PP-LCNet_x0_25_textline_ori_infer.tar -C /paddle/PaddleOCR/inference

然后把

cfg.cls_model_dir = "./inference/ch_ppocr_mobile_v2.0_cls_infer/"
这个地方的 cfg.cls_model_dir 改成新下载模型的路径
比如:

    cfg.use_angle_cls = True
    cfg.cls_model_dir = "./inference/PP-LCNet_x0_25_textline_ori_infer/"
    cfg.cls_image_shape = "3, 48, 192"
    cfg.label_list = ["0", "180"]
    cfg.cls_batch_num = 30

最后,到

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@zxyFalcon
Comment options

@liuhongen1234567
Comment options

@zxyFalcon
Comment options

@liuhongen1234567
Comment options

Answer selected by cuicheng01
@zxyFalcon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants