Downloads · 30 days
76
54% of all-time downloads
Trendyol/trendyol-yolov9-ecommerce-object-detector
trendyol-yolov9-ecommerce-object-detector is a object detection model from Trendyol. Use it when you need objects located in an image. It is set up for onnxruntime. The card lists the license as cc-by-sa-4.0.
YOLOv9-m object detector trained for product and object localization in e-commerce images.
Downloads · 30 days
76
54% of all-time downloads
All-time downloads
141
Public
Repo size
132 MB
Likes
5
Public
Click a slice to open those files.
.onnx132 MB · 100%
From the Hugging Face model README
YOLOv9-m object detector trained for product and object localization in e-commerce images.
Paper: TBD — "Visual Search at Trendyol" (in review) This Hub release contains the epoch-41 ONNX export and a small Python inference helper that follows the preprocessing and postprocessing used by the Trendyol object-detection service.
The initial YOLOv9 implementation was based on MultimediaTechLab/YOLO, the official YOLOv9/YOLOv7/YOLO-RD implementation by Kin-Yiu Wong and Hao-Tang Tsui. The upstream repository is released under the MIT License. The upstream copyright and permission notice is included in the repository's LICENSE file alongside the Trendyol model license.
This release contains Trendyol-specific training, export, preprocessing, postprocessing, class mapping, and inference changes. It is not an official release of the upstream project.
(114, 114, 114)public_id = raw_id - 10.10, IoU 0.50, maximum 10 detectionspip install -r requirements.txt
from PIL import Image
from inference import YOLOv9Detector
detector = YOLOv9Detector.from_pretrained(".")
detections = detector(Image.open("image.jpg"))
for detection in detections:
print(detection)
Each detection has this shape:
{
"box": [x1, y1, x2, y2], # pixel coordinates in the original image
"score": 0.91,
"class_id": 66,
"class_name": "Üst Giyim",
"class_name_en": "Upper Garments",
}
To use a different threshold or limit:
detections = detector(
"image.jpg",
confidence_threshold=0.10,
iou_threshold=0.50,
max_detections=10,
)
The ONNX model input is named input and has shape [batch, 3, 640, 640] with float32 values. The model emits 18 raw tensors. The first nine are the main detection path at strides 8, 16, and 32; the remaining nine are auxiliary outputs and are not needed for inference.
For low-level ONNX Runtime usage, see config.json, classes.json, and inference.py. The helper is recommended because it performs the raw YOLOv9 decoding, coordinate restoration, class-wise NMS, and production class-ID conversion.
classes.json contains the public zero-based class mapping with corrected Turkish and English names. The public list intentionally contains no temporary, training-only, or legacy spelling fields.
The model and Trendyol-specific artifacts are licensed under CC BY-SA 4.0. Upstream-derived helper code is licensed under MIT. See LICENSE.
@misc{trendyol-yolov9-ecommerce-object-detector,
title={Trendyol YOLOv9 E-commerce Object Detector},
author={Trendyol Data Science Team},
year={2026},
url={https://huggingface.co/Trendyol/trendyol-yolov9-ecommerce-object-detector}
}