January 2019
Intermediate to advanced
316 pages
8h 16m
English
To train the network for a specified number of epochs, perform the following steps:
imagesA, imagesB = load_images(data_dir=data_dir)
We have already defined the load_images function in the Loading the data subsection in the Training a CycleGAN section.
for epoch in range(epochs): print("Epoch:{}".format(epoch))
dis_losses = []gen_losses = []
num_batches = int(min(imagesA.shape[0], imagesB.shape[0
Read now
Unlock full access