Skip to content
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

attention warning and incomplete text description #28

Open
Holmes-GU opened this issue Dec 1, 2024 · 1 comment
Open

attention warning and incomplete text description #28

Holmes-GU opened this issue Dec 1, 2024 · 1 comment

Comments

@Holmes-GU
Copy link

Hi,
Thanks for your interesting work and sharing codes. When running the quick inference code, several issues appear.

  1. The terminal returns the warning that "The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results." So, ignoring it is OK?

  2. The generated video description for video "./examples/video1.mp4" is
    "'The video begins with a scene featuring two characters in a fantastical setting, with a large, green, leaf-like structure and a mountainous backdrop. The first character, dressed in a yellow and red outfit with a mask, is seen in a dynamic pose, suggesting movement or action, while the second character, wearing a blue robe with a white beard, stands with a contemplative expression. The scene then transitions to a more serene setting, with the same two characters now standing still, facing each other against a misty, mountainous background. The character in the yellow and red outfit appears to be speaking or reacting, while the character in'"
    which seems not complete, especially the last sentence. Is there is solution for it?

Thanks.

image
@xiaoqian-shen
Copy link
Collaborator

Hi, @Holmes-GU

  1. The warning can be ignored.
  2. You can increase the number of max_new_tokens for generating complete sentence, or prompting it to generate concisely.

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

No branches or pull requests

2 participants