You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question about the implementation of the Algorithm1 of the ScoreCAM paper.
The code
# how much increase if keeping the highlighted region
# predication on masked input
output = self.model_arch(input * norm_saliency_map)
output = F.softmax(output)
score = output[0][predicted_class]
suggests that the output is simply the masked images run through the original neural net. However, in the paper there is an additional step: $S^{c} = f^c(M) - f^c(X_b)$.
I am not sure exactly why this step is needed in the first place, but since it is in the paper, I am curious why it does not seem to be in the code?
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
I have a question about the implementation of the Algorithm1 of the ScoreCAM paper.
The code
suggests that the output is simply the masked images run through the original neural net. However, in the paper there is an additional step:
$S^{c} = f^c(M) - f^c(X_b)$ .
I am not sure exactly why this step is needed in the first place, but since it is in the paper, I am curious why it does not seem to be in the code?
Thank you.
The text was updated successfully, but these errors were encountered: