Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkpoints issue #83

Open
NiloufarAb opened this issue Dec 11, 2023 · 2 comments
Open

Checkpoints issue #83

NiloufarAb opened this issue Dec 11, 2023 · 2 comments

Comments

@NiloufarAb
Copy link

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
Copy link
Collaborator

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

@Eugleo
Copy link

Eugleo commented Jan 27, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants