garythung/trashnet
Viewer • Updated • 5.05k • 868 • 26
This repository contains a Convolutional Neural Network (CNN) model designed for classifying waste images into six distinct categories.
The model implements a deep CNN architecture specifically designed for waste image classification. It processes RGB images through multiple convolutional layers with increasing feature complexity, followed by dense layers for final classification.
The model uses a progressive feature extraction architecture:
The model was trained on the TrashNet dataset with a careful data splitting strategy:
The training process utilized comprehensive data augmentation techniques to improve model robustness:
transformers = transforms.Compose([
transforms.Resize((224, 224)),
transforms.RandomHorizontalFlip(p=0.5),
transforms.RandomRotation(degrees=15),
transforms.ColorJitter(brightness=0.2, contrast=0.2, saturation=0.2),
transforms.ToTensor(),
transforms.Normalize(
mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225]
)
])