Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

JSON Decode Error when loading MiDas #125

@michaeltan53

Description

@michaeltan53

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions