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

Questions about continue trainning #10

Open
LaLaLailalai opened this issue May 29, 2022 · 2 comments
Open

Questions about continue trainning #10

LaLaLailalai opened this issue May 29, 2022 · 2 comments

Comments

@LaLaLailalai
Copy link

Hi Bruno,

Do you know how to continue training after it stops in the middle (e.g., 50/200epochs)?

I tried to continue to train the model by myself, but I only found the load weights codes in generate.py.

@LaLaLailalai
Copy link
Author

LaLaLailalai commented May 29, 2022

By the way, how to set the parameters of evaluation to reproduce the exact FID result?

For example, if I would like to reproduce the NTU120 xsub FID, I should run the command :
"python generate.py --model model_path --n_classes number_classes --label class_index --gen_qtd how_many_samples "

How to set gen_qtd for each dataset?

@DegardinBruno
Copy link
Owner

Hey @LaLaLailalai, sorry for my late reply!

Do you know how to continue training after it stops in the middle (e.g., 50/200epochs)?

You can insert the same code with strict=True, where you are ensuring the exact same arch:

# Load Models
generator.load_state_dict(torch.load(opt.model), strict=True)

And then for epoch in range(50, opt.n_epochs): to start at epoch 50. We do not use any scheduler or epoch-dependent parameter, so it must work without a problem!

By the way, how to set the parameters of evaluation to reproduce the exact FID result?

Just change n_classes to 120 and mlp_dim to 8 (same as our paper). We also used gen_qtd with 1000. The results may vary a bit due to randomness, but not much! Remember to set trunc_mode to - in generating for FID and MMD evaluation.

For any further questions, feel free to ask!

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