Coder Social home page Coder Social logo

guanyuelee / midrae Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 4.0 1.76 MB

Code for paper Improving Representation Learning in Autoencoders via Multidimensional Interpolation and Dual Regularizations.

Python 91.10% Shell 8.90%
representation-learning autoencoder interpolation

midrae's Introduction

MIDR-AE

Code for Improving Representation Learning in Autoencoders via Multidimensional Interpolation and Dual Regularizations, which is accepted by International Joint Conference of Artificial Intelligence (IJCAI) 2019.

model of midrae MIDR-AE (right) introduces Multidimensional Interpolation and Dual Regularizations to improve latent representations in autoencoders.

Requirements

Before running MIDR-AE, you need python==3.5.6 and the following python packages:

  • cudnn==7.1.2
  • numpy==1.15.2
  • scipy==1.1.0
  • tensorflow==1.8.0

For your ease, my conda environment is exported as file. You can easily restore the environment by typing command:

conda env create -f environment.yaml

It would take you about 30 minutes to download all necessary python packages.

Preparing datasets

Specify the directory for saving your datasets by:

export AE_DATA=./Data

All the downloaded dataset would be save in './Data'.

Before running the model, you should prepare dataset by executing:

python create_datasets.py

It would take a long time. So I also upload all the necessary files to my Baidu Cloud, please download all the *.tfrecord and save in './Data'.

Running the code

There are multiple base models:

  • Baseline
  • Denoising
  • Dropout
  • Variational AE
  • VQVAE
  • Adversarial AE
  • ACAI

Our proposed model are listed as follows:

  • MI-AE
  • LR-AE
  • DR-ACAI
  • MIDR-AE

Find *.sh in runs directory, we have all optimal hyperparameters for various models specified there. Just run:

bash runs/miae.sh
bash runs/lrae.sh
bash runs/dr_acai.sh
bash runs/midrae.sh

You should be able to achieve the reported accuracy of single-layer classifier and clustering resuls:

Accuracy

You can also check the model checkpoints and intermediate images in directory './TRAIN'.

Results

Some of the results of MIDR-AE are shown are follows:

MNIST-32: MNIST results

SVHN-32: SVHN results

Finally, if you have any questions about the code, please feel free to email: [email protected]

midrae's People

Contributors

guanyuelee avatar

Stargazers

 avatar  avatar  avatar Debut avatar Lorenzo Ridolfi 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.