Closed narrowsnap closed 4 years ago
They just look similar, not the same. This happen in not only guided backprop, but also other vis techniques. Actually, it is reasonable. Note: The cat is less important in the GT image.
@Bear-Kai Dose this mean network recognizes objects via edge? And I don't understand why set gradient=one_hot_output rather than set gradient=ones_like(model_output). Any explain will be thanked.
@narrowsnap
@Bear-kai Thank you! Get it.
Thank you for the answer @Bear-kai !
Hi, thank you for this great repo. I'm confused when I'm reading guided_backprop.py. On line 70-73, the gradient of output is [0, 0, ..., 1, 0].
I changed target class while draw cat_dog_Guided_BP_color map. But I find no matter what class is set, it always looks the same.
For example: cat_dog_Guided_BP_color_target_class_10.jpg
cat_dog_Guided_BP_color_target_class_100.jpg
cat_dog_Guided_BP_color_target_class_243.jpg(ground truth)
cat_dog_Guided_BP_color_target_class_500.jpg
cat_dog_Guided_BP_color_target_class_890.jpg