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 train? #3

Open
atugar opened this issue Oct 24, 2020 · 5 comments
Open

How to train? #3

atugar opened this issue Oct 24, 2020 · 5 comments

Comments

@atugar
Copy link

atugar commented Oct 24, 2020

Can you please explain what the below params mean? They are not needed for StyleGAN 2.

python run_training.py
--config=config-ada-sv-flat
--data-dir=/path/to/datasets
--dataset-train=path/to/train \ - What is this?
--dataset-eval=path/to/eval \ - What is this?
--total-kimg=30
--metrics=None

@atugar
Copy link
Author

atugar commented Oct 24, 2020

Ok. I read the readme again. When you say split dataset into training and eval, are those directories supposed to hold the raw JPG or TFRecord? And how do I specify what network to start from? I assume for 1024 this will be FFHQ config-f, but where to specify this?

@e-271
Copy link
Owner

e-271 commented Oct 26, 2020

Hi, so they should both be paths to TFRecord dirs. You first create the TFRecord dirs from images using the dataset_tool.py script, and then run training with paths to those dirs. --resume-pkl-dir controls which path pickles are found in and --resume-pkl' controls the name, but if this is not given it is inferred based on the name of --dataset-train`. I'll update the readme with these details.

@atugar
Copy link
Author

atugar commented Oct 26, 2020

Hello. Thanks for getting back to me. If --dataset-train is the path to the training dir, then what is --data-dir? I thought that was the path to the training dir.

@AndreTInfante
Copy link

I am also unclear on what data-dir is, and would appreciate clarification!

@AndreTInfante
Copy link

@atugar I actually figured it out. data-dir is the parent directory for the datasets, and data-train and data-eval are subdirectories relative to that parent directory

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

3 participants