Grad-CAM.pytorch
Grad-CAM.pytorch copied to clipboard
Running retinanet demo example
Hello,
I have the following issue when running any of the demo example on retinanet. May you please advise in this
self.anchor_idxs tensor([], dtype=torch.int64) tensor([], dtype=torch.int64)
Traceback (most recent call last):
File "detection/demo_retinanet.py", line 185, in
Thanks.
@ghada-soliman 麻烦发一下测试的图像
I used the same test images within the folder of GitHub repository. An example is: "--input ./examples/pic1.jpg"
I used the same test images within the folder of GitHub repository. An example is: "--input ./examples/pic1.jpg"
@ghada-soliman 估计不同版本的问题,可否发下您的python,pytorch,detectron2的版本,我测试一下
lower down the confidence. It worked for me. Also remove predict function in grad-cam, instead of self.net.predict([inputs]) use self.net([inputs]). It will work. My detectron version is 2-0.3 and torch is 1.7.