junyanz / pytorch-CycleGAN-and-pix2pix

Image-to-Image Translation in PyTorch
Other
22.8k stars 6.29k forks source link

Not saving optimizers when saving networks #1555

Closed AugustLight closed 1 year ago

AugustLight commented 1 year ago

Hello, I found that when saving networks in method save_networks(), optimizers params ( self.optimizers.state_dict() ) are not saved to files. Can anyone explain why not save optimizers params ?

taesungp commented 1 year ago

There is no reason, and it's really an imperfection of the training code.

AugustLight commented 1 year ago

There is no reason, and it's really an imperfection of the training code.

I got it, thank you for replying!