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
Download trainer_state.json from stentorianvoice/vit-base-patch16-224: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/stentorianvoice/vit-base-patch16-224/resolve/main/trainer_state.json
- Command line
-
hf download hf://stentorianvoice/vit-base-patch16-224/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/stentorianvoice/vit-base-patch16-224/resolve/main/trainer_state.json
1.37 kB
| { | |
| "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 | |
| } | |