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

Unauthorized? #500

Open
jspsiy opened this issue Feb 10, 2025 · 0 comments
Open

Unauthorized? #500

jspsiy opened this issue Feb 10, 2025 · 0 comments

Comments

@jspsiy
Copy link

jspsiy commented Feb 10, 2025

Hi i'm having some problems downloading your model through torch.hub.load .

dinov2_model = torch.hub.load('facebookresearch/dinov2', 'dinov2_vitl14',pretrained=True)

File "/home/joshua/.conda/envs/cgen/lib/python3.9/site-packages/torch/hub.py", line 638, in load
repo_or_dir = _get_cache_or_reload(
File "/home/joshua/.conda/envs/cgen/lib/python3.9/site-packages/torch/hub.py", line 258, in _get_cache_or_reload
_validate_not_a_forked_repo(repo_owner, repo_name, ref)
File "/home/joshua/.conda/envs/cgen/lib/python3.9/site-packages/torch/hub.py", line 203, in _validate_not_a_forked_repo
response = json.loads(_read_url(Request(url, headers=headers)))
File "/home/joshua/.conda/envs/cgen/lib/python3.9/site-packages/torch/hub.py", line 185, in _read_url
with urlopen(url) as r:
File "/home/joshua/.conda/envs/cgen/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/home/joshua/.conda/envs/cgen/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/home/joshua/.conda/envs/cgen/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/home/joshua/.conda/envs/cgen/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/home/joshua/.conda/envs/cgen/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/home/joshua/.conda/envs/cgen/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

What's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant