We present SegGPT, a generalist model for segmenting everything in context. We unify various segmentation tasks into a generalist in-context learning framework that accommodates different kinds of segmentation data by transforming them into the same format of images. The training of SegGPT is formulated as an in-context coloring problem with random color mapping for each data sample. The objective is to accomplish diverse tasks according to the context, rather than relying on specific colors. After training, SegGPT can perform arbitrary segmentation tasks in images or videos via in-context inference, such as object instance, stuff, part, contour, and text. SegGPT is evaluated on a broad range of tasks, including few-shot semantic segmentation, video object segmentation, semantic segmentation, and panoptic segmentation. Our results show strong capabilities in segmenting in-domain and out-of-domain targets, either qualitatively or quantitatively.
核心贡献 · Key contributions
首个通过上下文学习实现多种分割任务的通用模型。 First generalist model for diverse segmentation tasks via in-context learning.
将分割任务统一为具有随机颜色映射的上下文着色框架。 Unifies segmentation tasks into an in-context coloring framework with random color mapping.
无需微调即可执行图像或视频中的任意分割任务。 Performs arbitrary segmentation tasks in images or videos without fine-tuning.
提出上下文集成策略(空间和特征)用于多示例提示。 Proposes context ensemble strategies (spatial and feature) for multi-example prompting.
支持无需更新模型参数的上下文调优,用于专门任务。 Enables in-context tuning for specialized tasks without updating model parameters.
在域内和域外分割基准上表现强劲。 Strong performance on in-domain and out-of-domain segmentation benchmarks.
局限 · Limitations
随机着色方案使域内任务更难,导致性能下降。 Random coloring scheme makes in-domain tasks harder, causing performance drop.
并非旨在所有基准上超越专用模型。 Not designed to outperform specialist models on all benchmarks.
性能受限于模型大小和数据可用性以进行规模扩张。 Performance limited by model size and data availability for scaling.
上下文集成策略在低分辨率图像上可能导致信息丢失。 Context ensemble strategies may cause information loss with low-resolution images.
域内任务的上下文调优仍落后于专用方法。 In-context tuning for in-domain tasks still lags behind specialist methods.