@jacobgil Thank you for this repository.
I am trying to implement this in my keras trained segmentation model (FCN8+VGG19).
I have referenced the Segmentation Notebook from your gradcam repo for pytroch, where you have created a wrapper, as pytorch model was returning a dictionary rather than a tensor. However, with Keras, I loaded my model, pre-processed and fed the input image, and ran model.predict(), I get a tensor which is basically of the shape of input image and has values depending on the category (in my case 0 and 1).
I'm having issues proceeding from here.
This repo does:
@jacobgil Thank you for this repository. I am trying to implement this in my keras trained segmentation model (FCN8+VGG19). I have referenced the Segmentation Notebook from your gradcam repo for pytroch, where you have created a wrapper, as pytorch model was returning a dictionary rather than a tensor. However, with Keras, I loaded my model, pre-processed and fed the input image, and ran
model.predict()
, I get a tensor which is basically of the shape of input image and has values depending on the category (in my case 0 and 1).I'm having issues proceeding from here. This repo does:
So it's basically picking up a category, and calculating gradients. What should I do in my case?
Kindly help me out, Thank you.