Downloads · 30 days
0
haruntrkmn/ty-bg-remover-test
ty-bg-remover-test is a image segmentation model from haruntrkmn. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
TY Fashion Background Remover is an IS-Net–based human segmentation and background-removal model designed to automatically detect and isolate people in images. It produces high-quality binary/alpha masks and trimmed R…
Downloads · 30 days
0
Access
Public
Updated Aug 11, 2025
Repo size
176 MB
Likes
1
Public
Click a slice to open those files.
.onnx176 MB · 100%
From the Hugging Face model README
TY Fashion Background Remover is an IS-Net–based human segmentation and background-removal model designed to automatically detect and isolate people in images. It produces high-quality binary/alpha masks and trimmed RGBA composites intended for downstream editing, compositing, and automated image pipelines. Although optimized for fashion photography, it is suitable for any application where the image contains human and the goal is to separate them cleanly from the background.
Automatically remove backgrounds from images containing human, isolating the subject for further editing, compositing, or analysis.
Designed for use in applications such as e-commerce product photography, fashion catalogs, profile pictures, and creative media projects where the human subject needs to be cleanly separated from the background.
Optimized for images with clear human presence; not intended for objects, animals, or scenes without people.
Can be used as a preprocessing step for downstream tasks like virtual try-on, background replacement, and image-based content generation.
Complete example to load the model, remove background of an image, and save the results:
"""
ONNX inference script for image segmentation model.
This script loads an ONNX model and performs inference on an input image to generate
an alpha mask. The mask is combined with the RGB image and saved as output.
"""
import onnxruntime as ort
from utils import process_image
if __name__ == "__main__":
MODEL_PATH = "model.onnx"
SRC = "https://cdn.dsmcdn.com/ty184/product/media/images/20210924/23/136268224/224296134/1/1_org_zoom.jpg"
OUTPUT_FILE = "out.png"
# Initialize ONNX runtime session with CUDA and CPU providers
ort_session = ort.InferenceSession(
MODEL_PATH,
providers=["CUDAExecutionProvider", "CPUExecutionProvider"]
)
process_image(SRC, ort_session, MODEL_PATH, OUTPUT_FILE)
@misc{trendyol2025fashionbgremover,
title={TY Fashion Background Remover},
author={Trendyol Data Science Team},
year={2025},
howpublished={\url{https://huggingface.co/trendyol/ty-fashion-bg-remover}}
}
This model is released by Trendyol as a source-available, non-open-source model.
By downloading or using this model, you agree to the terms above.
© 2025 Trendyol Teknoloji A.Ş. All rights reserved.
See the LICENSE file for more details.
For technical support or questions about this model, please contact the Trendyol Data Science team.