Jacob Gildenblat
Jacob Gildenblat
The key is to modify this part https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/base_cam.py#L74 For example we could do self.outputs = outputs So then outputs could be accessed outside. I'm traveling right now so will be...
It is possible that the YOLO5 model changed and now also returns something else. The tutorial assumed that the YOLO5 model returns a tensor, when it gets a tensor. I...
If you want to create the CAM only for the RGB part, I would create a model wrapper that fixes the D input, and is just a regular model with...
How many output neurons does the model have in this case? Is it 1 or 2? If 1 (representing two classes), you can use https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/utils/model_targets.py#L26 ```python from pytorch_grad_cam.utils.model_targets import BinaryClassifierOutputTarget...
Hey, Yes. Can you give more details on the model architecture? Is the input image a batch with 6 channels (RGB * 2) or is it something else?
Yes. I think you can set one of the layers that does have a spatial output. `target_layers = [model.bn2]`
So you want to only visualize the features you have in general, but not how they correspond which some classification categories, since there is no classifier attached. You can use...
Hi, Yes this needs better documentation. I'm planning to write a tutorial for this. - [ClassifierOutputTarget](https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/utils/model_targets.py#L6) Use the logits from a multi-category classifier. This means that the activations will correspond...
Hi, no, it's just a common abstraction for tall the cam methods. The original CAM isn't implemented here, since it's relevant only for certain architecture (with a GAP + classifier...
Can you please provide a link to the paper?