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

saliency for reconstruction task #36

Closed
james20141606 opened this issue Jan 1, 2020 · 3 comments
Closed

saliency for reconstruction task #36

james20141606 opened this issue Jan 1, 2020 · 3 comments

Comments

@james20141606
Copy link

Thanks for the great implementation! I am wondering what would be different if I'd like to investigate the saliency map of a reconstruction task. In the classification task you can select one neuron, but for reconstruction task, the output is the whole image, is it possible to visualize it in similar way?

@tolga-b
Copy link
Collaborator

tolga-b commented Jan 3, 2020

Hi Chen,
Thanks for reaching out. Do you mean tasks such as image infilling or super-resolution when you say reconstruction? I haven't looked into how saliency looks like for reconstruction models, but one idea is seeing each pixel as a separate class which would give you a heatmap of where the model is looking at when predicting that particular pixel. You can maybe sample a subset of pixels in the image on a grid and visualize heatmaps at each location separately.

@james20141606
Copy link
Author

Hi Chen,
Thanks for reaching out. Do you mean tasks such as image infilling or super-resolution when you say reconstruction? I haven't looked into how saliency looks like for reconstruction models, but one idea is seeing each pixel as a separate class which would give you a heatmap of where the model is looking at when predicting that particular pixel. You can maybe sample a subset of pixels in the image on a grid and visualize heatmaps at each location separately.

Thanks for your inspiring reply! for reconstruction I mean some auto-encoder/GAN based image to image reconstruction. Your idea to use each pixel as class is worth trying, but might still have some problem: we may treat them as continuos value instead of discrete value. So the problem became: could we change the code for regression task visualization?

@tolga-b
Copy link
Collaborator

tolga-b commented Jan 15, 2020

I think it should work out of the box as long as you pass the regression neuron as the output neuron for the saliency. Please let me know if you run into any issues!

@bwedin bwedin closed this as completed Jul 28, 2021
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