Bug downloading the model: extra dot in model.safetensors URL
When using transformers
and the pipeline
command, an error occurs when specifying this model: "huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error"
I think this is because the URL for the "model.safetensors" file is incorrect. It has an extra dot at the end:
Repository Not Found for url: https://huggingface.co./timm/resnet50.a1_in1k/resolve/main/model.safetensors.
Please make sure you specified the correctrepo_id
andrepo_type
.
Removing this dot and making a regular GET request successfully downloads the model.
I'm not exactly sure how to fix this in transformers.pipeline
though, as the only code I'm using is the following, a variant of the sample code in https://huggingface.co./tasks/object-detection:
model = "facebook/detr-resnet-50"
detector = pipeline("object-detection", model=model, token=HF_TOKEN)
results = detector(image)
I'm specifying a working access token, so I don't think this is an authentication problem. Any help here would be great, since this is the default model for the object detection task, and it just … doesn't work? The first part of the model does seem to download, but then the pipeline errors out as above.