BVAE-tf

Disentangled Variational Auto-Encoder in TensorFlow (Beta-VAE)

:star: :boom: THE UNLICENSE :boom: :star:

Example Reconstructed Image

alt text

What has been done

Enviroment Setup

I am using conda to ensure the enviroment is easy to install

  1. Install Anaconda or Miniconda (the python 3 version) for your platform
  2. Recreate the conda environment from the yml: conda env create -f environment.yml
  3. Active the enviroment
    1. Windows: go to cmd and activate bvae-tf
    2. Linux: source activate bvae-tf
  4. If you want to use CPU only, run pip uninstall tensorflow-gpu followed by pip install tensorflow==1.4.0 after you activate the environment.

If you do not want to / cannot use conda, I am using tensorflow 1.4.0; see the environment.yml for more package info.

Demo

For a simple overfitting demonstration, run ae.py in your terminal. This will cause the autoencoder to run on the included demo image.

Note: The demo takes a few minutes on my 1060 6GB, so it will take a while on a CPU...