Downloads · 30 days
255
42% of all-time downloads
Trendyol/trendyol-dino-v2.1-ecommerce-256d
trendyol-dino-v2.1-ecommerce-256d is a feature extraction model from Trendyol. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
Fine-tuned DinoV2 (ViT-B/14) with GeM pooling for e-commerce product image retrieval. This is the successor to Trendyol/trendyol-dino-v2-ecommerce-256d.
Downloads · 30 days
255
42% of all-time downloads
All-time downloads
614
Public
Parameters
86.8M
694 MB on disk
Likes
5
Public
Click a slice to open those files.
.bin347 MB · 50%
From the Hugging Face model README
Fine-tuned DinoV2 (ViT-B/14) with GeM pooling for e-commerce product image retrieval.
This is the successor to Trendyol/trendyol-dino-v2-ecommerce-256d.
Paper: TBD — "Visual Search at Trendyol" (in review)
ray-dinov2-full_catalog_1000_20-pfc-gem-mlp-run_12 epoch 09| v2 | v2.1 | |
|---|---|---|
| Pooling / head | Flatten spatial tokens → Linear(196608→256) | GeM → Linear(768→256) |
| Training data | 300 distinct products per ~3400 categories | 1000 distinct products per ~3400 categories |
| Preprocess | Lanczos/JPEG/332 pad pipeline | Scale+pad to 224 (training inference preprocess) |
import torch
from PIL import Image
from transformers import AutoModel, AutoImageProcessor
device = "cuda" if torch.cuda.is_available() else "cpu"
repo = "Trendyol/trendyol-dino-v2.1-ecommerce-256d"
processor = AutoImageProcessor.from_pretrained(repo, trust_remote_code=True)
model = AutoModel.from_pretrained(repo, trust_remote_code=True).to(device).eval()
image = Image.open("your_image.jpg").convert("RGB")
inputs = processor(images=image, return_tensors="pt")
inputs = {k: v.to(device) for k, v in inputs.items()}
with torch.no_grad():
embeddings = model(**inputs).last_hidden_state # [1, 256]
print(embeddings.shape)
pip install transformers torch torchvision safetensors pillow numpy
trust_remote_code=TrueSee LICENSE. Same terms as the v2 release: source-available; commercial use requires attribution and prior notification to Trendyol ([email protected]).
@misc{trendyol-dinov2-ecommerce-v21,
title={Trendyol DinoV2.1 E-commerce Image Similarity Model},
author={Trendyol Data Science Team},
year={2026},
url={https://huggingface.co/Trendyol/trendyol-dino-v2.1-ecommerce-256d}
}
@article{radenovic2018gem,
title={Fine-tuning CNN Image Retrieval with No Human Annotation},
author={Radenovi{\'c}, Filip and Tolias, Giorgos and Chum, Ond{\v{r}}ej},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
volume={41},
number={7},
pages={1655--1668},
year={2018},
doi={10.1109/TPAMI.2018.2846566},
note={GeM pooling; also arXiv:1711.02512}
}
@misc{trendyol-visual-search-tbd,
title={Visual Search at Trendyol},
author={Trendyol Data Science Team},
year={2026},
note={Paper TBD (in review)}
}