Downloads · 30 days
5
33% of all-time downloads
Kahsi13/tomato-disease-bert
tomato-disease-bert is a machine learning model from Kahsi13. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project provides a fine-tuned Turkish BERT model for tomato plant disease diagnosis based on text input. It's designed for integration into real-time mobile apps and APIs, especially for agricultural use-cases.
Downloads · 30 days
5
33% of all-time downloads
All-time downloads
15
Public
Parameters
111M
443 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors443 MB · 100%
From the Hugging Face model README
This project provides a fine-tuned Turkish BERT model for tomato plant disease diagnosis based on text input. It's designed for integration into real-time mobile apps and APIs, especially for agricultural use-cases.
dbmdz/bert-base-turkish-casedfrom transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_path = "Kahsi13/tomato-disease-bert"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSequenceClassification.from_pretrained(model_path)
text = "Yapraklarda kahverengi lekeler görülüyor"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
outputs = model(**inputs)
predicted_class = torch.argmax(outputs.logits, dim=1).item()
# The predicted_class index can be converted to label using label_encoder.pkl (optional)