Closed Siri-2001 closed 1 year ago
确保加载的预训练模型和配置文件一致
想请问可以使用CDLA的预训练模型直接去运行版面分析测试的命令吗,我也报了上面类似的错误 错误如下:
命令如下: 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的配置文件
python3 tools/train.py -c configs/picodet/legacy_model/application/layout_analysis/picodet_lcnet_x1_0_layout.yml --eval