peldrak commited on
Commit
8792e35
1 Parent(s): f453eb5

End of training

Browse files
README.md CHANGED
@@ -1,201 +1,101 @@
1
  ---
2
- library_name: transformers
3
- tags: []
 
 
 
 
 
 
 
4
  ---
5
 
6
- # Model Card for Model ID
7
-
8
- <!-- Provide a quick summary of what the model is/does. -->
9
-
10
-
11
-
12
- ## Model Details
13
-
14
- ### Model Description
15
-
16
- <!-- Provide a longer summary of what this model is. -->
17
-
18
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
-
20
- - **Developed by:** [More Information Needed]
21
- - **Funded by [optional]:** [More Information Needed]
22
- - **Shared by [optional]:** [More Information Needed]
23
- - **Model type:** [More Information Needed]
24
- - **Language(s) (NLP):** [More Information Needed]
25
- - **License:** [More Information Needed]
26
- - **Finetuned from model [optional]:** [More Information Needed]
27
-
28
- ### Model Sources [optional]
29
-
30
- <!-- Provide the basic links for the model. -->
31
-
32
- - **Repository:** [More Information Needed]
33
- - **Paper [optional]:** [More Information Needed]
34
- - **Demo [optional]:** [More Information Needed]
35
-
36
- ## Uses
37
-
38
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
-
40
- ### Direct Use
41
-
42
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
-
44
- [More Information Needed]
45
-
46
- ### Downstream Use [optional]
47
-
48
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
-
50
- [More Information Needed]
51
-
52
- ### Out-of-Scope Use
53
-
54
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
-
56
- [More Information Needed]
57
-
58
- ## Bias, Risks, and Limitations
59
-
60
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
-
62
- [More Information Needed]
63
-
64
- ### Recommendations
65
-
66
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
-
68
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
-
70
- ## How to Get Started with the Model
71
-
72
- Use the code below to get started with the model.
73
-
74
- [More Information Needed]
75
-
76
- ## Training Details
77
-
78
- ### Training Data
79
-
80
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
-
82
- [More Information Needed]
83
-
84
- ### Training Procedure
85
-
86
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
-
88
- #### Preprocessing [optional]
89
-
90
- [More Information Needed]
91
-
92
-
93
- #### Training Hyperparameters
94
-
95
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
-
97
- #### Speeds, Sizes, Times [optional]
98
-
99
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
-
101
- [More Information Needed]
102
-
103
- ## Evaluation
104
-
105
- <!-- This section describes the evaluation protocols and provides the results. -->
106
-
107
- ### Testing Data, Factors & Metrics
108
-
109
- #### Testing Data
110
-
111
- <!-- This should link to a Dataset Card if possible. -->
112
-
113
- [More Information Needed]
114
-
115
- #### Factors
116
-
117
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
-
119
- [More Information Needed]
120
-
121
- #### Metrics
122
-
123
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
-
125
- [More Information Needed]
126
-
127
- ### Results
128
-
129
- [More Information Needed]
130
-
131
- #### Summary
132
-
133
-
134
-
135
- ## Model Examination [optional]
136
-
137
- <!-- Relevant interpretability work for the model goes here -->
138
-
139
- [More Information Needed]
140
-
141
- ## Environmental Impact
142
-
143
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
-
145
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
-
147
- - **Hardware Type:** [More Information Needed]
148
- - **Hours used:** [More Information Needed]
149
- - **Cloud Provider:** [More Information Needed]
150
- - **Compute Region:** [More Information Needed]
151
- - **Carbon Emitted:** [More Information Needed]
152
-
153
- ## Technical Specifications [optional]
154
-
155
- ### Model Architecture and Objective
156
-
157
- [More Information Needed]
158
-
159
- ### Compute Infrastructure
160
-
161
- [More Information Needed]
162
-
163
- #### Hardware
164
-
165
- [More Information Needed]
166
-
167
- #### Software
168
-
169
- [More Information Needed]
170
-
171
- ## Citation [optional]
172
-
173
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
-
175
- **BibTeX:**
176
-
177
- [More Information Needed]
178
-
179
- **APA:**
180
-
181
- [More Information Needed]
182
-
183
- ## Glossary [optional]
184
-
185
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
-
187
- [More Information Needed]
188
-
189
- ## More Information [optional]
190
-
191
- [More Information Needed]
192
-
193
- ## Model Card Authors [optional]
194
-
195
- [More Information Needed]
196
-
197
- ## Model Card Contact
198
-
199
- [More Information Needed]
200
-
201
-
 
1
  ---
2
+ license: other
3
+ base_model: peldrak/segformer-b5-cityscapes-finetuned-coastTrain
4
+ tags:
5
+ - vision
6
+ - image-segmentation
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: segformer-b5-cityscapes-finetuned-coastTrain-grCoastline
10
+ results: []
11
  ---
12
 
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # segformer-b5-cityscapes-finetuned-coastTrain-grCoastline
17
+
18
+ This model is a fine-tuned version of [peldrak/segformer-b5-cityscapes-finetuned-coastTrain](https://huggingface.co/peldrak/segformer-b5-cityscapes-finetuned-coastTrain) on the peldrak/grCoastline_512 dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2102
21
+ - Mean Iou: 0.7609
22
+ - Mean Accuracy: 0.8362
23
+ - Overall Accuracy: 0.9377
24
+ - Accuracy Water: 0.9647
25
+ - Accuracy Whitewater: 0.4711
26
+ - Accuracy Sediment: 0.9196
27
+ - Accuracy Other Natural Terrain: 0.7165
28
+ - Accuracy Vegetation: 0.9431
29
+ - Accuracy Development: 0.8401
30
+ - Accuracy Unknown: 0.9979
31
+ - Iou Water: 0.9257
32
+ - Iou Whitewater: 0.4024
33
+ - Iou Sediment: 0.8495
34
+ - Iou Other Natural Terrain: 0.6281
35
+ - Iou Vegetation: 0.8602
36
+ - Iou Development: 0.6642
37
+ - Iou Unknown: 0.9965
38
+ - F1 Score: 0.9367
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 6e-05
58
+ - train_batch_size: 4
59
+ - eval_batch_size: 4
60
+ - seed: 42
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - num_epochs: 20
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Mean Iou | Mean Accuracy | Overall Accuracy | Accuracy Water | Accuracy Whitewater | Accuracy Sediment | Accuracy Other Natural Terrain | Accuracy Vegetation | Accuracy Development | Accuracy Unknown | Iou Water | Iou Whitewater | Iou Sediment | Iou Other Natural Terrain | Iou Vegetation | Iou Development | Iou Unknown | F1 Score |
68
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-------------:|:----------------:|:--------------:|:-------------------:|:-----------------:|:------------------------------:|:-------------------:|:--------------------:|:----------------:|:---------:|:--------------:|:------------:|:-------------------------:|:--------------:|:---------------:|:-----------:|:--------:|
69
+ | 0.2282 | 0.24 | 20 | 0.3888 | 0.5888 | 0.6807 | 0.8840 | 0.8811 | 0.0154 | 0.8670 | 0.3235 | 0.9707 | 0.7083 | 0.9990 | 0.8552 | 0.0135 | 0.7307 | 0.3052 | 0.7768 | 0.4547 | 0.9857 | 0.8725 |
70
+ | 0.5683 | 0.49 | 40 | 0.2252 | 0.6632 | 0.7209 | 0.9264 | 0.9521 | 0.0387 | 0.9092 | 0.7579 | 0.9473 | 0.4427 | 0.9984 | 0.9405 | 0.0374 | 0.7823 | 0.6278 | 0.8414 | 0.4179 | 0.9951 | 0.9231 |
71
+ | 0.3519 | 0.73 | 60 | 0.2345 | 0.6851 | 0.7534 | 0.9268 | 0.9607 | 0.0499 | 0.8663 | 0.6494 | 0.9576 | 0.7916 | 0.9986 | 0.9439 | 0.0499 | 0.8103 | 0.5751 | 0.8326 | 0.5900 | 0.9938 | 0.9245 |
72
+ | 0.5472 | 0.98 | 80 | 0.2040 | 0.6776 | 0.7442 | 0.9218 | 0.9759 | 0.1349 | 0.8451 | 0.8238 | 0.9061 | 0.5263 | 0.9973 | 0.9316 | 0.1312 | 0.7764 | 0.5805 | 0.8485 | 0.4802 | 0.9944 | 0.9216 |
73
+ | 0.7595 | 1.22 | 100 | 0.1882 | 0.7138 | 0.7855 | 0.9402 | 0.9571 | 0.0682 | 0.9318 | 0.7405 | 0.9428 | 0.8590 | 0.9986 | 0.9415 | 0.0670 | 0.8363 | 0.6783 | 0.8666 | 0.6121 | 0.9946 | 0.9393 |
74
+ | 0.1791 | 1.46 | 120 | 0.2253 | 0.6703 | 0.7359 | 0.9203 | 0.9715 | 0.1066 | 0.7843 | 0.8978 | 0.9042 | 0.4902 | 0.9968 | 0.9436 | 0.1051 | 0.7418 | 0.5885 | 0.8501 | 0.4688 | 0.9944 | 0.9207 |
75
+ | 0.099 | 1.71 | 140 | 0.1711 | 0.7070 | 0.7671 | 0.9390 | 0.9642 | 0.0155 | 0.9068 | 0.7598 | 0.9466 | 0.7778 | 0.9993 | 0.9354 | 0.0154 | 0.8536 | 0.6604 | 0.8601 | 0.6310 | 0.9929 | 0.9376 |
76
+ | 0.3454 | 1.95 | 160 | 0.1869 | 0.7123 | 0.7751 | 0.9355 | 0.9626 | 0.0939 | 0.8778 | 0.7857 | 0.9359 | 0.7710 | 0.9991 | 0.9242 | 0.0909 | 0.8308 | 0.6435 | 0.8586 | 0.6439 | 0.9942 | 0.9347 |
77
+ | 0.3765 | 2.2 | 180 | 0.2579 | 0.6727 | 0.7470 | 0.9147 | 0.9648 | 0.2392 | 0.8649 | 0.8125 | 0.8872 | 0.4622 | 0.9980 | 0.9172 | 0.2135 | 0.7302 | 0.5672 | 0.8387 | 0.4467 | 0.9955 | 0.9143 |
78
+ | 0.1494 | 2.44 | 200 | 0.1862 | 0.7462 | 0.8087 | 0.9383 | 0.9556 | 0.3380 | 0.9123 | 0.7169 | 0.9600 | 0.7786 | 0.9995 | 0.9175 | 0.3066 | 0.8442 | 0.6488 | 0.8645 | 0.6482 | 0.9933 | 0.9367 |
79
+ | 0.0858 | 2.68 | 220 | 0.2327 | 0.6835 | 0.7364 | 0.9258 | 0.9536 | 0.1393 | 0.8564 | 0.6946 | 0.9776 | 0.5357 | 0.9977 | 0.9356 | 0.1286 | 0.7870 | 0.5981 | 0.8339 | 0.5054 | 0.9957 | 0.9227 |
80
+ | 0.2183 | 2.93 | 240 | 0.2064 | 0.7037 | 0.7744 | 0.9265 | 0.9629 | 0.2369 | 0.8597 | 0.8812 | 0.8947 | 0.5870 | 0.9982 | 0.9361 | 0.2075 | 0.7745 | 0.6237 | 0.8487 | 0.5412 | 0.9945 | 0.9271 |
81
+ | 0.2847 | 3.17 | 260 | 0.1900 | 0.7415 | 0.8126 | 0.9384 | 0.9648 | 0.2936 | 0.9103 | 0.8383 | 0.9127 | 0.7703 | 0.9984 | 0.9267 | 0.2601 | 0.8488 | 0.6661 | 0.8642 | 0.6293 | 0.9949 | 0.9387 |
82
+ | 0.2017 | 3.41 | 280 | 0.2369 | 0.7389 | 0.8151 | 0.9295 | 0.9689 | 0.4884 | 0.7658 | 0.8639 | 0.9304 | 0.6888 | 0.9994 | 0.9394 | 0.3980 | 0.7384 | 0.6180 | 0.8706 | 0.6128 | 0.9950 | 0.9301 |
83
+ | 0.1149 | 3.66 | 300 | 0.2208 | 0.7379 | 0.7956 | 0.9378 | 0.9741 | 0.3777 | 0.8644 | 0.7810 | 0.9657 | 0.6090 | 0.9976 | 0.9322 | 0.3424 | 0.7988 | 0.6671 | 0.8745 | 0.5543 | 0.9959 | 0.9361 |
84
+ | 0.1486 | 3.9 | 320 | 0.2257 | 0.7054 | 0.7787 | 0.9250 | 0.9668 | 0.1478 | 0.9145 | 0.8363 | 0.8638 | 0.7222 | 0.9993 | 0.9197 | 0.1436 | 0.8302 | 0.6078 | 0.8190 | 0.6220 | 0.9953 | 0.9256 |
85
+ | 0.0889 | 4.15 | 340 | 0.1971 | 0.7383 | 0.7980 | 0.9385 | 0.9750 | 0.3057 | 0.9131 | 0.8671 | 0.9171 | 0.6115 | 0.9969 | 0.9276 | 0.2863 | 0.8502 | 0.6710 | 0.8657 | 0.5722 | 0.9953 | 0.9381 |
86
+ | 0.1308 | 4.39 | 360 | 0.1887 | 0.7507 | 0.8048 | 0.9416 | 0.9659 | 0.3097 | 0.9215 | 0.7523 | 0.9584 | 0.7273 | 0.9982 | 0.9270 | 0.2915 | 0.8567 | 0.6637 | 0.8669 | 0.6533 | 0.9961 | 0.9402 |
87
+ | 0.146 | 4.63 | 380 | 0.2034 | 0.7449 | 0.8091 | 0.9361 | 0.9645 | 0.3492 | 0.8155 | 0.8196 | 0.9473 | 0.7686 | 0.9992 | 0.9443 | 0.3206 | 0.7736 | 0.6454 | 0.8703 | 0.6646 | 0.9956 | 0.9360 |
88
+ | 0.098 | 4.88 | 400 | 0.1943 | 0.7430 | 0.8007 | 0.9397 | 0.9688 | 0.3657 | 0.9452 | 0.7744 | 0.9473 | 0.6057 | 0.9975 | 0.9370 | 0.3337 | 0.8237 | 0.6772 | 0.8678 | 0.5655 | 0.9961 | 0.9381 |
89
+ | 0.1064 | 5.12 | 420 | 0.1790 | 0.7668 | 0.8290 | 0.9447 | 0.9690 | 0.4338 | 0.9196 | 0.7875 | 0.9525 | 0.7420 | 0.9986 | 0.9347 | 0.3660 | 0.8587 | 0.6925 | 0.8725 | 0.6471 | 0.9961 | 0.9438 |
90
+ | 0.0831 | 5.37 | 440 | 0.2016 | 0.7515 | 0.8160 | 0.9405 | 0.9703 | 0.4310 | 0.9266 | 0.9177 | 0.9073 | 0.5613 | 0.9980 | 0.9476 | 0.3823 | 0.8391 | 0.6967 | 0.8666 | 0.5317 | 0.9962 | 0.9402 |
91
+ | 0.1538 | 5.61 | 460 | 0.1766 | 0.7492 | 0.8029 | 0.9444 | 0.9691 | 0.2995 | 0.9334 | 0.7742 | 0.9583 | 0.6873 | 0.9989 | 0.9317 | 0.2831 | 0.8541 | 0.6976 | 0.8755 | 0.6061 | 0.9962 | 0.9429 |
92
+ | 0.1216 | 5.85 | 480 | 0.2057 | 0.7548 | 0.8214 | 0.9399 | 0.9677 | 0.4431 | 0.9097 | 0.9057 | 0.9113 | 0.6144 | 0.9976 | 0.9484 | 0.3868 | 0.8327 | 0.6881 | 0.8652 | 0.5658 | 0.9962 | 0.9400 |
93
+ | 0.1182 | 6.1 | 500 | 0.2102 | 0.7609 | 0.8362 | 0.9377 | 0.9647 | 0.4711 | 0.9196 | 0.7165 | 0.9431 | 0.8401 | 0.9979 | 0.9257 | 0.4024 | 0.8495 | 0.6281 | 0.8602 | 0.6642 | 0.9965 | 0.9367 |
94
+
95
+
96
+ ### Framework versions
97
+
98
+ - Transformers 4.38.1
99
+ - Pytorch 2.1.2
100
+ - Datasets 2.18.0
101
+ - Tokenizers 0.15.2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "peldrak/segformer-b5-cityscapes-finetuned-coastTrain",
3
+ "architectures": [
4
+ "SegformerForSemanticSegmentation"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "classifier_dropout_prob": 0.1,
8
+ "decoder_hidden_size": 768,
9
+ "depths": [
10
+ 3,
11
+ 6,
12
+ 40,
13
+ 3
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": "water",
32
+ "1": "whitewater",
33
+ "2": "sediment",
34
+ "3": "other_natural_terrain",
35
+ "4": "vegetation",
36
+ "5": "development",
37
+ "6": "unknown"
38
+ },
39
+ "image_size": 224,
40
+ "initializer_range": 0.02,
41
+ "label2id": {
42
+ "development": 5,
43
+ "other_natural_terrain": 3,
44
+ "sediment": 2,
45
+ "unknown": 6,
46
+ "vegetation": 4,
47
+ "water": 0,
48
+ "whitewater": 1
49
+ },
50
+ "layer_norm_eps": 1e-06,
51
+ "mlp_ratios": [
52
+ 4,
53
+ 4,
54
+ 4,
55
+ 4
56
+ ],
57
+ "model_type": "segformer",
58
+ "num_attention_heads": [
59
+ 1,
60
+ 2,
61
+ 5,
62
+ 8
63
+ ],
64
+ "num_channels": 3,
65
+ "num_encoder_blocks": 4,
66
+ "patch_sizes": [
67
+ 7,
68
+ 3,
69
+ 3,
70
+ 3
71
+ ],
72
+ "reshape_last_stage": true,
73
+ "semantic_loss_ignore_index": 255,
74
+ "sr_ratios": [
75
+ 8,
76
+ 4,
77
+ 2,
78
+ 1
79
+ ],
80
+ "strides": [
81
+ 4,
82
+ 2,
83
+ 2,
84
+ 2
85
+ ],
86
+ "torch_dtype": "float32",
87
+ "transformers_version": "4.38.1"
88
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67d7606d6e22bfccf41d80704725c61ab8e4869e1c27771e22a778398f1b48eb
3
+ size 338543820
runs/Mar06_13-07-12_537a3af3d11f/events.out.tfevents.1709730436.537a3af3d11f.26.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36308ebca2b461ff43457965e4e4823755f6e13043d1e60665965e6ea29c6b17
3
+ size 144254
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57b9d17d75bce60271c2fa7b2b67021196c06369077409098b88d03065247b6a
3
+ size 5048