/ Модель

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

Лицензия
Своя лицензия
Библиотека
pytorch
Опубликована
1 окт 2026

SHSSNet-P

Сегментация изображенийИзображение → mask3 профессии

SHSSNet-P — дистиллированная от SAM 3 модель сегментации изображений, выделяющая рекламные щиты и вывески как визуальное загрязнение.

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

Бенчмарки

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

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

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

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

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

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

SHSSNet-P — вариант компактной модели сегментации изображений, разработанный авторами репозитория oxqlion и обученный с дистилляцией знаний от SAM 3. Модель выделяет на фотографии область визуального загрязнения, прежде всего рекламные щиты и вывески, отделяя её от фона. SAM 3 используется как учитель только при обучении, поэтому для инференса он не требуется.

Архитектура представляет собой энкодер-декодер с ветвями маски, границ и наличия целевого объекта. Вариант SHSSNet-P содержит около 15,68 млн параметров. Модель обучалась на фотографиях рекламных щитов и вывесок; в тестах на отложенных данных показала IoU 0,669 и Dice 0,802, а на тестовом разбиении набора billboard.v1i.yolov11 — mIoU 0,8785.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SHSSNet: SAM3-distilled visual-pollution (billboard) segmentation

Lightweight (7M to 16M parameter) binary segmentation networks, background vs. visual pollution (billboards and signage), trained with knowledge distillation from SAM 3. SAM 3 is used only as a training-time teacher. The students run standalone at inference and do not need SAM 3.

This repository holds two experiment folders:

folderwhat it isfiles
shssnet_distillation/Pretrain on billboard.v1i.yolov11 (SAM3 pseudo-labels), fine-tunes on dataset_khresna, ablations, and a loss-weight grid23 .pt
shssnet_kd_sam3/KD from SAM3 trained from scratch on dataset_khresna with human GT masks plus SAM3 feature/presence distillation: pilot runs, baselines and Kaggle runs9 .pt

Model variants

variantparamsGFLOPsnotes
shssnet_c7.44M27.5compact
shssnet_c_wide13.03M40.2wider compact
shssnet_p15.68M68.9largest, best accuracy

Run suffixes:

  • runA: pseudo-labels from the billboard-only SAM3 prompt.
  • runB: pseudo-labels from the full 7-concept SAM3 union.
  • ft_*: fine-tuned on dataset_khresna (ds1 + ds2) at 512 px.
  • *_kd: fine-tuned with distillation losses.
  • ablate_*: single-component ablations of shssnet_c_runA. Each one disables a presence gate, a hard gate, the boundary skip, the feature loss, and so on.
  • grid_*_lf{λ_feature}_lb{λ_boundary}: loss-weight grid on shssnet_c_runB.
  • pilot_* and pilot_base_*: 20-epoch distilled and non-distilled baseline pairs.
  • kaggle_*: runs trained on Kaggle (_last is the last epoch rather than the best).

Architecture: presence-gated, boundary-aware encoder-decoder with a shared stride-16 feature (256 ch), a mask head, a boundary head and an image-level presence head.

Distillation objective

L = λ_feature·L_feature + λ_presence·L_presence + λ_boundary·L_boundary + λ_seg·L_seg
  • L_feature: cosine alignment of the student's shared feature to SAM3 FPN features.
  • L_presence: student presence logit against the SAM3 image-level score.
  • L_boundary: BCE+Dice on a morphological-gradient boundary band.
  • L_seg: BCE+Dice on the mask.

Results

Held-out seg_ds5_pakEvert (967 field photos, never seen in training)

checkpointfg IoUDicemAP@50 (mask)mAP@50-95 (mask)
ft_p0.6690.8020.3240.218
shssnet_p_runB0.6550.7920.3930.257
shssnet_p_runA0.6090.7570.3080.204
ft_c_wide0.4990.6660.1780.095
ft_c0.4830.6520.1800.098
shssnet_c_runA0.4480.6180.1710.096

ft_p wins pixel metrics and shssnet_p_runB wins instance-level mAP. mAP is computed over connected-component instances, since the task is binary, so treat it as indicative. The 11 checkpoints evaluated here (all but the shssnet_kd_sam3/ pilots) were never trained on ds5 images. The shssnet_kd_sam3/pilot_* checkpoints did train on about 72% of ds5 and should not be compared on it.

Test split of the billboard.v1i.yolov11 re-split (shssnet_distillation/)

runmIoUDiceparams
shssnet_p_runB0.87850.934115.7M
shssnet_p_runA0.85360.919015.7M
shssnet_c_runA0.79590.88237.4M
shssnet_c_wide_runA0.78300.873513.0M
SegFormer-B1 baseline0.88680.9390n/a
PIDNet-S baseline0.74780.8495n/a

Small objects remain the weak spot: recall@0.5 on small instances is about 0 to 0.11 even for the P variant.

Usage

Checkpoints are full training checkpoints (model_state, optimizer_state, scheduler_state, epoch, metric_value, ...). For shssnet_kd_sam3/ they also include loss_module_state. Weights are under model_state. Each file is roughly 90 MB to 190 MB because it carries optimizer state.

import torch
from huggingface_hub import hf_hub_download

# repo_id is a placeholder: replace it with this repo's id
path = hf_hub_download("<user-or-org>/<repo>", "shssnet_distillation/ft_p.pt")
ckpt = torch.load(path, map_location="cpu", weights_only=False)
print(ckpt["epoch"], ckpt["metric_value"])

# model classes live in the `shssnet` package of the matching experiment folder
# from shssnet.models import build_model
# model = build_model(cfg); model.load_state_dict(ckpt["model_state"]); model.eval()

Use the shssnet package from the matching experiment (shssnet_distillation or shssnet_kd_sam3) in the code repo: . The class-defining config is in that experiment's configs/. weights_only=False is needed because the checkpoints contain RNG state, so only load files you trust.

Input size: 640x640 for the pretrain runs, 512x512 for ft_* and shssnet_kd_sam3 runs. Output: a foreground mask logit (B,1,H,W), a boundary logit (B,1,H/4,W/4) and an image-level presence logit (B,).

Training data

  • billboard.v1i.yolov11 (Roboflow): 1,721 human-reviewed images, re-split by augmentation group (~71/14/14). Pseudo-masks come from SAM3 (facebook/sam3) prompted per pollution sub-concept.
  • dataset_khresna (seg_ds1_mainBB, seg_ds2_indoRoboflow, seg_ds5_pakEvert): 6,525 usable images after removing 64 messy ones, split 4,660/932/933 grouped by source photo.
  • [Unsegment]Billboard_Dataset_pakEvert: 403 raw field photos used only for qualitative testing.

Limitations

  • Binary only (visual pollution vs. background). It does not classify the pollution type.
  • Trained on billboard-style imagery from a few sources, so expect a domain gap elsewhere. IoU on field photos (0.67) is far below the in-domain test mIoU (0.88).
  • Small objects are poorly recalled.
  • Labels for the pretrain runs are SAM3 pseudo-labels and inherit the teacher's errors.
  • SAM 3 is released under its own license; check facebook/sam3 terms before commercial use. The license: other tag above is a placeholder, so set it to what you intend.

Citation

@misc{shssnet_visual_pollution,
  title  = {SHSSNet: SAM3-distilled visual-pollution segmentation},
  author = {Rafi Abhista},
  year   = {2026},
  note   = {Model checkpoints}
}

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

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

GPU в ailist

Универсальный рантайм · pytorch · image-segmentation

Можно запустить

Подбираем GPU…

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

0 моделей