/ Модель

Характеристики

Параметры
113 млн
Лицензия
cc-by-sa-3.0
Архитектура
vit · dense
Базовая модель
vit-base-patch16-224-in21k
Опубликована
20 июл 2026

plantvillage-vit-leaf-disease

Классификация изображенийИзображение → label3 профессии

Классификатор на основе ViT определяет болезни листьев среди 38 классов культур и заболеваний по фотографиям.

857скачиваний за 30 дней0лайковвеса обновлены20 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель kimcomehome/plantvillage-vit-leaf-disease — классификатор изображений листьев, разработанный для предварительного выявления болезней сельскохозяйственных культур. Это дообученная на датасете PlantVillage модель Vision Transformer ViT-Base с 113,2 млн параметров. Она относит изображение к одному из 38 классов болезней и культур, охватывающих 14 видов растений; принимает изображения и выдаёт метки классов с оценками уверенности. Модель создавалась как локальный инструмент первичной проверки для франкоязычного сельскохозяйственного консультанта DakiKobo в Буркина-Фасо.

На тестовом разбиении автор сообщает точность 99,79% по всем классам и 98,44% для кукурузы, однако возможное пересечение фотографий одних и тех же листьев между обучающей и тестовой выборками могло завысить результаты. Данные PlantVillage получены в контролируемых условиях: точность на телефонных снимках прикреплённых листьев в поле не измерялась и ожидается ниже. Кукуруза — единственная культура из набора, совпадающая с частью культур целевой аудитории; для остальных культур региона модель может уверенно выдать неверный класс. У модели нет класса для неизвестных объектов, а наиболее существенная ошибка — путаница между серой пятнистостью и северным гельминтоспориозом кукурузы. Лицензия — CC BY-SA 3.0.

Сценарии применения

  • предварительное определение болезни листа кукурузы по фотографии
  • классификация симптомов болезней культур из набора PlantVillage
  • локальный скрининг изображений листьев перед обращением к запасному API
  • получение метки болезни и оценки уверенности для снимка листа

Ограничения

Возможное пересечение снимков одних и тех же листьев в обучающей и тестовой выборках могло завысить метрики; качество на полевых фотографиях не проверялось. Модель знает только 38 классов, не распознаёт неизвестные культуры и может уверенно ошибаться вне обученного набора; для кукурузы особенно существенна путаница двух болезней.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

PlantVillage Leaf-Disease Classifier (ViT)

Fine-tuned google/vit-base-patch16-224-in21k on PlantVillage (38 crop-disease classes across 14 crop species). Built as the local screening option for DakiKobo, a French-language agricultural advisor for smallholder farmers in Burkina Faso, with the Gemini Vision API retained as fallback for crops this model does not cover.

Evaluation

Held-out test split, not seen during training.

Split provenance: training used a parquet mirror (BrandonFors/Plant-Diseases-PlantVillage-Dataset), whose 43,456 / 10,849 partition differs from the original leaf-grouped 43,596 / 10,709 split. The mirror does not expose leaf_id, so leaf grouping could not be verified or reconstructed. PlantVillage contains multiple photographs of the same physical leaf, so images of one leaf may appear on both sides of this split. The figures below are therefore likely optimistic relative to a leaf-grouped evaluation.

MetricAll 38 classesMaize only (n=769)
Accuracy0.99790.9844
F1 (macro)0.99600.9785

Per-class precision, recall, and F1: per_class_report.csv in this repo.

The overall figure should be read in context. Published PlantVillage accuracies have run 99.3 to 99.8 percent since Mohanty et al. (2016); a high number here reflects the dataset, not the method. The maize column is reported separately because maize is the only crop shared between this dataset and DakiKobo's users.

Limits

  • Routing threshold 0.95 was measured on held-out maize predictions, not guessed. It rejects 10 of 12 observed errors at the cost of routing 6.2% of maize cases to the fallback API. Two errors still pass, both gray leaf spot / northern leaf blight confusions above the threshold.

  • Possible train/test leakage. See split provenance above. Not quantified.

  • Crop coverage does not match the deployment context. PlantVillage covers apple, blueberry, cherry, corn, grape, orange, peach, bell pepper, potato, raspberry, soybean, squash, strawberry, tomato. DakiKobo's users grow millet, sorghum, maize, cowpea, and groundnut. Only maize overlaps. On the other four crops this model will return a confident label from a class set that cannot contain the right answer. It is routed accordingly in the application: covered crops only, Gemini otherwise.

  • Capture conditions differ from field use. PlantVillage leaves were detached, placed on a grey or black background, and photographed with a single camera under controlled outdoor light. Models trained on it partly learn background and capture conditions. See "Uncovering bias in the PlantVillage dataset" (arXiv:2206.04374). Accuracy on phone photographs of attached leaves in a field has not been measured here and should be assumed lower.

  • No unknown class. Out-of-distribution input is assigned one of the 38 known classes with a confidence score, not flagged as unrecognized.

  • Single training run, no seed variance study, no hyperparameter search.

  • The dominant failure mode is on the crop that matters. Maize error rate is 1.56% against 0.21% overall, roughly 7x. Maize is 7% of the test set but about half of all errors. Effectively every maize error is one bidirectional confusion: Cercospora gray leaf spot vs northern leaf blight (F1 0.947 and 0.969, the two lowest of 38 classes). Both are real maize diseases with different management responses, so this confusion is consequential rather than cosmetic.

Use

from transformers import pipeline
clf = pipeline("image-classification", model="kimcomehome/plantvillage-vit-leaf-disease")
clf("leaf.jpg")

Citation

Mohanty, S.P., Hughes, D.P., Salathe, M. (2016). Using deep learning for image-based plant disease detection. Frontiers in Plant Science 7:1419.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · image-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
ViTForImageClassification
Ревизия весов
9328047

0 моделей