-
Notifications
You must be signed in to change notification settings - Fork 991
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
blip2_qformer train question #779
Comments
Hi @Codingfarmer-hkl , Currently, I am getting the error :
When running : Also, when running:
And, when running:
Please note that i am using:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
##================= Image Captioning ========================##
decoder_input_ids = text_tokens.input_ids.clone()
decoder_input_ids[:, 0] = self.tokenizer.bos_token_id
labels = decoder_input_ids.masked_fill(
decoder_input_ids == self.tokenizer.pad_token_id, -100
)
The text was updated successfully, but these errors were encountered: