ComfyUI Node
Gradient Saliency Visualizer
A ComfyUI node in creative-code/explainability with 10 inputs and 2 outputs.
Gradient Saliency Visualizer
- image
- saliency_output
- original_resized
◄model_namevgg16►
◄methodIntegrated Gradients►
◄output_modeheatmap_overlay►
◄class_index-1►
◄smoothgrad_samples25►
◄smoothgrad_noise0.15►
◄ig_steps50►
◄input_size224►
◄use_smoothgradfalse►
Categorycreative-code/explainability
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| model_name | COMBO | vgg16 | 7 options: vgg16, vgg19, resnet50, resnet101, inception_v3, mobilenet_v3_large, +1 |
| method | COMBO | Integrated Gradients | 6 options: Vanilla Gradients, SmoothGrad, Integrated Gradients, Blur IG, Guided IG, XRAI |
| output_mode | COMBO | heatmap_overlay | 4 options: heatmap_overlay, grayscale_mask, diverging_mask, overlay_and_mask |
| class_index | INT | -1-1–999 | — |
| smoothgrad_samples | INT | 255–100 | — |
| smoothgrad_noise | FLOAT | 0.150.01–0.5 | — |
| ig_steps | INT | 5010–300 | — |
| input_size | INT | 224224–512 | Use 299 for InceptionV3 |
| use_smoothgradopt | BOOLEAN | false | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| saliency_output | IMAGE | — |
| original_resized | IMAGE | — |