Giter Site home page Giter Site logo

video_demo.py code didn't work about llava-next HOT 10 CLOSED

MSY99 avatar MSY99 commented on September 4, 2024
video_demo.py code didn't work

from llava-next.

Comments (10)

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on September 4, 2024

Hi, it should be :bash scripts/video/demo/video_demo.sh lmms-lab/LLaVA-NeXT-Video-7B-DPO vicuna_v1 32 2 average after no_token True ./data/llava_video/video-chatgpt/evaluation/Test_Videos/v_Lf_7RurLgp0.mp4

from llava-next.

MSY99 avatar MSY99 commented on September 4, 2024

Hi, it should be :bash scripts/video/demo/video_demo.sh lmms-lab/LLaVA-NeXT-Video-7B-DPO vicuna_v1 32 2 average after no_token True ./data/llava_video/video-chatgpt/evaluation/Test_Videos/v_Lf_7RurLgp0.mp4

Still same error....

from llava-next.

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on September 4, 2024

try: bash scripts/video/demo/video_demo.sh lmms-lab/LLaVA-NeXT-Video-7B vicuna_v1 32 2 average after no_token True /mnt/bn/vl-research/workspace/yhzhang/LLaVA-NeXT/playground/demo/xU25MMA2N4aVtYay.mp4

from llava-next.

gordonhu608 avatar gordonhu608 commented on September 4, 2024

Hi, I can run the demo smoothly, but the response I'm getting is " ". Can you explain what your newly added arguments which are (average after no_token) mean? I assume average is mm_spatial_pool_mode but what about the others? Thanks!

from llava-next.

MSY99 avatar MSY99 commented on September 4, 2024

try: bash scripts/video/demo/video_demo.sh lmms-lab/LLaVA-NeXT-Video-7B vicuna_v1 32 2 average after no_token True /mnt/bn/vl-research/workspace/yhzhang/LLaVA-NeXT/playground/demo/xU25MMA2N4aVtYay.mp4

I tried it, and also got same error...

this is error msg
File "-/LLaVA-NeXT/playground/demo/video_demo.py", line 183, in
run_inference(args)
File "-/LLaVA-NeXT/playground/demo/video_demo.py", line 160, in run_inference
output_ids = model.generate(inputs=input_ids, images=video, attention_mask=attention_masks, modalities="video", do_sample=True, temperature=0.2, max_new_tokens=1024, use_cache=True, stopping_criteria=[stopping_criteria])
UnboundLocalError: local variable 'video' referenced before assignment

from llava-next.

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on September 4, 2024

Hi, I can run the demo smoothly, but the response I'm getting is " ". Can you explain what your newly added arguments which are (average after no_token) mean? I assume average is mm_spatial_pool_mode but what about the others? Thanks!

try to pull our latest code!

from llava-next.

MSY99 avatar MSY99 commented on September 4, 2024

When I clone latest code and create new conda virtual env, it works! But I tried to test by using my own data, it still got same error...
UnboundLocalError: local variable 'video' referenced before assignment

from llava-next.

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on September 4, 2024

When I clone latest code and create new conda virtual env, it works! But I tried to test by using my own data, it still got same error... UnboundLocalError: local variable 'video' referenced before assignment

Make sure the path of your video is correct

from llava-next.

MSY99 avatar MSY99 commented on September 4, 2024

When I clone latest code and create new conda virtual env, it works! But I tried to test by using my own data, it still got same error... UnboundLocalError: local variable 'video' referenced before assignment

Make sure the path of your video is correct

Sorry..! That was my fault. I fixed the path and I could got well Response. Thanks!

from llava-next.

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on September 4, 2024

Good to know, if it solved, please close this issue, thx.

from llava-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.