diozhug commited on
Commit
f1368dd
·
verified ·
1 Parent(s): 082de75

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This repository contains a sample work to classify garbage type based on resized images on this [repository](https://huggingface.co/datasets/garythung/trashnet).
2
+
3
+ There are 2 models available:
4
+ - trash-classification-no-aug.keras
5
+ - trash-classification-aug.keras
6
+
7
+ The `trash-classification-no-aug.keras` model trained with no (or minimum) data augmentation:
8
+ ```python
9
+ datagen = ImageDataGenerator(
10
+ rescale=1./255,
11
+ validation_split=0.2
12
+ )
13
+ ```
14
+ While the `trash-classification-aug.keras` model trained with more data augmentation works in the dataset:
15
+ ```python
16
+ # With data augmentation
17
+ datagen = ImageDataGenerator(
18
+ rescale=1./255,
19
+ validation_split=0.2,
20
+ width_shift_range=0.1,
21
+ height_shift_range=0.1,
22
+ horizontal_flip=True
23
+ )
24
+ ```
25
+
26
+ The models trained with Tensorflow Functional API by using this approach:
27
+ ```
28
+ Conv --> BatchNorm --> Conv --> BatchNorm --> MaxPooling (3x)
29
+ ```
30
+
31
+ For the detailed description about the training process and models' performace, you can visit this Github [repository](https://github.com/dioz95/trash-classification/tree/main).