-
Notifications
You must be signed in to change notification settings - Fork 843
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
Matrix Size Mismatch Error in 'make_captions.py' When Using --num_beams Not Equal to 1 #1149
Comments
I got the exact same issue, im using the GUI version.
|
I finally found the fix for this :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using the
finetune/make_captions.py
to create captions using BLIP. However, setting--num_beams
larger than 1 results in mismatched matrix sizes.Here's the error log:
After trying different values for
num_beams
, it seems that the size ofkey_layer.transpose(-1, -2)
is the square ofquery_layer
at dimension 0, which explains whynum_beams=1
does not result in any error.The text was updated successfully, but these errors were encountered: