PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.48k stars 7.84k forks source link

版面分析使用picodet在Docbank上训练时报错 #8278

Closed Siri-2001 closed 1 year ago

Siri-2001 commented 2 years ago

python3 tools/train.py -c configs/picodet/legacy_model/application/layout_analysis/picodet_lcnet_x1_0_layout.yml --eval

andyjiang1116 commented 2 years ago

确保加载的预训练模型和配置文件一致

LeonWang91 commented 1 year ago

想请问可以使用CDLA的预训练模型直接去运行版面分析测试的命令吗,我也报了上面类似的错误 错误如下:

image

命令如下: python3 tools/infer.py -c configs/picodet/legacy_model/application/layout_analysis/picodet_lcnet_x1_0_layout.yml --slim_config configs/picodet/legacy_model/application/layout_analysis/picodet_lcnet_x2_5_layout.yml -o weights='/data_1/wangl/LeiWang/Projects/PaddleOCR/pretrained_model/picodet_lcnet_x1_0_fgd_layout_cdla.pdparams' --infer_img='/data_1/wangl/LeiWang/Projects/PaddleOCR/dataset/1.jpg' --output_dir=/data_1/wangl/LeiWang/Projects/PaddleOCR/output/ --draw_threshold=0.5

我只替换了weights的内容,没有更改配置文件,好像也没有找到CDLA的配置文件