DCLGAN icon indicating copy to clipboard operation
DCLGAN copied to clipboard

How to resume a training

Open VictorLEDEZ opened this issue 1 year ago • 2 comments

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.

VictorLEDEZ avatar Aug 19 '22 16:08 VictorLEDEZ

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.

JunlinHan avatar Aug 19 '22 17:08 JunlinHan

Thanks, it works!

VictorLEDEZ avatar Aug 19 '22 17:08 VictorLEDEZ