-
Notifications
You must be signed in to change notification settings - Fork 45
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
Binary Score #78
Comments
Hi, @albths . Thanks! |
Thanks for the prompt response. I copied your example code for ScoreCam and it only gives me high attention at one corner. However, I just noticed GradCam Plus Plus seems to work. My main question refers to how to visualize the features for both classes in a binary network with only one output node. If I understand correctly, for this purpose you introduced the class "BinaryScore" instead of "CategoricalScore". Let's say class A is dogs and class B is cats. My model output is the probability for dogs (sigmoid). Probability for cats would then be 1-model output. How to set up the scores to visualize features for each class separately? My code snippet for ScoreCam is analogous to: scorecam = Scorecam(model) Thanks a lot! |
Could you also submit the code where creates the
The web page below may be helpful. Thanks! |
This is exactly, what I was looking for. Thanks a lot. Somehow didn't see these instructions. However, it seems that using BinaryScore for negative class (i. e. score = Binary(0.0)) produces very strange images with a grid-like (non-informative) feature representation. Would be grateful for any help on that. |
Hi, first of all, thanks for the great job on this repo. I am presenting a similar issue with just one output (sigmoid). The issue seems to be happening for the tf-keras-vis/tf_keras_vis/scorecam.py Lines 165 to 166 in 0bc00a8
Also, I think the operation of softmax must be over channels instead of logits, the paper says Where softmax is applied over the results for a class in specific. The solution could be |
Hi,
First of all, thanks a lot for this great visualization toolbox. I am using Efficientnet to categorize images into a binary score (i. e. only one output neuron). Can you please provide an end-to-end example, how to use the class BinaryScore in this context? SmoothGrad works fine in my case, but somehow GradCam and ScoreCam only yield broken results, even though I copied your example code. Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: