ZoeDepth icon indicating copy to clipboard operation
ZoeDepth copied to clipboard

JSON Decode Error when loading MiDas

Open michaeltan53 opened this issue 1 year ago • 0 comments

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.

michaeltan53 avatar Jul 21 '24 05:07 michaeltan53