StyleGAN3 Manager ...
Linux setup assumes Debian/Ubuntu
Mac OS setup requires Homebrew to be installed (https://brew.sh/)
You have to setup imagemagick on your local machine, here are the instructions:
apt-get install
brew install imagemagick
Check if imagemagick and mogrify image conversion command line utilities are installed correctly by running the which mogrify command (it should print the mogrify command location)
NOTE: You don't need to do this step if you are doing the image preparation on the server
Please skip this step if you are a novice
Otherwise if you want full control install nvidia-docker on your machine
Follow the instructions here to setup docker ... TODO... https://docs.docker.com/engine/install/
Follow the instructions here to install nvidia drivers ... TODO... https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#abstract
Check both which nvidia-docker and nvidia-smi commands, they shouldn't error.
Congratulations! if you reached here you have a local setup including Nvidia Docker!
The first step you need to do is to prepare the dataset, the dataset can be any set of images in the following formats: JPG, PNG, GIF or TIFF
The images will be converted to squared 1024 x 1024 pixel images (PNG RGB) and packaged up in a ZIP file (PyTorch Dataset zip file).
You will use the zip file to train the StyleGAN3 model on your GPU VM and you'll be able to monitor the training process.
The first step is to create a directory named source_images_start and to copy all your dataset images into that directory.
The command you want to execute is:
rake prepare
This command should finish with a success message.
You will notice a file source_images_dataset.zip
Great, you have now a dataset ready and you can start training!
To run the training (create and) cd into the directory of your machine learning project.
This directory needs:
-
the file
source_images_dataset.zipto be present in the directory -
a subdirectory
output(which we will use to download and check the files on our local machine)
When you are ready execute:
rake
This will start training.