Code Monkey home page Code Monkey logo

variational-autoencoder's Introduction

variational-autoencoder's People

Contributors

kvfrans avatar

Stargazers

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

Watchers

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

variational-autoencoder's Issues

Graph definition forces input to have batchsize number of images

Suppose you want to restore the trained/saved model and test new inputs on. The way the model is written makes it inflexible to the number of inputs passed in, you must always pass in a number of examples equal to the batchsize the model was trained on. You can't for example run the model on just one test image, which would be nice.

line 51 in ops.py: add bias

Hi,
Why do not you add bias term for the conv_transpose which is in the line 51 in ops.py?

convt = tf.nn.conv2d_transpose(x, w, output_shape=outputShape, strides=[1,2,2,1])

I think it should be:
convt = tf.nn.conv2d_transpose(x, w, output_shape=outputShape, strides=[1,2,2,1]) + b

TypeError: only integer scalar arrays can be converted to a scalar index

I'm having trouble running your code and am getting the following error.
Any thoughts of what might be wrong?
Thanks.

$python main.py
....
Extracting MNIST_data/train-images-idx3-ubyte.gz
Traceback (most recent call last):
  File "main.py", line 79, in <module>
    model = LatentAttention()
  File "main.py", line 12, in __init__
    self.mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
  File "/home/medgar/models/autoencoders/variational-autoencoder-kvfrans/input_data.py", line 148, in read_data_sets
    train_images = extract_images(local_file)
  File "/home/medgar/models/autoencoders/variational-autoencoder-kvfrans/input_data.py", line 38, in extract_images
    buf = bytestream.read(rows * cols * num_images)
  File "/usr/lib/python2.7/gzip.py", line 275, in read
    chunk = self.extrabuf[offset: offset + size]
TypeError: only integer scalar arrays can be converted to a scalar index

ImportError: cannot import name 'LinearNDInterpolator'

Hi,when i run this code ,i got error!

/root/miniconda3/bin/python /root/PycharmProjects/variational-autoencoder/main.py
Traceback (most recent call last):
File "/root/PycharmProjects/variational-autoencoder/main.py", line 6, in
from scipy.misc import imsave as ims
File "/root/miniconda3/lib/python3.6/site-packages/scipy/misc/init.py", line 68, in
from scipy.interpolate._pade import pade as _pade
File "/root/miniconda3/lib/python3.6/site-packages/scipy/interpolate/init.py", line 187, in
from .ndgriddata import *
File "/root/miniconda3/lib/python3.6/site-packages/scipy/interpolate/ndgriddata.py", line 10, in
from .interpnd import LinearNDInterpolator, NDInterpolatorBase,
ImportError: cannot import name 'LinearNDInterpolator'

How can i fix this?

Loss NaN's

Anyone else have this problem?

epoch 427: genloss 74090.617188 latloss 126.223068
epoch 428: genloss 77959.625000 latloss 83.587059
epoch 429: genloss 76822.828125 latloss 191.646500
epoch 430: genloss 166910.765625 latloss 58514.851562
epoch 431: genloss 131478.968750 latloss 59600.101562
epoch 432: genloss nan latloss nan
epoch 433: genloss nan latloss nan
epoch 434: genloss nan latloss nan
epoch 435: genloss nan latloss nan
epoch 436: genloss nan latloss nan
epoch 437: genloss nan latloss nan

The images decoded then go "dark" right after that.

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.