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 training step #6

Open
zoelovecoffee opened this issue Aug 6, 2023 · 2 comments
Open

questions about training step #6

zoelovecoffee opened this issue Aug 6, 2023 · 2 comments

Comments

@zoelovecoffee
Copy link

Hi, when running your code representation_learning_trainer.py, I was confused about the step parameter. For example, to train "FFHQ128-130M-z512-64M" with batch_size = 128, how does the step parameter related to "64M" training samples: as FFHQ contains 70000 images, does it indicate (64000000/70000) times of iterations, and does step parameter stand for number of training epoch?

Could you let me know if I have any misunderstanding. Thank you:)

@ckczzj
Copy link
Owner

ckczzj commented Aug 7, 2023

Thanks for your attention.
A step means a step of optimization, and training_samples = batch_size * step .
We don't explicitly have a parameter to stop the training process and it can infinitely run.
So "FFHQ128-130M-z512-64M" with batch_size = 128 means you need train it until step $\ge$ (64000000/128) and munually stop it.

@zoelovecoffee
Copy link
Author

Thank you for answering my question, it helps a lot!

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