/ Модель

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

Лицензия
MIT
Базовая модель
bioclip-2
Библиотека
open_clip
Опубликована
3 мая 2026

orchid-clip-v8

Классификация изображений без дообученияИзображение, текст → label3 профессии
126скачиваний за 30 дней1лайквеса обновлены7 ноя 2026

Описание модели

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

Дообученная на изображениях орхидей CLIP-модель для извлечения признаков, поиска похожих снимков и идентификации видов.

orchid-clip-v8 — модель musharna для извлечения признаков и классификации изображений орхидей. Это дообученная на BioCLIP 2 ViT-L/14 модель с настройкой обеих башен CLIP. Обучение проводилось на 1,14 млн изображений 5 124 видов орхидей с учётом синонимов таксонов и фильтрацией качества данных. Модель выдаёт 768-мерные L2-нормализованные векторы; доступны веса в формате PyTorch для open_clip.

Модель предназначена для выделения признаков, поиска похожих изображений в коллекции, идентификации орхидей по текстовым описаниям и построения классификаторов для стадий цветения, болезней и способов выращивания. В тесте на отложенной выборке из 4 000 изображений точность определения вида top-1 составила 0,911, однако набор несбалансирован по видам. Лицензия — MIT.

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

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

  • извлечение признаков для классификатора видов орхидей
  • поиск похожих орхидей в коллекции по изображению
  • определение вида орхидеи по изображению и текстовым вариантам
  • классификация стадии цветения орхидеи
  • выявление болезней орхидей по изображениям
  • идентификация способа выращивания или крепления орхидеи

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

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

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

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

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

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

Открыть на Hugging Face

orchid-clip-v8

Frozen image encoder for orchid foundation embeddings. Fine-tuned from BioCLIP 2 (ViT-L/14) on 1.14M orchid images across 5,124 species (≥3 images/species, after WCVP synonym dedup and a cosine quality filter). Outputs 768-dim L2-normalized features.

Use this as a feature extractor for downstream orchid tasks where no pretrained model exists today: bloom-stage classification, disease detection, mounting-style identification, NN retrieval over a cultivated collection, active labeling for low-image species.

Links

Files

filesizewhat
open_clip_pytorch_model.bin1.6 Gfull CLIP weights (image + text tower), open_clip fmt
model_config.json60 B{"model_name": "ViT-L-14", "framework": "open_clip"}
embed_example.py—minimal load + embed snippet
sanity_check.py—end-to-end validation (uses upstream SQLite, dev only)
sanity_check_laptop.py—same check using a single hand-picked reference image
LICENSE—MIT

Install

pip install open_clip_torch torch pillow numpy

Tested with open_clip_torch>=2.24 and torch>=2.0. CUDA optional (CPU works, just slow).

Download

hf download mjarnold/orchid-clip-v8 --local-dir orchid-clip-v8
# or, programmatically:
python -c "from huggingface_hub import snapshot_download; snapshot_download('mjarnold/orchid-clip-v8', local_dir='orchid-clip-v8')"

Quickstart

from embed_example import load_orchid_clip_v8, embed_image
model, preprocess, _ = load_orchid_clip_v8("orchid-clip-v8", device="cuda")
feat = embed_image(model, preprocess, "your_flower.jpg")  # (768,) L2-normalized

The state dict is wrapped — keys live under state["state_dict"], not at the top level. See embed_example.py for the load incantation.

Eval (clean held-out)

n=4000, 547 species. Reports top-1 / top-5 / genus-top-1 accuracy on a hash-bucketed holdout — md5(source_id) under a 2% fraction, which makes the split random and leakage-safe but not stratified or class-balanced. It inherits the domain's own imbalance rather than correcting for it, which matters for reading the numbers below.

modeltop-1top-5genus-top-1
BioCLIP 20.8730.9780.992
orchid-clip-v80.9110.9860.991

Per-genus top-1 (orchid-clip-v8 vs BioCLIP 2):

genusnv8BioCLIP 2Δ
Ophrys27540.9330.905+2.8 pp
Habenaria2320.9220.845+7.7 pp
Dendrobium1610.9190.907+1.2 pp
Prosthechea1450.8900.855+3.5 pp
Encyclia1010.8320.842-1.0 pp
Pleurothallis1000.8000.690+11.0 pp
Cymbidium990.8790.939-6.0 pp
Maxillaria940.7870.649+13.8 pp
Masdevallia640.8590.781+7.8 pp
Oncidium570.8600.825+3.5 pp
Bulbophyllum410.7320.585+14.6 pp
Lepanthes400.8000.525+27.5 pp
Stelis250.6400.400+24.0 pp
Laelia240.9581.000-4.2 pp

Macro-averaged species top-1 over the 14 genera in the table above (unweighted, one vote per genus): 0.768 → 0.844, a +7.6 pp lift — double the +3.8 pp the per-image top-1 shows. The two disagree because the holdout is not class-balanced: Ophrys is 2,754 of the 4,000 images and gains the least (+2.8 pp), so it dominates the per-image mean while counting once out of fourteen here. For a long-tail claim, the per-genus average is the one to read.

The biggest lifts are on genera with few holdout images that BioCLIP 2 struggles with: the Pleurothallidinae Lepanthes, Stelis and Pleurothallis, plus Bulbophyllum and Maxillaria. The inverse-sqrt sampler and WCVP synonym dedup are the likely cause, but neither has been ablated on its own. The lift is not uniform: three genera regress (Cymbidium −6.0, Laelia −4.2, Encyclia −1.0 pp), all well-sampled and already handled well by BioCLIP 2.

Training recipe (v8)

  • Backbone: BioCLIP 2 ViT-L/14 (image + text tower both fine-tuned).
  • Data: WCVP-remapped rows gated by quality_score ≥ 0.3 + orchid subfamily filter, the v6 cosine filter below, and a ≥3-images/species floor → final training pool: 1.14M images across 5,124 species.
  • Sampler: inverse-sqrt class weighting; per-species cap 2000.
  • Filter: v6 image↔binomial cosine ≥ 0.727 (drops the bottom percentile of mislabeled / off-target rows).
  • Optimizer: AdamW8bit, lr 1e-5, bs 64, 5 epochs.
  • Synonym handling: all rows remapped through WCVP 2026-01-07 (species_accepted column populated on 2.94M rows; 69K rows remapped across 4.5K binomials).

Intended use

  • Feature extractor for downstream orchid classifiers. Freeze and add a head.
  • Zero-shot orchid identification via the matching text tower (see zero_shot_score in embed_example.py).
  • Retrieval over a cultivated collection (cosine over L2-normalized features).
  • Active labeling of unlabeled / under-labeled candidates by NN cosine to a labeled set.

Limitations

  • Long-tail still weak. Stelis (n=25) at 0.64 top-1 is the floor; species with <10 labeled rows in training pool are not reliably distinguished.
  • Synonym confusions. Despite WCVP dedup, intra-genus cryptic-species pairs remain (most v8 errors are intra-genus, 93% per a hard-negative audit). Treat top-1 as "this genus, probably this species" rather than ground truth.
  • Hybrids. ~19 hybrid rows survive the quality filter; hybrid identification is not a target. The model will emit a top-1 species label for hybrids — that label is the closest-matching parent, not "hybrid."
  • Not a backbone for fine-grained pose / morphometry. Trained for species classification, not part-localized tasks.

Citation

If you use this in a paper or downstream model:

@misc{orchid_clip_v8_2026,
  title  = {orchid-clip-v8: long-tail-aware CLIP for orchid identification},
  author = {Arnold, M.J.},
  year   = {2026},
  note   = {Fine-tuned from BioCLIP 2; weights at https://huggingface.co/mjarnold/orchid-clip-v8},
}

License

MIT — see LICENSE. Weights derived from BioCLIP 2 (also MIT).

The MIT license covers the code and weights only. No training photos are included in this repository or redistributed. The photos came from iNaturalist (research-grade), OrchidRoots, Tree of Life / EOL, IOSPE, Kew POWO, the Atlas of Living Australia, Flickr, Wikimedia Commons and the Smithsonian, and each keeps its owner's license. Measured on the candidate pool before quality filtering (1.48M photos; the final training set is 1.14M), the mix is roughly:

Photo licenseShare
CC BY-NC (incl. -SA, -ND)70%
CC BY / CC BY-SA13%
All rights reserved8%
No stated license8%
CC0 / public domain2%

Most training photos carry non-commercial licenses; take that into account before any commercial use.

An earlier version of this card said the training data came only from CC0 / CC-BY sources. That was wrong.

Photographers or site owners who want their photos left out of future training can open an issue at https://github.com/musharna/orchid-clip/issues.

Validation

sanity_check.py does an end-to-end correctness check: load the model, run synthetic + real-image forward passes, then zero-shot rank a Cattleya labiata image against three orchid genera and two off-target categories.

python sanity_check.py

Expected output ends with === ALL PASS ===, with the zero-shot block looking like this:

=== zero-shot text cosine ===
  +0.7439  Cattleya labiata
  +0.5311  cat (off-target)
  +0.5104  car (off-target)
  +0.5063  Phalaenopsis
  +0.4851  Bulbophyllum
ok: top1 zero-shot is Cattleya labiata

The target species should win by ≥ +0.15 cosine over the nearest off-target. If it doesn't, the v8 weights did not load correctly.

Two notes for end-users:

  1. The WARNING:root:No pretrained weights loaded for model 'ViT-L-14'. Model initialized randomly. line is benign. It comes from open_clip because load_orchid_clip_v8 passes pretrained=None — the next line then loads the actual v8 weights via load_state_dict. The zero-shot ranking is the real correctness signal; if the target wins as above, the weights are loaded.

  2. The bundled sanity_check.py assumes a local SQLite DB only present on the upstream training host; on any other machine it exits cleanly after the synthetic forward (which passes even with random weights, so it's not the real correctness signal). If you don't have the dataset, point sanity_check_laptop.py at any Cattleya labiata image you have — the zero-shot ranking is the actual load-correctness signal.

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

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

GPU в ailist

Универсальный рантайм · open_clip

Нельзя запустить

Модели OpenCLIP требуют отдельного рантайма.

Ревизия весов
978fe8d

0 моделей