Giter Site home page Giter Site logo

convolutional-autoencoder's Introduction

convolutional-autoencoder

cae

Re-implementation of code in this link: https://github.com/XifengGuo/DCEC/blob/master/ConvAE.py

With little modification, sigmoid activation function is added on the top of model, thus we can output images with pixel vaule between 0 and 1, and we can apply the binary crossentropy loss:

crossentropy

Here the crossentropy is averaged by the number of pixels, just like mse loss.

cae2

Use fully convolutional layer instead of fully connected layer.(i.e. removed the steps of reshaping feature maps).

The bottle neck features are in 2D space, so that we can directly visualize them, but the performance is not satisfying, after 20 epochs of iteration, we got the following clustering result and reconstruction result.

2D-CAE reconstruction

reconstruction

2D-CAE visualization

clustering

cae tsne

Encode the image to 10D vector, and use tsne to visualize it

10D-CAE reconstruction

10D-reconstruction

10D-CAE tsne visualization

10D-tsne

cvae

Convolutional variational autoencoder Encode the image to 10D vector, and visualize it by tsne

10D-CVAE reconstruction

10D-cvae-reconstruction

10D-CVAE tsne visualization

10D-cvae-tsne

conditional_conv_vae

Modified based on convolutional variational autoencoder, I tested only input label in decoder and input label both in encoder and decoder, here is the result.

input label only in decoder

only in decoder

input label in both encoder and decoder

both in decoder and encoder

We could easily find that the second is better, and this is what most conditional vae algorithms do.

convolutional-autoencoder's People

Contributors

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