DazMashaly
commited on
Commit
•
d60b468
1
Parent(s):
0b10574
DazMashaly/swin-finetuned-food101
Browse files- README.md +60 -0
- config.json +66 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/Jan13_07-55-59_2ba83b92b5c6/events.out.tfevents.1705132561.2ba83b92b5c6.42.0 +3 -0
- runs/Jan13_08-29-23_2ba83b92b5c6/events.out.tfevents.1705134564.2ba83b92b5c6.42.1 +3 -0
- runs/Jan13_11-35-27_2ba83b92b5c6/events.out.tfevents.1705145727.2ba83b92b5c6.42.2 +3 -0
- runs/Jan13_12-22-53_2ba83b92b5c6/events.out.tfevents.1705148574.2ba83b92b5c6.4147.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- image_folder
|
7 |
+
model-index:
|
8 |
+
- name: swin_larger
|
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 |
+
# swin_larger
|
16 |
+
|
17 |
+
This model was trained from scratch on the zindi dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- eval_loss: 0.2406
|
20 |
+
- eval_accuracy: 0.7614
|
21 |
+
- eval_runtime: 222.0281
|
22 |
+
- eval_samples_per_second: 17.444
|
23 |
+
- eval_steps_per_second: 0.549
|
24 |
+
- epoch: 1.0
|
25 |
+
- step: 173
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 5e-05
|
45 |
+
- train_batch_size: 32
|
46 |
+
- eval_batch_size: 32
|
47 |
+
- seed: 42
|
48 |
+
- gradient_accumulation_steps: 4
|
49 |
+
- total_train_batch_size: 128
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_ratio: 0.1
|
53 |
+
- num_epochs: 50
|
54 |
+
|
55 |
+
### Framework versions
|
56 |
+
|
57 |
+
- Transformers 4.36.0
|
58 |
+
- Pytorch 2.0.0
|
59 |
+
- Datasets 2.1.0
|
60 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/kaggle/working/bi-tempered-loss-pytorch/swin_larger/checkpoint-1041",
|
3 |
+
"architectures": [
|
4 |
+
"SwinForImageClassification"
|
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": 224,
|
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": "swin",
|
38 |
+
"num_channels": 3,
|
39 |
+
"num_heads": [
|
40 |
+
6,
|
41 |
+
12,
|
42 |
+
24,
|
43 |
+
48
|
44 |
+
],
|
45 |
+
"num_layers": 4,
|
46 |
+
"out_features": [
|
47 |
+
"stage4"
|
48 |
+
],
|
49 |
+
"out_indices": [
|
50 |
+
4
|
51 |
+
],
|
52 |
+
"patch_size": 4,
|
53 |
+
"path_norm": true,
|
54 |
+
"qkv_bias": true,
|
55 |
+
"stage_names": [
|
56 |
+
"stem",
|
57 |
+
"stage1",
|
58 |
+
"stage2",
|
59 |
+
"stage3",
|
60 |
+
"stage4"
|
61 |
+
],
|
62 |
+
"torch_dtype": "float32",
|
63 |
+
"transformers_version": "4.36.0",
|
64 |
+
"use_absolute_embeddings": false,
|
65 |
+
"window_size": 7
|
66 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c80dc8bc17ec55217de148f50a92ae382200c637454848cc8824196cfb39ffec
|
3 |
+
size 780530556
|
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": 224,
|
21 |
+
"width": 224
|
22 |
+
}
|
23 |
+
}
|
runs/Jan13_07-55-59_2ba83b92b5c6/events.out.tfevents.1705132561.2ba83b92b5c6.42.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4cd3a6aaa32132c35ad683f79593a4d35b971047f4d2070872916ebc5cd28f3
|
3 |
+
size 7927
|
runs/Jan13_08-29-23_2ba83b92b5c6/events.out.tfevents.1705134564.2ba83b92b5c6.42.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ea5789c244b65eec5ce6c465a367412c60913017a6a53da4971f080179cfd11
|
3 |
+
size 23044
|
runs/Jan13_11-35-27_2ba83b92b5c6/events.out.tfevents.1705145727.2ba83b92b5c6.42.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15a27fb99f8f927d7909376a0ccee8b4fdc4f2957305253d1031f710595d31f3
|
3 |
+
size 4184
|
runs/Jan13_12-22-53_2ba83b92b5c6/events.out.tfevents.1705148574.2ba83b92b5c6.4147.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39a3d6cf0a08e4194cc17bcd73d9fc4c7a560415ca285217948b1737347d37e6
|
3 |
+
size 7793
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84cf817ac61e732cfa03a559c0d85529e5507635f42300d3f0e433b0352401f2
|
3 |
+
size 4283
|