January 2019
Intermediate to advanced
316 pages
8h 16m
English
To train the DCGAN network, we need to load the dataset in memory and we need to define a mechanism to load batches of memory. Perform the following steps to load the dataset:
# Loading imagesall_images = []for index, filename in enumerate(glob.glob('/Path/to/cropped/images/directory/*.*')): image = imread(filename, flatten=False, mode='RGB') all_images.append(image)
Read now
Unlock full access