Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: microsoft/swin-tiny-patch4-window7-224
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: surface_grade-swin-tiny-patch4-window7-224-finetuned-v1
|
| 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: test
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.4094082588335462
|
| 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 |
+
# surface_grade-swin-tiny-patch4-window7-224-finetuned-v1
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the imagefolder dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 1.4768
|
| 36 |
+
- Accuracy: 0.4094
|
| 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: 32
|
| 57 |
+
- eval_batch_size: 32
|
| 58 |
+
- seed: 42
|
| 59 |
+
- gradient_accumulation_steps: 4
|
| 60 |
+
- total_train_batch_size: 128
|
| 61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
+
- lr_scheduler_type: linear
|
| 63 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
+
- num_epochs: 30
|
| 65 |
+
|
| 66 |
+
### Training results
|
| 67 |
+
|
| 68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
| 70 |
+
| 1.6612 | 1.0 | 734 | 1.6258 | 0.2908 |
|
| 71 |
+
| 1.6119 | 2.0 | 1468 | 1.5665 | 0.3149 |
|
| 72 |
+
| 1.5692 | 3.0 | 2202 | 1.5426 | 0.3301 |
|
| 73 |
+
| 1.5691 | 4.0 | 2936 | 1.4929 | 0.3599 |
|
| 74 |
+
| 1.5401 | 5.0 | 3670 | 1.4630 | 0.3702 |
|
| 75 |
+
| 1.5245 | 6.0 | 4404 | 1.4586 | 0.3728 |
|
| 76 |
+
| 1.5342 | 7.0 | 5138 | 1.4018 | 0.4008 |
|
| 77 |
+
| 1.5268 | 8.0 | 5872 | 1.3966 | 0.4040 |
|
| 78 |
+
| 1.4918 | 9.0 | 6606 | 1.4097 | 0.3960 |
|
| 79 |
+
| 1.4447 | 10.0 | 7340 | 1.3942 | 0.3997 |
|
| 80 |
+
| 1.468 | 11.0 | 8074 | 1.3802 | 0.4164 |
|
| 81 |
+
| 1.4379 | 12.0 | 8808 | 1.3927 | 0.4091 |
|
| 82 |
+
| 1.4152 | 13.0 | 9542 | 1.3916 | 0.4091 |
|
| 83 |
+
| 1.3845 | 14.0 | 10276 | 1.3901 | 0.4063 |
|
| 84 |
+
| 1.3659 | 15.0 | 11010 | 1.3846 | 0.4121 |
|
| 85 |
+
| 1.3429 | 16.0 | 11744 | 1.4010 | 0.4099 |
|
| 86 |
+
| 1.3534 | 17.0 | 12478 | 1.3968 | 0.4115 |
|
| 87 |
+
| 1.3026 | 18.0 | 13212 | 1.4060 | 0.4106 |
|
| 88 |
+
| 1.2955 | 19.0 | 13946 | 1.4469 | 0.4008 |
|
| 89 |
+
| 1.2849 | 20.0 | 14680 | 1.4081 | 0.4136 |
|
| 90 |
+
| 1.2331 | 21.0 | 15414 | 1.4188 | 0.4089 |
|
| 91 |
+
| 1.2313 | 22.0 | 16148 | 1.4256 | 0.4101 |
|
| 92 |
+
| 1.2 | 23.0 | 16882 | 1.4414 | 0.4100 |
|
| 93 |
+
| 1.2271 | 24.0 | 17616 | 1.4540 | 0.4088 |
|
| 94 |
+
| 1.2142 | 25.0 | 18350 | 1.4528 | 0.4064 |
|
| 95 |
+
| 1.1986 | 26.0 | 19084 | 1.4566 | 0.4090 |
|
| 96 |
+
| 1.134 | 27.0 | 19818 | 1.4648 | 0.4104 |
|
| 97 |
+
| 1.1756 | 28.0 | 20552 | 1.4700 | 0.4089 |
|
| 98 |
+
| 1.1415 | 29.0 | 21286 | 1.4791 | 0.4082 |
|
| 99 |
+
| 1.1411 | 30.0 | 22020 | 1.4768 | 0.4094 |
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
### Framework versions
|
| 103 |
+
|
| 104 |
+
- Transformers 4.37.2
|
| 105 |
+
- Pytorch 2.0.1+cu117
|
| 106 |
+
- Datasets 2.17.0
|
| 107 |
+
- Tokenizers 0.15.2
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 110364364
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2815d4d03ba5cab521cb5cabda93d19294cf13452b10cb75293c0d4c3612fee
|
| 3 |
size 110364364
|
runs/Feb16_18-00-39_e2e-83-148/events.out.tfevents.1708086668.e2e-83-148.1556269.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:107255fbd95fe653ddd997b83890208ce945e943d3509e2b09f6857cd6cc580d
|
| 3 |
+
size 362645
|