You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run eval_many_models.py, I commented out all but resnet50 to get
the publication comparison, when I loop over: for net_params in models_to_test:
I get:
Hello,
I am trying to run eval_many_models.py, I commented out all but resnet50 to get
the publication comparison, when I loop over:
for net_params in models_to_test:
I get:
('pytorch/vision', 'resnet50')
Downloading: "https://github.com/pytorch/vision/archive/master.zip" to ~/.models/master.zip
FileNotFoundError Traceback (most recent call last)
in
2 print(net_params)
3 if net_params[0] == "pytorch/vision":
----> 4 net = torch.hub.load(net_params[0], net_params[1], pretrained=True)
5 elif "facebookresearch/deit" in net_params[0]:
6 net = torch.hub.load(net_params[0], net_params[1], pretrained=True)
~/opt/anaconda3/lib/python3.7/site-packages/torch/hub.py in load(repo_or_dir, model, *args, **kwargs)
335
336 if source == 'github':
--> 337 repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, verbose)
338
339 model = _load_local(repo_or_dir, model, *args, **kwargs)
~/opt/anaconda3/lib/python3.7/site-packages/torch/hub.py in _get_cache_or_reload(github, force_reload, verbose)
142 url = _git_archive_link(repo_owner, repo_name, branch)
143 sys.stderr.write('Downloading: "{}" to {}\n'.format(url, cached_file))
--> 144 download_url_to_file(url, cached_file, progress=False)
145
146 with zipfile.ZipFile(cached_file) as cached_zipfile:
~/opt/anaconda3/lib/python3.7/site-packages/torch/hub.py in download_url_to_file(url, dst, hash_prefix, progress)
406 dst = os.path.expanduser(dst)
407 dst_dir = os.path.dirname(dst)
--> 408 f = tempfile.NamedTemporaryFile(delete=False, dir=dst_dir)
409
410 try:
~/opt/anaconda3/lib/python3.7/tempfile.py in NamedTemporaryFile(mode, buffering, encoding, newline, suffix, prefix, dir, delete)
545 flags |= _os.O_TEMPORARY
546
--> 547 (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
548 try:
549 file = _io.open(fd, mode, buffering=buffering,
~/opt/anaconda3/lib/python3.7/tempfile.py in _mkstemp_inner(dir, pre, suf, flags, output_type)
256 file = _os.path.join(dir, pre + name + suf)
257 try:
--> 258 fd = _os.open(file, flags, 0o600)
259 except FileExistsError:
260 continue # try again
FileNotFoundError: [Errno 2] No such file or directory: '/Users/gjkunde/.models/tmpm0j8p0m6'
Please advise, thank you, Gerd
The text was updated successfully, but these errors were encountered: