looput / PSENet-Tensorflow

TensorFlow implementation of PSENet text detector (Shape Robust Text Detection with Progressive Scale Expansion Networkt)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexError: index 8 is out of bounds for axis 0 with size 8

Tian14267 opened this issue · comments

作者你好,我在用CTW数据训练的时候,会报这个错误:" index 8 is out of bounds for axis 0 with size 8 "。
这个错误发生在dataset/preprocess.py的150行左右的“if not label[i]:”处。应该是box的shape[0]和label的个数对不上。请问这个该怎么修改?

你最新代码的172行 @looput

bboxes = np.reshape(bboxes * ([img.shape[1], img.shape[0]] * 4), (bboxes.shape[0], int(bboxes.shape[1] / 2), 2)).astype(np.int32)
这个地方*4 改成对应的点数 14

这个地方的点数也要改下

可以了。作者非常给力非常6!

pycharm可以连接服务器远程debug, 可以单步调试程序执行步骤,有助于理解代码和错误排查,你或许可以试下

我知道的。只是服务器目前无法可视化。试了VNC,结果有bug,不知道作者对VNC是否有了解(笑)
今天把代码的一部分梳理了下,不过还是很多不太理解的。后面会继续学习的。
不知道作者可不可以加一下QQ呢,方便沟通(主要还是有不懂的叨扰你啦,向你看齐)
QQ:969176217

了解不多, 有问题提issue 就可以了:joy: