OpenGVLab / Ask-Anything

[CVPR2024 Highlight][VideoChatGPT] ChatGPT with video understanding! And many more supported LMs such as miniGPT4, StableLM, and MOSS.
https://vchat.opengvlab.com/
MIT License
2.85k stars 230 forks source link

'Dataset' object has no attribute 'components' #165

Closed KingBoyAndGirl closed 2 months ago

KingBoyAndGirl commented 2 months ago
(chatvideo) D:\code\python\Ask-Anything\video_chat_with_ChatGPT>python app.py
Global seed set to 42
load checkpoint from pretrained_models/tag2text_swin_14m.pth
[INFO] initialize caption model success!
[INFO] initialize summarize model success!
Drop path rate: 0.0
No L_MHRA: True
Double L_MHRA: True
Drop path rate: 0.0
No L_MHRA: True
Double L_MHRA: True
Drop path rate: 0.0
No L_MHRA: True
Double L_MHRA: True
Drop path rate: 0.0
No L_MHRA: True
Double L_MHRA: True
Use checkpoint: False
Checkpoint number: [0]
Drop path rate: 0.0
Drop path rate: 0.0
Drop path rate: 0.0
Drop path rate: 0.0
[INFO] initialize InternVideo model success!
[INFO] initialize dense caption model success!
Traceback (most recent call last):
  File "app.py", line 157, in <module>
    example_videos.click(fn=set_example_video, inputs=example_videos, outputs=example_videos.components)
AttributeError: 'Dataset' object has no attribute 'components'

Your work is very good, but I have encountered the above problems in the process of using it. I hope you can take the time to take a look at it for me. Thank you very much.

Lyman-Smoker commented 2 months ago

I am facing the same problems, have you found any solution?

KingBoyAndGirl commented 2 months ago

example_videos.click(fn=set_example_video

My solution to the version problem is as follows: pip install gradio==3.37.0 gradio-client==0.6.1