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

Training details #11

Closed
Akila-Ayanthi opened this issue Jul 28, 2021 · 2 comments
Closed

Training details #11

Akila-Ayanthi opened this issue Jul 28, 2021 · 2 comments

Comments

@Akila-Ayanthi
Copy link

Hi,
This is exactly what I was looking for. Thank you.
But, it is not clear to me how the training needs to be done. Could you please help me with that?

@moono
Copy link
Owner

moono commented Aug 2, 2021

I used followings to train on FFHQ dataset,

  • Refer to FFHQ dataset repo to create *.tfrecord for resolution of your interest.
  • Please use docker for training envrionment.
    • Recommended docker image : nvcr.io/nvidia/tensorflow:21.03-tf2-py3
  • Train with train.py
    • example 256x256 resolution
# adjust shuffle_buffer_size and batch_size_per_replica to fit your hardware
~$ python train.py \
--allow_memory_growth false \
--use_tf_function true \ 
--use_custom_cuda true \
--model_base_dir <directory-of-output-trained-model> \
--tfrecord_dir <FFHQ-tfrecord-dir> \
--train_res 256 \
--shuffle_buffer_size 5000 \
--batch_size_per_replica 16

@Akila-Ayanthi
Copy link
Author

Thank you.

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