Update README.md
Browse files
README.md
CHANGED
@@ -73,7 +73,7 @@ You can find the final dataset splitted into train and test [rootstrap-org/wast
|
|
73 |
|
74 |
Split into train/test
|
75 |
You can find the code for the classifier [resnet-model.ipynb](https://github.com/rootstrap/fastai-waste-classifier/blob/main/resnet-model.ipynb)
|
76 |
-
|
77 |
|
78 |
The model has been trained to classify waste into 6 classes.
|
79 |
This repository contains the dataset that we collected.
|
@@ -86,18 +86,18 @@ The dataset used for the first training consisted of 2527 images:
|
|
86 |
- 137 trash
|
87 |
|
88 |
The dataset was built joining images search on the internet using Bing plus some images taken manually, in addition to images from [Trashnet dataset](https://github.com/garythung/trashnet)
|
89 |
-
If you are using the dataset, please give a citation of this repository. The dataset can be downloaded at [rootstrap-org/waste-classifier](rootstrap-org/waste-classifier).
|
90 |
|
91 |
-
In the second training, another set of images was collected using the [TACO dataset](http://tacodataset.org/) as a starting point, along with other datasets in the web.
|
|
|
92 |
|
93 |
### Training Procedure
|
94 |
You can find the code for training at [resnet-model.ipynb](https://github.com/rootstrap/fastai-waste-classifier/blob/main/resnet-model.ipynb)
|
95 |
-
Training the model
|
|
|
96 |
|
97 |
## Evaluation and Results
|
98 |
-
After the first training, the model reached an accuracy of 0.98
|
99 |
-
![confusion_matrix](https://github.com/rootstrap/fastai-waste-classifier/blob/main/classification_matrix_resnet34.png)
|
100 |
However, that first model had a lot of bias and limitations.
|
101 |
-
|
102 |
The final model trained with more images, many of them from the TACO dataset, reached an accuracy of 89%.
|
103 |
That model still has some limitation, but it's a lot more flexible than the first one.
|
|
|
73 |
|
74 |
Split into train/test
|
75 |
You can find the code for the classifier [resnet-model.ipynb](https://github.com/rootstrap/fastai-waste-classifier/blob/main/resnet-model.ipynb)
|
76 |
+
load the model [result-resnet50.pkl](https://huggingface.co/rootstrap-org/waste-classifier/blob/main/result-resnet50.pkl)
|
77 |
|
78 |
The model has been trained to classify waste into 6 classes.
|
79 |
This repository contains the dataset that we collected.
|
|
|
86 |
- 137 trash
|
87 |
|
88 |
The dataset was built joining images search on the internet using Bing plus some images taken manually, in addition to images from [Trashnet dataset](https://github.com/garythung/trashnet)
|
89 |
+
If you are using the dataset, please give a citation of this repository. The dataset can be downloaded at [rootstrap-org/waste-classifier](https://huggingface.co/datasets/rootstrap-org/waste-classifier).
|
90 |
|
91 |
+
In the second training, another set of images was collected using the [TACO dataset](http://tacodataset.org/) as a starting point, along with other datasets in the web.
|
92 |
+
A selection of proper training images was made from those datasets to build the training dataset.
|
93 |
|
94 |
### Training Procedure
|
95 |
You can find the code for training at [resnet-model.ipynb](https://github.com/rootstrap/fastai-waste-classifier/blob/main/resnet-model.ipynb)
|
96 |
+
Training the model by fine tuning resnet50, a convolutional neural network that has 50 layers. It is pretrained on ImageNet dataset and can classify images into 1000 object categories.
|
97 |
+
The expected input size is 224x224.
|
98 |
|
99 |
## Evaluation and Results
|
100 |
+
After the first training, the model reached an accuracy of 0.98.
|
|
|
101 |
However, that first model had a lot of bias and limitations.
|
|
|
102 |
The final model trained with more images, many of them from the TACO dataset, reached an accuracy of 89%.
|
103 |
That model still has some limitation, but it's a lot more flexible than the first one.
|