[Bug]: - Feature Visualization for single-channel image #148
Labels
bug
Something isn't working
enhancement
New feature or request
feature-visualization
New feature or issue concerning Feature Viz
Module
Feature Visualization
Current Behavior
When using xplique.features_visualizations.optimize on model taking single-channel image as input, an dimension error occurs.
I suspect this is caused by line 43 in xplique/features_visualizations/transformations.py :
kernel = tf.tile(kernel, [1, 1, 3, 1])
where it should be kernel = tf.tile(kernel, [1, 1, number of channel, 1])
Expected Behavior
xplique.features_visualizations.optimize return expected images visualizing features
Version
1.3.0
Environment
Relevant log output
To Reproduce
Apply xplique.features_visualizations.optimize on a model taking single-channel image as input.
The text was updated successfully, but these errors were encountered: