fastai
classification
waste
resnet
rootstrap commited on
Commit
abeb6f7
·
verified ·
1 Parent(s): 1a968a5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
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
- To load the model in the file [result-resnet50.pkl](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,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. A selection of proper training images was made from those datasets to build the training dataset.
 
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 using resnet50: ResNet34 is a convolutional neural network(CNN) that has 34 layers. It has been already trained with images from the ImageNet database. It classifies 1000 object from very broad categories, such as pencil or animals. The input size of the network is 224x224.
 
96
 
97
  ## Evaluation and Results
98
- After the first training, the model reached an accuracy of 0.98, here we can see the confusion matrix:
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.