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

Test Question #17

Open
zhaoker666 opened this issue May 6, 2024 · 3 comments
Open

Test Question #17

zhaoker666 opened this issue May 6, 2024 · 3 comments

Comments

@zhaoker666
Copy link

Hi,can i help me ?
Traceback (most recent call last):
File "/home/zk/anaconda3/envs/BRCNN/Boosting-R-CNN-master/tools/test.py", line 238, in
main()
File "/home/zk/anaconda3/envs/BRCNN/Boosting-R-CNN-master/tools/test.py", line 203, in main
outputs = single_gpu_test(model, data_loader, args.show, args.show_dir,
File "/home/zk/anaconda3/envs/BRCNN/Boosting-R-CNN-master/mmdet/apis/test.py", line 72, in single_gpu_test
num_gts = gt_bboxes[i].shape[1]
UnboundLocalError: local variable 'gt_bboxes' referenced before assignment

@mousecpn
Copy link
Owner

mousecpn commented May 8, 2024

(1) How did you compile the environment? Locally or use pip to install mmdet.
(2) Did you change the config script as:
image

@Sticker-Sjh
Copy link

测试问题在作者大大的帮助下,解决了这个问题,在mmdet/apis/test.py文件中把img = imshow_det_bboxes_water()整个注释掉,然后把下面的img = imshow_det_bboxes()取消注释就好了,再一次感谢作者

@mousecpn
Copy link
Owner

This bug is fixed.

测试问题在作者大大的帮助下,解决了这个问题,在mmdet/apis/test.py文件中把img = imshow_det_bboxes_water()整个注释掉,然后把下面的img = imshow_det_bboxes()取消注释就好了,再一次感谢作者

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

3 participants