Saad287 commited on
Commit
20477d1
·
verified ·
1 Parent(s): 833e982

End of training

Browse files
README.md CHANGED
@@ -1,199 +1,117 @@
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]
 
1
  ---
2
+ license: other
3
+ base_model: nvidia/mit-b0
4
+ tags:
5
+ - vision
6
+ - image-segmentation
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: segformerSAAD2
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
+ # segformerSAAD2
17
+
18
+ This model is a fine-tuned version of [nvidia/mit-b0](https://huggingface.co/nvidia/mit-b0) on the Saad287/SixGUN dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0658
21
+ - Mean Iou: 0.8885
22
+ - Mean Accuracy: 0.9302
23
+ - Overall Accuracy: 0.9934
24
+ - Accuracy Bkg: 0.9977
25
+ - Accuracy Knife: 0.8700
26
+ - Accuracy Gun: 0.9228
27
+ - Iou Bkg: 0.9940
28
+ - Iou Knife: 0.8345
29
+ - Iou Gun: 0.8370
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 6e-05
49
+ - train_batch_size: 23
50
+ - eval_batch_size: 23
51
+ - seed: 42
52
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
53
+ - lr_scheduler_type: linear
54
+ - num_epochs: 500
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Mean Iou | Mean Accuracy | Overall Accuracy | Accuracy Bkg | Accuracy Knife | Accuracy Gun | Iou Bkg | Iou Knife | Iou Gun |
59
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-------------:|:----------------:|:------------:|:--------------:|:------------:|:-------:|:---------:|:-------:|
60
+ | 0.9085 | 10.0 | 10 | 1.0050 | 0.5155 | 0.9279 | 0.9160 | 0.9152 | 0.9126 | 0.9559 | 0.9144 | 0.3135 | 0.3185 |
61
+ | 0.7013 | 20.0 | 20 | 0.8010 | 0.6030 | 0.8080 | 0.9590 | 0.9692 | 0.6715 | 0.7832 | 0.9590 | 0.4442 | 0.4060 |
62
+ | 0.5991 | 30.0 | 30 | 0.6384 | 0.6286 | 0.7939 | 0.9648 | 0.9765 | 0.6946 | 0.7107 | 0.9647 | 0.5156 | 0.4054 |
63
+ | 0.5105 | 40.0 | 40 | 0.5393 | 0.6328 | 0.8246 | 0.9632 | 0.9727 | 0.7618 | 0.7393 | 0.9631 | 0.5383 | 0.3970 |
64
+ | 0.4642 | 50.0 | 50 | 0.4625 | 0.6478 | 0.8186 | 0.9668 | 0.9769 | 0.7866 | 0.6922 | 0.9666 | 0.5662 | 0.4108 |
65
+ | 0.4301 | 60.0 | 60 | 0.4175 | 0.6580 | 0.8092 | 0.9696 | 0.9805 | 0.7819 | 0.6650 | 0.9693 | 0.5757 | 0.4291 |
66
+ | 0.3623 | 70.0 | 70 | 0.3713 | 0.7008 | 0.8249 | 0.9758 | 0.9861 | 0.7827 | 0.7061 | 0.9757 | 0.6257 | 0.5010 |
67
+ | 0.3356 | 80.0 | 80 | 0.3247 | 0.7648 | 0.8740 | 0.9825 | 0.9899 | 0.8066 | 0.8254 | 0.9827 | 0.6695 | 0.6422 |
68
+ | 0.2975 | 90.0 | 90 | 0.2862 | 0.7936 | 0.8754 | 0.9857 | 0.9932 | 0.8001 | 0.8330 | 0.9860 | 0.6986 | 0.6962 |
69
+ | 0.2722 | 100.0 | 100 | 0.2656 | 0.8099 | 0.8962 | 0.9869 | 0.9931 | 0.8202 | 0.8753 | 0.9873 | 0.7126 | 0.7296 |
70
+ | 0.2465 | 110.0 | 110 | 0.2377 | 0.8192 | 0.8904 | 0.9880 | 0.9946 | 0.8170 | 0.8597 | 0.9884 | 0.7251 | 0.7440 |
71
+ | 0.2221 | 120.0 | 120 | 0.2163 | 0.8311 | 0.9018 | 0.9889 | 0.9949 | 0.8265 | 0.8840 | 0.9895 | 0.7391 | 0.7648 |
72
+ | 0.2082 | 130.0 | 130 | 0.2007 | 0.8341 | 0.8971 | 0.9892 | 0.9955 | 0.8297 | 0.8662 | 0.9896 | 0.7500 | 0.7628 |
73
+ | 0.1974 | 140.0 | 140 | 0.1928 | 0.8462 | 0.9026 | 0.9901 | 0.9961 | 0.8390 | 0.8729 | 0.9906 | 0.7685 | 0.7795 |
74
+ | 0.1823 | 150.0 | 150 | 0.1720 | 0.8464 | 0.8974 | 0.9903 | 0.9966 | 0.8324 | 0.8632 | 0.9907 | 0.7710 | 0.7775 |
75
+ | 0.1743 | 160.0 | 160 | 0.1598 | 0.8533 | 0.9014 | 0.9908 | 0.9969 | 0.8307 | 0.8766 | 0.9913 | 0.7799 | 0.7888 |
76
+ | 0.1577 | 170.0 | 170 | 0.1560 | 0.8592 | 0.9150 | 0.9911 | 0.9963 | 0.8514 | 0.8973 | 0.9917 | 0.7892 | 0.7967 |
77
+ | 0.1468 | 180.0 | 180 | 0.1432 | 0.8632 | 0.9079 | 0.9915 | 0.9972 | 0.8406 | 0.8858 | 0.9920 | 0.7964 | 0.8012 |
78
+ | 0.1397 | 190.0 | 190 | 0.1323 | 0.8641 | 0.9128 | 0.9915 | 0.9969 | 0.8503 | 0.8911 | 0.9920 | 0.7993 | 0.8009 |
79
+ | 0.1305 | 200.0 | 200 | 0.1264 | 0.8659 | 0.9102 | 0.9917 | 0.9972 | 0.8468 | 0.8867 | 0.9922 | 0.8024 | 0.8032 |
80
+ | 0.1228 | 210.0 | 210 | 0.1209 | 0.8730 | 0.9188 | 0.9922 | 0.9972 | 0.8552 | 0.9038 | 0.9927 | 0.8119 | 0.8144 |
81
+ | 0.1179 | 220.0 | 220 | 0.1123 | 0.8730 | 0.9172 | 0.9922 | 0.9973 | 0.8527 | 0.9016 | 0.9928 | 0.8128 | 0.8133 |
82
+ | 0.1126 | 230.0 | 230 | 0.1078 | 0.8742 | 0.9203 | 0.9923 | 0.9972 | 0.8568 | 0.9069 | 0.9929 | 0.8148 | 0.8149 |
83
+ | 0.1066 | 240.0 | 240 | 0.1029 | 0.8758 | 0.9216 | 0.9924 | 0.9972 | 0.8587 | 0.9090 | 0.9930 | 0.8176 | 0.8169 |
84
+ | 0.1026 | 250.0 | 250 | 0.0978 | 0.8786 | 0.9224 | 0.9926 | 0.9974 | 0.8648 | 0.9050 | 0.9931 | 0.8230 | 0.8197 |
85
+ | 0.1012 | 260.0 | 260 | 0.0963 | 0.8797 | 0.9271 | 0.9927 | 0.9972 | 0.8659 | 0.9182 | 0.9933 | 0.8242 | 0.8217 |
86
+ | 0.0952 | 270.0 | 270 | 0.0926 | 0.8800 | 0.9229 | 0.9927 | 0.9975 | 0.8607 | 0.9104 | 0.9933 | 0.8250 | 0.8218 |
87
+ | 0.0938 | 280.0 | 280 | 0.0895 | 0.8819 | 0.9238 | 0.9929 | 0.9975 | 0.8649 | 0.9090 | 0.9934 | 0.8284 | 0.8237 |
88
+ | 0.0893 | 290.0 | 290 | 0.0860 | 0.8832 | 0.9260 | 0.9930 | 0.9975 | 0.8686 | 0.9120 | 0.9935 | 0.8301 | 0.8261 |
89
+ | 0.0868 | 300.0 | 300 | 0.0835 | 0.8831 | 0.9243 | 0.9930 | 0.9976 | 0.8646 | 0.9106 | 0.9935 | 0.8301 | 0.8257 |
90
+ | 0.0853 | 310.0 | 310 | 0.0820 | 0.8834 | 0.9257 | 0.9930 | 0.9975 | 0.8664 | 0.9132 | 0.9936 | 0.8307 | 0.8260 |
91
+ | 0.0817 | 320.0 | 320 | 0.0786 | 0.8867 | 0.9291 | 0.9932 | 0.9976 | 0.8707 | 0.9190 | 0.9938 | 0.8343 | 0.8319 |
92
+ | 0.0823 | 330.0 | 330 | 0.0785 | 0.8851 | 0.9261 | 0.9931 | 0.9977 | 0.8677 | 0.9129 | 0.9937 | 0.8326 | 0.8291 |
93
+ | 0.0858 | 340.0 | 340 | 0.0768 | 0.8860 | 0.9272 | 0.9932 | 0.9976 | 0.8680 | 0.9159 | 0.9938 | 0.8330 | 0.8312 |
94
+ | 0.078 | 350.0 | 350 | 0.0744 | 0.8853 | 0.9253 | 0.9931 | 0.9977 | 0.8648 | 0.9133 | 0.9937 | 0.8315 | 0.8308 |
95
+ | 0.0755 | 360.0 | 360 | 0.0739 | 0.8872 | 0.9290 | 0.9933 | 0.9976 | 0.8694 | 0.9201 | 0.9939 | 0.8337 | 0.8342 |
96
+ | 0.0752 | 370.0 | 370 | 0.0727 | 0.8880 | 0.9307 | 0.9933 | 0.9976 | 0.8721 | 0.9224 | 0.9939 | 0.8351 | 0.8349 |
97
+ | 0.0727 | 380.0 | 380 | 0.0719 | 0.8858 | 0.9269 | 0.9932 | 0.9977 | 0.8665 | 0.9166 | 0.9938 | 0.8318 | 0.8318 |
98
+ | 0.0725 | 390.0 | 390 | 0.0709 | 0.8873 | 0.9298 | 0.9933 | 0.9976 | 0.8705 | 0.9215 | 0.9939 | 0.8347 | 0.8333 |
99
+ | 0.0725 | 400.0 | 400 | 0.0695 | 0.8870 | 0.9283 | 0.9933 | 0.9977 | 0.8686 | 0.9188 | 0.9939 | 0.8331 | 0.8340 |
100
+ | 0.0718 | 410.0 | 410 | 0.0689 | 0.8890 | 0.9309 | 0.9934 | 0.9976 | 0.8706 | 0.9244 | 0.9940 | 0.8351 | 0.8378 |
101
+ | 0.0695 | 420.0 | 420 | 0.0679 | 0.8872 | 0.9284 | 0.9933 | 0.9977 | 0.8689 | 0.9186 | 0.9939 | 0.8335 | 0.8341 |
102
+ | 0.0707 | 430.0 | 430 | 0.0676 | 0.8881 | 0.9307 | 0.9933 | 0.9976 | 0.8686 | 0.9258 | 0.9940 | 0.8334 | 0.8370 |
103
+ | 0.0684 | 440.0 | 440 | 0.0668 | 0.8883 | 0.9298 | 0.9934 | 0.9977 | 0.8693 | 0.9225 | 0.9940 | 0.8339 | 0.8372 |
104
+ | 0.0692 | 450.0 | 450 | 0.0668 | 0.8887 | 0.9310 | 0.9934 | 0.9976 | 0.8708 | 0.9245 | 0.9940 | 0.8350 | 0.8372 |
105
+ | 0.0681 | 460.0 | 460 | 0.0661 | 0.8889 | 0.9296 | 0.9934 | 0.9977 | 0.8696 | 0.9216 | 0.9940 | 0.8344 | 0.8382 |
106
+ | 0.0688 | 470.0 | 470 | 0.0661 | 0.8888 | 0.9305 | 0.9934 | 0.9977 | 0.8708 | 0.9230 | 0.9940 | 0.8352 | 0.8372 |
107
+ | 0.0675 | 480.0 | 480 | 0.0659 | 0.8888 | 0.9307 | 0.9934 | 0.9976 | 0.8717 | 0.9228 | 0.9940 | 0.8353 | 0.8370 |
108
+ | 0.0679 | 490.0 | 490 | 0.0659 | 0.8886 | 0.9300 | 0.9934 | 0.9977 | 0.8708 | 0.9214 | 0.9940 | 0.8352 | 0.8367 |
109
+ | 0.0668 | 500.0 | 500 | 0.0658 | 0.8885 | 0.9302 | 0.9934 | 0.9977 | 0.8700 | 0.9228 | 0.9940 | 0.8345 | 0.8370 |
110
+
111
+
112
+ ### Framework versions
113
+
114
+ - Transformers 4.42.4
115
+ - Pytorch 2.3.1+cu121
116
+ - Datasets 2.21.0
117
+ - Tokenizers 0.19.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "BKG",
32
+ "1": "Knife",
33
+ "2": "Gun"
34
+ },
35
+ "image_size": 224,
36
+ "initializer_range": 0.02,
37
+ "label2id": {
38
+ "BKG": 0,
39
+ "Gun": 2,
40
+ "Knife": 1
41
+ },
42
+ "layer_norm_eps": 1e-06,
43
+ "mlp_ratios": [
44
+ 4,
45
+ 4,
46
+ 4,
47
+ 4
48
+ ],
49
+ "model_type": "segformer",
50
+ "num_attention_heads": [
51
+ 1,
52
+ 2,
53
+ 5,
54
+ 8
55
+ ],
56
+ "num_channels": 3,
57
+ "num_encoder_blocks": 4,
58
+ "patch_sizes": [
59
+ 7,
60
+ 3,
61
+ 3,
62
+ 3
63
+ ],
64
+ "reshape_last_stage": true,
65
+ "semantic_loss_ignore_index": 255,
66
+ "sr_ratios": [
67
+ 8,
68
+ 4,
69
+ 2,
70
+ 1
71
+ ],
72
+ "strides": [
73
+ 4,
74
+ 2,
75
+ 2,
76
+ 2
77
+ ],
78
+ "torch_dtype": "float32",
79
+ "transformers_version": "4.42.4"
80
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5659d7482290fcf4769ce43eff409ca900ab5b3b67cca43b76b94967ce052945
3
+ size 14885804
runs/Aug22_12-52-02_3c74641ca582/events.out.tfevents.1724331135.3c74641ca582.1059.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b59193097e62b91756e9fef4e436a92985f3f9e6f0300f524e1b7ce28ab4018e
3
+ size 148733
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b98729faf4a30fff9ea679de36e9c8884e7f0c756ad205b91d67d134e4b42b6a
3
+ size 5112