[go: nahoru, domu]

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

Error in open-mmlab://resnext101_32x4d #24

Open
srgautam9 opened this issue Feb 7, 2023 · 0 comments
Open

Error in open-mmlab://resnext101_32x4d #24

srgautam9 opened this issue Feb 7, 2023 · 0 comments

Comments

@srgautam9
Copy link

After changing all the codes as per my system/cuda I tried running.
But I am facing the below error, could you please help me.

2023-02-07 16:12:29,370 - root - INFO - load model from: open-mmlab://resnext101_32x4d
Traceback (most recent call last):
File "tools/train.py", line 161, in
main()
File "tools/train.py", line 134, in main
cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg)
File "/home/gautam8/CDeCNet/mmdet/models/builder.py", line 48, in build_detector
return build(cfg, DETECTORS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "/home/gautam8/CDeCNet/mmdet/models/builder.py", line 20, in build
return build_from_cfg(cfg, registry, default_args)
File "/home/gautam8/.local/lib/python3.6/site-packages/mmcv/utils/registry.py", line 168, in build_from_cfg
return obj_cls(**args)
File "/home/gautam8/CDeCNet/mmdet/models/detectors/cascade_rcnn.py", line 23, in init
pretrained=pretrained)
File "/home/gautam8/CDeCNet/mmdet/models/detectors/two_stage.py", line 49, in init
self.init_weights(pretrained=pretrained)
File "/home/gautam8/CDeCNet/mmdet/models/detectors/two_stage.py", line 61, in init_weights
self.backbone.init_weights(pretrained=pretrained)
File "/home/gautam8/CDeCNet/mmdet/models/backbones/db_resnet.py", line 637, in init_weights
load_checkpoint(self, pretrained, strict=False, logger=logger)
File "/home/gautam8/.local/lib/python3.6/site-packages/mmcv/runner/checkpoint.py", line 211, in load_checkpoint
checkpoint = _load_checkpoint(filename, map_location)
File "/home/gautam8/.local/lib/python3.6/site-packages/mmcv/runner/checkpoint.py", line 183, in _load_checkpoint
checkpoint = load_url_dist(open_mmlab_model_urls[model_name])
File "/home/gautam8/.local/lib/python3.6/site-packages/mmcv/runner/checkpoint.py", line 139, in load_url_dist
checkpoint = model_zoo.load_url(url)
File "/home/gautam8/.local/lib/python3.6/site-packages/torch/hub.py", line 506, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File "/home/gautam8/.local/lib/python3.6/site-packages/torch/serialization.py", line 529, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/gautam8/.local/lib/python3.6/site-packages/torch/serialization.py", line 709, in _legacy_load
deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 59 more bytes. The file might be corrupted.

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