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 to resume a training #13

Open
VictorLEDEZ opened this issue Aug 19, 2022 · 2 comments
Open

How to resume a training #13

VictorLEDEZ opened this issue Aug 19, 2022 · 2 comments

Comments

@VictorLEDEZ
Copy link

Hello Junlin,

Thank you very much for your code!

I was just wondering, what is the command to resume training from a checkpoint?

I tried this one, but it didn't work out:
python3 train.py --dataroot ./datasets/NIR2RGB --name NIR2RGB_DCL --pretrained_name NIR2RGB_DCL

Thank you.

@JunlinHan
Copy link
Owner

Hi Victor,
Thanks for your nice workds!

For resume training, you might add --continue_train --epoch_count N, where N is the current epoch of the pretrained model. continue_train will load your latest checkpoint from the checkpoint path.

So I guess you can try:
python3 train.py --dataroot ./datasets/NIR2RGB --name NIR2RGB_DCL --continue_train --epoch_count N

Hope it helps.

@VictorLEDEZ
Copy link
Author

Thanks, it works!

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