/ Модель

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

Лицензия
CC BY-NC 4.0
Базовая модель
vit_small_patch14_reg4_dinov2.lvd142m
Библиотека
timm
Опубликована
26 окт 2026

french-trees-vit-small

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

Компактная модель для распознавания 71 распространённого вида деревьев Франции и отнесения других растений к отдельному классу.

21скачиваний за 30 дней0лайковвеса обновлены26 окт 2026

Бенчмарки

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

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

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

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

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

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

Maximaxou2/french-trees-vit-small — компактный классификатор изображений деревьев Франции, разработанный Maximaxou2. Модель построена на ViT-S/14 с базовой архитектурой timm/vit_small_patch14_reg4_dinov2.lvd142m и предназначена для распознавания 71 распространённого вида деревьев и класса «другое растение» по фотографиям. Она рассчитана на быстрый запуск, в том числе с камеры телефона: принимает изображения размером 252 пикселя, содержит 22 млн параметров и доступна в форматах ONNX и safetensors.

Модель обучена дистилляцией дообученной Pl@ntNet ViT-B/14 с дополнительным обучением на фотографиях iNaturalist. В тестировании на новых наблюдателях она показала точность top-1 91,83% среди целевых видов и распознавала прочие растения с точностью 89,4%; результаты лучше для листьев, цветов и плодов, чем для коры и целого дерева. Вероятности рекомендуется калибровать делением логитов на указанную в модели температуру. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но не коммерческое применение.

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

  • определение вида дерева по фотографии листа
  • распознавание дерева по цветам или плодам
  • определение хвойных деревьев по иголкам и шишкам
  • мобильная идентификация распространённых деревьев Франции
  • отсеивание фотографий растений, не относящихся к целевым видам

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

French trees — ViT-S/14 (fast, mobile)

A small (22M parameters, 41 MB fp16 ONNX) image classifier for 71 common trees of France, plus an other plant class. Distilled from a fine-tuned Pl@ntNet ViT-B/14, small enough for live phone-camera use.

Sibling model: Maximaxou2/french-trees-plantnet-ft — the larger, more accurate model it was distilled from.

Usage

import json, timm, torch
from huggingface_hub import hf_hub_download
from PIL import Image

model = timm.create_model("hf-hub:Maximaxou2/french-trees-vit-small", pretrained=True).eval()
transform = timm.data.create_transform(**timm.data.resolve_data_config({}, model=model))
labels = json.load(open(hf_hub_download("Maximaxou2/french-trees-vit-small", "labels.json"), encoding="utf8"))
temperature = json.load(open(hf_hub_download("Maximaxou2/french-trees-vit-small", "config.json")))["temperature"]

x = transform(Image.open("photo.jpg").convert("RGB")).unsqueeze(0)
with torch.no_grad():
    probs = (model(x) / temperature).softmax(-1)[0]
for p, i in zip(*probs.topk(3)):
    print(f"{p:.1%}  {labels[i]['latin']} ({labels[i]['fr']})")

Divide logits by temperature (fitted on the validation split) for calibrated probabilities. Class 71 (other) means "probably not one of the 71 trees".

ONNX: model.onnx — fp16 weights, fp32 input image [1, 3, 252, 252] (RGB, center square crop, ImageNet mean/std), output logits [1, 72]. Runs with ONNX Runtime, incl. Android (CPU/XNNPACK or Qualcomm NPU via QNN).

Results

Test set: 7,090 photos of the 71 trees (100 iNaturalist observations per species, 90 for Thuja) observed in 2025–2026 by people absent from the training data, so neither the base model nor this one saw them; plus 1,000 photos of other plants, half of them close relatives of the 71 (other oaks, maples, pines, Tilia × europaea, oriental plane…).

ModelTop-1 (among the 71)Open-set accuracy on treesOther plants rejected
Pl@ntNet PlantCLEF 2024, zero-shot (original)89.869.090.4
This model91.8389.789.4
  • Top-3 among the 71: 97.43 %. Calibration error (ECE): 1.43 %.
  • When the calibrated confidence is ≥ 90 % (84.2 % of tree photos), it is right 97.84 % of the time.
  • By photo type (auto-tagged, approximate): flower 97.6 · fruit 95.4 · leaf 95.2 · needles or cones 92.4 · twig or bud 91.6 · bark 79.7 · whole tree 78.8.
  • Most frequent confusions: Quercus robur → Quercus petraea (12), Tilia cordata → Tilia platyphyllos (11), Quercus pubescens → Quercus petraea (10), Pinus pinea → Pinus pinaster (10), Pinus nigra → Pinus pinaster (8), Tilia platyphyllos → Tilia cordata (8). These pairs are hard from a single photo even for botanists, and iNaturalist labels for them are themselves less reliable.

Size and speed: 22 M parameters, 252 px input; ≈ 7,000 img/s on an RTX 5090 (fp16, batch 64).

Training data

iNaturalist research-grade observations with CC-licensed photos (iNaturalist open-data bucket), France first, the rest of Europe for the less-observed species: up to 700 observations (≤ 2 photos each) per species, plus ~37k photos of ~5,000 other plant species for the other class. Observer-disjoint train / validation / test splits. Licenses of training photos: 81 % CC BY-NC, 12 % CC BY, 4 % CC0, the rest other CC variants.

Distilled from the fine-tuned Pl@ntNet model (448 px teacher → 252 px student) for 14 epochs: 70 % KL to the teacher's softened outputs (T = 2) + 30 % label cross-entropy, with colour, blur and sensor-noise augmentation to mimic phone camera frames.

Limitations

  • Only 71 species. Anything else should come out as other, but ~11 % of lookalike plants are still named as one of the 71 — treat low-confidence answers as "check it".
  • Bark-only and whole-tree photos are clearly harder than leaves, flowers or fruits.
  • Platanus × hispanica (London plane) is not in the base Pl@ntNet model; it was learned only during fine-tuning.
  • Built for learning and curiosity, not for decisions that matter (e.g. edibility or toxicity).

License and credits

Weights: CC BY-NC 4.0 — most training photos are CC BY-NC. Base models: Pl@ntNet PlantCLEF 2024 ViT-B/14 (Apache-2.0, trained on Pl@ntNet data), DINOv2 (Meta). Photos: the iNaturalist community. Thank you to every observer.

Species

Latin nameFrench nameTest accuracy (%)
Quercus roburChêne pédonculé72.0
Quercus petraeaChêne sessile89.0
Quercus pubescensChêne pubescent78.0
Quercus ilexChêne vert91.0
Quercus suberChêne-liège88.0
Quercus rubraChêne rouge d'Amérique97.0
Quercus cerrisChêne chevelu88.0
Fagus sylvaticaHêtre commun93.0
Carpinus betulusCharme commun89.0
Castanea sativaChâtaignier90.0
Fraxinus excelsiorFrêne élevé85.0
Fraxinus ornusFrêne à fleurs89.0
Acer pseudoplatanusÉrable sycomore92.0
Acer platanoidesÉrable plane91.0
Acer campestreÉrable champêtre89.0
Acer monspessulanumÉrable de Montpellier94.0
Tilia cordataTilleul à petites feuilles79.0
Tilia platyphyllosTilleul à grandes feuilles89.0
Betula pendulaBouleau verruqueux95.0
Alnus glutinosaAulne glutineux98.0
Corylus avellanaNoisetier97.0
Juglans regiaNoyer commun95.0
Prunus aviumMerisier92.0
Prunus padusCerisier à grappes93.0
Prunus mahalebCerisier de Sainte-Lucie95.0
Malus sylvestrisPommier sauvage95.0
Pyrus communisPoirier commun90.0
Sorbus aucupariaSorbier des oiseleurs95.0
Sorbus domesticaCormier93.0
Sorbus torminalisAlisier torminal98.0
Sorbus ariaAlisier blanc96.0
Crataegus monogynaAubépine monogyne94.0
Robinia pseudoacaciaRobinier faux-acacia96.0
Gleditsia triacanthosFévier d'Amérique96.0
Platanus × hispanicaPlatane commun92.0
Aesculus hippocastanumMarronnier d'Inde99.0
Ailanthus altissimaAilante glanduleux97.0
Celtis australisMicocoulier de Provence97.0
Populus nigraPeuplier noir96.0
Populus tremulaPeuplier tremble91.0
Populus albaPeuplier blanc98.0
Salix albaSaule blanc99.0
Salix capreaSaule marsault88.0
Ulmus minorOrme champêtre89.0
Ulmus glabraOrme de montagne94.0
Ilex aquifoliumHoux98.0
Buxus sempervirensBuis96.0
Cornus masCornouiller mâle94.0
Euonymus europaeusFusain d'Europe94.0
Sambucus nigraSureau noir95.0
Olea europaeaOlivier98.0
Arbutus unedoArbousier95.0
Laurus nobilisLaurier-sauce88.0
Prunus laurocerasusLaurier-cerise96.0
Ostrya carpinifoliaCharme-houblon99.0
Pinus sylvestrisPin sylvestre84.0
Pinus pinasterPin maritime84.0
Pinus nigraPin noir82.0
Pinus halepensisPin d'Alep91.0
Pinus pineaPin parasol81.0
Pinus cembraPin cembro82.0
Pinus uncinataPin à crochets89.0
Abies albaSapin pectiné92.0
Picea abiesÉpicéa commun83.0
Pseudotsuga menziesiiDouglas94.0
Larix deciduaMélèze d'Europe94.0
Cedrus atlanticaCèdre de l'Atlas94.0
Taxus baccataIf commun92.0
Juniperus communisGenévrier commun98.0
Cupressus sempervirensCyprès de Provence99.0
Thuja occidentalisThuya du Canada86.7
otherAutre plante—

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
f0fbefd

0 моделей