PushkarA07
commited on
End of training
Browse files- README.md +105 -195
- config.json +78 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
CHANGED
@@ -1,199 +1,109 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
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 |
library_name: transformers
|
3 |
+
license: other
|
4 |
+
base_model: nvidia/mit-b0
|
5 |
+
tags:
|
6 |
+
- vision
|
7 |
+
- image-segmentation
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: segformer-b0-finetuned-batch2-30nov
|
11 |
+
results: []
|
12 |
---
|
13 |
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# segformer-b0-finetuned-batch2-30nov
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [nvidia/mit-b0](https://huggingface.co/nvidia/mit-b0) on the PushkarA07/batch2-tiles dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.0982
|
22 |
+
- Mean Iou: 0.6679
|
23 |
+
- Mean Accuracy: 0.7012
|
24 |
+
- Overall Accuracy: 0.9957
|
25 |
+
- Accuracy Abnormality: 0.4034
|
26 |
+
- Iou Abnormality: 0.3401
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 6e-05
|
46 |
+
- train_batch_size: 4
|
47 |
+
- eval_batch_size: 4
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 10
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Mean Iou | Mean Accuracy | Overall Accuracy | Accuracy Abnormality | Iou Abnormality |
|
56 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:-------------:|:----------------:|:--------------------:|:---------------:|
|
57 |
+
| 0.2072 | 0.2222 | 10 | 0.2852 | 0.5513 | 0.6876 | 0.9843 | 0.3876 | 0.1183 |
|
58 |
+
| 0.242 | 0.4444 | 20 | 0.2535 | 0.5557 | 0.6299 | 0.9896 | 0.2664 | 0.1220 |
|
59 |
+
| 0.236 | 0.6667 | 30 | 0.1934 | 0.5640 | 0.6093 | 0.9923 | 0.2220 | 0.1358 |
|
60 |
+
| 0.1698 | 0.8889 | 40 | 0.2124 | 0.5858 | 0.6090 | 0.9944 | 0.2193 | 0.1771 |
|
61 |
+
| 0.1569 | 1.1111 | 50 | 0.1508 | 0.5692 | 0.6331 | 0.9914 | 0.2709 | 0.1470 |
|
62 |
+
| 0.1436 | 1.3333 | 60 | 0.1279 | 0.5781 | 0.6111 | 0.9937 | 0.2243 | 0.1626 |
|
63 |
+
| 0.1626 | 1.5556 | 70 | 0.1646 | 0.5661 | 0.5729 | 0.9950 | 0.1461 | 0.1373 |
|
64 |
+
| 0.114 | 1.7778 | 80 | 0.1678 | 0.5670 | 0.5803 | 0.9946 | 0.1615 | 0.1395 |
|
65 |
+
| 0.1289 | 2.0 | 90 | 0.1249 | 0.5442 | 0.5515 | 0.9946 | 0.1037 | 0.0939 |
|
66 |
+
| 0.1467 | 2.2222 | 100 | 0.1260 | 0.5402 | 0.5541 | 0.9937 | 0.1097 | 0.0867 |
|
67 |
+
| 0.1887 | 2.4444 | 110 | 0.1186 | 0.5499 | 0.5646 | 0.9940 | 0.1305 | 0.1059 |
|
68 |
+
| 0.0918 | 2.6667 | 120 | 0.0961 | 0.5956 | 0.6220 | 0.9945 | 0.2453 | 0.1967 |
|
69 |
+
| 0.1173 | 2.8889 | 130 | 0.0911 | 0.6058 | 0.6578 | 0.9938 | 0.3182 | 0.2179 |
|
70 |
+
| 0.0988 | 3.1111 | 140 | 0.0960 | 0.6210 | 0.6534 | 0.9949 | 0.3081 | 0.2471 |
|
71 |
+
| 0.0753 | 3.3333 | 150 | 0.0937 | 0.6303 | 0.6841 | 0.9944 | 0.3704 | 0.2661 |
|
72 |
+
| 0.1008 | 3.5556 | 160 | 0.0940 | 0.6418 | 0.7015 | 0.9946 | 0.4052 | 0.2890 |
|
73 |
+
| 0.093 | 3.7778 | 170 | 0.0996 | 0.6523 | 0.6951 | 0.9952 | 0.3916 | 0.3094 |
|
74 |
+
| 0.0901 | 4.0 | 180 | 0.1068 | 0.6448 | 0.6702 | 0.9955 | 0.3412 | 0.2941 |
|
75 |
+
| 0.0913 | 4.2222 | 190 | 0.0860 | 0.6401 | 0.6591 | 0.9956 | 0.3188 | 0.2845 |
|
76 |
+
| 0.0715 | 4.4444 | 200 | 0.0726 | 0.6376 | 0.6588 | 0.9955 | 0.3183 | 0.2796 |
|
77 |
+
| 0.0585 | 4.6667 | 210 | 0.1030 | 0.6259 | 0.6418 | 0.9955 | 0.2843 | 0.2563 |
|
78 |
+
| 0.0875 | 4.8889 | 220 | 0.1419 | 0.6402 | 0.6581 | 0.9957 | 0.3168 | 0.2847 |
|
79 |
+
| 0.053 | 5.1111 | 230 | 0.0792 | 0.6224 | 0.6368 | 0.9955 | 0.2742 | 0.2492 |
|
80 |
+
| 0.0741 | 5.3333 | 240 | 0.1018 | 0.6277 | 0.6438 | 0.9955 | 0.2882 | 0.2599 |
|
81 |
+
| 0.0667 | 5.5556 | 250 | 0.1554 | 0.6427 | 0.6698 | 0.9955 | 0.3405 | 0.2900 |
|
82 |
+
| 0.0482 | 5.7778 | 260 | 0.1308 | 0.6366 | 0.6578 | 0.9955 | 0.3164 | 0.2777 |
|
83 |
+
| 0.0574 | 6.0 | 270 | 0.1338 | 0.6499 | 0.6763 | 0.9956 | 0.3535 | 0.3043 |
|
84 |
+
| 0.0575 | 6.2222 | 280 | 0.1473 | 0.6657 | 0.7068 | 0.9955 | 0.4149 | 0.3359 |
|
85 |
+
| 0.0556 | 6.4444 | 290 | 0.1115 | 0.6607 | 0.6935 | 0.9956 | 0.3879 | 0.3257 |
|
86 |
+
| 0.0535 | 6.6667 | 300 | 0.0924 | 0.6608 | 0.6930 | 0.9956 | 0.3870 | 0.3259 |
|
87 |
+
| 0.0474 | 6.8889 | 310 | 0.0916 | 0.6625 | 0.6989 | 0.9956 | 0.3989 | 0.3295 |
|
88 |
+
| 0.066 | 7.1111 | 320 | 0.1368 | 0.6720 | 0.7167 | 0.9956 | 0.4347 | 0.3484 |
|
89 |
+
| 0.0546 | 7.3333 | 330 | 0.1216 | 0.6676 | 0.7048 | 0.9956 | 0.4107 | 0.3395 |
|
90 |
+
| 0.0608 | 7.5556 | 340 | 0.1136 | 0.6653 | 0.6982 | 0.9957 | 0.3975 | 0.3349 |
|
91 |
+
| 0.0572 | 7.7778 | 350 | 0.1108 | 0.6678 | 0.7034 | 0.9957 | 0.4079 | 0.3400 |
|
92 |
+
| 0.0548 | 8.0 | 360 | 0.1140 | 0.6705 | 0.7105 | 0.9956 | 0.4223 | 0.3453 |
|
93 |
+
| 0.0495 | 8.2222 | 370 | 0.0903 | 0.6665 | 0.7059 | 0.9956 | 0.4131 | 0.3374 |
|
94 |
+
| 0.07 | 8.4444 | 380 | 0.1136 | 0.6712 | 0.7110 | 0.9957 | 0.4232 | 0.3468 |
|
95 |
+
| 0.0492 | 8.6667 | 390 | 0.1237 | 0.6692 | 0.7044 | 0.9957 | 0.4099 | 0.3427 |
|
96 |
+
| 0.0462 | 8.8889 | 400 | 0.1226 | 0.6739 | 0.7133 | 0.9957 | 0.4278 | 0.3522 |
|
97 |
+
| 0.0429 | 9.1111 | 410 | 0.0969 | 0.6652 | 0.6956 | 0.9958 | 0.3921 | 0.3347 |
|
98 |
+
| 0.0431 | 9.3333 | 420 | 0.0875 | 0.6634 | 0.6925 | 0.9958 | 0.3858 | 0.3311 |
|
99 |
+
| 0.0416 | 9.5556 | 430 | 0.0927 | 0.6640 | 0.6944 | 0.9957 | 0.3898 | 0.3323 |
|
100 |
+
| 0.0439 | 9.7778 | 440 | 0.0921 | 0.6660 | 0.6990 | 0.9957 | 0.3990 | 0.3362 |
|
101 |
+
| 0.0594 | 10.0 | 450 | 0.0982 | 0.6679 | 0.7012 | 0.9957 | 0.4034 | 0.3401 |
|
102 |
+
|
103 |
+
|
104 |
+
### Framework versions
|
105 |
+
|
106 |
+
- Transformers 4.46.2
|
107 |
+
- Pytorch 2.5.1+cu121
|
108 |
+
- Datasets 3.1.0
|
109 |
+
- Tokenizers 0.20.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "normal",
|
32 |
+
"1": "abnormality"
|
33 |
+
},
|
34 |
+
"image_size": 224,
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"label2id": {
|
37 |
+
"abnormality": 1,
|
38 |
+
"normal": 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.46.2"
|
78 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51ead2a352a674b640e622dc34a47bb0802627fbc2abbed1f2cf9bd73f03ee6b
|
3 |
+
size 14884776
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50e7fde872d38e4c3aed7ddf6fd6604a3360f12b9702322b517fdca7695e2845
|
3 |
+
size 5304
|