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.86k stars 230 forks source link

Checkpoints issue #83

Open NiloufarAb opened 6 months ago

NiloufarAb commented 6 months ago

Hello, I downloaded both models using the provided commands :

ViT: wget https://storage.googleapis.com/sfr-vision-language-research/LAVIS/models/BLIP2/eva_vit_g.pth QFormer: wget https://storage.googleapis.com/sfr-vision-language-research/LAVIS/models/BLIP2/blip2_pretrained_flant5xxl.pth However, keep getting the "RuntimeError: checkpoint url or path is invalid" error for q model.

Andy1621 commented 6 months ago

Thanks for your question! Could you provide more details about the bug, such as the full log?

Eugleo commented 5 months ago

I think this is caused by you using a different wget, one that interprets the ./pretrained_models/tag2text_swin_14m.pth path as another url to download from.

A fix is to explicitly specify that the second path is the output directory.

mkdir ./pretrained_models
wget -O ./pretrained_models/tag2text_swin_14m.pth https://huggingface.co/spaces/xinyu1205/Tag2Text/resolve/main/tag2text_swin_14m.pth
wget -O ./pretrained_models/grit_b_densecap_objectdet.pth https://datarelease.blob.core.windows.net/grit/models/grit_b_densecap_objectdet.pth