Image Classification
Transformers
Safetensors
beit
knowledge_distillation
vision
Generated from Trainer
Instructions to use c14kevincardenas/beit-base-patch16-224_alpha0.7_temp5.0_t3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use c14kevincardenas/beit-base-patch16-224_alpha0.7_temp5.0_t3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="c14kevincardenas/beit-base-patch16-224_alpha0.7_temp5.0_t3") 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("c14kevincardenas/beit-base-patch16-224_alpha0.7_temp5.0_t3") model = AutoModelForImageClassification.from_pretrained("c14kevincardenas/beit-base-patch16-224_alpha0.7_temp5.0_t3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +79 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
metrics:
|
| 6 |
+
- accuracy
|
| 7 |
+
model-index:
|
| 8 |
+
- name: beit-base-patch16-224_alpha0.7_temp5.0_t3
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# beit-base-patch16-224_alpha0.7_temp5.0_t3
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.7440
|
| 20 |
+
- Accuracy: 0.8037
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
More information needed
|
| 25 |
+
|
| 26 |
+
## Intended uses & limitations
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Training and evaluation data
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Training procedure
|
| 35 |
+
|
| 36 |
+
### Training hyperparameters
|
| 37 |
+
|
| 38 |
+
The following hyperparameters were used during training:
|
| 39 |
+
- learning_rate: 5e-05
|
| 40 |
+
- train_batch_size: 32
|
| 41 |
+
- eval_batch_size: 32
|
| 42 |
+
- seed: 42
|
| 43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 44 |
+
- lr_scheduler_type: linear
|
| 45 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 46 |
+
- num_epochs: 20
|
| 47 |
+
|
| 48 |
+
### Training results
|
| 49 |
+
|
| 50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 51 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 52 |
+
| 0.5663 | 1.0 | 164 | 1.4230 | 0.2549 |
|
| 53 |
+
| 0.5186 | 2.0 | 328 | 1.2953 | 0.4024 |
|
| 54 |
+
| 0.3841 | 3.0 | 492 | 0.8618 | 0.7289 |
|
| 55 |
+
| 0.3209 | 4.0 | 656 | 0.8259 | 0.7505 |
|
| 56 |
+
| 0.2829 | 5.0 | 820 | 0.7344 | 0.8037 |
|
| 57 |
+
| 0.2556 | 6.0 | 984 | 0.7868 | 0.7939 |
|
| 58 |
+
| 0.2507 | 7.0 | 1148 | 0.7231 | 0.8080 |
|
| 59 |
+
| 0.2438 | 8.0 | 1312 | 0.7640 | 0.7842 |
|
| 60 |
+
| 0.2438 | 9.0 | 1476 | 0.7505 | 0.8048 |
|
| 61 |
+
| 0.2297 | 10.0 | 1640 | 0.7407 | 0.8178 |
|
| 62 |
+
| 0.227 | 11.0 | 1804 | 0.7734 | 0.7993 |
|
| 63 |
+
| 0.2303 | 12.0 | 1968 | 0.7463 | 0.7950 |
|
| 64 |
+
| 0.2221 | 13.0 | 2132 | 0.7577 | 0.7928 |
|
| 65 |
+
| 0.2256 | 14.0 | 2296 | 0.7403 | 0.8124 |
|
| 66 |
+
| 0.2267 | 15.0 | 2460 | 0.7455 | 0.8059 |
|
| 67 |
+
| 0.2222 | 16.0 | 2624 | 0.7406 | 0.8069 |
|
| 68 |
+
| 0.2268 | 17.0 | 2788 | 0.7435 | 0.8102 |
|
| 69 |
+
| 0.2168 | 18.0 | 2952 | 0.7401 | 0.8059 |
|
| 70 |
+
| 0.2224 | 19.0 | 3116 | 0.7402 | 0.8048 |
|
| 71 |
+
| 0.217 | 20.0 | 3280 | 0.7440 | 0.8037 |
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
### Framework versions
|
| 75 |
+
|
| 76 |
+
- Transformers 4.45.2
|
| 77 |
+
- Pytorch 2.5.0+cu124
|
| 78 |
+
- Datasets 3.0.1
|
| 79 |
+
- Tokenizers 0.20.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 355948424
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63fbcad357f617a21aca83ed76edf7878c97a631f99b2d6afbd854f182cacc69
|
| 3 |
size 355948424
|