Michelle Ramirez
commited on
Commit
•
769b4e6
1
Parent(s):
38d511e
updated README with additional information on model training
Browse files
README.md
CHANGED
@@ -14,20 +14,37 @@ The segmentation model was trained on a dataset of 800 total images from the Jig
|
|
14 |
|
15 |
## Model Description
|
16 |
|
17 |
-
Keras implementation of Butterfly UNet segmentation model. The model is responsible for taking an input image (256 x 256 x 3) and generating segmentation masks for all classes below that are found in the image.
|
18 |
|
19 |
### Segmentation Classes
|
20 |
-
|
21 |
-
|
22 |
-
-
|
23 |
-
-
|
24 |
-
-
|
25 |
-
-
|
26 |
-
-
|
27 |
-
-
|
28 |
-
-
|
29 |
-
-
|
30 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
**Developed by:** Michelle Ramirez
|
33 |
|
|
|
14 |
|
15 |
## Model Description
|
16 |
|
17 |
+
Keras implementation of Butterfly UNet segmentation model. The model is responsible for taking an input image (256 x 256 x 3) and generating segmentation masks for all classes below that are found in the image. Vertical flips were applied as data augmentations prior to training the model. Images are converted to grayscale before being fed into the model. The model is trained with categorical cross entropy loss.
|
18 |
|
19 |
### Segmentation Classes
|
20 |
+
[`pixel class`] corresponding category
|
21 |
+
|
22 |
+
- [0] background
|
23 |
+
- [1] generic
|
24 |
+
- [2] right_forewing
|
25 |
+
- [3] left_forewing
|
26 |
+
- [4] right_hindwing
|
27 |
+
- [5] left_hindwing
|
28 |
+
- [6] ruler
|
29 |
+
- [7] white_balance
|
30 |
+
- [8] label
|
31 |
+
- [9] color_card
|
32 |
+
- [19] body
|
33 |
+
|
34 |
+
## Class weights
|
35 |
+
The model was fed class weights to help improve performance on wing segmentation categories (pixel classes: 2,3,4,5). The class weights dictionary used is:
|
36 |
+
|
37 |
+
{0: 1.0,
|
38 |
+
1: 1.0,
|
39 |
+
2: 3.0,
|
40 |
+
3: 3.0,
|
41 |
+
4: 3.0,
|
42 |
+
5: 3.0,
|
43 |
+
6: 1.0,
|
44 |
+
7: 1.0,
|
45 |
+
8: 1.0,
|
46 |
+
9: 1.0,
|
47 |
+
10: 1.0}
|
48 |
|
49 |
**Developed by:** Michelle Ramirez
|
50 |
|