New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
padded_polygon = np.array(padding.Execute(distance)[0]) IndexError: list index out of range #115
Comments
@cendelian 抱歉看到晚了。能麻烦print一下错误的时候distance的值么 |
对应的代码如下:
请问该怎么解决? |
这个是你这个标注数据区域shrink的话太小,小于0了。你可以调整shrink比例,也可以check一下你的这个case的标注情况。 |
shrink比例在哪里调?调小还是调大? 我感觉WenmuZhou / DBNet.pytorch 和WenmuZhou / PytorchOCR这两个项目的文本检测部分都差不多吧 |
框小了,需要unclip_ratio调大 |
大佬你好,我将unclip_ration调到2.0了 还是报一样的错误 |
我觉得是标注的数据有点问题 |
以下代码报错
make_order_map.py
padded_polygon = np.array(padding.Execute(distance)[0])
File "/data2/deliancen/workpace/OCR/PytorchOCR/torchocr/datasets/det_modules/make_border_map.py", line 54, in draw_border_map
padded_polygon = np.array(padding.Execute(distance)[0])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: