Giter Site home page Giter Site logo

conditional-variational-autoencoder's Introduction

Conditional variational autoencoder (CVAE)

This is a sample code of the conditional variational autoencoder for MATLAB.

このサンプルはconditional variational autoencoderをMATLABで実装したものです。

Quick start - クイックスタート

The following code loads the trained decoder network and generates images of all classes with the common latent vector. Here, five trials are executed by changing the latent vector. See the feature of the generated images are similar.

下のコードを実行すると、学習済みのデコーダが読み込まれ、0-9までの手書き数字文字が生成されます。潜在変数を変えて5回実行されます。それぞれの数字は共通の潜在変数から生成されていますので、それぞれ似た特徴を持っています。

load decoderNet.mat;
latentDim = 20;
classNum = 10;
generate_for_quickstart(decoderNet, latentDim, classNum)

figure_0.png

figure_1.png

figure_2.png

figure_3.png

figure_4.png

Code for training - 学習用コード

The code for training network and image generation will be found:

学習および画像生成用のサンプルコードは下記ファイルをご覧ください。

(for English) GeneratingHanddrawnDigitsUsingConditionalVariationalAutoencoder_EN.mlx

(日本語)

GeneratingHanddrawnDigitsUsingConditionalVariationalAutoencoder_JP.mlx

App - 試用アプリ

App CVAENumGen.mlapp is available for easy trial. This load the trained decoder. It generates hand-drawn digits images from 20-dimensional latent vectors as well as above. You can change each value in the vector by the sliders, though only some of them are efficient.

簡単に試せるようアプリ(CVAENumGen.mlapp)を用意しました。このアプリは学習済みのネットワークを読み込み、上と同様に20次元の潜在変数から、手書き数字を生成します。潜在変数をスライダで変えることで、生成される画像も変えることができます。しかし、20次元のうち大きく影響するものは限られています。

conditional-variational-autoencoder's People

Stargazers

 avatar  avatar  avatar

Watchers

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