AdityasArsenal commited on
Commit
47cfde9
·
verified ·
1 Parent(s): 7d53dc9

Model save

Browse files
Files changed (4) hide show
  1. README.md +75 -0
  2. config.json +38 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: finetuned-for-YogaPosesv6
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
+ # finetuned-for-YogaPosesv6
18
+
19
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0565
22
+ - Accuracy: 0.9907
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 0.0002
42
+ - train_batch_size: 16
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - lr_scheduler_warmup_steps: 500
48
+ - num_epochs: 12
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|
55
+ | 0.9954 | 0.8772 | 100 | 0.8301 | 0.8505 |
56
+ | 0.3505 | 1.7544 | 200 | 0.1881 | 0.9907 |
57
+ | 0.1524 | 2.6316 | 300 | 0.0901 | 0.9844 |
58
+ | 0.152 | 3.5088 | 400 | 0.1241 | 0.9688 |
59
+ | 0.1314 | 4.3860 | 500 | 0.0562 | 0.9938 |
60
+ | 0.1187 | 5.2632 | 600 | 0.1232 | 0.9720 |
61
+ | 0.0936 | 6.1404 | 700 | 0.0893 | 0.9688 |
62
+ | 0.0753 | 7.0175 | 800 | 0.1510 | 0.9626 |
63
+ | 0.0155 | 7.8947 | 900 | 0.0536 | 0.9907 |
64
+ | 0.0181 | 8.7719 | 1000 | 0.0515 | 0.9907 |
65
+ | 0.0037 | 9.6491 | 1100 | 0.0570 | 0.9907 |
66
+ | 0.0121 | 10.5263 | 1200 | 0.0570 | 0.9907 |
67
+ | 0.0065 | 11.4035 | 1300 | 0.0565 | 0.9907 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.46.3
73
+ - Pytorch 2.5.1+cu121
74
+ - Datasets 3.1.0
75
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "Downdog",
13
+ "1": "Goddess",
14
+ "2": "Plank",
15
+ "3": "Tree",
16
+ "4": "Warrior2"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "Downdog": "0",
23
+ "Goddess": "1",
24
+ "Plank": "2",
25
+ "Tree": "3",
26
+ "Warrior2": "4"
27
+ },
28
+ "layer_norm_eps": 1e-12,
29
+ "model_type": "vit",
30
+ "num_attention_heads": 12,
31
+ "num_channels": 3,
32
+ "num_hidden_layers": 12,
33
+ "patch_size": 16,
34
+ "problem_type": "single_label_classification",
35
+ "qkv_bias": true,
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.46.3"
38
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3840a11db7103f69d47a7f437d89a421cb67e9bc195166858e9c3f614a4fbf5a
3
+ size 343233204
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abe7f1e54b90ceadd95d0dda297897f013cfdcd420e96d7216c4c86e42a416c9
3
+ size 5240