heado
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 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 beans dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
-
- Loss: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -42,21 +42,24 @@ The following hyperparameters were used during training:
|
|
| 42 |
- train_batch_size: 64
|
| 43 |
- eval_batch_size: 64
|
| 44 |
- seed: 42
|
| 45 |
-
- optimizer:
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
-
- num_epochs:
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 53 |
-
| No log | 1.0 | 17 | 0.
|
| 54 |
-
| No log | 2.0 | 34 | 0.
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
### Framework versions
|
| 58 |
|
| 59 |
-
- Transformers 4.
|
| 60 |
-
- Pytorch 2.
|
| 61 |
-
- Datasets 3.
|
| 62 |
-
- Tokenizers 0.
|
|
|
|
| 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 beans dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.7528
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 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: 5
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 53 |
+
| No log | 1.0 | 17 | 0.7528 |
|
| 54 |
+
| No log | 2.0 | 34 | 0.5402 |
|
| 55 |
+
| No log | 3.0 | 51 | 0.4056 |
|
| 56 |
+
| No log | 4.0 | 68 | 0.3359 |
|
| 57 |
+
| No log | 5.0 | 85 | 0.3176 |
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
| 61 |
|
| 62 |
+
- Transformers 4.50.3
|
| 63 |
+
- Pytorch 2.6.0+cu124
|
| 64 |
+
- Datasets 3.5.0
|
| 65 |
+
- Tokenizers 0.21.1
|
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
| 3 |
"architectures": [
|
| 4 |
"ViTForImageClassification"
|
| 5 |
],
|
|
@@ -9,17 +8,17 @@
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
},
|
| 16 |
"image_size": 224,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 3072,
|
| 19 |
"label2id": {
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
},
|
| 24 |
"layer_norm_eps": 1e-12,
|
| 25 |
"model_type": "vit",
|
|
@@ -27,8 +26,10 @@
|
|
| 27 |
"num_channels": 3,
|
| 28 |
"num_hidden_layers": 12,
|
| 29 |
"patch_size": 16,
|
|
|
|
|
|
|
| 30 |
"problem_type": "single_label_classification",
|
| 31 |
"qkv_bias": true,
|
| 32 |
"torch_dtype": "float32",
|
| 33 |
-
"transformers_version": "4.
|
| 34 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"ViTForImageClassification"
|
| 4 |
],
|
|
|
|
| 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 |
},
|
| 15 |
"image_size": 224,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|
| 18 |
"label2id": {
|
| 19 |
+
"LABEL_0": 0,
|
| 20 |
+
"LABEL_1": 1,
|
| 21 |
+
"LABEL_2": 2
|
| 22 |
},
|
| 23 |
"layer_norm_eps": 1e-12,
|
| 24 |
"model_type": "vit",
|
|
|
|
| 26 |
"num_channels": 3,
|
| 27 |
"num_hidden_layers": 12,
|
| 28 |
"patch_size": 16,
|
| 29 |
+
"pooler_act": "tanh",
|
| 30 |
+
"pooler_output_size": 768,
|
| 31 |
"problem_type": "single_label_classification",
|
| 32 |
"qkv_bias": true,
|
| 33 |
"torch_dtype": "float32",
|
| 34 |
+
"transformers_version": "4.50.3"
|
| 35 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343227052
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10b590b5e8334750289331b64c89cf97b99281d78ce14c7d6f59d3fe811708c5
|
| 3 |
size 343227052
|
preprocessor_config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"do_normalize": true,
|
| 3 |
"do_rescale": true,
|
| 4 |
"do_resize": true,
|
|
|
|
| 1 |
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
"do_normalize": true,
|
| 4 |
"do_rescale": true,
|
| 5 |
"do_resize": true,
|
runs/Apr09_22-39-48_eeefc6bd4371/events.out.tfevents.1744238402.eeefc6bd4371.1050.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:130735764e1b327f9bcd479df5aafaac57cc8306ad64839726439e6c58218b83
|
| 3 |
+
size 6785
|
runs/Apr09_22-39-48_eeefc6bd4371/events.out.tfevents.1744238914.eeefc6bd4371.1050.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8bf5ab85052069461e64cda70575ad0b384d078a464fd5f5c39a217d6c8b8aca
|
| 3 |
+
size 620
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:832d1d04904ff9213481fd5eb9501d58fc0e76d07c535bfa9e3dc022df6a0728
|
| 3 |
+
size 5368
|