afraid15chicken commited on
Commit
ab5b9cd
1 Parent(s): ebbb946

Model save

Browse files
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ datasets:
8
+ - imagefolder
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: finetuned-arsenic
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: imagefolder
19
+ type: imagefolder
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.9986902423051736
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # finetuned-arsenic
33
+
34
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.0039
37
+ - Accuracy: 0.9987
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 0.0002
57
+ - train_batch_size: 16
58
+ - eval_batch_size: 8
59
+ - seed: 42
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 4
63
+ - mixed_precision_training: Native AMP
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
69
+ | 0.3535 | 0.1848 | 100 | 0.2896 | 0.8762 |
70
+ | 0.1869 | 0.3697 | 200 | 0.1380 | 0.9574 |
71
+ | 0.1594 | 0.5545 | 300 | 0.1052 | 0.9679 |
72
+ | 0.117 | 0.7394 | 400 | 0.0502 | 0.9836 |
73
+ | 0.0796 | 0.9242 | 500 | 0.0881 | 0.9673 |
74
+ | 0.0795 | 1.1091 | 600 | 0.0698 | 0.9751 |
75
+ | 0.0644 | 1.2939 | 700 | 0.0342 | 0.9895 |
76
+ | 0.054 | 1.4787 | 800 | 0.0344 | 0.9882 |
77
+ | 0.0776 | 1.6636 | 900 | 0.0292 | 0.9915 |
78
+ | 0.0143 | 1.8484 | 1000 | 0.0242 | 0.9928 |
79
+ | 0.0597 | 2.0333 | 1100 | 0.0132 | 0.9954 |
80
+ | 0.0285 | 2.2181 | 1200 | 0.0263 | 0.9928 |
81
+ | 0.0349 | 2.4030 | 1300 | 0.0070 | 0.9980 |
82
+ | 0.0164 | 2.5878 | 1400 | 0.0067 | 0.9987 |
83
+ | 0.0058 | 2.7726 | 1500 | 0.0119 | 0.9954 |
84
+ | 0.0013 | 2.9575 | 1600 | 0.0066 | 0.9987 |
85
+ | 0.0028 | 3.1423 | 1700 | 0.0052 | 0.9987 |
86
+ | 0.0028 | 3.3272 | 1800 | 0.0052 | 0.9987 |
87
+ | 0.0244 | 3.5120 | 1900 | 0.0264 | 0.9928 |
88
+ | 0.002 | 3.6969 | 2000 | 0.0025 | 0.9993 |
89
+ | 0.0054 | 3.8817 | 2100 | 0.0039 | 0.9987 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.44.2
95
+ - Pytorch 2.4.1+cu121
96
+ - Datasets 3.0.1
97
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "infacted",
13
+ "1": "not_infacted"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "infacted": "0",
20
+ "not_infacted": "1"
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.44.2"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c954c9ad97c06a56d6603b4d4f3d6932f6b8345420697a52937cb2830deda74
3
+ size 343223968
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": "ViTFeatureExtractor",
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
+ }
runs/Oct03_19-19-48_a15518d9a370/events.out.tfevents.1727983241.a15518d9a370.688.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e99b37b79a68e559c7d00a5b66e7bcf99a697a724d2415a68ab4cf674121d424
3
+ size 4906
runs/Oct03_19-44-26_a15518d9a370/events.out.tfevents.1727984686.a15518d9a370.688.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8deb265a69afd5c9b7695a6e5e235a846eb4e001f370f9c360653d660cd47cca
3
+ size 57565
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:269c8677ac2e795b13ac708b247ac03d19110b5152cb41b5799a7a21247efe1c
3
+ size 5176