Ask-Anything icon indicating copy to clipboard operation
Ask-Anything copied to clipboard

No module named 'models.videochat2_it'

Open seymaakorkmaz opened this issue 1 year ago • 6 comments

(videochat2) root@58df28cdb848:/tf/Ask-Anything/video_chat2# python demo/demo.py Traceback (most recent call last): File "/tf/Ask-Anything/video_chat2/demo/demo.py", line 17, in from models.videochat2_it import VideoChat2_it ModuleNotFoundError: No module named 'models.videochat2_it'

seymaakorkmaz avatar Aug 19 '24 07:08 seymaakorkmaz

have you resolved it ?

Graysonicc avatar Aug 19 '24 13:08 Graysonicc

have you resolved it ?

No

seymaakorkmaz avatar Aug 20 '24 06:08 seymaakorkmaz

@seymaakorkmaz @Graysonicc Hi. Sorry for the late reply. We have changed the organization form of the code, you can refer to https://github.com/OpenGVLab/Ask-Anything/blob/main/video_chat2/demo/demo_mistral_hd.ipynb .

In demo/demo.py you should change from models.videochat2_it import VideoChat2_it to from model import VideoChat2_it_vicuna

yinanhe avatar Aug 20 '24 06:08 yinanhe

demo.ipynb is OK. When i ran demo.py,i met the same problem—video no style

Graysonicc avatar Aug 20 '24 14:08 Graysonicc

you can add these two lines: import sys sys.path.append('../Ask-Anything/video_chat2')[your path]

Qnancy avatar Aug 20 '24 14:08 Qnancy

demo.ipynb is OK. When i ran demo.py,i met the same problem—video no style

@Graysonicc This could be due to a version issue with gradio where you need to downgrade your version of gradio or remove style-related code from demo.py

yinanhe avatar Aug 21 '24 09:08 yinanhe

Hi, we will close this issue.

Feel free to contact us if you have other questions.

yinanhe avatar Oct 11 '24 07:10 yinanhe