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

AssertionError: Size mismatch! image_features: 1, prompts: 8 #95

Open
szbcasia opened this issue May 20, 2024 · 0 comments
Open

AssertionError: Size mismatch! image_features: 1, prompts: 8 #95

szbcasia opened this issue May 20, 2024 · 0 comments

Comments

@szbcasia
Copy link

Hello, I encountered the following problems during the second phase of training:

File "/home/AI_project/LLaMA-VID/llamavid/model/language_model/llava_llama_vid.py", line 80, in forward
    input_ids, attention_mask, past_key_values, inputs_embeds, labels = self.prepare_inputs_labels_for_multimodal(input_ids, attention_mask, past_key_values, labels, images, prompts=prompts)
  File "/home/AI_project/LLaMA-VID/llamavid/model/llamavid_arch.py", line 532, in prepare_inputs_labels_for_multimodal
    image_features = self.encode_images(images, prompts, long_video=long_video)
  File "/home/AI_project/LLaMA-VID/llamavid/model/llamavid_arch.py", line 341, in encode_images
    image_features = self.vlm_attention(image_features,
  File "/home/AI_project/LLaMA-VID/llamavid/model/llamavid_arch.py", line 350, in vlm_attention
    assert len(image_features) == len(
AssertionError: Size mismatch! image_features: 1, prompts: 8

Is there any solution?

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

1 participant