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

how can i retrain pretrainmodel #79

Open
suven2019 opened this issue Dec 18, 2020 · 1 comment
Open

how can i retrain pretrainmodel #79

suven2019 opened this issue Dec 18, 2020 · 1 comment

Comments

@suven2019
Copy link

No description provided.

@suven2019
Copy link
Author

Traceback (most recent call last):
File "train.py", line 78, in
main(config, args.resume)
File "train.py", line 50, in main
toolbox = Toolbox)
File "/home/sw2/FOTS.PyTorch-master/FOTS/trainer/trainer.py", line 19, in init
super(Trainer, self).init(model, loss, metrics, resume, config, train_logger)
File "/home/sw2/FOTS.PyTorch-master/FOTS/base/base_trainer.py", line 70, in init
self._resume_checkpoint(resume)
File "/home/sw2/FOTS.PyTorch-master/FOTS/base/base_trainer.py", line 175, in _resume_checkpoint
self.model.load_state_dict(checkpoint['state_dict'])
File "/home/sw2/FOTS.PyTorch-master/FOTS/model/model.py", line 75, in load_state_dict
self.sharedConv.load_state_dict(sd['0'])
File "/home/sw2/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 830, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for SharedConv:

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