Skip to content
Snippets Groups Projects
Commit e0d322ef authored by JGlombitza's avatar JGlombitza
Browse files

add pygpu

parent 6fb856b5
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,11 @@ import tensorflow as tf
KTF.set_session(utils.get_session()) # Allows 2 jobs per GPU, Please do not change this during the tutorial
log_dir="."
try:
CONDOR_ID = os.environ['CONDOR_ID']
except:
sys.exit('Error: Run this script with "pygpu %file"')
# basic trainings parameter
EPOCHS = 10
GRADIENT_PENALTY_WEIGHT = 10
......
......@@ -10,6 +10,12 @@ from gan import build_generator, build_discriminator, plot_images, make_trainabl
log_dir="."
KTF.set_session(get_session()) # Allows 2 jobs per GPU, Please do not change this during the tutorial
try:
CONDOR_ID = os.environ['CONDOR_ID']
except:
sys.exit('Error: Run this script with "pygpu %file"')
# prepare MNIST dataset
data = mnist.load_data()
X_train = data.train_images.reshape(-1, 28, 28, 1) / 255.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment