Upload 4 files
Browse files- config.json +88 -0
- preprocessor_config.json +24 -0
- pytorch_model.bin +3 -0
- training_args.json +1 -0
config.json
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nvidia/segformer-b5-finetuned-ade-640-640",
|
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 |
+
6,
|
12 |
+
40,
|
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": "\u80cc\u666f",
|
32 |
+
"1": "\u4e91",
|
33 |
+
"2": "\u9634\u5f71",
|
34 |
+
"3": "\u62c9\u82b1",
|
35 |
+
"4": "\u6a21\u7cca",
|
36 |
+
"5": "\u5149\u8c31\u6ea2\u51fa",
|
37 |
+
"6": "\u626d\u66f2"
|
38 |
+
},
|
39 |
+
"image_size": 224,
|
40 |
+
"initializer_range": 0.02,
|
41 |
+
"label2id": {
|
42 |
+
"\u4e91": 1,
|
43 |
+
"\u5149\u8c31\u6ea2\u51fa": 5,
|
44 |
+
"\u626d\u66f2": 6,
|
45 |
+
"\u62c9\u82b1": 3,
|
46 |
+
"\u6a21\u7cca": 4,
|
47 |
+
"\u80cc\u666f": 0,
|
48 |
+
"\u9634\u5f71": 2
|
49 |
+
},
|
50 |
+
"layer_norm_eps": 1e-06,
|
51 |
+
"mlp_ratios": [
|
52 |
+
4,
|
53 |
+
4,
|
54 |
+
4,
|
55 |
+
4
|
56 |
+
],
|
57 |
+
"model_type": "segformer",
|
58 |
+
"num_attention_heads": [
|
59 |
+
1,
|
60 |
+
2,
|
61 |
+
5,
|
62 |
+
8
|
63 |
+
],
|
64 |
+
"num_channels": 3,
|
65 |
+
"num_encoder_blocks": 4,
|
66 |
+
"patch_sizes": [
|
67 |
+
7,
|
68 |
+
3,
|
69 |
+
3,
|
70 |
+
3
|
71 |
+
],
|
72 |
+
"reshape_last_stage": true,
|
73 |
+
"semantic_loss_ignore_index": 255,
|
74 |
+
"sr_ratios": [
|
75 |
+
8,
|
76 |
+
4,
|
77 |
+
2,
|
78 |
+
1
|
79 |
+
],
|
80 |
+
"strides": [
|
81 |
+
4,
|
82 |
+
2,
|
83 |
+
2,
|
84 |
+
2
|
85 |
+
],
|
86 |
+
"torch_dtype": "float32",
|
87 |
+
"transformers_version": "4.28.1"
|
88 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_reduce_labels": false,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"feature_extractor_type": "SegformerFeatureExtractor",
|
7 |
+
"image_mean": [
|
8 |
+
0.485,
|
9 |
+
0.456,
|
10 |
+
0.406
|
11 |
+
],
|
12 |
+
"image_processor_type": "SegformerImageProcessor",
|
13 |
+
"image_std": [
|
14 |
+
0.229,
|
15 |
+
0.224,
|
16 |
+
0.225
|
17 |
+
],
|
18 |
+
"resample": 2,
|
19 |
+
"rescale_factor": 0.00392156862745098,
|
20 |
+
"size": {
|
21 |
+
"height": 640,
|
22 |
+
"width": 640
|
23 |
+
}
|
24 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:41fbf0b05df3f1f843f9e0a59206a6814ff145e368a86aa4f92b0ec72803f5b3
|
3 |
+
size 338808777
|
training_args.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"output_dir": "../Trainer_output/SegformerModels/b5_5epoch_6label/", "overwrite_output_dir": false, "do_train": false, "do_eval": true, "do_predict": false, "evaluation_strategy": "epoch", "prediction_loss_only": false, "per_device_train_batch_size": 4, "per_device_eval_batch_size": 8, "per_gpu_train_batch_size": null, "per_gpu_eval_batch_size": null, "gradient_accumulation_steps": 4, "eval_accumulation_steps": null, "eval_delay": 0, "learning_rate": 0.0002, "weight_decay": 0.0, "adam_beta1": 0.9, "adam_beta2": 0.999, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "num_train_epochs": 5, "max_steps": -1, "lr_scheduler_type": "linear", "warmup_ratio": 0.1, "warmup_steps": 0, "log_level": "passive", "log_level_replica": "warning", "log_on_each_node": true, "logging_dir": "../Trainer_output/SegformerModels/b5_5epoch_6label/runs\\Jun12_10-52-16_LAPTOP-A8AQ07QR", "logging_strategy": "steps", "logging_first_step": false, "logging_steps": 10, "logging_nan_inf_filter": true, "save_strategy": "epoch", "save_steps": 1, "save_total_limit": 1, "save_safetensors": false, "save_on_each_node": false, "no_cuda": false, "use_mps_device": false, "seed": 42, "data_seed": null, "jit_mode_eval": false, "use_ipex": false, "bf16": false, "fp16": true, "fp16_opt_level": "O1", "half_precision_backend": "cuda_amp", "bf16_full_eval": false, "fp16_full_eval": false, "tf32": null, "local_rank": -1, "xpu_backend": null, "tpu_num_cores": null, "tpu_metrics_debug": false, "debug": [], "dataloader_drop_last": false, "eval_steps": 1, "dataloader_num_workers": 0, "past_index": -1, "run_name": "../Trainer_output/SegformerModels/b5_5epoch_6label/", "disable_tqdm": false, "remove_unused_columns": false, "label_names": null, "load_best_model_at_end": false, "metric_for_best_model": null, "greater_is_better": null, "ignore_data_skip": false, "sharded_ddp": [], "fsdp": [], "fsdp_min_num_params": 0, "fsdp_config": {"fsdp_min_num_params": 0, "xla": false, "xla_fsdp_grad_ckpt": false}, "fsdp_transformer_layer_cls_to_wrap": null, "deepspeed": null, "label_smoothing_factor": 0.0, "optim": "adamw_torch", "optim_args": null, "adafactor": false, "group_by_length": false, "length_column_name": "length", "report_to": [], "ddp_find_unused_parameters": null, "ddp_bucket_cap_mb": null, "dataloader_pin_memory": true, "skip_memory_metrics": true, "use_legacy_prediction_loop": false, "push_to_hub": false, "resume_from_checkpoint": null, "hub_model_id": null, "hub_strategy": "every_save", "hub_token": "<HUB_TOKEN>", "hub_private_repo": false, "gradient_checkpointing": false, "include_inputs_for_metrics": false, "fp16_backend": "auto", "push_to_hub_model_id": null, "push_to_hub_organization": null, "push_to_hub_token": "<PUSH_TO_HUB_TOKEN>", "mp_parameters": "", "auto_find_batch_size": true, "full_determinism": false, "torchdynamo": null, "ray_scope": "last", "ddp_timeout": 1800, "torch_compile": false, "torch_compile_backend": null, "torch_compile_mode": null}
|