Instructions to use NekoJar/trainer_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NekoJar/trainer_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NekoJar/trainer_output") 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("NekoJar/trainer_output") model = AutoModelForImageClassification.from_pretrained("NekoJar/trainer_output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,486 Bytes
0cde7dd 91c9554 0cde7dd e54e140 0cde7dd 91c9554 0cde7dd e54e140 0cde7dd 1923d0d e54e140 0cde7dd e54e140 0cde7dd 9ab7dfc 0cde7dd e574274 e54e140 0cde7dd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | ---
library_name: transformers
license: apache-2.0
base_model: google/vit-base-patch16-224-in21k
tags:
- generated_from_trainer
datasets:
- imagefolder
metrics:
- accuracy
model-index:
- name: trainer_output
results:
- task:
name: Image Classification
type: image-classification
dataset:
name: imagefolder
type: imagefolder
config: default
split: None
args: default
metrics:
- name: Accuracy
type: accuracy
value: 0.5126527801687037
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# trainer_output
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
It achieves the following results on the evaluation set:
- Loss: 1.4766
- Accuracy: 0.5127
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 3e-05
- train_batch_size: 128
- eval_batch_size: 128
- seed: 42
- gradient_accumulation_steps: 8
- total_train_batch_size: 1024
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 1000
- num_epochs: 10
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:------:|:----:|:---------------:|:--------:|
| No log | 0.9670 | 22 | 2.0708 | 0.1449 |
| No log | 1.9670 | 44 | 2.0653 | 0.1663 |
| 2.0961 | 2.9670 | 66 | 2.0564 | 0.1931 |
| 2.0961 | 3.9670 | 88 | 2.0423 | 0.2350 |
| 2.0586 | 4.9670 | 110 | 2.0171 | 0.2823 |
| 2.0586 | 5.9670 | 132 | 1.9638 | 0.3305 |
| 1.9128 | 6.9670 | 154 | 1.8130 | 0.3968 |
| 1.9128 | 7.9670 | 176 | 1.6647 | 0.4278 |
| 1.9128 | 8.9670 | 198 | 1.5676 | 0.4844 |
| 1.6466 | 9.9670 | 220 | 1.4766 | 0.5127 |
### Framework versions
- Transformers 4.51.0
- Pytorch 2.5.1+cu124
- Datasets 3.5.0
- Tokenizers 0.21.0
|