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
How can I use Grad CAM for Dual Attention ViT Transformer (davit_tiny.msft_in1k).
I tried to use reshape transform with height,width 7,7 and 14,14
I need to figure out which layer to use or how to reshape the output.
I've successfully used GradCAM, EigenCAM, and ScoreCAM with ResNet, DenseNets, VGG, ViT, and SwinVit. Results are amazing for all these models.
Any Help?
The text was updated successfully, but these errors were encountered:
result = tensor.reshape(tensor.size(0),
height, width, tensor.size(2))
# ??Bring the channels to the first dimension,
# like in CNNs.
result = result.transpose(2, 3).transpose(1, 2)
return result
How can I use Grad CAM for Dual Attention ViT Transformer (davit_tiny.msft_in1k).
I tried to use reshape transform with height,width 7,7 and 14,14
I need to figure out which layer to use or how to reshape the output.
I've successfully used GradCAM, EigenCAM, and ScoreCAM with ResNet, DenseNets, VGG, ViT, and SwinVit. Results are amazing for all these models.
Any Help?
The text was updated successfully, but these errors were encountered: