December 2018
Intermediate to advanced
268 pages
8h 23m
English
Now, we have all the pieces to make this DCGAN run! First, take a look at the following Python run script:
#!/usr/bin/env python3from train import Trainer# Command Line Argument MethodHEIGHT = 64WIDTH = 64CHANNEL = 3LATENT_SPACE_SIZE = 100EPOCHS = 100BATCH = 128CHECKPOINT = 10PATH = "/data/church_outdoor_train_lmdb_color.npy"trainer = Trainer(height=HEIGHT,\ width=WIDTH,\ channels=CHANNEL,\ latent_size=LATENT_SPACE_SIZE,\ epochs =EPOCHS,\ batch=BATCH,\ checkpoint=CHECKPOINT,\ model_type='DCGAN',\ data_path=PATH) trainer.train()
Note the following points in the updated Python run script:
Read now
Unlock full access