DazMashaly
commited on
Commit
•
ad7ef44
1
Parent(s):
93f8366
DazMashaly/swinv2
Browse files- README.md +62 -0
- config.json +60 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/Dec24_14-50-34_32f206771588/events.out.tfevents.1703429435.32f206771588.2559.0 +3 -0
- runs/Dec24_14-53-52_32f206771588/events.out.tfevents.1703429632.32f206771588.6192.0 +3 -0
- runs/Dec24_14-56-26_32f206771588/events.out.tfevents.1703429787.32f206771588.7069.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/swinv2-large-patch4-window12-192-22k
|
4 |
+
tags:
|
5 |
+
- image-classification
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
model-index:
|
10 |
+
- name: swinv2_zindi
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# swinv2_zindi
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [microsoft/swinv2-large-patch4-window12-192-22k](https://huggingface.co/microsoft/swinv2-large-patch4-window12-192-22k) on the zindi dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- eval_loss: 0.6328
|
22 |
+
- eval_accuracy: 0.7434
|
23 |
+
- eval_runtime: 234.8425
|
24 |
+
- eval_samples_per_second: 16.492
|
25 |
+
- eval_steps_per_second: 0.519
|
26 |
+
- epoch: 3.0
|
27 |
+
- step: 520
|
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: 5e-05
|
47 |
+
- train_batch_size: 32
|
48 |
+
- eval_batch_size: 32
|
49 |
+
- seed: 42
|
50 |
+
- gradient_accumulation_steps: 4
|
51 |
+
- total_train_batch_size: 128
|
52 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
53 |
+
- lr_scheduler_type: linear
|
54 |
+
- lr_scheduler_warmup_ratio: 0.1
|
55 |
+
- num_epochs: 5
|
56 |
+
|
57 |
+
### Framework versions
|
58 |
+
|
59 |
+
- Transformers 4.35.2
|
60 |
+
- Pytorch 2.1.0+cu121
|
61 |
+
- Datasets 2.16.0
|
62 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/swinv2-large-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": 192,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 1536,
|
19 |
+
"id2label": {
|
20 |
+
"0": "DR",
|
21 |
+
"1": "G",
|
22 |
+
"2": "ND",
|
23 |
+
"3": "WD",
|
24 |
+
"4": "other"
|
25 |
+
},
|
26 |
+
"image_size": 192,
|
27 |
+
"initializer_range": 0.02,
|
28 |
+
"label2id": {
|
29 |
+
"DR": "0",
|
30 |
+
"G": "1",
|
31 |
+
"ND": "2",
|
32 |
+
"WD": "3",
|
33 |
+
"other": "4"
|
34 |
+
},
|
35 |
+
"layer_norm_eps": 1e-05,
|
36 |
+
"mlp_ratio": 4.0,
|
37 |
+
"model_type": "swinv2",
|
38 |
+
"num_channels": 3,
|
39 |
+
"num_heads": [
|
40 |
+
6,
|
41 |
+
12,
|
42 |
+
24,
|
43 |
+
48
|
44 |
+
],
|
45 |
+
"num_layers": 4,
|
46 |
+
"patch_size": 4,
|
47 |
+
"path_norm": true,
|
48 |
+
"pretrained_window_sizes": [
|
49 |
+
0,
|
50 |
+
0,
|
51 |
+
0,
|
52 |
+
0
|
53 |
+
],
|
54 |
+
"problem_type": "single_label_classification",
|
55 |
+
"qkv_bias": true,
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.35.2",
|
58 |
+
"use_absolute_embeddings": false,
|
59 |
+
"window_size": 12
|
60 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:380c59b40b677549a32e38a93a3973a41b5a694555d9bd6eb27b9ed3bd7d4ede
|
3 |
+
size 780904732
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTFeatureExtractor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 192,
|
21 |
+
"width": 192
|
22 |
+
}
|
23 |
+
}
|
runs/Dec24_14-50-34_32f206771588/events.out.tfevents.1703429435.32f206771588.2559.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f03f34e6ae374d45be911c7cb072b9c684613001dd32aa2fcf8b9ca07eff69ab
|
3 |
+
size 4886
|
runs/Dec24_14-53-52_32f206771588/events.out.tfevents.1703429632.32f206771588.6192.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f70e28e467f8175d56ae4d10e3ca28e81f068b268a75b5e9c4e51c9434881347
|
3 |
+
size 4184
|
runs/Dec24_14-56-26_32f206771588/events.out.tfevents.1703429787.32f206771588.7069.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ff5ea2112e88916ec50926f6c81b54bbcf122b3af26d7108fd089c81dea58c1
|
3 |
+
size 13675
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29369c0a1a72ef678203b1023ae59e0b19043bfce8dd4a3f0d610f6976d7ba49
|
3 |
+
size 4600
|