End of training
Browse files- README.md +89 -0
- config.json +78 -0
- model.safetensors +3 -0
- runs/May06_20-41-59_156e37e4aa66/events.out.tfevents.1715028135.156e37e4aa66.10032.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: segformer-b0-finetuned-segments-stamp-verification
|
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-b0-finetuned-segments-stamp-verification
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [nvidia/mit-b0](https://huggingface.co/nvidia/mit-b0) on the AliShah07/stamp-verification dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.0535
|
21 |
+
- Mean Iou: 0.1317
|
22 |
+
- Mean Accuracy: 0.2635
|
23 |
+
- Overall Accuracy: 0.2635
|
24 |
+
- Accuracy Unlabeled: nan
|
25 |
+
- Accuracy Stamp: 0.2635
|
26 |
+
- Iou Unlabeled: 0.0
|
27 |
+
- Iou Stamp: 0.2635
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 6e-05
|
47 |
+
- train_batch_size: 2
|
48 |
+
- eval_batch_size: 2
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 20
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Mean Iou | Mean Accuracy | Overall Accuracy | Accuracy Unlabeled | Accuracy Stamp | Iou Unlabeled | Iou Stamp |
|
57 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|:-------------:|:----------------:|:------------------:|:--------------:|:-------------:|:---------:|
|
58 |
+
| 0.6502 | 0.8333 | 20 | 0.6958 | 0.4685 | 0.9370 | 0.9370 | nan | 0.9370 | 0.0 | 0.9370 |
|
59 |
+
| 0.4529 | 1.6667 | 40 | 0.5458 | 0.0754 | 0.1508 | 0.1508 | nan | 0.1508 | 0.0 | 0.1508 |
|
60 |
+
| 0.3716 | 2.5 | 60 | 0.3818 | 0.0021 | 0.0041 | 0.0041 | nan | 0.0041 | 0.0 | 0.0041 |
|
61 |
+
| 0.3238 | 3.3333 | 80 | 0.2932 | 0.0126 | 0.0252 | 0.0252 | nan | 0.0252 | 0.0 | 0.0252 |
|
62 |
+
| 0.2167 | 4.1667 | 100 | 0.2326 | 0.0008 | 0.0015 | 0.0015 | nan | 0.0015 | 0.0 | 0.0015 |
|
63 |
+
| 0.1948 | 5.0 | 120 | 0.2029 | 0.0033 | 0.0065 | 0.0065 | nan | 0.0065 | 0.0 | 0.0065 |
|
64 |
+
| 0.1643 | 5.8333 | 140 | 0.1609 | 0.0 | 0.0 | 0.0 | nan | 0.0 | 0.0 | 0.0 |
|
65 |
+
| 0.1642 | 6.6667 | 160 | 0.1428 | 0.0 | 0.0 | 0.0 | nan | 0.0 | 0.0 | 0.0 |
|
66 |
+
| 0.1326 | 7.5 | 180 | 0.1222 | 0.0001 | 0.0002 | 0.0002 | nan | 0.0002 | 0.0 | 0.0002 |
|
67 |
+
| 0.1012 | 8.3333 | 200 | 0.0981 | 0.0 | 0.0 | 0.0 | nan | 0.0 | 0.0 | 0.0 |
|
68 |
+
| 0.0981 | 9.1667 | 220 | 0.0972 | 0.0058 | 0.0117 | 0.0117 | nan | 0.0117 | 0.0 | 0.0117 |
|
69 |
+
| 0.0838 | 10.0 | 240 | 0.0781 | 0.0015 | 0.0031 | 0.0031 | nan | 0.0031 | 0.0 | 0.0031 |
|
70 |
+
| 0.0771 | 10.8333 | 260 | 0.0708 | 0.0060 | 0.0120 | 0.0120 | nan | 0.0120 | 0.0 | 0.0120 |
|
71 |
+
| 0.0743 | 11.6667 | 280 | 0.0696 | 0.0298 | 0.0596 | 0.0596 | nan | 0.0596 | 0.0 | 0.0596 |
|
72 |
+
| 0.0655 | 12.5 | 300 | 0.0630 | 0.0398 | 0.0795 | 0.0795 | nan | 0.0795 | 0.0 | 0.0795 |
|
73 |
+
| 0.0673 | 13.3333 | 320 | 0.0613 | 0.0856 | 0.1712 | 0.1712 | nan | 0.1712 | 0.0 | 0.1712 |
|
74 |
+
| 0.0573 | 14.1667 | 340 | 0.0538 | 0.0725 | 0.1450 | 0.1450 | nan | 0.1450 | 0.0 | 0.1450 |
|
75 |
+
| 0.0623 | 15.0 | 360 | 0.0543 | 0.1008 | 0.2016 | 0.2016 | nan | 0.2016 | 0.0 | 0.2016 |
|
76 |
+
| 0.0557 | 15.8333 | 380 | 0.0559 | 0.1474 | 0.2947 | 0.2947 | nan | 0.2947 | 0.0 | 0.2947 |
|
77 |
+
| 0.0594 | 16.6667 | 400 | 0.0492 | 0.1019 | 0.2039 | 0.2039 | nan | 0.2039 | 0.0 | 0.2039 |
|
78 |
+
| 0.056 | 17.5 | 420 | 0.0479 | 0.1235 | 0.2470 | 0.2470 | nan | 0.2470 | 0.0 | 0.2470 |
|
79 |
+
| 0.0499 | 18.3333 | 440 | 0.0481 | 0.1124 | 0.2248 | 0.2248 | nan | 0.2248 | 0.0 | 0.2248 |
|
80 |
+
| 0.0516 | 19.1667 | 460 | 0.0477 | 0.1465 | 0.2930 | 0.2930 | nan | 0.2930 | 0.0 | 0.2930 |
|
81 |
+
| 0.0517 | 20.0 | 480 | 0.0535 | 0.1317 | 0.2635 | 0.2635 | nan | 0.2635 | 0.0 | 0.2635 |
|
82 |
+
|
83 |
+
|
84 |
+
### Framework versions
|
85 |
+
|
86 |
+
- Transformers 4.40.2
|
87 |
+
- Pytorch 2.2.1+cu121
|
88 |
+
- Datasets 2.19.1
|
89 |
+
- Tokenizers 0.19.1
|
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": "unlabeled",
|
32 |
+
"1": "stamp"
|
33 |
+
},
|
34 |
+
"image_size": 224,
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"label2id": {
|
37 |
+
"stamp": 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.40.2"
|
78 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e65d647045b3d4c757145c59ca645dd5a7d56df6aca2da8dec83e5c3a3f0c91
|
3 |
+
size 14884776
|
runs/May06_20-41-59_156e37e4aa66/events.out.tfevents.1715028135.156e37e4aa66.10032.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:157188332a850b5f131ae735b1b1cf467a956bdb79b773535dabfec33478974b
|
3 |
+
size 122422
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e19a49f5b76b6a927dbd9452d555572afffa349428d41a481d955696ce7441b
|
3 |
+
size 5112
|