Update README.md
Browse files
README.md
CHANGED
@@ -25,9 +25,9 @@ libraries:
|
|
25 |
|
26 |
## Trash Classification CNN Model
|
27 |
|
28 |
-
###
|
29 |
|
30 |
-
This project is a convolutional neural network (CNN) model developed for the purpose of classifying different types of trash items.
|
31 |
|
32 |
The CNN model in this project utilizes the TinyVGG architecture, a compact version of the popular VGG neural network architecture. The model is trained to classify trash items into the following subcategories:
|
33 |
|
@@ -49,7 +49,7 @@ For more details about the CNN architecture used in this project, you can refer
|
|
49 |
|
50 |
Only 30% of the data from the Real Trash Dataset has been used and divided into an 80%-20% split of Train and Test.
|
51 |
|
52 |
-
The Repository contains 7 files:
|
53 |
|
54 |
1. **data_setup.py**: This file contains functions for setting up the data into datasets using ImageFolder and then turning it into batches using DataLoader. It also returns the names of the classes.
|
55 |
|
@@ -82,4 +82,38 @@ Additionally, the repository contains 2 folders:
|
|
82 |
|
83 |
## Model Overview
|
84 |
|
85 |
-
This model is designed for image classification tasks. It requires input images of size 112x112 pixels.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
## Trash Classification CNN Model
|
27 |
|
28 |
+
### About
|
29 |
|
30 |
+
This project is a convolutional neural network (CNN) model developed for the purpose of classifying different types of trash items.
|
31 |
|
32 |
The CNN model in this project utilizes the TinyVGG architecture, a compact version of the popular VGG neural network architecture. The model is trained to classify trash items into the following subcategories:
|
33 |
|
|
|
49 |
|
50 |
Only 30% of the data from the Real Trash Dataset has been used and divided into an 80%-20% split of Train and Test.
|
51 |
|
52 |
+
The Huggingface Repository contains 7 files found in the `files and versions` tab:
|
53 |
|
54 |
1. **data_setup.py**: This file contains functions for setting up the data into datasets using ImageFolder and then turning it into batches using DataLoader. It also returns the names of the classes.
|
55 |
|
|
|
82 |
|
83 |
## Model Overview
|
84 |
|
85 |
+
This model is designed for image classification tasks. It requires input images of size 112x112 pixels. Containing 2 blocks with 2 convulutional layers and then a flattner with a classfier.
|
86 |
+
|
87 |
+
The architecture looks like :
|
88 |
+
```python
|
89 |
+
TrashClassificationCNNModel(
|
90 |
+
(block_1): Sequential(
|
91 |
+
(0): Conv2d(3, 15, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
|
92 |
+
(1): ReLU()
|
93 |
+
(2): Conv2d(15, 15, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
|
94 |
+
(3): ReLU()
|
95 |
+
(4): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False)
|
96 |
+
)
|
97 |
+
(block_2): Sequential(
|
98 |
+
(0): Conv2d(15, 15, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
|
99 |
+
(1): ReLU()
|
100 |
+
(2): Conv2d(15, 15, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
|
101 |
+
(3): ReLU()
|
102 |
+
(4): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False)
|
103 |
+
)
|
104 |
+
(classifier): Sequential(
|
105 |
+
(0): Flatten(start_dim=1, end_dim=-1)
|
106 |
+
(1): Linear(in_features=11760, out_features=9, bias=True)
|
107 |
+
)
|
108 |
+
)
|
109 |
+
```
|
110 |
+
|
111 |
+
## Dataset Overview
|
112 |
+
|
113 |
+
The dataset used containes images of multiple waste items with multiple classes named RealWaste. It has 4752 samples.
|
114 |
+
|
115 |
+
- Source: [Click here](https://archive.ics.uci.edu/dataset/908/realwaste)
|
116 |
+
- Citation: Single,Sam, Iranmanesh,Saeid, and Raad,Raad. (2023). RealWaste. UCI Machine Learning Repository. https://doi.org/10.24432/C5SS4G.
|
117 |
+
|
118 |
+
## Discliamer
|
119 |
+
The model mught give inaccurate or worng results BEWARE.
|