Use the following command in a fresh Python 3.11 environment:
pip install -r requirements.txt
- Python
- PyTorch
- Torchvision
- Scikit-learn
- Pillow
- Matplotlib
- tqdm
Organize dataset in this structure:
data/
├── cardboard/
├── glass/
├── metal/
├── paper/
├── plastic/
└── trash/
- Custom CNN (Convolutional Neural Network) neural network built from scratch
- GPU accelerated training using CUDA
- Saved trained model:
garbage_model.pth - Performance metrics: accuracy, precision, recall, f1-score
- Improve dataset size and balance
- Use deeper CNN or ensemble techniques to target 96–99% accuracy