Upload 4 files
Browse files- config.json +68 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- training_args.json +1 -0
config.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/swinv2-base-patch4-window12-192-22k",
|
3 |
+
"architectures": [
|
4 |
+
"Swinv2ForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"depths": [
|
8 |
+
2,
|
9 |
+
2,
|
10 |
+
18,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.1,
|
14 |
+
"embed_dim": 128,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 1024,
|
19 |
+
"id2label": {
|
20 |
+
"0": "\u4e91",
|
21 |
+
"1": "\u9634\u5f71",
|
22 |
+
"2": "\u62c9\u82b1",
|
23 |
+
"3": "\u6a21\u7cca",
|
24 |
+
"4": "\u5149\u8c31\u6ea2\u51fa",
|
25 |
+
"5": "\u626d\u66f2",
|
26 |
+
"6": "\u62fc\u63a5\u75d5\u8ff9",
|
27 |
+
"7": "\u62fc\u63a5\u9519\u8bef",
|
28 |
+
"8": "\u6761\u72b6\u566a\u58f0"
|
29 |
+
},
|
30 |
+
"image_size": 192,
|
31 |
+
"initializer_range": 0.02,
|
32 |
+
"label2id": {
|
33 |
+
"\u4e91": 0,
|
34 |
+
"\u5149\u8c31\u6ea2\u51fa": 4,
|
35 |
+
"\u626d\u66f2": 5,
|
36 |
+
"\u62c9\u82b1": 2,
|
37 |
+
"\u62fc\u63a5\u75d5\u8ff9": 6,
|
38 |
+
"\u62fc\u63a5\u9519\u8bef": 7,
|
39 |
+
"\u6761\u72b6\u566a\u58f0": 8,
|
40 |
+
"\u6a21\u7cca": 3,
|
41 |
+
"\u9634\u5f71": 1
|
42 |
+
},
|
43 |
+
"layer_norm_eps": 1e-05,
|
44 |
+
"mlp_ratio": 4.0,
|
45 |
+
"model_type": "swinv2",
|
46 |
+
"num_channels": 3,
|
47 |
+
"num_heads": [
|
48 |
+
4,
|
49 |
+
8,
|
50 |
+
16,
|
51 |
+
32
|
52 |
+
],
|
53 |
+
"num_layers": 4,
|
54 |
+
"patch_size": 4,
|
55 |
+
"path_norm": true,
|
56 |
+
"pretrained_window_sizes": [
|
57 |
+
0,
|
58 |
+
0,
|
59 |
+
0,
|
60 |
+
0
|
61 |
+
],
|
62 |
+
"problem_type": "multi_label_classification",
|
63 |
+
"qkv_bias": true,
|
64 |
+
"torch_dtype": "float32",
|
65 |
+
"transformers_version": "4.28.1",
|
66 |
+
"use_absolute_embeddings": false,
|
67 |
+
"window_size": 12
|
68 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.485,
|
7 |
+
0.456,
|
8 |
+
0.406
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.229,
|
13 |
+
0.224,
|
14 |
+
0.225
|
15 |
+
],
|
16 |
+
"resample": 3,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 192,
|
20 |
+
"width": 192
|
21 |
+
}
|
22 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc8b77bf1839ac388e8ae113d589368f63b05d105a1865c6a7d49efcc7586a45
|
3 |
+
size 347780785
|
training_args.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"output_dir": "../Trainer_output/SwinModels/swin_all_label_10epoch_new", "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": 32, "per_device_eval_batch_size": 8, "per_gpu_train_batch_size": null, "per_gpu_eval_batch_size": null, "gradient_accumulation_steps": 1, "eval_accumulation_steps": null, "eval_delay": 0, "learning_rate": 0.0001, "weight_decay": 0.0, "adam_beta1": 0.9, "adam_beta2": 0.999, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "num_train_epochs": 10, "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/SwinModels/swin_all_label_10epoch_new\\runs\\Jun12_21-41-55_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": false, "fp16_opt_level": "O1", "half_precision_backend": "auto", "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": true, "eval_steps": 1, "dataloader_num_workers": 0, "past_index": -1, "run_name": "../Trainer_output/SwinModels/swin_all_label_10epoch_new", "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}
|