If you are using Google Colab TPU, you need to copy the content of colab-utils/setup_colab_tpu.py
to the Notebook cell and run before running other code. If you are using Google Cloud TPU, you do not need to do this step.
Install prerequisites:
pip install "jax[tpu]==0.3.1" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
pip install -r requirements.txt
Prepare data:
./prepare_data.sh
Train:
python train.py
Latent space traversal:
python traverse_chairs.py
The code for the CelebA dataset is on the celeba
branch.
The code for generating the 2D-shape dataset is in the shape-data-gen
directory.
The code for verifying the disentanglement metric is in the disentanglement-metric
directory.