Instructions to use tuantla/my_image_classification_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tuantla/my_image_classification_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="tuantla/my_image_classification_model") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("tuantla/my_image_classification_model") model = AutoModelForImageClassification.from_pretrained("tuantla/my_image_classification_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +5 -7
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -18,8 +18,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss:
|
| 22 |
-
- Accuracy: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -42,8 +42,6 @@ The following hyperparameters were used during training:
|
|
| 42 |
- train_batch_size: 16
|
| 43 |
- eval_batch_size: 16
|
| 44 |
- seed: 42
|
| 45 |
-
- gradient_accumulation_steps: 4
|
| 46 |
-
- total_train_batch_size: 64
|
| 47 |
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 48 |
- lr_scheduler_type: linear
|
| 49 |
- lr_scheduler_warmup_steps: 0.1
|
|
@@ -53,9 +51,9 @@ The following hyperparameters were used during training:
|
|
| 53 |
|
| 54 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 55 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 56 |
-
|
|
| 57 |
-
|
|
| 58 |
-
|
|
| 59 |
|
| 60 |
|
| 61 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.4338
|
| 22 |
+
- Accuracy: 0.937
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 42 |
- train_batch_size: 16
|
| 43 |
- eval_batch_size: 16
|
| 44 |
- seed: 42
|
|
|
|
|
|
|
| 45 |
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
- lr_scheduler_warmup_steps: 0.1
|
|
|
|
| 51 |
|
| 52 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 53 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 54 |
+
| 1.1999 | 1.0 | 250 | 1.0933 | 0.916 |
|
| 55 |
+
| 0.5741 | 2.0 | 500 | 0.5455 | 0.937 |
|
| 56 |
+
| 0.4562 | 3.0 | 750 | 0.4338 | 0.937 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343528508
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8586ad6e74d6b5152e6218a8dcf08b6930554cf51659d7e76e33105ce07caf4f
|
| 3 |
size 343528508
|