Skip to content

Instantly share code, notes, and snippets.

@MortisHuang
Created July 25, 2019 05:00
Show Gist options
  • Save MortisHuang/a834b19160ad0410f394fb20641f14bc to your computer and use it in GitHub Desktop.
Save MortisHuang/a834b19160ad0410f394fb20641f14bc to your computer and use it in GitHub Desktop.
import numpy as np
import os
from keras.datasets import mnist
from keras.layers import Dense, Reshape, Flatten
from keras.layers import BatchNormalization
from keras.layers.advanced_activations import LeakyReLU
from keras.models import Sequential
from keras.optimizers import Adam
import matplotlib.pyplot as plt
plt.switch_backend('agg') # allows code to run without a system DISPLAY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment