Model save
Browse files- README.md +109 -0
- config.json +120 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: other
|
| 4 |
+
base_model: nvidia/segformer-b2-finetuned-cityscapes-1024-1024
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: SegFormer_b2_mappillary_
|
| 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_b2_mappillary_
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [nvidia/segformer-b2-finetuned-cityscapes-1024-1024](https://huggingface.co/nvidia/segformer-b2-finetuned-cityscapes-1024-1024) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- epoch: 7.1111
|
| 20 |
+
- eval_accuracy_construction--barrier--fence: 0.6884
|
| 21 |
+
- eval_accuracy_construction--barrier--guard-rail: 0.8285
|
| 22 |
+
- eval_accuracy_construction--barrier--other-barrier: 0.6796
|
| 23 |
+
- eval_accuracy_construction--barrier--wall: 0.6617
|
| 24 |
+
- eval_accuracy_construction--flat--road: 0.9450
|
| 25 |
+
- eval_accuracy_construction--flat--service-lane: 0.6045
|
| 26 |
+
- eval_accuracy_construction--flat--sidewalk: 0.9036
|
| 27 |
+
- eval_accuracy_construction--structure--building: 0.9448
|
| 28 |
+
- eval_accuracy_human--person: 0.8152
|
| 29 |
+
- eval_accuracy_human--rider--bicyclist: 0.7298
|
| 30 |
+
- eval_accuracy_marking--crosswalk-zebra: 0.8040
|
| 31 |
+
- eval_accuracy_marking--general: 0.6630
|
| 32 |
+
- eval_accuracy_nature--sky: 0.9894
|
| 33 |
+
- eval_accuracy_nature--terrain: 0.7920
|
| 34 |
+
- eval_accuracy_nature--vegetation: 0.9467
|
| 35 |
+
- eval_accuracy_object--support--pole: 0.5267
|
| 36 |
+
- eval_accuracy_object--support--traffic-sign-frame: 0.6493
|
| 37 |
+
- eval_accuracy_object--traffic-light: 0.7177
|
| 38 |
+
- eval_accuracy_object--traffic-sign--front: 0.7995
|
| 39 |
+
- eval_accuracy_object--vehicle--bicycle: 0.7409
|
| 40 |
+
- eval_accuracy_object--vehicle--bus: 0.8505
|
| 41 |
+
- eval_accuracy_object--vehicle--car: 0.9596
|
| 42 |
+
- eval_accuracy_object--vehicle--truck: 0.7913
|
| 43 |
+
- eval_iou_construction--barrier--fence: 0.5326
|
| 44 |
+
- eval_iou_construction--barrier--guard-rail: 0.6142
|
| 45 |
+
- eval_iou_construction--barrier--other-barrier: 0.5604
|
| 46 |
+
- eval_iou_construction--barrier--wall: 0.5195
|
| 47 |
+
- eval_iou_construction--flat--road: 0.9074
|
| 48 |
+
- eval_iou_construction--flat--service-lane: 0.4444
|
| 49 |
+
- eval_iou_construction--flat--sidewalk: 0.7564
|
| 50 |
+
- eval_iou_construction--structure--building: 0.8785
|
| 51 |
+
- eval_iou_human--person: 0.6633
|
| 52 |
+
- eval_iou_human--rider--bicyclist: 0.5386
|
| 53 |
+
- eval_iou_marking--crosswalk-zebra: 0.6628
|
| 54 |
+
- eval_iou_marking--general: 0.5555
|
| 55 |
+
- eval_iou_nature--sky: 0.9801
|
| 56 |
+
- eval_iou_nature--terrain: 0.6805
|
| 57 |
+
- eval_iou_nature--vegetation: 0.8897
|
| 58 |
+
- eval_iou_object--support--pole: 0.4260
|
| 59 |
+
- eval_iou_object--support--traffic-sign-frame: 0.5314
|
| 60 |
+
- eval_iou_object--traffic-light: 0.5586
|
| 61 |
+
- eval_iou_object--traffic-sign--front: 0.6967
|
| 62 |
+
- eval_iou_object--vehicle--bicycle: 0.5583
|
| 63 |
+
- eval_iou_object--vehicle--bus: 0.7226
|
| 64 |
+
- eval_iou_object--vehicle--car: 0.8913
|
| 65 |
+
- eval_iou_object--vehicle--truck: 0.6813
|
| 66 |
+
- eval_loss: 0.9738
|
| 67 |
+
- eval_mean_accuracy: 0.7840
|
| 68 |
+
- eval_mean_iou: 0.6630
|
| 69 |
+
- eval_overall_accuracy: 0.9356
|
| 70 |
+
- eval_runtime: 1231.0899
|
| 71 |
+
- eval_samples_per_second: 1.625
|
| 72 |
+
- eval_steps_per_second: 0.812
|
| 73 |
+
- step: 16000
|
| 74 |
+
|
| 75 |
+
## Model description
|
| 76 |
+
|
| 77 |
+
More information needed
|
| 78 |
+
|
| 79 |
+
## Intended uses & limitations
|
| 80 |
+
|
| 81 |
+
More information needed
|
| 82 |
+
|
| 83 |
+
## Training and evaluation data
|
| 84 |
+
|
| 85 |
+
More information needed
|
| 86 |
+
|
| 87 |
+
## Training procedure
|
| 88 |
+
|
| 89 |
+
### Training hyperparameters
|
| 90 |
+
|
| 91 |
+
The following hyperparameters were used during training:
|
| 92 |
+
- learning_rate: 5e-05
|
| 93 |
+
- train_batch_size: 2
|
| 94 |
+
- eval_batch_size: 2
|
| 95 |
+
- seed: 42
|
| 96 |
+
- gradient_accumulation_steps: 4
|
| 97 |
+
- total_train_batch_size: 8
|
| 98 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 99 |
+
- lr_scheduler_type: linear
|
| 100 |
+
- lr_scheduler_warmup_steps: 1000
|
| 101 |
+
- num_epochs: 30
|
| 102 |
+
- mixed_precision_training: Native AMP
|
| 103 |
+
|
| 104 |
+
### Framework versions
|
| 105 |
+
|
| 106 |
+
- Transformers 4.48.1
|
| 107 |
+
- Pytorch 2.1.2+cu121
|
| 108 |
+
- Datasets 3.2.0
|
| 109 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "nvidia/segformer-b2-finetuned-cityscapes-1024-1024",
|
| 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 |
+
4,
|
| 12 |
+
6,
|
| 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": "construction--barrier--fence",
|
| 32 |
+
"1": "construction--barrier--guard-rail",
|
| 33 |
+
"2": "construction--barrier--other-barrier",
|
| 34 |
+
"3": "construction--barrier--wall",
|
| 35 |
+
"4": "construction--flat--road",
|
| 36 |
+
"5": "construction--flat--service-lane",
|
| 37 |
+
"6": "construction--flat--sidewalk",
|
| 38 |
+
"7": "construction--structure--building",
|
| 39 |
+
"8": "human--person",
|
| 40 |
+
"9": "human--rider--bicyclist",
|
| 41 |
+
"10": "marking--crosswalk-zebra",
|
| 42 |
+
"11": "marking--general",
|
| 43 |
+
"12": "nature--sky",
|
| 44 |
+
"13": "nature--terrain",
|
| 45 |
+
"14": "nature--vegetation",
|
| 46 |
+
"15": "object--support--pole",
|
| 47 |
+
"16": "object--support--traffic-sign-frame",
|
| 48 |
+
"17": "object--traffic-light",
|
| 49 |
+
"18": "object--traffic-sign--front",
|
| 50 |
+
"19": "object--vehicle--bicycle",
|
| 51 |
+
"20": "object--vehicle--bus",
|
| 52 |
+
"21": "object--vehicle--car",
|
| 53 |
+
"22": "object--vehicle--truck"
|
| 54 |
+
},
|
| 55 |
+
"image_size": 224,
|
| 56 |
+
"initializer_range": 0.02,
|
| 57 |
+
"label2id": {
|
| 58 |
+
"construction--barrier--fence": 0,
|
| 59 |
+
"construction--barrier--guard-rail": 1,
|
| 60 |
+
"construction--barrier--other-barrier": 2,
|
| 61 |
+
"construction--barrier--wall": 3,
|
| 62 |
+
"construction--flat--road": 4,
|
| 63 |
+
"construction--flat--service-lane": 5,
|
| 64 |
+
"construction--flat--sidewalk": 6,
|
| 65 |
+
"construction--structure--building": 7,
|
| 66 |
+
"human--person": 8,
|
| 67 |
+
"human--rider--bicyclist": 9,
|
| 68 |
+
"marking--crosswalk-zebra": 10,
|
| 69 |
+
"marking--general": 11,
|
| 70 |
+
"nature--sky": 12,
|
| 71 |
+
"nature--terrain": 13,
|
| 72 |
+
"nature--vegetation": 14,
|
| 73 |
+
"object--support--pole": 15,
|
| 74 |
+
"object--support--traffic-sign-frame": 16,
|
| 75 |
+
"object--traffic-light": 17,
|
| 76 |
+
"object--traffic-sign--front": 18,
|
| 77 |
+
"object--vehicle--bicycle": 19,
|
| 78 |
+
"object--vehicle--bus": 20,
|
| 79 |
+
"object--vehicle--car": 21,
|
| 80 |
+
"object--vehicle--truck": 22
|
| 81 |
+
},
|
| 82 |
+
"layer_norm_eps": 1e-06,
|
| 83 |
+
"mlp_ratios": [
|
| 84 |
+
4,
|
| 85 |
+
4,
|
| 86 |
+
4,
|
| 87 |
+
4
|
| 88 |
+
],
|
| 89 |
+
"model_type": "segformer",
|
| 90 |
+
"num_attention_heads": [
|
| 91 |
+
1,
|
| 92 |
+
2,
|
| 93 |
+
5,
|
| 94 |
+
8
|
| 95 |
+
],
|
| 96 |
+
"num_channels": 3,
|
| 97 |
+
"num_encoder_blocks": 4,
|
| 98 |
+
"patch_sizes": [
|
| 99 |
+
7,
|
| 100 |
+
3,
|
| 101 |
+
3,
|
| 102 |
+
3
|
| 103 |
+
],
|
| 104 |
+
"reshape_last_stage": true,
|
| 105 |
+
"semantic_loss_ignore_index": 255,
|
| 106 |
+
"sr_ratios": [
|
| 107 |
+
8,
|
| 108 |
+
4,
|
| 109 |
+
2,
|
| 110 |
+
1
|
| 111 |
+
],
|
| 112 |
+
"strides": [
|
| 113 |
+
4,
|
| 114 |
+
2,
|
| 115 |
+
2,
|
| 116 |
+
2
|
| 117 |
+
],
|
| 118 |
+
"torch_dtype": "float32",
|
| 119 |
+
"transformers_version": "4.48.1"
|
| 120 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:399300fce5cbb47bc266d6fcd0b10bcab0bb47337e133da55134d6f7801fd036
|
| 3 |
+
size 109508620
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6813266116a7b2c970f3ff782eac8f17ad32c8559590d1e8ada1857849dba22b
|
| 3 |
+
size 5368
|