Boosting-R-CNN icon indicating copy to clipboard operation
Boosting-R-CNN copied to clipboard

Test Question

Open zhaoker666 opened this issue 1 year ago • 3 comments

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

zhaoker666 avatar May 06 '24 09:05 zhaoker666

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

mousecpn avatar May 08 '24 15:05 mousecpn

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

Sticker-Sjh avatar Jul 29 '24 13:07 Sticker-Sjh

This bug is fixed.

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

mousecpn avatar Jul 30 '24 06:07 mousecpn