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 perform breakpoint training #12

Open
zhenzi0322 opened this issue Nov 1, 2023 · 1 comment
Open

How to perform breakpoint training #12

zhenzi0322 opened this issue Nov 1, 2023 · 1 comment

Comments

@zhenzi0322
Copy link

No description provided.

@williamyang1991
Copy link
Owner

You need to save all these files and recover the training by loading all these models and optimizers.

GP-UNIT/train.py

Lines 200 to 208 in d59695e

torch.save(
{
#"g": netG.state_dict(),
#"d": netD.state_dict(),
"g_ema": netG_ema.state_dict(),
"sampler": sampler.icp.netT.state_dict(),
#"g_optim": optimizer_G.state_dict(),
#"d_optim": optimizer_D.state_dict(),
#"args": args,

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