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

Can not resume training by giving ckpt #28

Open
tommy-qichang opened this issue Feb 7, 2022 · 1 comment
Open

Can not resume training by giving ckpt #28

tommy-qichang opened this issue Feb 7, 2022 · 1 comment

Comments

@tommy-qichang
Copy link

Hi there,

Thank you so much for your code and paper. Very impressive work.

I just want to reproduce your result, and so far so good.
But when I want to resume my ckpt from the previous training, it throws the following error.
load model: /research/cbim/vast/qc58/work/projects/semanticGAN/ckpt/run-Feb03_16-23-14/ckpt/060000.pt Traceback (most recent call last): File "train_seg_gan.py", line 679, in <module> g_optim.load_state_dict(ckpt['g_optim']) KeyError: 'g_optim'

I think there is no code save g_optim, d_img_optim and d_seg_optim when training, how can you load these setting from the checkpoint? Please let me know how you resume your training and if I missed anything?

Thanks again.

@ouyangshixiong
Copy link

I just comment three optim lines

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

2 participants