Skip to content
forked from revsic/tf-alae

(Unofficial) Tensorflow implementation of Adversarial Latent Autoencoder (ALAE, Pidhorskyi et al., 2020)

License

Notifications You must be signed in to change notification settings

yash760/tf-alae

 
 

Repository files navigation

tf-alae

(Unofficial) Tensorflow implementation of Adversarial Latent Autoencoder (ALAE, Pidhorskyi et al., 2020)

  • Original paper, Adversarial Latent Autoencoder [arXiv:2004.04467]
  • Full code is based on original repository [GIT].

Usage

To train the mnist model

# to train mnist-alae
python mnist_mlp.py train

# to train style-alae
python mnist_style.py train

To open tensorboard summary

tensorboard --logdir summary

Currently, lsunbed-StyleALAE is experimental.

# to train lsunbed
python lsunbed_style.py train

To use released checkpoints, download files from release and unzip it.

Following is example of MNIST-MLP.

import json
from mnist_mlp import MnistAlae

with open('settings.json') as f:
    settings = json.load(f)

alae = MnistAlae(settings)
alae.load_weights('./mnist_mlp/mnist_mlp')

Jupyter notebook

Learning Curve

Mlp-ALAE + MNIST

mnist mlp learning curve

Style-ALAE + MNIST

mnist style learning curve

  • In the original paper, they claim that latent reconstruction has better perceptual quality than image one so that they do not use image reconstruction loss in the original repository.
  • But for more easy training, this repository use image reconstruction loss as pretraining at half of the epochs in each resolution level.

Sample

MNIST-MLP 0 ~ 4 polymorph

mnist-mlp polymorph

MNIST-Style 0 ~ 4 polymorph

mnist-style polymorph

About

(Unofficial) Tensorflow implementation of Adversarial Latent Autoencoder (ALAE, Pidhorskyi et al., 2020)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 88.8%
  • Python 11.2%