Giter VIP home page Giter VIP logo

fc-convolution-autoencoder's Introduction

FC-Convolutional-AutoEncoder

This repo offers sample implementation of a Fully connected and convolutional auto encoder models, trained and analyzed for reconstruction of MNIST digits.

Fully connected autoencoder has an encoder and decoder, with 2 fully connected layers each with latent vector of size 128, whereas the Convoltuional Autoencoder has 3 layers in decoder with an upsampling layer, and latent feature map of size 28,56,40.

QuickStart

conda create -n autoencoder python=3.8 #(optional)
pip install requirements.txt
python3 train_autoenc.py --mode Conv --num_epochs 10 --batch_size 10 --learning_rate 0.1 #Train
python3 test_autoenc.py #For_inference
  • mod is Conv / Lin depending on you need a Liear encoder.Decoder architecture or Convolutional architecture.
  • Creating a conda environment is optional but recomended.
  • Trained model is saved as model.pt in the working directory.
  • Hyperparams for training can be changed and the dataset can be altered too.
  • You can perform infernce to get results, using test_autoenc.py

Training/Test Loss Curves for Both Modes

The green line reflects test whereas the blue line reflects the training loss for the respective modes for the autoencoders training over MNIST digit recreation using MSE loss.

fc-convolution-autoencoder's People

Contributors

momilijaz96 avatar

Watchers

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