Git Product home page Git Product logo

pytorch-ae's Introduction

AutoEncoders in PyTorch

dep2 dep1


Description

This repo contains an implementation of the following AutoEncoders:

  • Vanilla AutoEncoders - AE:
    The most basic autoencoder structure is one which simply maps input data-points through a bottleneck layer whose dimensionality is smaller than the input.

  • Variational AutoEncoders - VAE:
    The Variational Autoencoder introduces the constraint that the latent code z is a random variable distributed according to a prior distribution p(z).

  • Adversarially Constrained Autoencoder Interpolations - ACAI:
    A critic network tries to predict the interpolation coefficient α corresponding to an interpolated datapoint. The autoencoder is trained to fool the critic into outputting α = 0.
    ACAI-figure


Setup

Create a Python Virtual Environment

mkvirtualenv --python=/usr/bin/python3 pytorch-AE

Install dependencies

pip install torch torchvision

Training

python train.py --help

Training Options and some examples:

  • Vanilla Autoencoder:

    python train.py --model AE
    
  • Variational Autoencoder:

    python train.py --model VAE --batch-size 512 --dataset EMNIST --seed 42 --log-interval 500 --epochs 5 --embedding-size 128
    

Results

Vanilla AutoEncoders Variational AutoEncoders ACAI

Contributing:

If you have suggestions or any type of contribution idea, file an issue, make a PR and don't forget to star the repository

More projects:

Feel free to check out my other repos with more work in Machine Learning:

pytorch-ae's People

Contributors

dariocazzani 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.