Tianmu28 commited on
Commit
5b2f813
·
verified ·
1 Parent(s): 6804cbe

SegFormer-model-flood-images

Browse files
Files changed (5) hide show
  1. README.md +74 -0
  2. config.json +78 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +23 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ base_model: nvidia/segformer-b0-finetuned-ade-512-512
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: segformer-b0-segments-sidewalk-finetuned
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # segformer-b0-segments-sidewalk-finetuned
16
+
17
+ This model is a fine-tuned version of [nvidia/segformer-b0-finetuned-ade-512-512](https://huggingface.co/nvidia/segformer-b0-finetuned-ade-512-512) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2634
20
+ - Mean Iou: 0.4383
21
+ - Mean Accuracy: 0.8765
22
+ - Overall Accuracy: 0.8765
23
+ - Accuracy Background: nan
24
+ - Accuracy Target: 0.8765
25
+ - Iou Background: 0.0
26
+ - Iou Target: 0.8765
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: 5e-05
46
+ - train_batch_size: 8
47
+ - eval_batch_size: 8
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 Background | Accuracy Target | Iou Background | Iou Target |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-------------:|:----------------:|:-------------------:|:---------------:|:--------------:|:----------:|
57
+ | 0.4747 | 1.0 | 26 | 0.3768 | 0.4287 | 0.8573 | 0.8573 | nan | 0.8573 | 0.0 | 0.8573 |
58
+ | 0.3193 | 2.0 | 52 | 0.3138 | 0.4198 | 0.8395 | 0.8395 | nan | 0.8395 | 0.0 | 0.8395 |
59
+ | 0.2792 | 3.0 | 78 | 0.2899 | 0.4318 | 0.8636 | 0.8636 | nan | 0.8636 | 0.0 | 0.8636 |
60
+ | 0.2569 | 4.0 | 104 | 0.2723 | 0.4202 | 0.8405 | 0.8405 | nan | 0.8405 | 0.0 | 0.8405 |
61
+ | 0.2504 | 5.0 | 130 | 0.2634 | 0.4383 | 0.8765 | 0.8765 | nan | 0.8765 | 0.0 | 0.8765 |
62
+ | 0.2294 | 6.0 | 156 | 0.2572 | 0.4292 | 0.8584 | 0.8584 | nan | 0.8584 | 0.0 | 0.8584 |
63
+ | 0.2337 | 7.0 | 182 | 0.2567 | 0.4292 | 0.8584 | 0.8584 | nan | 0.8584 | 0.0 | 0.8584 |
64
+ | 0.2255 | 8.0 | 208 | 0.2546 | 0.4354 | 0.8707 | 0.8707 | nan | 0.8707 | 0.0 | 0.8707 |
65
+ | 0.2213 | 9.0 | 234 | 0.2557 | 0.4299 | 0.8597 | 0.8597 | nan | 0.8597 | 0.0 | 0.8597 |
66
+ | 0.2203 | 10.0 | 260 | 0.2552 | 0.4372 | 0.8744 | 0.8744 | nan | 0.8744 | 0.0 | 0.8744 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.46.3
72
+ - Pytorch 2.5.1+cu121
73
+ - Datasets 3.1.0
74
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nvidia/segformer-b0-finetuned-ade-512-512",
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": "background",
32
+ "1": "target"
33
+ },
34
+ "image_size": 224,
35
+ "initializer_range": 0.02,
36
+ "label2id": {
37
+ "background": 0,
38
+ "target": 1
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.3"
78
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56fd23b071113b79cc12b842fada33e5e9b6a1899c512f2cf8e67e1e01287f30
3
+ size 14884776
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_reduce_labels": false,
4
+ "do_rescale": false,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "SegformerImageProcessor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 512,
21
+ "width": 512
22
+ }
23
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5825a8e093ecc1c1c05ec75cbf1e8c142d7b188882986764f8a06830bc1120d
3
+ size 5304