Image Classification
Transformers
TensorBoard
Safetensors
beit
Generated from Trainer
Eval Results (legacy)
Instructions to use hkivancoral/hushem_40x_beit_base_f3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkivancoral/hushem_40x_beit_base_f3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="hkivancoral/hushem_40x_beit_base_f3") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("hkivancoral/hushem_40x_beit_base_f3") model = AutoModelForImageClassification.from_pretrained("hkivancoral/hushem_40x_beit_base_f3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
89f1481
1
Parent(s): ce91900
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: microsoft/beit-base-patch16-224-pt22k-ft22k
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: hushem_40x_beit_base_f3
|
| 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.8837209302325582
|
| 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 |
+
# hushem_40x_beit_base_f3
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k) on the imagefolder dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.9422
|
| 36 |
+
- Accuracy: 0.8837
|
| 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.1
|
| 64 |
+
- num_epochs: 10
|
| 65 |
+
|
| 66 |
+
### Training results
|
| 67 |
+
|
| 68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
+
| 0.0594 | 1.0 | 108 | 0.4441 | 0.8372 |
|
| 71 |
+
| 0.0595 | 2.0 | 217 | 0.8725 | 0.8605 |
|
| 72 |
+
| 0.0173 | 3.0 | 325 | 0.5866 | 0.9070 |
|
| 73 |
+
| 0.0084 | 4.0 | 434 | 0.6360 | 0.8605 |
|
| 74 |
+
| 0.0005 | 5.0 | 542 | 0.6191 | 0.8837 |
|
| 75 |
+
| 0.0008 | 6.0 | 651 | 0.6635 | 0.9070 |
|
| 76 |
+
| 0.0008 | 7.0 | 759 | 0.8772 | 0.8837 |
|
| 77 |
+
| 0.0001 | 8.0 | 868 | 0.8012 | 0.9070 |
|
| 78 |
+
| 0.0 | 9.0 | 976 | 0.9139 | 0.8837 |
|
| 79 |
+
| 0.0001 | 9.95 | 1080 | 0.9422 | 0.8837 |
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### Framework versions
|
| 83 |
+
|
| 84 |
+
- Transformers 4.35.0
|
| 85 |
+
- Pytorch 2.1.0+cu118
|
| 86 |
+
- Datasets 2.14.6
|
| 87 |
+
- Tokenizers 0.14.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343086480
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa190f6900ff28375cee382541ec9f09e315a88abf147c8ce41b269b97f5cc60
|
| 3 |
size 343086480
|
runs/Nov04_11-31-35_a38cfb645be7/events.out.tfevents.1699097496.a38cfb645be7.1548.3
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:aae0ac9f5e69aacce9be5fa712675a49087264180625c8a11fdfcccf98f6418a
|
| 3 |
+
size 25411
|