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

_pickle.UnpicklingError: invalid load key, \xef . #191

Open
Captainlululu opened this issue Dec 30, 2022 · 0 comments
Open

_pickle.UnpicklingError: invalid load key, \xef . #191

Captainlululu opened this issue Dec 30, 2022 · 0 comments

Comments

@Captainlululu
Copy link

配置好框架之后 train.py训练 报这个错 请问大家 我是哪里还没配好吗
File "train.py", line 213, in
main(args)
File "train.py", line 164, in main
model = build_model(cfg.model)
File "/home/liyanyan/PSE_origial/models/builder.py", line 11, in build_model
model = models.dictcfg.type
File "/home/liyanyan/PSE_origial/models/psenet.py", line 20, in init
self.backbone = build_backbone(backbone)
File "/home/liyanyan/PSE_origial/models/backbone/builder.py", line 11, in build_backbone
backbone = models.backbone.dictcfg.type
File "/home/liyanyan/PSE_origial/models/backbone/resnet.py", line 210, in resnet50
model.load_state_dict(load_url(model_urls['resnet50']), strict=False)
File "/home/liyanyan/PSE_origial/models/backbone/resnet.py", line 234, in load_url
return torch.load(cached_file, map_location=map_location)
File "/home/liyanyan/.conda/envs/PSE-env/lib/python3.7/site-packages/torch/serialization.py", line 387, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/home/liyanyan/.conda/envs/PSE-env/lib/python3.7/site-packages/torch/serialization.py", line 564, in _load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\xef'.

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