aurioldegbelo commited on
Commit
bd4c8e0
·
1 Parent(s): c67aebe

Upload TFSegformerForSemanticSegmentation

Browse files
Files changed (3) hide show
  1. README.md +67 -0
  2. config.json +78 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: nvidia/mit-b1
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: slm-segformer-080823-b1
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-b1
15
+
16
+ This model is a fine-tuned version of [nvidia/mit-b1](https://huggingface.co/nvidia/mit-b1) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.0257
19
+ - Validation Loss: 0.0271
20
+ - Validation Mean Iou: 0.8583
21
+ - Validation Mean Accuracy: 0.9196
22
+ - Validation Overall Accuracy: 0.9888
23
+ - Validation Per Category Iou: [0.98849374 0.72800628]
24
+ - Validation Per Category Accuracy: [0.99410982 0.84499592]
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.1099 | 0.0958 | 0.8134 | 0.9461 | 0.9824 | [0.98176563 0.64502586] | [0.98511039 0.90705184] | 0 |
52
+ | 0.0478 | 0.0523 | 0.8440 | 0.9449 | 0.9865 | [0.9860406 0.7019479] | [0.98964683 0.90022015] | 1 |
53
+ | 0.0379 | 0.0409 | 0.8476 | 0.9325 | 0.9873 | [0.98687303 0.70826431] | [0.99144882 0.87350047] | 2 |
54
+ | 0.0336 | 0.0331 | 0.8551 | 0.9394 | 0.9880 | [0.98757544 0.72269531] | [0.99166337 0.88706795] | 3 |
55
+ | 0.0310 | 0.0329 | 0.8541 | 0.9426 | 0.9878 | [0.98735586 0.72081351] | [0.99118853 0.89409615] | 4 |
56
+ | 0.0292 | 0.0317 | 0.8516 | 0.9348 | 0.9877 | [0.98729336 0.71599644] | [0.99171219 0.87789181] | 5 |
57
+ | 0.0282 | 0.0296 | 0.8572 | 0.9336 | 0.9884 | [0.98798391 0.72647977] | [0.99252058 0.87472321] | 6 |
58
+ | 0.0271 | 0.0319 | 0.8476 | 0.9253 | 0.9875 | [0.98709267 0.70802268] | [0.99221744 0.85835533] | 7 |
59
+ | 0.0267 | 0.0295 | 0.8549 | 0.9298 | 0.9882 | [0.98782022 0.72192985] | [0.9926388 0.86691624] | 8 |
60
+ | 0.0257 | 0.0271 | 0.8583 | 0.9196 | 0.9888 | [0.98849374 0.72800628] | [0.99410982 0.84499592] | 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-b1",
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
+ 64,
26
+ 128,
27
+ 320,
28
+ 512
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:1ce0e04816b693b630c981ba1f0a48ae30d73cabead8776ce45edd42e6f6cb81
3
+ size 54990472