Image Classification
Transformers
TensorBoard
Safetensors
beit
Generated from Trainer
Eval Results (legacy)
Instructions to use Kushagra07/beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kushagra07/beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Kushagra07/beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask") 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("Kushagra07/beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask") model = AutoModelForImageClassification.from_pretrained("Kushagra07/beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
- recall
|
| 11 |
+
- f1
|
| 12 |
+
- precision
|
| 13 |
+
model-index:
|
| 14 |
+
- name: beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask
|
| 15 |
+
results:
|
| 16 |
+
- task:
|
| 17 |
+
name: Image Classification
|
| 18 |
+
type: image-classification
|
| 19 |
+
dataset:
|
| 20 |
+
name: imagefolder
|
| 21 |
+
type: imagefolder
|
| 22 |
+
config: default
|
| 23 |
+
split: train
|
| 24 |
+
args: default
|
| 25 |
+
metrics:
|
| 26 |
+
- name: Accuracy
|
| 27 |
+
type: accuracy
|
| 28 |
+
value: 0.8450404427415922
|
| 29 |
+
- name: Recall
|
| 30 |
+
type: recall
|
| 31 |
+
value: 0.8450404427415922
|
| 32 |
+
- name: F1
|
| 33 |
+
type: f1
|
| 34 |
+
value: 0.8442233792705293
|
| 35 |
+
- name: Precision
|
| 36 |
+
type: precision
|
| 37 |
+
value: 0.8494143266059094
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 41 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 42 |
+
|
| 43 |
+
# beit-base-patch16-224-pt22k-ft22k-finetuned-ind-17-imbalanced-aadhaarmask
|
| 44 |
+
|
| 45 |
+
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.
|
| 46 |
+
It achieves the following results on the evaluation set:
|
| 47 |
+
- Loss: 0.3480
|
| 48 |
+
- Accuracy: 0.8450
|
| 49 |
+
- Recall: 0.8450
|
| 50 |
+
- F1: 0.8442
|
| 51 |
+
- Precision: 0.8494
|
| 52 |
+
|
| 53 |
+
## Model description
|
| 54 |
+
|
| 55 |
+
More information needed
|
| 56 |
+
|
| 57 |
+
## Intended uses & limitations
|
| 58 |
+
|
| 59 |
+
More information needed
|
| 60 |
+
|
| 61 |
+
## Training and evaluation data
|
| 62 |
+
|
| 63 |
+
More information needed
|
| 64 |
+
|
| 65 |
+
## Training procedure
|
| 66 |
+
|
| 67 |
+
### Training hyperparameters
|
| 68 |
+
|
| 69 |
+
The following hyperparameters were used during training:
|
| 70 |
+
- learning_rate: 5e-05
|
| 71 |
+
- train_batch_size: 8
|
| 72 |
+
- eval_batch_size: 8
|
| 73 |
+
- seed: 42
|
| 74 |
+
- gradient_accumulation_steps: 4
|
| 75 |
+
- total_train_batch_size: 32
|
| 76 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 77 |
+
- lr_scheduler_type: linear
|
| 78 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 79 |
+
- num_epochs: 10
|
| 80 |
+
|
| 81 |
+
### Training results
|
| 82 |
+
|
| 83 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Recall | F1 | Precision |
|
| 84 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
|
| 85 |
+
| 0.5859 | 0.9974 | 293 | 0.6117 | 0.8114 | 0.8114 | 0.7891 | 0.8139 |
|
| 86 |
+
| 0.5281 | 1.9983 | 587 | 0.4362 | 0.8442 | 0.8442 | 0.8375 | 0.8484 |
|
| 87 |
+
| 0.4214 | 2.9991 | 881 | 0.4228 | 0.8438 | 0.8438 | 0.8392 | 0.8529 |
|
| 88 |
+
| 0.4221 | 4.0 | 1175 | 0.4121 | 0.8382 | 0.8382 | 0.8331 | 0.8495 |
|
| 89 |
+
| 0.4127 | 4.9974 | 1468 | 0.3692 | 0.8476 | 0.8476 | 0.8454 | 0.8511 |
|
| 90 |
+
| 0.3122 | 5.9983 | 1762 | 0.3741 | 0.8408 | 0.8408 | 0.8394 | 0.8462 |
|
| 91 |
+
| 0.3079 | 6.9991 | 2056 | 0.3628 | 0.8429 | 0.8429 | 0.8403 | 0.8445 |
|
| 92 |
+
| 0.2851 | 8.0 | 2350 | 0.3635 | 0.8412 | 0.8412 | 0.8389 | 0.8412 |
|
| 93 |
+
| 0.297 | 8.9974 | 2643 | 0.3407 | 0.8510 | 0.8510 | 0.8497 | 0.8545 |
|
| 94 |
+
| 0.2109 | 9.9745 | 2930 | 0.3566 | 0.8421 | 0.8421 | 0.8406 | 0.8418 |
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
### Framework versions
|
| 98 |
+
|
| 99 |
+
- Transformers 4.40.1
|
| 100 |
+
- Pytorch 2.2.0a0+81ea7a4
|
| 101 |
+
- Datasets 2.19.0
|
| 102 |
+
- Tokenizers 0.19.1
|
emissions.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
|
| 2 |
+
2024-05-02T04:46:52,codecarbon,2e83f704-83d2-49e5-8a1b-4d2c41846a9b,1431.7049131393433,0.00014995845001373526,1.0474117161819104e-07,42.5,78.68065315748876,11.667008399963379,0.016901357504228748,0.0415435876792879,0.004636526257744262,0.0630814714412609,Canada,CAN,quebec,,,Linux-5.15.0-105-generic-x86_64-with-glibc2.35,3.10.12,2.3.5,32,13th Gen Intel(R) Core(TM) i9-13900K,1,1 x NVIDIA GeForce RTX 4060 Ti,-71.2,46.8,31.112022399902344,machine,N,1.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343126468
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83d4a5e5a02dfd69eb160218b1170d914cf497856fd45e894c9dc11ed8c7439e
|
| 3 |
size 343126468
|
runs/May02_04-22-58_60f4804cf903/events.out.tfevents.1714625275.60f4804cf903.3194.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f4cf22ec8ae1a37317556caa31b371ab981611bf9a26c1d7201f361c52aef74
|
| 3 |
+
size 560
|