SHARE
TWEET

Untitled

a guest Dec 16th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. from keras.datasets import fashion_mnist
  3.  
  4. from image_helper import ImageHelper
  5. from gan import GAN
  6.  
  7. (X, _), (_, _) = fashion_mnist.load_data()
  8. X_train = X / 127.5 - 1.
  9. X_train = np.expand_dims(X_train, axis=3)
  10.  
  11. image_helper = ImageHelper()
  12. generative_advarsial_network = GAN(X_train[0].shape, 100, image_helper)
  13. generative_advarsial_network.train(30000, X_train, batch_size=32)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top