sawthiha commited on
Commit
712f50f
1 Parent(s): 623de74

Upload TFSegformerForSemanticSegmentation

Browse files
Files changed (3) hide show
  1. README.md +101 -1
  2. config.json +78 -0
  3. tf_model.h5 +3 -0
README.md CHANGED
@@ -1,3 +1,103 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ base_model: nvidia/segformer-b0-finetuned-ade-512-512
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: segformer-b0-finetuned-deprem-satellite
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
+ # segformer-b0-finetuned-deprem-satellite
15
+
16
+ This model is a fine-tuned version of [nvidia/segformer-b0-finetuned-ade-512-512](https://huggingface.co/nvidia/segformer-b0-finetuned-ade-512-512) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.0405
19
+ - Validation Loss: 0.0344
20
+ - Epoch: 49
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - 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': 5e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
40
+ - training_precision: float32
41
+
42
+ ### Training results
43
+
44
+ | Train Loss | Validation Loss | Epoch |
45
+ |:----------:|:---------------:|:-----:|
46
+ | 0.1619 | 0.0524 | 0 |
47
+ | 0.0943 | 0.0437 | 1 |
48
+ | 0.0811 | 0.0402 | 2 |
49
+ | 0.0756 | 0.0390 | 3 |
50
+ | 0.0714 | 0.0365 | 4 |
51
+ | 0.0676 | 0.0367 | 5 |
52
+ | 0.0648 | 0.0361 | 6 |
53
+ | 0.0627 | 0.0352 | 7 |
54
+ | 0.0617 | 0.0423 | 8 |
55
+ | 0.0597 | 0.0348 | 9 |
56
+ | 0.0582 | 0.0338 | 10 |
57
+ | 0.0575 | 0.0340 | 11 |
58
+ | 0.0553 | 0.0338 | 12 |
59
+ | 0.0551 | 0.0328 | 13 |
60
+ | 0.0542 | 0.0353 | 14 |
61
+ | 0.0541 | 0.0348 | 15 |
62
+ | 0.0526 | 0.0325 | 16 |
63
+ | 0.0512 | 0.0326 | 17 |
64
+ | 0.0511 | 0.0338 | 18 |
65
+ | 0.0506 | 0.0338 | 19 |
66
+ | 0.0501 | 0.0326 | 20 |
67
+ | 0.0488 | 0.0339 | 21 |
68
+ | 0.0488 | 0.0329 | 22 |
69
+ | 0.0481 | 0.0335 | 23 |
70
+ | 0.0475 | 0.0327 | 24 |
71
+ | 0.0469 | 0.0335 | 25 |
72
+ | 0.0463 | 0.0331 | 26 |
73
+ | 0.0478 | 0.0326 | 27 |
74
+ | 0.0455 | 0.0331 | 28 |
75
+ | 0.0511 | 0.0328 | 29 |
76
+ | 0.0454 | 0.0327 | 30 |
77
+ | 0.0447 | 0.0330 | 31 |
78
+ | 0.0466 | 0.0341 | 32 |
79
+ | 0.0445 | 0.0331 | 33 |
80
+ | 0.0441 | 0.0333 | 34 |
81
+ | 0.0438 | 0.0337 | 35 |
82
+ | 0.0441 | 0.0347 | 36 |
83
+ | 0.0463 | 0.0334 | 37 |
84
+ | 0.0446 | 0.0336 | 38 |
85
+ | 0.0430 | 0.0337 | 39 |
86
+ | 0.0425 | 0.0342 | 40 |
87
+ | 0.0422 | 0.0339 | 41 |
88
+ | 0.0426 | 0.0348 | 42 |
89
+ | 0.0418 | 0.0339 | 43 |
90
+ | 0.0416 | 0.0339 | 44 |
91
+ | 0.0414 | 0.0343 | 45 |
92
+ | 0.0423 | 0.0337 | 46 |
93
+ | 0.0408 | 0.0353 | 47 |
94
+ | 0.0405 | 0.0343 | 48 |
95
+ | 0.0405 | 0.0344 | 49 |
96
+
97
+
98
+ ### Framework versions
99
+
100
+ - Transformers 4.36.2
101
+ - TensorFlow 2.15.0
102
+ - Datasets 2.16.1
103
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nvidia/segformer-b0-finetuned-ade-512-512",
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": "unlabeled",
32
+ "1": "building"
33
+ },
34
+ "image_size": 224,
35
+ "initializer_range": 0.02,
36
+ "label2id": {
37
+ "building": 1,
38
+ "unlabeled": 0
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.36.2"
78
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e47e53871e67e32900024ade02042e7aaf1185a6b9e3cb4b06bf227416e5150
3
+ size 15133552