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

JSON Decode Error when loading MiDas #125

Open
michaeltan53 opened this issue Jul 21, 2024 · 0 comments
Open

JSON Decode Error when loading MiDas #125

michaeltan53 opened this issue Jul 21, 2024 · 0 comments

Comments

@michaeltan53
Copy link

Hi, when I was running the command of evaluate.py, train_mono.py and sanity_hub.py, I recieved an error like this:

Traceback (most recent call last):
File "sanity_hub.py", line 40, in
torch.hub.help("intel-isl/MiDaS", "DPT_BEiT_L_384", force_reload=True)
File "/opt/conda/lib/python3.8/site-packages/torch/hub.py", line 475, in help
repo_dir = _get_cache_or_reload(github, force_reload, trust_repo, "help", verbose=True,
File "/opt/conda/lib/python3.8/site-packages/torch/hub.py", line 229, in _get_cache_or_reload
_validate_not_a_forked_repo(repo_owner, repo_name, ref)
File "/opt/conda/lib/python3.8/site-packages/torch/hub.py", line 189, in _validate_not_a_forked_repo
response = json.loads(_read_url(Request(url, headers=headers)))
File "/opt/conda/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/opt/conda/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/conda/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Can someone help me to solve it? Many thanks.

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