Replies: 1 comment 3 replies
-
Hi, Looks like this should've been input_tensor=im.unsqueeze(0), no? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to use GradCAM on a custom ViT model. However, I'm getting the following error: RuntimeError: mat1 and mat2 shapes cannot be multiplied (147x1024 and 3072x64)
I'm wondering if I need to transform my image differently. Any thoughts on how to resolve this error?
This is my code:
This is the reshape_transform function I am using that's provided in this repo's documentation:
Beta Was this translation helpful? Give feedback.
All reactions