Welcome to the Deep Learning Lab collection! This guide will help you get started quickly.
If you haven’t already, navigate to the dl-lab directory:
cd dl-lab
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install all required packages
pip install -r requirements.txt
This will install:
python3 -c "import torch; print(f'PyTorch: {torch.__version__}')"
python3 -c "import cv2; print(f'OpenCV: {cv2.__version__}')"
dl-lab/
├── README.md # Main overview
├── GETTING_STARTED.md # This file
├── requirements.txt # All dependencies
├── run_all_labs.sh # Run all labs script
│
├── lab_01_image_processing/ # Basic image operations
│ ├── README.md
│ ├── image_processing.py
│ └── outputs/
│
├── lab_02_cifar10_classifiers/ # Classification comparison
│ ├── README.md
│ ├── cifar10_classifiers.py
│ └── outputs/
│
├── lab_03_batchnorm_dropout/ # Regularization study
│ ├── README.md
│ ├── batchnorm_dropout_study.py
│ └── outputs/
│
├── lab_04_labeling_tools/ # Annotation guide
│ └── README.md
│
├── lab_05_segmentation/ # Image segmentation
│ └── README.md
│
├── lab_06_object_detection/ # Object detection
│ └── README.md
│
├── lab_07_image_captioning/ # Image to text
│ └── README.md
│
├── lab_08_chatbot/ # Conversational AI
│ └── README.md
│
├── lab_09_time_series/ # Time series forecasting
│ └── README.md
│
└── lab_10_seq2seq/ # Sequence to sequence
└── README.md
cd lab_01_image_processing
python3 image_processing.py
Time: ~30 seconds
Output: 6 visualization images in outputs/
cd lab_02_cifar10_classifiers
python3 cifar10_classifiers.py
Time: ~3-4 minutes
Output: Comparison plots and confusion matrices
cd lab_03_batchnorm_dropout
python3 batchnorm_dropout_study.py
Time: ~3-4 minutes
Output: Training curves and performance comparison
These labs are primarily educational with comprehensive README files:
Each lab’s README contains:
To run all executable labs sequentially:
# Make script executable (first time only)
chmod +x run_all_labs.sh
# Run all labs
./run_all_labs.sh
SUCCESS: Sample image created
SUCCESS: Histogram equalization complete
SUCCESS: Thresholding complete
SUCCESS: Edge detection complete
SUCCESS: Data augmentation complete
SUCCESS: Morphological operations complete
Training KNN...
SUCCESS: Test Accuracy: 38.20%
Training SVM...
SUCCESS: Test Accuracy: 42.50%
Training Neural Network...
SUCCESS: Test Accuracy: 52.80%
Training Baseline...
SUCCESS: Final validation accuracy: 45.30%
Training Batch Normalization...
SUCCESS: Final validation accuracy: 52.60%
Training Dropout...
SUCCESS: Final validation accuracy: 49.20%
Training BatchNorm + Dropout...
SUCCESS: Final validation accuracy: 54.70%
# Reinstall packages
pip install --upgrade -r requirements.txt
# In the code, change device to CPU
device = torch.device('cpu')
# Use smaller datasets or reduce epochs
# Most labs have use_subset=True option
chmod +x run_all_labs.sh
Found an issue or want to improve a lab?
After completing these labs:
For questions or issues:
You’re now ready to start your deep learning journey. Begin with Lab 1 and work your way through. Each lab builds on previous concepts, so take your time and enjoy learning!
Happy Learning!
Last Updated: March 2026