mahmoodlab / UNI

Towards a general-purpose foundation model for computational pathology - Nature Medicine
Other
335 stars 44 forks source link

access request accepted, authentification succeeded, but weights downloading and model creating failed #8

Closed Vz09 closed 6 months ago

Vz09 commented 7 months ago

Hi,

I followed the procedure (access request via huggingface + authentification via login(token) + weights downloading and model creating), but got error with model = timm.create_model("hf-hub:MahmoodLab/uni", pretrained=True, init_values=1e-5, dynamic_img_size=True)

"GatedRepoError: 401 Client Error. (Request ID: Root=1-65fd9fbe-75542d9c27933ae862f55525)

Cannot access gated repo for url https://huggingface.co/MahmoodLab/UNI/resolve/main/config.json. Repo model MahmoodLab/UNI is gated. You must be authenticated to access it."

that's just like my request has not been accepted yet, but it's not the case (first snapshot). I also tried to log out relog in hugging face in case these's a update delay....but I still got the same error. Detailed snapshots are shown below, I really don't know where the problem is....could you help me please? I'm using jupyter notebook on servors of my institution.

Thank you

1711120164210 1711120377731 1711120432472

maxmal1 commented 7 months ago

If using google collab, run !pip install --upgrade huggingface_lab