Coder Social home page Coder Social logo

autoencoder's Introduction

Tensorflow VAE

This repository contains an implementation of a Variational Autoencoder. See in depth tutorial on Medium post titled VAEs I ! Generating images with Tensorflow .

Parameters

-- learning_rate      Initial learning rate
--epochs              Number of training epochs 
--batch_size          Minibatch training size
--latent_dim          Number of latent space dimensions
--test_image_number   Number of test images to recover during training
--inputs_decoder      Size of decoder input layer
--dataset             Dataset name [mnist, fashion-mnist]
--logdir              Log folder
--plot_latent         Plot latent space distribution [True, False]

Run

$ python autoencoder.py  --latent_dim=2 --dataset=mnist --epochs=50

Example

latent_space fake_fashion

autoencoder's People

Contributors

mmeendez8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

autoencoder's Issues

Strange Problem

Hi, guys,

I have a problem with the following code:

https://github.com/mmeendez8/Autoencoder/blob/master/autoencoder.py.

Unbenannt

The code is now running on my computer and no error messages are displayed. But the result is strange as you can see on the pictures. Once the code is finished, the results are displayed in a folder. But only the results of the 0 epoch are shown. After that nothing is displayed. I did not change anything in the code and just copied and pasted it. Can somebody help me and tell me what the problem is ?

Furthermore only the numbers are shown but not the results of the fashion mnist.

An error when feeding input samples

There is an error in your implementation: Can 't feed input_holder (shape: [2, 14, 14]) into z (shape: (?, 10):

Traceback (most recent call last): File "olala.py", line 185, in <module> artificial_image = sess.run(output, feed_dict={z: input_holder}) File "/home/theanh/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run run_metadata_ptr) File "/home/theanh/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1128, in _run str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (1, 2) for Tensor 'Encoder/add:0', which has shape '(?, 10)'

my result is very bad

image
the reconstruction loss is very high as you can see in the image, but I don't know why

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.