February 2018
Intermediate to advanced
450 pages
11h 27m
English
In this section, we will define some helper functions that will help us to download the CelebA dataset. We'll start off by importing their required packages for this implementation:
import mathimport osimport hashlibfrom urllib.request import urlretrieveimport zipfileimport gzipimport shutilimport numpy as npfrom PIL import Imagefrom tqdm import tqdmimport utilsimport tensorflow as tf
Next up, we are going to use the utils script to download the dataset:
#Downloading celebA datasetcelebA_data_dir = 'input'utils.download_extract('celeba', celebA_data_dir)
Output:Downloading celeba: 1.44GB [00:21, 66.6MB/s] Extracting celeba...
Read now
Unlock full access