Giter Site home page Giter Site logo

rheehot / tf-alae Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revsic/tf-alae

0.0 0.0 0.0 899 KB

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

License: MIT License

Python 11.16% Jupyter Notebook 88.84%

tf-alae's Introduction

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

tf-alae's People

Contributors

revsic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.