Heem2 commited on
Commit
bc946d9
1 Parent(s): 8ac1e63

Upload 5 files

Browse files
Files changed (5) hide show
  1. README.md +64 -0
  2. config.json +98 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +22 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: Indian-sign-language-classification
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # Indian-sign-language-classification
17
+
18
+ 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.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0327
21
+ - Accuracy: 0.9905
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0003
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 2
45
+ - total_train_batch_size: 16
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_ratio: 0.01
49
+ - num_epochs: 2
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
+ | 0.2504 | 1.0 | 2137 | 0.0731 | 0.9800 |
56
+ | 0.0519 | 2.0 | 4274 | 0.0327 | 0.9905 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.38.2
62
+ - Pytorch 2.1.2
63
+ - Datasets 2.18.0
64
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "1",
13
+ "1": "2",
14
+ "10": "B",
15
+ "11": "C",
16
+ "12": "D",
17
+ "13": "E",
18
+ "14": "F",
19
+ "15": "G",
20
+ "16": "H",
21
+ "17": "I",
22
+ "18": "J",
23
+ "19": "K",
24
+ "2": "3",
25
+ "20": "L",
26
+ "21": "M",
27
+ "22": "N",
28
+ "23": "O",
29
+ "24": "P",
30
+ "25": "Q",
31
+ "26": "R",
32
+ "27": "S",
33
+ "28": "T",
34
+ "29": "U",
35
+ "3": "4",
36
+ "30": "V",
37
+ "31": "W",
38
+ "32": "X",
39
+ "33": "Y",
40
+ "34": "Z",
41
+ "4": "5",
42
+ "5": "6",
43
+ "6": "7",
44
+ "7": "8",
45
+ "8": "9",
46
+ "9": "A"
47
+ },
48
+ "image_size": 224,
49
+ "initializer_range": 0.02,
50
+ "intermediate_size": 3072,
51
+ "label2id": {
52
+ "1": "0",
53
+ "2": "1",
54
+ "3": "2",
55
+ "4": "3",
56
+ "5": "4",
57
+ "6": "5",
58
+ "7": "6",
59
+ "8": "7",
60
+ "9": "8",
61
+ "A": "9",
62
+ "B": "10",
63
+ "C": "11",
64
+ "D": "12",
65
+ "E": "13",
66
+ "F": "14",
67
+ "G": "15",
68
+ "H": "16",
69
+ "I": "17",
70
+ "J": "18",
71
+ "K": "19",
72
+ "L": "20",
73
+ "M": "21",
74
+ "N": "22",
75
+ "O": "23",
76
+ "P": "24",
77
+ "Q": "25",
78
+ "R": "26",
79
+ "S": "27",
80
+ "T": "28",
81
+ "U": "29",
82
+ "V": "30",
83
+ "W": "31",
84
+ "X": "32",
85
+ "Y": "33",
86
+ "Z": "34"
87
+ },
88
+ "layer_norm_eps": 1e-12,
89
+ "model_type": "vit",
90
+ "num_attention_heads": 12,
91
+ "num_channels": 3,
92
+ "num_hidden_layers": 12,
93
+ "patch_size": 16,
94
+ "problem_type": "single_label_classification",
95
+ "qkv_bias": true,
96
+ "torch_dtype": "float32",
97
+ "transformers_version": "4.38.2"
98
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:357f139251e1822337b734ea5a388fd7e15c9be0e836957d6885fb4be31f2c3a
3
+ size 343325492
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.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d4cc254bd417c2f17ce84f386c23c3d546e6baa5aa0d91d876d7d91588f5bdb
3
+ size 4920