Replies: 1 comment 1 reply
-
训练过程还是一开始报错呢? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在云服务器上训练paddleocr rec v4, 按照官方说明,修改了ch_PP-OCRv4_rec_distill.yml,再使用python tools/train.py -c configs/rec/PP-OCRv3/ch_PP-OCRv4_rec_distill.yml进行训练,但是出现如下错误:
[2025/06/17 18:44:07] ppocr ERROR: When parsing line /root/autodl-tmp/PaddleOCR/train_data/rec/train/3650_crop_0.jpg 11.9
, error happened with msg: Traceback (most recent call last):
File "/root/autodl-tmp/PaddleOCR/ppocr/data/simple_dataset.py", line 136, in getitem
outs = transform(data, self.ops)
File "/root/autodl-tmp/PaddleOCR/ppocr/data/imaug/init.py", line 72, in transform
data = op(data)
File "/root/autodl-tmp/PaddleOCR/ppocr/data/imaug/operators.py", line 131, in call
data_list.append(data[key])
KeyError: 'valid_ratio'
我感到非常奇怪,3650.jpg我们以前训练过,并没有出错。是yml文件的哪个配置要改吗?还是需要修改源代码,比如:ppocr/data/imgaug/目录中的某个.py?
Beta Was this translation helpful? Give feedback.
All reactions