Перейти к содержимому

Вырезание и удаление фона

Чисто вырезать объект из фона

входИзображениеИзображение

Полный текст статьи представлен на английском; заголовок и аннотация локализованы.

Что это за возможность

Takes an image, sometimes with a hint point or box naming the subject, and outputs an image with an alpha channel — foreground kept, background transparent. Unlike segmentation it outputs a soft alpha matte rather than a hard class mask, and the semi-transparent transition at the edges is exactly what it must get right.

Как это устроено

A segmentation network first proposes the subject region, then a dedicated matting model estimates per-pixel opacity and foreground colour in the boundary band. Training data comes from compositing known subjects onto random backgrounds plus finely annotated alpha ground truth. Promptable segmentation models have made one-click cutouts easy, and video matting adds a requirement for temporal consistency across frames.

Примеры продуктов

4

Adobe

Firefly

Инструмент генерации и редактирования изображений для авторов

2Навыки
Приложение Закрытый
ИзображениеТекстИзображение
2023

Stability AI

Stable Diffusion

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

2Навыки
Модель Открытые веса
ТекстИзображениеИзображение
2022

SenseTime

SenseAvatar

Создаёт видео цифрового человека с синхронизацией губ из портрета и дорожки голоса

1Навыки
API Закрытый
ИзображениеАудиоВидео
2022

Hugging Face

Diffusers

Единая реализация и планировщик для диффузионных моделей

2Связи
Инструмент Открытый исходный код
2022

Связанные организации

Типичное применение

  • Re-backgrounding and layout of product photos
  • ID-photo and portrait cutouts
  • Virtual backgrounds for short video and live streaming
  • Asset extraction for design and compositing

Как её оценивают

IoU
Intersection over union of the foreground region
SAD / MSE
Absolute or squared error of the alpha channel against truth
Gradient error
Whether edge transitions look like a real matte

Границы и трудности

  • Hair, fur and mesh produce ragged or grey fringes instead of clean semi-transparent edges
  • When subject and background colours are close, or the background is busy, the boundary decision fails
  • Frame-by-frame video matting flickers at the edges and needs extra temporal handling

Концепции в основе

Глубокое обучение

Свёрточные нейронные сетиСредний

Замена полных связей на «смотреть локально и переиспользовать один и тот же фильтр везде» — идея, сделавшая распознавание изображений рабочим

5Связи
Иллюстрации 2 · Данные 1