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

nightly tests: test_efficientnet #3557

Closed
wyli opened this issue Dec 30, 2021 · 0 comments · Fixed by #3558
Closed

nightly tests: test_efficientnet #3557

wyli opened this issue Dec 30, 2021 · 0 comments · Fixed by #3558
Assignees

Comments

@wyli
Copy link
Contributor

wyli commented Dec 30, 2021

Describe the bug
looks like an error for unstable network connections:

======================================================================
ERROR: test_kitty_pretrained_2 (tests.test_efficientnet.TestEFFICIENTNET)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
    return func(*(a + p.args), **p.kwargs)
  File "/tmp/tmp.jKoFOEwLkl/tests/test_efficientnet.py", line 316, in test_kitty_pretrained
    net = test_pretrained_networks(EfficientNetBN, input_param, device)
  File "/tmp/tmp.jKoFOEwLkl/tests/utils.py", line 97, in test_pretrained_networks
    return network(**input_param).to(device)
  File "/opt/conda/lib/python3.8/site-packages/monai/networks/nets/efficientnet.py", line 556, in __init__
    _load_state_dict(self, model_name, progress, adv_prop)
  File "/opt/conda/lib/python3.8/site-packages/monai/networks/nets/efficientnet.py", line 719, in _load_state_dict
    pretrain_state_dict = model_zoo.load_url(model_url, progress=progress)
  File "/opt/conda/lib/python3.8/site-packages/torch/hub.py", line 590, in load_state_dict_from_url
    return torch.load(cached_file, map_location=map_location)
  File "/opt/conda/lib/python3.8/site-packages/torch/serialization.py", line 608, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/opt/conda/lib/python3.8/site-packages/torch/serialization.py", line 794, in _legacy_load
    deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 161000 more bytes. The file might be corrupted.

----------------------------------------------------------------------
@wyli wyli added this to MONAI 0.9 Dec 30, 2021
@wyli wyli added this to the Bug Fixes or Misc improvements milestone Dec 30, 2021
@wyli wyli moved this to In Progress in MONAI 0.9 Dec 30, 2021
@wyli wyli self-assigned this Dec 30, 2021
Repository owner moved this from In Progress to Done in MONAI 0.9 Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant