Skip to content
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

运行 tool/test.py 出现IndexError #82

Closed
ZhouHuang23 opened this issue Dec 4, 2021 · 4 comments
Closed

运行 tool/test.py 出现IndexError #82

ZhouHuang23 opened this issue Dec 4, 2021 · 4 comments

Comments

@ZhouHuang23
Copy link

作者您好!

我正常训练DOTA1.0数据后,在运行:

python test/tools.py config/obb/oriented_rcnn/faster_rcnn_orpn_r101_1x_data10.py work_dirs/faster_rcnn_orpn_r101_1x_data10/latest.pth --show-dir

出现以下Bug:

在 File " / 00D / 0bbdetection / Bboxtoolkit / Bboxtoolkit / visualization / show . py " , line 70 , in < Listcomp > bboxes=[ boxes [ labels == i ] for i in range ( labels . max() ) + 1 ) ]
出现:

Indexerror : boolean index did not match indexed array along dimension 0 ; dimension is 9 but corresponding boolean dimension is 17

只修改了配置路径,其它未做修改。

@jbwang1997
Copy link
Owner

可能是最近BboxToolkit的接口发生变化过,OBBDetection在不久前才改过来。

建议将OBBDetection与BboxToolkit从新更新一下

@ZhouHuang23
Copy link
Author

您好,我重新clone了最新的OBBDetection与BboxToolkit,并python test/tools.py ......
但仍然出现了同样的Bug,麻烦您再处理一下。

@jbwang1997
Copy link
Owner

确实有bug,在最新的commit我已经进行了修改

@ZhouHuang23
Copy link
Author

谢谢修复bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants