DazMashaly commited on
Commit
cd72db8
1 Parent(s): ff20c7d

DazMashaly/swin-finetuned-food101

Browse files
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_cont
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_cont
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.4766
20
+ - eval_accuracy: 0.7545
21
+ - eval_runtime: 236.8539
22
+ - eval_samples_per_second: 16.352
23
+ - eval_steps_per_second: 0.515
24
+ - epoch: 2.0
25
+ - step: 347
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:b3fe32e8263df4af16d2e8a9d77f15d0965199ea8c1327f27540b18ca67bdd05
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_14-01-18_2ba83b92b5c6/events.out.tfevents.1705154479.2ba83b92b5c6.5020.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1d87fd4749abe97ce803a11eda3a11edc0f8841403171fe2930760512b200ba
3
+ size 10936
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:303733be6ceda5a8bc193474c4d058624b265a0020923805e515b98ec9166c8c
3
+ size 4283