PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
41.13k stars 7.54k forks source link

padded_polygon = np.array(padding.Execute(distance)[0]) IndexError: list index out of range #11005

Open xuxiansheng2018 opened 9 months ago

xuxiansheng2018 commented 9 months ago

当我训练ppocrv4_student.yml文件的时候 出现以下问题?请问该如何解决? [2023/09/26 21:17:23] ppocr ERROR: When parsing line crop_img/DL54532.jpg [{"transcription": "kV311东欣线", "points": [[1407, 782], [1521, 752], [1525, 772], [1413, 806]], "difficult": true}, {"transcription": "20号", "points": [[1410, 815], [1508, 793], [1519, 837], [1421, 860]], "difficult": false}, {"transcription": "20号", "points": [[1178, 885], [1252, 858], [1264, 891], [1189, 917]], "difficult": false}, {"transcription": "35kV324耀华线", "points": [[1169, 858], [1280, 821], [1283, 839], [1167, 875]], "difficult": true}] , error happened with msg: Traceback (most recent call last): File "/home/xuguozhu/project/PaddleOCR-dygraph/ppocr/data/simple_dataset.py", line 153, in getitem outs = transform(data, self.ops) File "/home/xuguozhu/project/PaddleOCR-dygraph/ppocr/data/imaug/init.py", line 56, in transform data = op(data) File "/home/xuguozhu/project/PaddleOCR-dygraph/ppocr/data/imaug/make_border_map.py", line 64, in call self.draw_border_map(text_polys[i], canvas, mask=mask) File "/home/xuguozhu/project/PaddleOCR-dygraph/ppocr/data/imaug/make_border_map.py", line 85, in draw_border_map padded_polygon = np.array(padding.Execute(distance)[0]) IndexError: list index out of range

xuxiansheng2018 commented 9 months ago

训练在继续执行 ,但是中途会有这样的error ,请问该如何解决

wzgwy commented 8 months ago

请问这个问题解决了吗?我也遇到这个问题

wangchenhong commented 7 months ago

请问问题解决了吗?我也遇到了一样的问题

uuleaf commented 6 months ago

这个问题遇到的最多了

ariefwijaya commented 6 months ago

I have this problem