gjseh115 commited on
Commit
cd5b9f4
·
verified ·
1 Parent(s): f66e3ef
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - dog
7
+ - food
8
+ - ViT
9
+ - generated_from_trainer
10
+ model-index:
11
+ - name: ViT_dog_food
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # ViT_dog_food
19
+
20
+ 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 dog_food dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.6250
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: 2e-05
42
+ - train_batch_size: 64
43
+ - eval_batch_size: 64
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.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
+ - num_epochs: 8
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss |
52
+ |:-------------:|:-----:|:----:|:---------------:|
53
+ | No log | 1.0 | 36 | 0.6250 |
54
+ | No log | 2.0 | 72 | 0.2477 |
55
+ | No log | 3.0 | 108 | 0.1574 |
56
+ | No log | 4.0 | 144 | 0.1282 |
57
+ | No log | 5.0 | 180 | 0.1140 |
58
+ | No log | 6.0 | 216 | 0.1067 |
59
+ | No log | 7.0 | 252 | 0.1027 |
60
+ | No log | 8.0 | 288 | 0.1014 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.50.3
66
+ - Pytorch 2.6.0+cu124
67
+ - Datasets 3.5.0
68
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "LABEL_0",
12
+ "1": "LABEL_1",
13
+ "2": "LABEL_2",
14
+ "3": "LABEL_3",
15
+ "4": "LABEL_4"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "LABEL_0": 0,
22
+ "LABEL_1": 1,
23
+ "LABEL_2": 2,
24
+ "LABEL_3": 3,
25
+ "LABEL_4": 4
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 12,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 12,
32
+ "patch_size": 16,
33
+ "pooler_act": "tanh",
34
+ "pooler_output_size": 768,
35
+ "problem_type": "single_label_classification",
36
+ "qkv_bias": true,
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.50.3"
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27cd9cf7e5af77cefb8d2c427d5298490227bc8871a7deb919c64955618790ee
3
+ size 343233204
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTFeatureExtractor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
runs/Apr10_02-47-20_77dd5cf8cf86/events.out.tfevents.1744253365.77dd5cf8cf86.287.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2975a8896d4fcff6ec7900e1f0fa0a447dfd0d8d23d5541ff98018c0360dba47
3
+ size 5192
runs/Apr10_02-47-20_77dd5cf8cf86/events.out.tfevents.1744253450.77dd5cf8cf86.287.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e95df9f8739dadb3e7eca94dcbb21fd138be6a87855e7c39f30edc137e2b4b59
3
+ size 5192
runs/Apr10_02-52-10_77dd5cf8cf86/events.out.tfevents.1744253539.77dd5cf8cf86.287.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dce8741b90d02cc78385caaf621f376d639fc8d7603601ce83cf34f4955b6e93
3
+ size 7699
runs/Apr10_02-52-10_77dd5cf8cf86/events.out.tfevents.1744254468.77dd5cf8cf86.287.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abfbea7611e938d919a1fca2ddedbf559e4e26b2f7dee2811178314f98c85f9a
3
+ size 359
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c796af8fe21eca5d473b6a8857df1d8291a952984f85d31fa40798e4d738f41
3
+ size 5368