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

Checkpoints issue

Open NiloufarAb opened this issue 2 years ago • 2 comments

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.

NiloufarAb avatar Dec 11 '23 13:12 NiloufarAb

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

Andy1621 avatar Dec 13 '23 05:12 Andy1621

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

Eugleo avatar Jan 27 '24 19:01 Eugleo