A collection of generative methods implemented with TensorFlow (Deep Convolutional Generative Adversarial Networks (DCGAN), Variational Autoencoder (VAE) and DRAW: A Recurrent Neural Network For Image Generation).
Apache License 2.0
595
stars
167
forks
source link
AttributeError: module 'mnist' has no attribute 'train_images' #19
Hello,
I got this error: AttributeError: module 'mnist' has no attribute 'train_images'
when I ran this code:
import mnist
import itertools
import numpy as np
Hello, I got this error: AttributeError: module 'mnist' has no attribute 'train_images' when I ran this code: import mnist import itertools import numpy as np
def prepare_data(images, labels): images = map(lambda a: a / 255.0, map(np.asarray, map(list, map(itertools.chain.from_iterable, images)))) return list(zip(images, labels))
train = prepare_data(mnist.train_images(), mnist.train_labels()) test = prepare_data(mnist.test_images(), mnist.test_labels())
Can you please help me?