ArtemShyshko commited on
Commit
ad523f2
1 Parent(s): 47f45dd

Upload TFSegformerForSemanticSegmentation

Browse files
Files changed (3) hide show
  1. README.md +49 -0
  2. config.json +86 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: nvidia/mit-b0
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: tf_segformer_for_semantic_segmentation_1_v1
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
+ # tf_segformer_for_semantic_segmentation_1_v1
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
+
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - 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': False, 'is_legacy_optimizer': False, 'learning_rate': 6e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
38
+ - training_precision: float32
39
+
40
+ ### Training results
41
+
42
+
43
+
44
+ ### Framework versions
45
+
46
+ - Transformers 4.31.0
47
+ - TensorFlow 2.12.0
48
+ - Datasets 2.19.1
49
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "building",
32
+ "1": "land",
33
+ "2": "road",
34
+ "3": "vegetation",
35
+ "4": "water",
36
+ "5": "unlabeled"
37
+ },
38
+ "image_size": 224,
39
+ "initializer_range": 0.02,
40
+ "label2id": {
41
+ "building": 0,
42
+ "land": 1,
43
+ "road": 2,
44
+ "unlabeled": 5,
45
+ "vegetation": 3,
46
+ "water": 4
47
+ },
48
+ "layer_norm_eps": 1e-06,
49
+ "mlp_ratios": [
50
+ 4,
51
+ 4,
52
+ 4,
53
+ 4
54
+ ],
55
+ "model_type": "segformer",
56
+ "num_attention_heads": [
57
+ 1,
58
+ 2,
59
+ 5,
60
+ 8
61
+ ],
62
+ "num_channels": 3,
63
+ "num_encoder_blocks": 4,
64
+ "patch_sizes": [
65
+ 7,
66
+ 3,
67
+ 3,
68
+ 3
69
+ ],
70
+ "reshape_last_stage": true,
71
+ "semantic_loss_ignore_index": 255,
72
+ "sr_ratios": [
73
+ 8,
74
+ 4,
75
+ 2,
76
+ 1
77
+ ],
78
+ "strides": [
79
+ 4,
80
+ 2,
81
+ 2,
82
+ 2
83
+ ],
84
+ "torch_dtype": "float32",
85
+ "transformers_version": "4.31.0"
86
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b81e09806b656c3b16f1348d15c670d22860d6d5410c9dbb24f8fc30aaa50ffa
3
+ size 15137664