Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use stentorianvoice/vit-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stentorianvoice/vit-base-patch16-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="stentorianvoice/vit-base-patch16-224") 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("stentorianvoice/vit-base-patch16-224") model = AutoModelForImageClassification.from_pretrained("stentorianvoice/vit-base-patch16-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,367 Bytes
7330f12 49e4f44 7330f12 49e4f44 7330f12 49e4f44 7330f12 49e4f44 7330f12 49e4f44 7330f12 49e4f44 7330f12 | 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 | {
"best_metric": 1.0,
"best_model_checkpoint": "vit-base-patch16-224/checkpoint-5",
"epoch": 2.4,
"eval_steps": 500,
"global_step": 6,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.8,
"eval_accuracy": 0.6666666666666666,
"eval_loss": 0.5778087973594666,
"eval_runtime": 1.9291,
"eval_samples_per_second": 3.11,
"eval_steps_per_second": 1.037,
"step": 2
},
{
"epoch": 2.0,
"eval_accuracy": 1.0,
"eval_loss": 0.2773691713809967,
"eval_runtime": 1.9474,
"eval_samples_per_second": 3.081,
"eval_steps_per_second": 1.027,
"step": 5
},
{
"epoch": 2.4,
"eval_accuracy": 1.0,
"eval_loss": 0.25463148951530457,
"eval_runtime": 1.8035,
"eval_samples_per_second": 3.327,
"eval_steps_per_second": 1.109,
"step": 6
},
{
"epoch": 2.4,
"step": 6,
"total_flos": 9144054774521856.0,
"train_loss": 0.4126094579696655,
"train_runtime": 157.4847,
"train_samples_per_second": 0.933,
"train_steps_per_second": 0.038
}
],
"logging_steps": 10,
"max_steps": 6,
"num_train_epochs": 3,
"save_steps": 500,
"total_flos": 9144054774521856.0,
"trial_name": null,
"trial_params": null
}
|