Learn practical skills, build real-world projects, and advance your career
project_name = '06b-anime-dcgan'
# Uncomment and run the appropriate command for your operating system, if required
# No installation is reqiured on Google Colab / Kaggle notebooks

# Linux / Binder / Windows (No GPU)
# !pip install numpy matplotlib torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

# Linux / Windows (GPU)
# pip install numpy matplotlib torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
 
# MacOS (NO GPU)
# !pip install numpy matplotlib torch torchvision torchaudio
!pip install opendatasets --upgrade --quiet
import opendatasets as od

dataset_url = 'https://www.kaggle.com/crawford/cat-dataset'
od.download(dataset_url)
Please provide your Kaggle credentials to download this dataset. Learn more: http://bit.ly/kaggle-creds Your Kaggle username: akshaykumare Your Kaggle Key: ··········
0%| | 0.00/4.04G [00:00<?, ?B/s]
Downloading cat-dataset.zip to ./cat-dataset
100%|██████████| 4.04G/4.04G [01:18<00:00, 55.2MB/s]
import os

DATA_DIR = '/content/cat-dataset/cats'
print(os.listdir(DATA_DIR))
['CAT_05', 'CAT_01', 'CAT_00', 'CAT_04', 'CAT_06', 'CAT_03', 'CAT_02']