BAAI-DCAI / SpatialBot

The official repo for "SpatialBot: Precise Spatial Understanding with Vision Language Models.
MIT License
157 stars 10 forks source link

Cannot access gated repo. How to be authenticated to access it. #4

Closed Pingcheng-Jian closed 2 months ago

Pingcheng-Jian commented 2 months ago

I got error when running the example codes:

huggingface_hub.utils._errors.GatedRepoError: 401 Client Error. (Request ID: Root=1-66b3973a-536436994685db4009aff22c;6288d9d6-f3ac-4157-a6fe-221500b0ee38)

Cannot access gated repo for url https://huggingface.co/RussRobin/SpatialBot-3B/resolve/main/config.json. Access to model RussRobin/SpatialBot-3B is restricted. You must be authenticated to access it.

OSError: You are trying to access a gated repo. Make sure to have access to it at https://huggingface.co/RussRobin/SpatialBot-3B. 401 Client Error. (Request ID: Root=1-66b3973a-536436994685db4009aff22c;6288d9d6-f3ac-4157-a6fe-221500b0ee38)

Cannot access gated repo for url https://huggingface.co/RussRobin/SpatialBot-3B/resolve/main/config.json. Access to model RussRobin/SpatialBot-3B is restricted. You must be authenticated to access it.

Pingcheng-Jian commented 2 months ago

Oh I have solved it. Need to do: from huggingface_hub import login login(token="YOUR_HUGGINGFACE_TOKEN")

RussRobin commented 2 months ago

Thanks for your interest in our work. I believe everyone can access the model since I set ‘auto grant access’. You will have to apply for access, and then login in to your hf account in cli before downloading in cli.

Pingcheng-Jian commented 2 months ago

Thanks for your reply. Now I ran into another issue:

where can I find the rgb.jpg and depth.png in your example code: image1 = Image.open('rgb.jpg') image2 = Image.open('depth.png')

Didn't find it in your github repo. Get error when I run the code without these images.

RussRobin commented 2 months ago

They can be found in HF repo of the released model: https://huggingface.co/RussRobin/SpatialBot-3B/tree/main

Pingcheng-Jian commented 2 months ago

Thanks. The example code works on my machine now.