aurioldegbelo
commited on
Commit
•
2b891a7
1
Parent(s):
2e8a0f0
Upload TFSegformerForSemanticSegmentation
Browse files- README.md +67 -0
- config.json +78 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
base_model: nvidia/mit-b0
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: slm-segformer-080823
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# slm-segformer-080823
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [nvidia/mit-b0](https://huggingface.co/nvidia/mit-b0) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.0357
|
19 |
+
- Validation Loss: 0.0383
|
20 |
+
- Validation Mean Iou: 0.8453
|
21 |
+
- Validation Mean Accuracy: 0.9366
|
22 |
+
- Validation Overall Accuracy: 0.9869
|
23 |
+
- Validation Per Category Iou: [0.98646921 0.70414361]
|
24 |
+
- Validation Per Category Accuracy: [0.99072207 0.88237991]
|
25 |
+
- Epoch: 9
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 6e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
45 |
+
- training_precision: float32
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Train Loss | Validation Loss | Validation Mean Iou | Validation Mean Accuracy | Validation Overall Accuracy | Validation Per Category Iou | Validation Per Category Accuracy | Epoch |
|
50 |
+
|:----------:|:---------------:|:-------------------:|:------------------------:|:---------------------------:|:---------------------------:|:--------------------------------:|:-----:|
|
51 |
+
| 0.4798 | 0.1807 | 0.6747 | 0.7770 | 0.9674 | [0.96669254 0.38268484] | [0.98185208 0.57215982] | 0 |
|
52 |
+
| 0.1552 | 0.1046 | 0.7352 | 0.7991 | 0.9779 | [0.97745298 0.49298956] | [0.99154204 0.60674898] | 1 |
|
53 |
+
| 0.0981 | 0.1042 | 0.7744 | 0.9090 | 0.9779 | [0.97719564 0.5715319 ] | [0.98310851 0.8349177 ] | 2 |
|
54 |
+
| 0.0744 | 0.0978 | 0.7876 | 0.9431 | 0.9784 | [0.97773288 0.59755377] | [0.98113179 0.90515736] | 3 |
|
55 |
+
| 0.0611 | 0.0728 | 0.8224 | 0.9456 | 0.9836 | [0.98310869 0.66170563] | [0.98654807 0.90455283] | 4 |
|
56 |
+
| 0.0513 | 0.0531 | 0.8330 | 0.9282 | 0.9856 | [0.98518512 0.68084932] | [0.99000668 0.86647783] | 5 |
|
57 |
+
| 0.0469 | 0.0514 | 0.8326 | 0.9460 | 0.9850 | [0.98451475 0.68075519] | [0.9879771 0.90405278] | 6 |
|
58 |
+
| 0.0413 | 0.0406 | 0.8452 | 0.9360 | 0.9869 | [0.9864742 0.70392259] | [0.99077125 0.88115845] | 7 |
|
59 |
+
| 0.0385 | 0.0412 | 0.8495 | 0.9309 | 0.9875 | [0.98715291 0.71182272] | [0.99186047 0.86989475] | 8 |
|
60 |
+
| 0.0357 | 0.0383 | 0.8453 | 0.9366 | 0.9869 | [0.98646921 0.70414361] | [0.99072207 0.88237991] | 9 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.31.0
|
66 |
+
- TensorFlow 2.12.0
|
67 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nvidia/mit-b0",
|
3 |
+
"architectures": [
|
4 |
+
"SegformerForSemanticSegmentation"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"classifier_dropout_prob": 0.1,
|
8 |
+
"decoder_hidden_size": 256,
|
9 |
+
"depths": [
|
10 |
+
2,
|
11 |
+
2,
|
12 |
+
2,
|
13 |
+
2
|
14 |
+
],
|
15 |
+
"downsampling_rates": [
|
16 |
+
1,
|
17 |
+
4,
|
18 |
+
8,
|
19 |
+
16
|
20 |
+
],
|
21 |
+
"drop_path_rate": 0.1,
|
22 |
+
"hidden_act": "gelu",
|
23 |
+
"hidden_dropout_prob": 0.0,
|
24 |
+
"hidden_sizes": [
|
25 |
+
32,
|
26 |
+
64,
|
27 |
+
160,
|
28 |
+
256
|
29 |
+
],
|
30 |
+
"id2label": {
|
31 |
+
"0": "background",
|
32 |
+
"1": "boundary"
|
33 |
+
},
|
34 |
+
"image_size": 224,
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"label2id": {
|
37 |
+
"background": 0,
|
38 |
+
"boundary": 1
|
39 |
+
},
|
40 |
+
"layer_norm_eps": 1e-06,
|
41 |
+
"mlp_ratios": [
|
42 |
+
4,
|
43 |
+
4,
|
44 |
+
4,
|
45 |
+
4
|
46 |
+
],
|
47 |
+
"model_type": "segformer",
|
48 |
+
"num_attention_heads": [
|
49 |
+
1,
|
50 |
+
2,
|
51 |
+
5,
|
52 |
+
8
|
53 |
+
],
|
54 |
+
"num_channels": 3,
|
55 |
+
"num_encoder_blocks": 4,
|
56 |
+
"patch_sizes": [
|
57 |
+
7,
|
58 |
+
3,
|
59 |
+
3,
|
60 |
+
3
|
61 |
+
],
|
62 |
+
"reshape_last_stage": true,
|
63 |
+
"semantic_loss_ignore_index": 255,
|
64 |
+
"sr_ratios": [
|
65 |
+
8,
|
66 |
+
4,
|
67 |
+
2,
|
68 |
+
1
|
69 |
+
],
|
70 |
+
"strides": [
|
71 |
+
4,
|
72 |
+
2,
|
73 |
+
2,
|
74 |
+
2
|
75 |
+
],
|
76 |
+
"torch_dtype": "float32",
|
77 |
+
"transformers_version": "4.31.0"
|
78 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc13923a268ad03d13287bd91e8b897c17cd1c6ae1e0aba371dad6560d072039
|
3 |
+
size 15133552
|