File size: 1,274 Bytes
ad21764
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
license: mit
---

# SegFormer (rebuilt the architecture + loading weights from NVIDIA + finetuning):

SegFormer trained on the dataset , by using the OpenMLCore framework.
The based Pytorch Code is available in model.py

---

## 📌 Results

### Visualisations:
There are some results after the training on Cells_one_hot_encoding dataset.

#### Cells Multiclass:
| Result 1 | Result 2 |
| :---: | :---: |
| ![Description Image 1](Result_Cells_monoclass/Figure_1.png) | ![Description Image 2](Result_Cells_monoclass/Figure_3.png) |

---

## 📊 Metrics & Performances (Validation)

### Performance on Cells detection dataset:
Please note that, SegFormer is a Vision Transformer, so by definition, it is hard to make converge properly and easy to make it overfit. I added some drop out, Data augmenntation, weight decay et regularization.
| Model / Configuration | Accuracy | IoU | Precision | Recall | F1-Score |
| :--- | :---: | :---: | :---: | :---: | :---: |
| Modèle V1(Cells monoclass dataset) | 0.9496 | 0.7006 | 0.8410 | 0.7719 | 0.8026 |

---

## ⚙️ Model training:

I used my personal Framework ( a wrapper of PyTorch) to train the model. 

### Install the framework:
```bash
git clone https://github.com/sebastien-doyez2812/OpenML-core.git
cd OpenML-core