Downloads · 30 days
8
1% of all-time downloads
ozair23/swin-tiny-patch4-window7-224-finetuned-plantdisease
swin-tiny-patch4-window7-224-finetuned-plantdisease is a image classification model from ozair23. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
1.1K
Public
Parameters
27.6M
221 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors110 MB · 100%
How the weights are stored.
F3227.5M · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224 on the imagefolder dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
from transformers import pipeline
from PIL import Image
import requests
# Load the image classification pipeline with a specific model
pipe = pipeline("image-classification", "ozair23/swin-tiny-patch4-window7-224-finetuned-plantdisease")
# Load the image from a URL
url = 'https://huggingface.co/nielsr/convnext-tiny-finetuned-eurostat/resolve/main/forest.png'
image = Image.open(requests.get(url, stream=True).raw)
# Classify the image
results = pipe(image)
# Display the results
print("Predictions:")
for result in results:
print(f"Label: {result['label']}, Score: {result['score']:.4f}")
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.1968 | 0.9983 | 145 | 0.0880 | 0.9811 |