/ Модель

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

Лицензия
Apache 2.0
Архитектура
tryon-safety-classifier · dense
Базовая модель
ViT-SO400M-16-SigLIP2-384
Библиотека
open_clip
Опубликована
7 окт 2026

tryon-safety-classifier

Классификация изображенийИзображение → label3 профессии

Модель Genlook классифицирует фотографии одежды и товаров, оценивая уровень откровенности ожидаемого результата виртуальной примерки.

787скачиваний за 30 дней1лайквеса обновлены7 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Genlook Try-On Safety Classifier — модель классификации изображений товаров, предназначенная для оценки того, насколько откровенно будет выглядеть виртуальная примерка одежды. Она анализирует фотографии товара, а не человека, и присваивает уровень `ok`, `revealing`, `lingerie` или `adult`, а также определяет, предназначен ли товар для людей, питомцев или не относится к одежде, и оценивает покрытие купальников. Модель дообучена Genlook на базе визуально-языковой SigLIP 2 SO400M с патчем 16 и разрешением 384 пикселя; веса опубликованы в формате safetensors. Основной вариант дообучен сквозным образом, а облегчённый вариант `frozen` использует неизменённую базовую модель и классификационные головы.

Модель предназначена для предварительной проверки карточек товаров в интернет-магазинах и сервисах виртуальной примерки. README сообщает о точности 94,6% по четырём уровням на пятифолдовой кросс-валидации на 2 596 товарах. Лицензия — Apache-2.0. Модель обучалась преимущественно на фотографиях западных интернет-магазинов; ошибки чаще возникают на прозрачном белье и фестивальной одежде, поэтому пороги блокировки следует выбирать с учётом аудитории и допустимого уровня ложных срабатываний. Она классифицирует товары и не предназначена для идентификации людей или принятия решений о них.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Try-On Safety Classifier

Decides, from product photos, what a virtual try-on of that product would show. Built by Genlook to gate garments before they are rendered onto a shopper's photo.

Join the Discord for support, false-positive reports and feedback · Genlook Try-On API to add virtual try-on to a store or an app

It answers one question per product: if a shopper tries this on, how much skin or sexual content ends up in the result? That is different from a generic NSFW detector, which judges the pixels of the product photo. A lingerie flat lay has no nudity in it, but the try-on result would show the shopper in lingerie. A fetish mask on a mannequin is not explicit, but it is still a sexual product.

Outputs

HeadValues
levelok, revealing, lingerie, adult (ordered by severity)
subjecthuman_clothing, pet, not_clothing
swimwearnot_swimwear, regular, near_micro, micro
raveweartrue or false

Levels

  • ok: the shopper is shown normally dressed. Everyday clothing, sportswear, full-coverage costumes and cosplay, wetsuits, accessories and non-clothing items.
  • revealing: swimwear-level coverage. Bikinis and swimsuits (including string and thong cuts that still cover), men's underwear, shapewear, cover-ups over swimwear, micro skirts and shorts, most festival and rave outfits.
  • lingerie: women's underwear and lingerie where nothing intimate is clearly visible. Bras, bralettes, panties and thongs, lingerie sets, bodysuits, teddies, babydolls, garters, stockings, corsets.
  • adult: intimate areas exposed, or a sexual product. Swimwear that barely covers the nipples or genitals, pasties and nipple covers, body chains worn on bare skin, see-through pieces with nipples or genitals clearly visible, open-cup and crotchless designs, BDSM and fetish wear (including leather or latex restraints, harnesses, collars, hoods, pup-play gear and fetish suits), sexual role-play costumes, sexualised anime outfits, anything revealing shown on a drawn or anime figure, sex toys, and nudity used as a product shot.

The full rules, with a table of hard cases, are in LABELLING_POLICY.md.

Tags

  • subject: what the product is made for. Pet harnesses and pet clothes are pet. Cosmetics, wigs, home goods and other items you cannot wear as clothing are not_clothing.
  • swimwear: coverage of real swimwear only. regular is ordinary bikini or swimsuit coverage, near_micro is a small but complete cut (string, thong or G-string bikinis, small cups), micro barely covers the nipples or genitals. regular and near_micro are revealing; micro is adult.
  • ravewear: festival and rave outfits (rave bras and bodysuits, fishnet or rhinestone festival sets, chain tops, holographic pieces). It does not change the level. Pasties on their own and swimwear made of rave materials are not ravewear.

Usage

# pip install torch open_clip_torch safetensors huggingface_hub pillow
from huggingface_hub import hf_hub_download
import importlib.util

spec = importlib.util.spec_from_file_location("tryon_safety", hf_hub_download("Genlook/tryon-safety-classifier", "tryon_safety.py"))
tryon_safety = importlib.util.module_from_spec(spec); spec.loader.exec_module(tryon_safety)

clf = tryon_safety.TryOnSafetyClassifier.from_pretrained("Genlook/tryon-safety-classifier")
pred = clf.predict(["front.jpg", "back.jpg"])  # all photos of one product
print(pred.level, pred.blocked, pred.probs, pred.subject, pred.swimwear, pred.ravewear)

Pass every photo you have of a product: the score is computed over all of them. Use pred.blocked (P(adult) at or above the threshold in config.json, 0.3 by default) rather than the top level when you need a safety gate, because it catches more adult products for a small increase in false blocks.

Variants

VariantFolderSizeWhen to use
finetuned (default)repo rootabout 0.9 GBBest at catching adult products, especially leather, BDSM and fetish items
frozenfrozen/about 120 KB on top of the public SigLIP 2 weightsLighter, easy to retrain; misses slightly more adult products
clf = tryon_safety.TryOnSafetyClassifier.from_pretrained("Genlook/tryon-safety-classifier", variant="frozen")

Pin a release with revision="v1.0" so an update never changes your results without you choosing it.

Evaluation

5-fold cross-validation over 2,596 products (about 5,000 photos): every product is scored by a model that never saw it.

finetunedfrozen
Accuracy (4 levels)94.6%94.2%
Adult products missed, top level53 of 53453 of 534
False adult, top level3441
Adult products missed, threshold 0.334 of 53439 of 534
False adult, threshold 0.35255
Lingerie recall90%89%
Subject accuracy99.2%
Swimwear tag accuracy90.0%
Ravewear tag accuracy95.3% (recall 72%)

By product group (finetuned, top level):

GroupProductsAccuracyAdult missed
Everyday fashion catalogs1,03297.5%10 of 77
Exotic and micro swimwear33091.8%13 of 106
Swimwear brands23095.2%4 of 4
Lingerie brands12094.2%3 of 4
Festival and rave11585.2%4 of 15
Rope and bondage75100%0 of 75
Anime and cosplay6393.7%1 of 16
Fetish, lingerie and pet catalogs63192.6%18 of 237

True micro swimwear: 91 of 95 caught.

Training data

About 2,600 garment and accessory products, from product photos of online shop catalogs, chosen to cover the hard cases (lingerie, micro swimwear, fetish wear, festival wear, cosplay, pet wear). Only product photos are used, never photos of shoppers.

Labels follow a written policy, published in LABELLING_POLICY.md. A large language model (Claude) labelled every product after looking at every photo, and a human reviewer corrected the boundary cases. The dataset is not released.

Limitations

  • The hardest boundary is sheer lingerie: whether nipples or genitals are clearly visible decides between lingerie and adult, and look-alike products are close. Most remaining errors are there.
  • Festival and rave wear is the weakest group: fishnet, mesh and rhinestones push the model towards adult.
  • The levels describe what a try-on result would show. They are not a judgement of the product or the shop, and the right gate depends on your audience: some stores allow lingerie, some block revealing.
  • Trained mostly on western e-commerce photography. Expect lower accuracy on very different photo styles.
  • Do not use it to identify or make decisions about people. It classifies products.

Model details

  • Base: SigLIP 2 so400m, patch 16, 384 px (Apache-2.0).
  • finetuned: last 6 transformer blocks and the attention-pool head trained end to end for 6 epochs with four linear heads, class-balanced loss, random crop, flip and colour jitter.
  • frozen: the base tower unchanged, logistic-regression heads on the mean and max of the photo embeddings.
  • Weights are stored as safetensors. Inference needs open_clip and torch only.

Changelog

  • v1.0: first release. Four levels, subject, swimwear and ravewear heads.

Support and community

Questions, false positives you want to report, or ideas for the next version: join the Genlook Discord or open a discussion on this repo.

Building virtual try-on into a store or an app? See the Genlook Try-On API.

License

Apache-2.0, like the base model.

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

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

GPU в ailist

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

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

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

Ревизия весов
cfa5737

0 моделей