Good News: Labs 1-3 work immediately without any dataset downloads!
For Labs 4-10: Follow this guide to download datasets from Kaggle.
Before downloading datasets, you need:
cd dl-lab
pip install -r requirements.txt
This installs:
Verify installation:
kaggle --version
# Should output: Kaggle API 1.5.x
kaggle.json fileOn macOS/Linux:
# Create .kaggle directory
mkdir -p ~/.kaggle
# Move the downloaded file
mv ~/Downloads/kaggle.json ~/.kaggle/
# Set correct permissions (important!)
chmod 600 ~/.kaggle/kaggle.json
On Windows:
# Create .kaggle directory
mkdir %USERPROFILE%\.kaggle
# Move the downloaded file
move %USERPROFILE%\Downloads\kaggle.json %USERPROFILE%\.kaggle\
Verify setup:
kaggle datasets list
# Should show a list of datasets (not an error)
Now you’re ready to download datasets!
cd dl-lab
./download_datasets.sh
You’ll see:
==========================================
DEEP LEARNING LAB - DATASET DOWNLOADER
==========================================
SUCCESS: Kaggle CLI is installed and configured
Which datasets would you like to download?
1. Essential only (Labs 1-3, auto-downloaded)
2. Recommended (Labs 5-10, ~5 GB)
3. All datasets (~20 GB)
4. Custom selection
Enter choice (1-4):
Recommendations:
Follow instructions in DATASETS.md for manual downloads.
Check what was downloaded:
cd dl-lab
find . -type d -name "data" -exec du -sh {} \;
You should see directories like:
800M ./lab_05_segmentation/data
1.0G ./lab_07_image_captioning/data
10M ./lab_08_chatbot/data
50M ./lab_09_time_series/data
50M ./lab_10_seq2seq/data
# Lab 1: Image Processing
cd lab_01_image_processing
python3 image_processing.py
# Lab 2: CIFAR-10 Classifiers
cd ../lab_02_cifar10_classifiers
python3 cifar10_classifiers.py
# Lab 3: Batch Normalization & Dropout
cd ../lab_03_batchnorm_dropout
python3 batchnorm_dropout_study.py
Each lab has a README.md with specific instructions:
cd lab_07_image_captioning
cat README.md # Read instructions
# Then implement based on the guide
pip install kaggle
# Or
pip install -r requirements.txt
# Check if kaggle.json exists
ls ~/.kaggle/kaggle.json
# If not, download from https://www.kaggle.com/account
# Then move to ~/.kaggle/
chmod 600 ~/.kaggle/kaggle.json
# Check available space
df -h
# Download only essential datasets (option 1 or 2)
# Or download one lab at a time (option 4)
| Lab | Dataset | Size | Required? |
|---|---|---|---|
| Lab 1 | Synthetic | - | Auto |
| Lab 2 | CIFAR-10 | 170 MB | Auto |
| Lab 3 | CIFAR-10 | 170 MB | Auto |
| Lab 4 | Road Signs | Varies | Optional |
| Lab 5 | Pet Dataset | 800 MB | Recommended |
| Lab 6 | Pascal VOC | 2 GB | Recommended |
| Lab 7 | Flickr8k | 1 GB | Recommended |
| Lab 8 | Cornell Dialogs | 10 MB | Recommended |
| Lab 9 | Energy Data | 50 MB | Recommended |
| Lab 10 | Translation | 50 MB | Recommended |
Legend:
cd dl-lab
pip install -r requirements.txt
cd lab_01_image_processing
python3 image_processing.py
Time: 5 minutes setup + 30 seconds execution
cd dl-lab
pip install -r requirements.txt
./run_all_labs.sh
Time: 5 minutes setup + 8 minutes execution
cd dl-lab
pip install -r requirements.txt
# Setup Kaggle (see Step 2)
./download_datasets.sh # Choose option 2
# Then run individual labs
Time: 10 minutes setup + 30 minutes download + varies per lab
DATASETS.md in this directoryGETTING_STARTED.mdBefore running labs, verify:
python3 --version)pip list | grep torch)kaggle --version)ls ~/.kaggle/kaggle.json)df -h)Once setup is complete:
Happy Learning!
Need Help?
DATASETS.md for detailed dataset informationGETTING_STARTED.md for general setup