-
Notifications
You must be signed in to change notification settings - Fork 177
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
What should be the size of the input_question in engine.py ? #53
Comments
@jiteshm17 Thanks for your interest :) The lookup_tensor should be of size [1,2] instead of [2] because you have to consider the batch size (which is 1 in your example). lookup_tensor = lookup_tensor.unsqueeze(0)
out = model(input_img,lookup_tensor) Does it work? |
Thank you for your response. Sorry for the delay
My code is as follows
|
Hi, thank you so much for providing your code!
I want to check the output shapes at every stage of the model. I plan to do that by passing in some random tensors of the specific shape required model as I really cannot download and extract the entire VQA dataset just for testing.
Can anyone please let me know the shape of
input_question
in theengine.py
file here (with and without attention) before passing it as input to the model and how to create a random tensor of that specific shape. I tried usingBut I get this error
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: