ahmed792002
commited on
Commit
•
88d29a3
1
Parent(s):
31fd499
End of training
Browse files- README.md +65 -0
- config.json +104 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: vit-plant-classification
|
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 |
+
# vit-plant-classification
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.0182
|
22 |
+
- Accuracy: 0.9933
|
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: 5e-05
|
42 |
+
- train_batch_size: 16
|
43 |
+
- eval_batch_size: 8
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 5
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 0.0529 | 1.0 | 476 | 0.0660 | 0.9816 |
|
54 |
+
| 0.0609 | 2.0 | 952 | 0.0229 | 0.9939 |
|
55 |
+
| 0.0012 | 3.0 | 1428 | 0.0205 | 0.9951 |
|
56 |
+
| 0.0007 | 4.0 | 1904 | 0.0126 | 0.9969 |
|
57 |
+
| 0.0006 | 5.0 | 2380 | 0.0122 | 0.9969 |
|
58 |
+
|
59 |
+
|
60 |
+
### Framework versions
|
61 |
+
|
62 |
+
- Transformers 4.45.1
|
63 |
+
- Pytorch 2.4.0
|
64 |
+
- Datasets 3.0.1
|
65 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
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": "LABEL_0",
|
13 |
+
"1": "LABEL_1",
|
14 |
+
"2": "LABEL_2",
|
15 |
+
"3": "LABEL_3",
|
16 |
+
"4": "LABEL_4",
|
17 |
+
"5": "LABEL_5",
|
18 |
+
"6": "LABEL_6",
|
19 |
+
"7": "LABEL_7",
|
20 |
+
"8": "LABEL_8",
|
21 |
+
"9": "LABEL_9",
|
22 |
+
"10": "LABEL_10",
|
23 |
+
"11": "LABEL_11",
|
24 |
+
"12": "LABEL_12",
|
25 |
+
"13": "LABEL_13",
|
26 |
+
"14": "LABEL_14",
|
27 |
+
"15": "LABEL_15",
|
28 |
+
"16": "LABEL_16",
|
29 |
+
"17": "LABEL_17",
|
30 |
+
"18": "LABEL_18",
|
31 |
+
"19": "LABEL_19",
|
32 |
+
"20": "LABEL_20",
|
33 |
+
"21": "LABEL_21",
|
34 |
+
"22": "LABEL_22",
|
35 |
+
"23": "LABEL_23",
|
36 |
+
"24": "LABEL_24",
|
37 |
+
"25": "LABEL_25",
|
38 |
+
"26": "LABEL_26",
|
39 |
+
"27": "LABEL_27",
|
40 |
+
"28": "LABEL_28",
|
41 |
+
"29": "LABEL_29",
|
42 |
+
"30": "LABEL_30",
|
43 |
+
"31": "LABEL_31",
|
44 |
+
"32": "LABEL_32",
|
45 |
+
"33": "LABEL_33",
|
46 |
+
"34": "LABEL_34",
|
47 |
+
"35": "LABEL_35",
|
48 |
+
"36": "LABEL_36",
|
49 |
+
"37": "LABEL_37"
|
50 |
+
},
|
51 |
+
"image_size": 224,
|
52 |
+
"initializer_range": 0.02,
|
53 |
+
"intermediate_size": 3072,
|
54 |
+
"label2id": {
|
55 |
+
"LABEL_0": 0,
|
56 |
+
"LABEL_1": 1,
|
57 |
+
"LABEL_10": 10,
|
58 |
+
"LABEL_11": 11,
|
59 |
+
"LABEL_12": 12,
|
60 |
+
"LABEL_13": 13,
|
61 |
+
"LABEL_14": 14,
|
62 |
+
"LABEL_15": 15,
|
63 |
+
"LABEL_16": 16,
|
64 |
+
"LABEL_17": 17,
|
65 |
+
"LABEL_18": 18,
|
66 |
+
"LABEL_19": 19,
|
67 |
+
"LABEL_2": 2,
|
68 |
+
"LABEL_20": 20,
|
69 |
+
"LABEL_21": 21,
|
70 |
+
"LABEL_22": 22,
|
71 |
+
"LABEL_23": 23,
|
72 |
+
"LABEL_24": 24,
|
73 |
+
"LABEL_25": 25,
|
74 |
+
"LABEL_26": 26,
|
75 |
+
"LABEL_27": 27,
|
76 |
+
"LABEL_28": 28,
|
77 |
+
"LABEL_29": 29,
|
78 |
+
"LABEL_3": 3,
|
79 |
+
"LABEL_30": 30,
|
80 |
+
"LABEL_31": 31,
|
81 |
+
"LABEL_32": 32,
|
82 |
+
"LABEL_33": 33,
|
83 |
+
"LABEL_34": 34,
|
84 |
+
"LABEL_35": 35,
|
85 |
+
"LABEL_36": 36,
|
86 |
+
"LABEL_37": 37,
|
87 |
+
"LABEL_4": 4,
|
88 |
+
"LABEL_5": 5,
|
89 |
+
"LABEL_6": 6,
|
90 |
+
"LABEL_7": 7,
|
91 |
+
"LABEL_8": 8,
|
92 |
+
"LABEL_9": 9
|
93 |
+
},
|
94 |
+
"layer_norm_eps": 1e-12,
|
95 |
+
"model_type": "vit",
|
96 |
+
"num_attention_heads": 12,
|
97 |
+
"num_channels": 3,
|
98 |
+
"num_hidden_layers": 12,
|
99 |
+
"patch_size": 16,
|
100 |
+
"problem_type": "single_label_classification",
|
101 |
+
"qkv_bias": true,
|
102 |
+
"torch_dtype": "float32",
|
103 |
+
"transformers_version": "4.45.1"
|
104 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88bee97b9d12c22351bb526a254ec1b205856734a9d3feb7ecdc3debd9e5d938
|
3 |
+
size 343334720
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a5cbaaf5deed424b6cc5df224b3de82f47cf7e1038b8cc5e18759d23a909f23
|
3 |
+
size 5176
|