Closed dmarx closed 3 years ago
!wget --no-check-certificate \ https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip \ -O /tmp/cats_and_dogs_filtered.zip import os import zipfile local_zip = '/tmp/cats_and_dogs_filtered.zip' zip_ref = zipfile.ZipFile(local_zip, 'r') zip_ref.extractall('/tmp') zip_ref.close() train_dogs_dir = "/tmp/cats_and_dogs_filtered/train/dogs" train_dog_fnames = os.listdir(train_dogs_dir) train_dog_fnames.sort()