Instructions to use juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease") 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("juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease") model = AutoModelForImageClassification.from_pretrained("juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease/resolve/main/trainer_state.json
- Command line
-
hf download hf://juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/juniorjukeko/swin-tiny-patch4-window7-224_ft_mango_leaf_disease/resolve/main/trainer_state.json
1.98 kB
| { | |
| "best_metric": 0.9916666666666667, | |
| "best_model_checkpoint": "swin-tiny-patch4-window7-224-mango_leaf_disease-2023-10-01/checkpoint-43", | |
| "epoch": 4.651162790697675, | |
| "eval_steps": 500, | |
| "global_step": 50, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.93, | |
| "eval_accuracy": 0.9305555555555556, | |
| "eval_loss": 0.6785286664962769, | |
| "eval_runtime": 74.8256, | |
| "eval_samples_per_second": 9.622, | |
| "eval_steps_per_second": 0.16, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 1.95, | |
| "eval_accuracy": 0.9736111111111111, | |
| "eval_loss": 0.3613281548023224, | |
| "eval_runtime": 1.8755, | |
| "eval_samples_per_second": 383.906, | |
| "eval_steps_per_second": 6.398, | |
| "step": 21 | |
| }, | |
| { | |
| "epoch": 2.98, | |
| "eval_accuracy": 0.9847222222222223, | |
| "eval_loss": 0.22890280187129974, | |
| "eval_runtime": 1.8891, | |
| "eval_samples_per_second": 381.125, | |
| "eval_steps_per_second": 6.352, | |
| "step": 32 | |
| }, | |
| { | |
| "epoch": 4.0, | |
| "eval_accuracy": 0.9916666666666667, | |
| "eval_loss": 0.17830978333950043, | |
| "eval_runtime": 1.8501, | |
| "eval_samples_per_second": 389.168, | |
| "eval_steps_per_second": 6.486, | |
| "step": 43 | |
| }, | |
| { | |
| "epoch": 4.65, | |
| "eval_accuracy": 0.9916666666666667, | |
| "eval_loss": 0.17116190493106842, | |
| "eval_runtime": 1.8622, | |
| "eval_samples_per_second": 386.635, | |
| "eval_steps_per_second": 6.444, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 4.65, | |
| "step": 50, | |
| "total_flos": 3.1303908690827674e+17, | |
| "train_loss": 0.40170501708984374, | |
| "train_runtime": 365.1652, | |
| "train_samples_per_second": 36.97, | |
| "train_steps_per_second": 0.137 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 50, | |
| "num_train_epochs": 5, | |
| "save_steps": 500, | |
| "total_flos": 3.1303908690827674e+17, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |