Pytorch implementation of the paper: OOGAN: Disentangling GAN with One-Hot Sampling and Orthogonal Regularization
- code to define the networks: oogan_models.py, oogan_modules.py
- to train the model on your data, first prepare your images inside a root folder with subfolders containing your images, then edit the "config.py" for all hyperparameter settings, templetes are provided inside,
then run
the training will print log on terminal, and save the generated models and images during training.
python train.py
- to generate images from trained model, first edit the model path in "generate.py", then run:
python generate.py
This implementation is based on the stylegan implementation from here, please refer to that repo for updated code and usage.
- code: ./oogan_stylegan/oo_stylegan_train.py, ./oogan_stylegan/oo_stylegan_modules.py
- to train the model on your data
the training will print log on terminal and save the generated models and images during training.
python oo_stylegan_train.py /path/to/image_root