orchid-clip-v9cw05
An image encoder for orchid species, fine-tuned from BioCLIP 2.5 (ViT-H/14). It outputs 1024-dim L2-normalized image features. It is the second of two models in the orchid-genus-id Space, where its scores are averaged with orchid-clip-v8.
How it was made
- Fine-tune: contrastive fine-tune of
imageomics/bioclip-2.5-vith14on the same training pool as v8 (1.12M images of 5,124 orchid species, WCVP synonyms merged, inverse-sqrt species sampler capped at 2,000 images per species). Two runs: 3 epochs of 500k sampled images at peak lr 1e-5, then 3 more epochs of 800k sampled images at peak lr 5e-6, resumed from the first. - Weight averaging: the released weights are half the fine-tuned model plus half the base model, parameter by parameter (WiSE-FT; Wortsman et al., CVPR 2022). "w05" in the name is that 0.5.
Files
| file | size | what |
|---|---|---|
open_clip_pytorch_model.bin | 3.9 GB | full CLIP weights, open_clip format |
model_config.json | 58 B | {"model_name": "ViT-H-14", "framework": ...} |
embed_example.py | — | load + embed one photo |
LICENSE | — | MIT |
ViT-H-14 is open_clip's built-in config, which has the same architecture as
BioCLIP 2.5. The state dict is wrapped: keys live under state["state_dict"].
pip install open_clip_torch torch pillow
hf download musharna/orchid-clip-v9cw05 --local-dir orchid-clip-v9cw05
python orchid-clip-v9cw05/embed_example.py orchid-clip-v9cw05 your_orchid.jpg
Load with pretrained=None and then the state dict, as embed_example.py does.
An hf-hub: model name loads the base BioCLIP 2.5 weights, not these.
Evaluation
These results are for the Space's method: rank a photo by cosine against per-species image centroids (the mean embedding of up to 256 photos per species, 24,388 species). The test set is 8,837 photos of 3,369 species, held out of training and of the centroids.
| model | species top-1 | genus top-1 | species named at 90% precision |
|---|---|---|---|
| orchid-clip-v8 | 0.715 | 0.918 | 59% |
| orchid-clip-v9cw05 | 0.723 | 0.935 | 62% |
| v8 + v9cw05, averaged | 0.742 | 0.937 | 66% |
The last column uses the Space's abstain rule: name a species only when the top match beats the runner-up by a threshold. The threshold was set on these same photos for 90% precision. For 243 photos of species with no centroid, genus top-1 is 0.56 (v8), 0.63 (v9cw05) and 0.63 (averaged).
This model was picked from four candidates (fine-tunes and weight averages) on these same photos, so its numbers are somewhat optimistic.
Limitations
- Only the image tower has been evaluated. The text tower has not been tested for zero-shot use.
- Most errors confuse species within a genus. Treat a top-1 as "this genus, probably this species".
- Hybrids are not a target. For a hybrid the model returns the closest species.
- ViT-H/14 is large: a 3.9 GB checkpoint, and CPU inference is slow.
License
MIT, see LICENSE. Derived from BioCLIP 2.5 (MIT).
The MIT license covers the code and weights only. No training photos are included in this repository or redistributed. The training photos are the same pool as orchid-clip-v8's, 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, about 70% are CC BY-NC (incl. -SA, -ND), 13% CC BY / CC BY-SA, 8% all rights reserved, 8% have no stated license and 2% are CC0 / public domain. Most training photos carry non-commercial licenses; take that into account before any commercial use.
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.