PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

v4使用配置文件训练时backbone中缺少PPLCNeTNew

Open Olg1erdzz opened this issue 11 months ago • 4 comments

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:
  • 版本号/Version:Paddle:2.5 PaddleOCR: 2.7
  • 运行指令/Command Code:!python tools/train.py -c configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_cml.yml -o Optimizer.base_lr=0.0001- 完整报错/Complete Error Message:
  • Traceback (most recent call last): File "/home/aistudio/PaddleOCR-release-2.7/tools/train.py", line 227, in main(config, device, logger, vdl_writer) File "/home/aistudio/PaddleOCR-release-2.7/tools/train.py", line 135, in main model = build_model(config['Architecture']) File "/home/aistudio/PaddleOCR-release-2.7/ppocr/modeling/architectures/init.py", line 34, in build_model arch = getattr(mod, name)(config) File "/home/aistudio/PaddleOCR-release-2.7/ppocr/modeling/architectures/distillation_model.py", line 47, in init model = BaseModel(model_config) File "/home/aistudio/PaddleOCR-release-2.7/ppocr/modeling/architectures/base_model.py", line 55, in init self.backbone = build_backbone(config["Backbone"], model_type) File "/home/aistudio/PaddleOCR-release-2.7/ppocr/modeling/backbones/init.py", line 77, in build_backbone assert module_name in support_dict, Exception( AssertionError: when model typs is det, backbone only support ['MobileNetV3', 'ResNet', 'ResNet_vd', 'ResNet_SAST', 'PPLCNet', 'PPLCNetV3', 'PPHGNet_small']

请尽量不要包含图片在问题中/Please try to not include the image in the issue.

Olg1erdzz avatar Mar 23 '24 09:03 Olg1erdzz