Skip to content

Conversation

@gofixyourself
Copy link
Collaborator

No description provided.

for i in range(output_ids.shape[0]):
caption = self.tokenizer.decode(output_ids[i, self.input_ids.shape[1]:]).strip().split('</s>')[0]
all_outputs.append(caption)
all_outputs.append(check_caption(caption))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_caption может вернуть None - такого быть не должно

@boomb0om boomb0om merged commit 6998a3e into dev Mar 28, 2024
@boomb0om boomb0om deleted the kirillova/video_llava_fix_captions branch March 28, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants