Sisigoks/Planter_GARDEN_EDITION
Viewer β’ Updated β’ 97k β’ 20
How to use Sisigoks/FloraSense with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="Sisigoks/FloraSense")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("Sisigoks/FloraSense")
model = AutoModelForImageClassification.from_pretrained("Sisigoks/FloraSense")FloraSense is a fine-tuned Vision Transformer (ViT) model designed for accurate classification of plant species and flora-related imagery. It builds on top of the powerful google/vit-base-patch16-224 base model and is fine-tuned on the Planter_GARDEN_EDITION dataset curated by Sisigoks, which includes over 10,000 diverse plant images.
google/vit-base-patch16-224β οΈ While the accuracy may appear moderate, the model is handling over 10,000 highly similar plant species, making this a non-trivial challenge in fine-grained classification.
| Hyperparameter | Value |
|---|---|
| Learning Rate | 5e-5 |
| Train Batch Size | 16 |
| Eval Batch Size | 16 |
| Gradient Accumulation | 4 |
| Total Effective Batch | 64 |
| Optimizer | Adam (Ξ²1=0.9, Ξ²2=0.999) |
| Scheduler | Linear w/ warmup (10%) |
| Epochs | 15 |
| Seed | 42 |
Sisigoks/Planter_GARDEN_EDITIONfrom transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import torch
# Load model and processor
processor = AutoImageProcessor.from_pretrained("Sisigoks/FloraSense")
model = AutoModelForImageClassification.from_pretrained("Sisigoks/FloraSense")
# Load and preprocess image
image = Image.open("your_image.jpg")
inputs = processor(images=image, return_tensors="pt")
# Inference
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_label = logits.argmax(-1).item()
print(f"Predicted class ID: {predicted_label}")
If you use this model or dataset in your work, please cite:
@misc{sisigoks_florasense_2025,
author = {Sisigoks},
title = {FloraSense: ViT-based Fine-Grained Plant Classifier},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/Sisigoks/FloraSense}}
}
Base model
google/vit-base-patch16-224