Instructions to use tzhao3/vit-tiny-imagenet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tzhao3/vit-tiny-imagenet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="tzhao3/vit-tiny-imagenet") 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("tzhao3/vit-tiny-imagenet") model = AutoModelForImageClassification.from_pretrained("tzhao3/vit-tiny-imagenet", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from tzhao3/vit-tiny-imagenet: direct link, hf CLI and curl.
- Browser
- Download file 622 Bytes
-
https://huggingface.co/tzhao3/vit-tiny-imagenet/resolve/main/trainer_state.json
- Command line
-
hf download hf://tzhao3/vit-tiny-imagenet/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/tzhao3/vit-tiny-imagenet/resolve/main/trainer_state.json
622 Bytes
| { | |
| "best_metric": 0.8431, | |
| "best_model_checkpoint": "fine-tune-vit-tiny-imagenet\\checkpoint-352", | |
| "epoch": 1.0, | |
| "global_step": 352, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "eval_accuracy": 0.8431, | |
| "eval_loss": 1.805203914642334, | |
| "eval_runtime": 47.893, | |
| "eval_samples_per_second": 208.799, | |
| "eval_steps_per_second": 0.835, | |
| "step": 352 | |
| } | |
| ], | |
| "max_steps": 352, | |
| "num_train_epochs": 1, | |
| "total_flos": 6.98665570025472e+18, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |