Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: microsoft/beit-base-patch16-224
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: BEiT-RHS-DA
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: imagefolder
|
| 18 |
+
type: imagefolder
|
| 19 |
+
config: default
|
| 20 |
+
split: validation
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.5887850467289719
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 29 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 30 |
+
|
| 31 |
+
# BEiT-RHS-DA
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224](https://huggingface.co/microsoft/beit-base-patch16-224) on the imagefolder dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 3.6741
|
| 36 |
+
- Accuracy: 0.5888
|
| 37 |
+
|
| 38 |
+
## Model description
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Intended uses & limitations
|
| 43 |
+
|
| 44 |
+
More information needed
|
| 45 |
+
|
| 46 |
+
## Training and evaluation data
|
| 47 |
+
|
| 48 |
+
More information needed
|
| 49 |
+
|
| 50 |
+
## Training procedure
|
| 51 |
+
|
| 52 |
+
### Training hyperparameters
|
| 53 |
+
|
| 54 |
+
The following hyperparameters were used during training:
|
| 55 |
+
- learning_rate: 5e-05
|
| 56 |
+
- train_batch_size: 16
|
| 57 |
+
- eval_batch_size: 16
|
| 58 |
+
- seed: 42
|
| 59 |
+
- gradient_accumulation_steps: 4
|
| 60 |
+
- total_train_batch_size: 64
|
| 61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
+
- lr_scheduler_type: linear
|
| 63 |
+
- lr_scheduler_warmup_ratio: 0.05
|
| 64 |
+
- num_epochs: 40
|
| 65 |
+
|
| 66 |
+
### Training results
|
| 67 |
+
|
| 68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
+
| 1.2357 | 0.98 | 22 | 0.7114 | 0.5888 |
|
| 71 |
+
| 0.6596 | 2.0 | 45 | 0.7059 | 0.5981 |
|
| 72 |
+
| 0.206 | 2.98 | 67 | 1.1449 | 0.5981 |
|
| 73 |
+
| 0.1664 | 4.0 | 90 | 2.2062 | 0.3925 |
|
| 74 |
+
| 0.1011 | 4.98 | 112 | 2.0409 | 0.4673 |
|
| 75 |
+
| 0.0653 | 6.0 | 135 | 1.3038 | 0.6262 |
|
| 76 |
+
| 0.2843 | 6.98 | 157 | 1.7210 | 0.5981 |
|
| 77 |
+
| 0.059 | 8.0 | 180 | 2.8706 | 0.4673 |
|
| 78 |
+
| 0.1318 | 8.98 | 202 | 2.4519 | 0.5888 |
|
| 79 |
+
| 0.0501 | 10.0 | 225 | 2.2037 | 0.5888 |
|
| 80 |
+
| 0.054 | 10.98 | 247 | 2.6467 | 0.5888 |
|
| 81 |
+
| 0.0263 | 12.0 | 270 | 2.4033 | 0.5981 |
|
| 82 |
+
| 0.0553 | 12.98 | 292 | 1.6589 | 0.5888 |
|
| 83 |
+
| 0.0898 | 14.0 | 315 | 1.7657 | 0.5981 |
|
| 84 |
+
| 0.0324 | 14.98 | 337 | 2.8266 | 0.5888 |
|
| 85 |
+
| 0.0322 | 16.0 | 360 | 1.7194 | 0.6355 |
|
| 86 |
+
| 0.03 | 16.98 | 382 | 2.0352 | 0.6168 |
|
| 87 |
+
| 0.0392 | 18.0 | 405 | 2.4130 | 0.6168 |
|
| 88 |
+
| 0.0428 | 18.98 | 427 | 2.0628 | 0.6075 |
|
| 89 |
+
| 0.0127 | 20.0 | 450 | 2.7431 | 0.5888 |
|
| 90 |
+
| 0.0187 | 20.98 | 472 | 2.7009 | 0.5981 |
|
| 91 |
+
| 0.0469 | 22.0 | 495 | 2.5783 | 0.5981 |
|
| 92 |
+
| 0.0095 | 22.98 | 517 | 2.3040 | 0.5981 |
|
| 93 |
+
| 0.0025 | 24.0 | 540 | 2.5218 | 0.6168 |
|
| 94 |
+
| 0.0281 | 24.98 | 562 | 3.2310 | 0.5981 |
|
| 95 |
+
| 0.0004 | 26.0 | 585 | 3.2731 | 0.5981 |
|
| 96 |
+
| 0.0109 | 26.98 | 607 | 2.4809 | 0.6262 |
|
| 97 |
+
| 0.0191 | 28.0 | 630 | 2.7825 | 0.5888 |
|
| 98 |
+
| 0.0005 | 28.98 | 652 | 3.5280 | 0.5888 |
|
| 99 |
+
| 0.0093 | 30.0 | 675 | 2.8290 | 0.6075 |
|
| 100 |
+
| 0.0224 | 30.98 | 697 | 2.9546 | 0.5794 |
|
| 101 |
+
| 0.0011 | 32.0 | 720 | 3.0148 | 0.6075 |
|
| 102 |
+
| 0.003 | 32.98 | 742 | 3.2916 | 0.5981 |
|
| 103 |
+
| 0.0003 | 34.0 | 765 | 3.2930 | 0.5981 |
|
| 104 |
+
| 0.0003 | 34.98 | 787 | 3.6287 | 0.5888 |
|
| 105 |
+
| 0.0002 | 36.0 | 810 | 3.6918 | 0.5888 |
|
| 106 |
+
| 0.0004 | 36.98 | 832 | 3.6597 | 0.5888 |
|
| 107 |
+
| 0.0003 | 38.0 | 855 | 3.6599 | 0.5888 |
|
| 108 |
+
| 0.0002 | 38.98 | 877 | 3.6740 | 0.5888 |
|
| 109 |
+
| 0.0002 | 39.11 | 880 | 3.6741 | 0.5888 |
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
### Framework versions
|
| 113 |
+
|
| 114 |
+
- Transformers 4.36.2
|
| 115 |
+
- Pytorch 2.1.2+cu118
|
| 116 |
+
- Datasets 2.16.1
|
| 117 |
+
- Tokenizers 0.15.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343080328
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e556640220ff302440a8255657d723534ea1397e7b67f5e698793aabeb12b99a
|
| 3 |
size 343080328
|
runs/Dec03_21-55-45_DESKTOP-SKBE9FB/events.out.tfevents.1733284547.DESKTOP-SKBE9FB.22524.0
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:fc135475c8b5a5924e8687195115c321b21613969bb3154ed2e458421ed2535c
|
| 3 |
+
size 32200
|