Vision-CAIR / MiniGPT-4

Open-sourced codes for MiniGPT-4 and MiniGPT-v2 (https://minigpt-4.github.io, https://minigpt-v2.github.io/)
https://minigpt-4.github.io
BSD 3-Clause "New" or "Revised" License
25.4k stars 2.91k forks source link

MiniGPT-4/minigpt4/models/modeling_llama.py", line 517, in forward position_ids = position_ids.view(-1, seq_length).long() RuntimeError: shape '[-1, 87]' is invalid for input of size 88 #316

Open sujaly opened 1 year ago

sujaly commented 1 year ago

When I run python demo.py --cfg-path eval_configs/minigpt4_eval.yaml --gpu-id 0, I get an error when I input text after uploading images to the web page.

Have you ever encountered such a mistake?

hzphzp commented 3 months ago

same problem, have you solved it?