We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
##================= 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 ) query_atts = torch.ones(query_tokens.size()[:-1], dtype=torch.long).to( image.device ) attention_mask = torch.cat([query_atts, text_tokens.attention_mask], dim=1) lm_output = self.Qformer( decoder_input_ids, attention_mask=attention_mask, past_key_values=query_output.past_key_values, return_dict=True, labels=labels, ) loss_lm = lm_output.loss
Hello, Thank you for your great work!
As I am working on reviewing the implementation, I came up with a question about ITG.
Is Image captioning loss above consider as ITG in the paper?
Then, is it possible to further enhance LLM result by using captioning result from ITG?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, Thank you for your great work!
As I am working on reviewing the implementation, I came up with a question about ITG.
Is Image captioning loss above consider as ITG in the paper?
Then, is it possible to further enhance LLM result by using captioning result from ITG?
The text was updated successfully, but these errors were encountered: