AlthariqFairuz commited on
Commit
77414bb
·
verified ·
1 Parent(s): 8a5ca10

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -3
README.md CHANGED
@@ -1,3 +1,47 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ datasets:
6
+ - garythung/trashnet
7
+ ---
8
+
9
+ # Trash Classification CNN
10
+
11
+ This repository contains a Convolutional Neural Network (CNN) model designed for classifying waste images into six distinct categories.
12
+
13
+ ## Model Description
14
+
15
+ 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.
16
+
17
+ ### Architecture Details
18
+
19
+ The model uses a progressive feature extraction architecture:
20
+ - Input layer for RGB images (3 channels)
21
+ - Three convolutional layers with increasing filters (32 → 64 → 128)
22
+ - MaxPooling layers after each convolution
23
+ - Dropout layers (0.25) for regularization
24
+ - Three fully connected layers (128 → 32 → 6)
25
+ - ReLU activation functions throughout
26
+ - Final layer outputs 6 classes (waste categories)
27
+
28
+ ### Dataset and Training
29
+
30
+ The model was trained on the TrashNet dataset with a careful data splitting strategy:
31
+ - Training set: 70% of the data
32
+ - Validation set: 20% of the data
33
+ - Test set: 10% of the data
34
+
35
+ The training process utilized comprehensive data augmentation techniques to improve model robustness:
36
+ ```python
37
+ transformers = transforms.Compose([
38
+ transforms.Resize((224, 224)),
39
+ transforms.RandomHorizontalFlip(p=0.5),
40
+ transforms.RandomRotation(degrees=15),
41
+ transforms.ColorJitter(brightness=0.2, contrast=0.2, saturation=0.2),
42
+ transforms.ToTensor(),
43
+ transforms.Normalize(
44
+ mean=[0.485, 0.456, 0.406],
45
+ std=[0.229, 0.224, 0.225]
46
+ )
47
+ ])