PaddleOCR
PaddleOCR copied to clipboard
enhanced_ctc_loss
你好,在我想用enhanced_ctc_loss时,怎样在ch_PP-OCRv2_rec_enhanced_ctc_loss.yml中设置,其中 Focal-CTC Loss,A-CTC Loss, 怎么设置用哪一个,非常感谢 Loss: name: CombinedLoss loss_config_list:
- CTCLoss: use_focal_loss: false weight: 1.0
- CenterLoss: weight: 0.05 num_classes: 6625 feat_dim: 96 center_file_path:
you can also try to add ace loss on your own dataset
- ACELoss:
weight: 0.1
现在ch_PP-OCRv2_rec_enhanced_ctc_loss.yml使用的就是enhanced_ctc_loss,可以参考enhanced_ctc_loss文档,其中C-CTC是CTC Loss + Center Loss,效果最好,所以采用C-CTC
非常感谢
设置成功了吗? 我用上面的设置,放到resnet34中的loss部分,没有训练进度,读完数据半天后报以下错误?
Traceback (most recent call last):
File "./tools/train.py", line 191, in