PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

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

Open xuxiansheng2018 opened this issue 2 years ago • 7 comments

当我训练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 avatar Sep 26 '23 13:09 xuxiansheng2018

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

xuxiansheng2018 avatar Sep 26 '23 13:09 xuxiansheng2018

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

wzg722 avatar Oct 25 '23 10:10 wzg722

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

wangchenhong avatar Nov 29 '23 02:11 wangchenhong

这个问题遇到的最多了

uuleaf avatar Jan 07 '24 09:01 uuleaf

I have this problem

ariefwijaya avatar Jan 18 '24 05:01 ariefwijaya

i have this problem

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

muthu-28 avatar Oct 17 '24 09:10 muthu-28

yeah you have

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: Muthu Kumar @.> Sent: Thursday, October 17, 2024 5:44:33 PM To: PaddlePaddle/PaddleOCR @.> Cc: yy @.>; Manual @.> Subject: Re: [PaddlePaddle/PaddleOCR] padded_polygon = np.array(padding.Execute(distance)[0]) IndexError: list index out of range (Issue #11005)

i have this problem

― Reply to this email directly, view it on GitHubhttps://github.com/PaddlePaddle/PaddleOCR/issues/11005#issuecomment-2419060890, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMUWOGML3W2JGBSBKQ7NKILZ36BIDAVCNFSM6AAAAABQDKRQHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZGA3DAOBZGA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

dosomethingbyme avatar Oct 18 '24 12:10 dosomethingbyme

我的解决方案,不知道有没有帮助

# in PaddleOCR/ppocr/data/imaug/make_border_map.py
padded_polygon = np.array(padding.Execute(distance)[0])
# updated in PaddleOCR/ppocr/data/imaug/make_border_map.py
offset_polygons = padding.Execute(distance)
if not offset_polygons:
    return
padded_polygon = np.array(offset_polygons[0])

June-Hall avatar Nov 13 '24 02:11 June-Hall

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Feb 15 '25 02:02 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 01 '25 02:03 github-actions[bot]