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

Plz fix run_vila.py line 65 output variable(s) #127

Open
ziyaosg opened this issue Aug 25, 2024 · 0 comments
Open

Plz fix run_vila.py line 65 output variable(s) #127

ziyaosg opened this issue Aug 25, 2024 · 0 comments

Comments

@ziyaosg
Copy link

ziyaosg commented Aug 25, 2024

Hi!

Directly running

python -W ignore llava/eval/run_vila.py \
    --model-path Efficient-Large-Model/VILA1.5-40b \
    --conv-mode hermes-2 \
    --query "<video>\n Please describe this video." \
    --video-file "demo.mp4"

gives ValueError: too many values to unpack (expected 2) for line 65 in run_vila.py:

images, num_frames = opencv_extract_frames(video_file, args.num_video_frames).

After closer inspection, I realized only the images are outputted by this function, not the number of frames. So simply changing this line to

images = opencv_extract_frames(video_file, args.num_video_frames)

fixed the issue on my end.

Please help check if this is the expected behavior and fix the output if necessary. Thank you!

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