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'm trying to use VanillaGradients for a single image, but I'm getting this warning
UserWarning: Unsupported model architecture for VanillaGradients. The last two layers of the model should be: a layer which computes class scores with no activation, followed by an activation layer.
I met the same problem when running with a model where the last layer is Dense with an activation function.
I checked the paper of Vinilla Gradients. In Section 2, the authors pointed that
It should be noted that we used the (unnormalised) class scores S_c, rather than the class posteriors, returned by the soft-max layer... The reason is that the maximisation of the class posterior can be achieved by minimising the scores of other classes.
Guess this is the reason why the warning is raised.
I'm trying to use VanillaGradients for a single image, but I'm getting this warning
VanillaGradients call :
Model Declaration
Notes
The text was updated successfully, but these errors were encountered: