PaddleOCR 训练时遇到的问题

PaddleOCR 训练时遇到的问题

config path: PaddleOCR/configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_cml.yml

PPLCNetNew找不到对应模型

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']

更改两个studenbackbone参数

	Backbone:
        name: PPLCNetV3 # 将PPLCNetNew改为PPLCNetV3
        det: True # 添加det: True

训练时模型评估时,精度(precision)、召回率(recall)、F1值(hmean)都为0

[2023/03/24 11:24:16] ppocr INFO: best metric, hmean: 0, is_float16: False, precision: 0.0, recall: 0.0, fps: 6.358296325689887, best_epoch: 45

config文件中的lr调高 我设置的是0.02

ValueError: too many values to unpack (expected 4)

  File "/workspace/PaddleOCR/ppocr/postprocess/db_postprocess.py", line 229, in __call__
    src_h, src_w, ratio_h, ratio_w = shape_list[batch_index]
ValueError: too many values to unpack (expected 4)

config文件中的cal_metric_during_train改为false

Global:
	cal_metric_during_train: false
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值