/ Модель

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

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

french-trees-plantnet-ft

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

Модель распознаёт 71 распространённый вид деревьев Франции по фотографиям и относит остальные растения к классу «другое».

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

Бенчмарки

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

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

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

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

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

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

Maximaxou2/french-trees-plantnet-ft — модель классификации изображений, созданная Maximaxou2 на основе Pl@ntNet PlantCLEF 2024 и дообученная для распознавания 71 распространённого вида деревьев Франции и класса «другое растение». Она принимает фотографии размером 448 пикселей и использует архитектуру DINOv2 ViT-B/14; в модели 86 млн параметров. Для получения калиброванных вероятностей README рекомендует делить логиты на температуру, рассчитанную на валидационной выборке.

Модель подходит для определения видов по фотографиям листьев, цветов, плодов, ветвей, коры или дерева целиком, а также для отсева растений вне целевого списка. В тестах точность top-1 среди 71 вида составила 95,97%; изображения целевых деревьев и похожих растений вне списка всё ещё могут классифицироваться ошибочно. Кора и дерево целиком распознаются хуже других типов снимков. Модель предназначена для обучения и любительского изучения, а не для решений об edibleности или токсичности растений. Лицензия CC BY-NC 4.0 ограничивает коммерческое использование.

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

  • определение вида дерева по фотографии листа
  • распознавание дерева по цветам или плодам
  • определение дерева по ветви, почкам или хвое
  • первичная классификация дерева по снимку коры или кроны
  • отсев фотографий растений, не входящих в список 71 вида

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

French trees — Pl@ntNet ViT-B/14 fine-tune (accurate)

Pl@ntNet's PlantCLEF 2024 model (DINOv2 ViT-B/14, 7,806 species of south-western Europe) fine-tuned on 71 common trees of France plus an other plant class. Best single-model accuracy in our tests; use it for photos, and the small sibling model for live video.

Sibling model: Maximaxou2/french-trees-vit-small — a 4× smaller model distilled from this one, for live/mobile use.

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-plantnet-ft", 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-plantnet-ft", "labels.json"), encoding="utf8"))
temperature = json.load(open(hf_hub_download("Maximaxou2/french-trees-plantnet-ft", "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, 448, 448] (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 model95.9794.8988.5
  • Top-3 among the 71: 98.67 %. Calibration error (ECE): 0.54 %.
  • When the calibrated confidence is ≥ 90 % (92.3 % of tree photos), it is right 98.66 % of the time.
  • By photo type (auto-tagged, approximate): flower 98.2 · leaf 97.9 · fruit 97.0 · twig or bud 96.6 · needles or cones 96.1 · whole tree 89.2 · bark 88.9.
  • Most frequent confusions: Tilia cordata → Tilia platyphyllos (16), Tilia platyphyllos → Tilia cordata (14), Quercus robur → Quercus petraea (9), Pinus pinea → Pinus pinaster (8), Pinus sylvestris → Pinus nigra (7), Pinus nigra → Pinus pinaster (6). These pairs are hard from a single photo even for botanists, and iNaturalist labels for them are themselves less reliable.

Size and speed: 86 M parameters, 448 px input; ≈ 600 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.

Full fine-tune at 448 px, 8 epochs (AdamW, layer-wise LR decay 0.75, label smoothing 0.1, class-balanced loss), then 2 more epochs after adding 32k extra other plant photos. The new head was initialised from Pl@ntNet's own classifier rows for these species.

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é83.0
Quercus petraeaChêne sessile93.0
Quercus pubescensChêne pubescent97.0
Quercus ilexChêne vert97.0
Quercus suberChêne-liège98.0
Quercus rubraChêne rouge d'Amérique99.0
Quercus cerrisChêne chevelu92.0
Fagus sylvaticaHêtre commun96.0
Carpinus betulusCharme commun91.0
Castanea sativaChâtaignier97.0
Fraxinus excelsiorFrêne élevé96.0
Fraxinus ornusFrêne à fleurs96.0
Acer pseudoplatanusÉrable sycomore97.0
Acer platanoidesÉrable plane97.0
Acer campestreÉrable champêtre97.0
Acer monspessulanumÉrable de Montpellier97.0
Tilia cordataTilleul à petites feuilles79.0
Tilia platyphyllosTilleul à grandes feuilles85.0
Betula pendulaBouleau verruqueux94.0
Alnus glutinosaAulne glutineux99.0
Corylus avellanaNoisetier100.0
Juglans regiaNoyer commun96.0
Prunus aviumMerisier97.0
Prunus padusCerisier à grappes98.0
Prunus mahalebCerisier de Sainte-Lucie99.0
Malus sylvestrisPommier sauvage99.0
Pyrus communisPoirier commun97.0
Sorbus aucupariaSorbier des oiseleurs98.0
Sorbus domesticaCormier94.0
Sorbus torminalisAlisier torminal100.0
Sorbus ariaAlisier blanc99.0
Crataegus monogynaAubépine monogyne98.0
Robinia pseudoacaciaRobinier faux-acacia99.0
Gleditsia triacanthosFévier d'Amérique98.0
Platanus × hispanicaPlatane commun99.0
Aesculus hippocastanumMarronnier d'Inde100.0
Ailanthus altissimaAilante glanduleux98.0
Celtis australisMicocoulier de Provence99.0
Populus nigraPeuplier noir99.0
Populus tremulaPeuplier tremble97.0
Populus albaPeuplier blanc98.0
Salix albaSaule blanc100.0
Salix capreaSaule marsault99.0
Ulmus minorOrme champêtre94.0
Ulmus glabraOrme de montagne96.0
Ilex aquifoliumHoux99.0
Buxus sempervirensBuis100.0
Cornus masCornouiller mâle98.0
Euonymus europaeusFusain d'Europe99.0
Sambucus nigraSureau noir100.0
Olea europaeaOlivier99.0
Arbutus unedoArbousier98.0
Laurus nobilisLaurier-sauce98.0
Prunus laurocerasusLaurier-cerise96.0
Ostrya carpinifoliaCharme-houblon99.0
Pinus sylvestrisPin sylvestre89.0
Pinus pinasterPin maritime91.0
Pinus nigraPin noir86.0
Pinus halepensisPin d'Alep97.0
Pinus pineaPin parasol84.0
Pinus cembraPin cembro88.0
Pinus uncinataPin à crochets94.0
Abies albaSapin pectiné97.0
Picea abiesÉpicéa commun94.0
Pseudotsuga menziesiiDouglas96.0
Larix deciduaMélèze d'Europe96.0
Cedrus atlanticaCèdre de l'Atlas97.0
Taxus baccataIf commun94.0
Juniperus communisGenévrier commun99.0
Cupressus sempervirensCyprès de Provence99.0
Thuja occidentalisThuya du Canada95.6
otherAutre plante—

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
0a93c5e

0 моделей