captum icon indicating copy to clipboard operation
captum copied to clipboard

Visualization_transform not applied on Insights

Open fmartiescofet opened this issue 4 years ago • 3 comments

🐛 Bug

In the class ImageFeature in the file captum/insights/attr_vis/features.py the visualization_transform is never applied in the visualize function

To Reproduce

Steps to reproduce the behavior:

  1. Use captum insights with a visualization_transform

Expected behavior

Should apply the visualization_transform before displaying the original image

Environment

Describe the environment used for Captum


 - Captum / PyTorch Version: 0.4.1/1.10.2
 - OS (e.g., Linux): Linux
 - How you installed Captum / PyTorch (`conda`, `pip`, source): conda
 - Build command you used (if compiling from source):
 - Python version: 3.9.10
 - CUDA/cuDNN version: 11.3.1

fmartiescofet avatar Feb 04 '22 18:02 fmartiescofet

cc: @Reubend

NarineK avatar Feb 10 '22 03:02 NarineK

@aobo-y is this issue address ? can we close it ?

NarineK avatar Mar 09 '22 19:03 NarineK

@fmartiescofet Thank you for pointing out the bug. It has been fixed in latest v0.5.0

aobo-y avatar Mar 09 '22 19:03 aobo-y