March 2018
Intermediate to advanced
320 pages
7h 53m
English
Now that the CGAN class is completed, let's go through some examples in order to provide you with fresh ideas on how to use this project. First of all, we will have to get everything ready for both downloading the necessary data and training our GAN. We start by importing the routine libraries:
import numpy as npimport urllib.requestimport tarfileimport osimport zipfileimport gzipimport osfrom glob import globfrom tqdm import tqdm
We then proceed by loading in the dataset and CGAN classes that we previously prepared:
from cGAN import Dataset, CGAN
The class TqdmUpTo is just a tqdm wrapper that enables the use of the progress display also for downloads. The class has been taken directly from the project's ...
Read now
Unlock full access