# 全景分割

**全景分割**（Panoptic segmentation）是一项计算机视觉任务，它将为每个像素赋予类别标签的[语义分割](https://www.edgepedia.org/zh/semantic-segmentation)，与检测并分割每个独立物体实例的实例分割统一起来，使单一输出为每个像素标注类别，并在相关处标注物体身份。该任务及其评价指标——全景质量（PQ）——由Facebook人工智能研究院与[海德堡大学](https://www.edgepedia.org/zh/heidelberg-university)的Alexander Kirillov、何恺明（Kaiming He）、Ross Girshick、Carsten Rother和Piotr Dollár在2018年的一篇arXiv论文中提出，该论文发表于CVPR 2019。<sup>[1](https://arxiv.org/abs/1801.00868)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content_CVPR_2019/papers/Kirillov_Panoptic_Segmentation_CVPR_2019_paper.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 任务定义 | 每个像素获得一个类别标签和一个可选的实例标签；不允许分割区域重叠<sup>[1](https://arxiv.org/abs/1801.00868)</sup><sup> • </sup><sup>[3](https://github.com/cocodataset/panopticapi/blob/master/CONVERTERS.md)</sup> |
| stuff与things | “stuff”类（如天空或草地）无需实例标签；“things”是可计数的物体，需要实例标签<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup> |
| 指标 | 全景质量（PQ）可分解为分割质量（SQ）乘以识别质量（RQ），匹配要求IoU > 0.5<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup> |
| 原始基准 | Cityscapes、ADE20K和Mapillary Vistas<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup> |
| COCO全景 | 133类（80个thing，53个stuff），118k训练图像和5,000验证图像<sup>[5](https://github.com/cocodataset/cocodataset.github.io/blob/master/dataset/panoptic-2020.htm)</sup><sup> • </sup><sup>[6](https://cocodataset.org/files/panoptic_2019_reports/megvii_coco2019Panoptic-TechReport.pdf)</sup> |
| 方法家族 | 自顶向下、自底向上、单路径及其他方法；已扩展至视频和LiDAR点云<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S1051200421003225)</sup> |
| 实时性能 | YOSO（CVPR 2023）在COCO上以45.5 FPS达到46.4 PQ，在Cityscapes上以22.6 FPS达到52.5 PQ<sup>[8](https://openaccess.thecvf.com/content/CVPR2023/papers/Hu_You_Only_Segment_Once_Towards_Real-Time_Panoptic_Segmentation_CVPR_2023_paper.pdf)</sup> |

## 该任务及其与其他分割问题的关系

语义分割和实例分割回答的是不同的问题。语义分割为每个像素标注一个类别，因此图像中所有汽车共享一个标签；实例分割分别检测每个物体，但传统上不标注背景区域。全景分割要求同时给出这两种输出：每个像素携带一个语义类别，属于可计数物体的像素还额外携带一个实例标识符。一个像素不能拥有多于一个类别或实例标签，因此结果是对图像的一个单一连贯划分。<sup>[1](https://arxiv.org/abs/1801.00868)</sup><sup> • </sup><sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup>

stuff与things之间的区分组织了标签空间。stuff类是具有相似语义含义但没有独立实例身份的区域，如天空、道路或草地；每个stuff类占据一个分割段，即使它出现在不相连的区域。things是可计数的物体，因此两辆相邻的汽车必须被分为两个实例。在原始表述中，每个像素都有一个类别，只有thing像素才有实例。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup>

Kirillov及其同事提出该任务的动机是：早期的场景解析工作曾处理过类似的统一问题，但该领域后来变得不受欢迎，可能是因为缺乏合适的指标或识别竞赛；他们将全景分割定位为迈向面向真实世界视觉系统的更统一的图像分割观的一步。<sup>[1](https://arxiv.org/abs/1801.00868)</sup>

## 全景质量指标

PQ按类别计算。首先对预测分割段和真实分割段进行匹配：当一对分割段的交并比（IoU，即重叠面积与并集面积之比）超过0.5时，该对被计为真阳性，严格规则允许每个真实分割段至多匹配一次。未匹配的预测为假阳性，未匹配的真实分割段为假阴性。对于一张图像中的某个类别，

\[ PQ_{c,i} = \frac{\sum_{(g_k, p_l) \in TP} IoU(g_k, p_l)}{|TP| + \tfrac{1}{2}|FP| + \tfrac{1}{2}|FN|} \]

该式可分解为识别质量，即每类F1分数 \( RQ = |TP| / (|TP| + \tfrac{1}{2}|FP| + \tfrac{1}{2}|FN|) \)，以及分割质量，即匹配对的平均IoU \( SQ \)，满足 \( PQ = SQ \times RQ \)。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup> 该指标将stuff类和thing类纳入一个可解释的框架，这正是其既定目的。<sup>[1](https://arxiv.org/abs/1801.00868)</sup>

若干变体调整了两种分割类型之间的平衡。Porzi及其同事提出了PQ†，对thing类保留PQ，但对stuff类替换为普通IoU。<sup>[9](https://doi.org/10.1016/j.isprsjprs.2023.08.008)</sup> 对于视频，该指标链从PQ扩展至视频全景质量（VPQ），再扩展至分割与跟踪质量（STQ），并带有加权多摄像头扩展。<sup>[10](https://dergipark.org.tr/tr/pub/akuje/article/1914216)</sup>

该指标在其原始适用范围之外存在有据可查的局限。2023年，布鲁塞尔自由大学的Adrien Foucart、Olivier Debeir和Christine Decaestecker发表的一项分析认为，在数字病理学中，PQ应避免用于细胞核实例分割和分类，理由有四：该任务包含一个不计算PQ的背景类，因此误分类的检测结果比漏检受到更重的惩罚；IoU对细胞核等小物体非常敏感，边界模糊使得假阳性和假阴性像素数与周长成正比，而真阳性像素数与面积成正比；严格的0.5匹配阈值随后会拒绝明显正确的检测；由于PQ是SQ与RQ的乘积，小的分割偏移与整个漏检物体权重相同。对于一个150像素的细胞核，多估50像素得到IoU 0.75，而少估50像素则得到0.5。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup>

## 数据集与基准

**COCO全景**是最常用的基准之一。它使用所有已标注的COCO图像，包含检测任务的80个thing类别和91个stuff类别的一个子集，重叠经人工解决；该任务要求每个像素具有语义标签和实例ID。<sup>[5](https://github.com/cocodataset/cocodataset.github.io/blob/master/dataset/panoptic-2020.htm)</sup> 报告的类别数为133，分为53个stuff和80个thing，覆盖118k训练图像和5,000验证图像。<sup>[6](https://cocodataset.org/files/panoptic_2019_reports/megvii_coco2019Panoptic-TechReport.pdf)</sup><sup> • </sup><sup>[11](https://openaccess.thecvf.com/content/CVPR2023/papers/Jain_OneFormer_One_Transformer_To_Rule_Universal_Image_Segmentation_CVPR_2023_paper.pdf)</sup> COCO-Stuff系列数据集为91个stuff类别添加了语义掩码，这些掩码后来与实例掩码整合以支持全景标注。<sup>[12](https://openaccess.thecvf.com/content/CVPR2024/papers/Deng_COCONut_Modernizing_COCO_Segmentation_CVPR_2024_paper.pdf)</sup> 2024年，COCONut项目对这一资源进行了现代化改造，将其扩展至383k图像，拥有超过518万个全景掩码。<sup>[12](https://openaccess.thecvf.com/content/CVPR2024/papers/Deng_COCONut_Modernizing_COCO_Segmentation_CVPR_2024_paper.pdf)</sup>

**Cityscapes**于2019年将全景分割添加为其第三个基准任务，结合了城市街景的像素级和实例级语义标注。<sup>[13](https://www.cityscapes-dataset.com/benchmarks/)</sup> **ADE20K**提供150个类别，50个stuff和100个thing，覆盖20,210训练图像和2,000验证图像。<sup>[11](https://openaccess.thecvf.com/content/CVPR2023/papers/Jain_OneFormer_One_Transformer_To_Rule_Universal_Image_Segmentation_CVPR_2023_paper.pdf)</sup> Mapillary Vistas是原始研究中的第三个数据集。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup>

## 方法

综述将图像全景分割方法分为四组：自顶向下方法、自底向上方法、单路径方法和其他方法，视频全景分割和LiDAR数据全景分割被视为独立的子领域。<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S1051200421003225)</sup> 自顶向下流程通常分别运行实例分割和语义分割并合并结果，而单路径网络在一个模型中预测两种输出；早期的全景系统直接构建于Faster R-CNN等目标检测器和[Mask R-CNN](https://www.edgepedia.org/zh/mask-r-cnn)等实例分割器之上。<sup>[14](https://www.mdpi.com/2076-3417/15/9/5152)</sup>

**基于Transformer的架构**目前主导着基准。Mask2Former是一种掩码注意力掩码Transformer，设计为用一种架构处理全景、实例和语义分割，但需按任务分别训练。<sup>[15](https://arxiv.org/abs/2112.01527)</sup> OneFormer由SHI Labs、印度理工学院鲁尔基分校和Picsart AI Research的Jitesh Jain及其同事在CVPR 2023上提出，更进一步采用了任务条件联合训练策略、任务令牌和查询-文本对比损失，使得一次训练的单一模型在ADE20K、Cityscapes和COCO上的全部三项任务中均优于分别训练的Mask2Former模型；使用Swin-L骨干网络时，它在ADE20K验证集上达到49.8 PQ。<sup>[11](https://openaccess.thecvf.com/content/CVPR2023/papers/Jain_OneFormer_One_Transformer_To_Rule_Universal_Image_Segmentation_CVPR_2023_paper.pdf)</sup>

**速度**已成为一个独立的维度。YOSO（You Only Segment Once）是CVPR 2023的实时框架，报告在COCO上以45.5帧/秒达到46.4 PQ，在Cityscapes上以22.6 FPS达到52.5 PQ，在ADE20K上以35.4 FPS达到38.0 PQ，在Mapillary Vistas上以7.1 FPS达到34.1 PQ。<sup>[8](https://openaccess.thecvf.com/content/CVPR2023/papers/Hu_You_Only_Segment_Once_Towards_Real-Time_Panoptic_Segmentation_CVPR_2023_paper.pdf)</sup>

**开放词汇**变体将标签空间扩展到固定训练类别之外。OPSNet通过嵌入调制模块将分割模型与CLIP编码器耦合，以在开放词汇和封闭词汇两种设置下处理新类别。<sup>[16](https://openaccess.thecvf.com/content/ICCV2023/papers/Chen_Open-vocabulary_Panoptic_Segmentation_with_Embedding_Modulation_ICCV_2023_paper.pdf)</sup>

## 图像之外的扩展

该任务可推广到其他数据。在3D点云全景分割中，每个点获得一个语义类别，每个类别内的点被分为物体实例；2023年一项对室外移动测绘数据的综述发现该场景下先前工作很少，并报告[KPConv](https://www.edgepedia.org/zh/kpconv)在测试的骨干网络中表现最佳但速度较慢，而PointNet++最快但精度显著较低，实例步骤中嵌入特征的聚类优于偏移坐标。<sup>[17](https://arxiv.org/abs/2304.13980)</sup> 视频全景分割增加了时间一致性，面向驾驶的综述梳理了从平均IoU经PQ和VPQ到STQ的指标谱系，涵盖KITTI-STEP和Cityscapes-VPS等基准。<sup>[10](https://dergipark.org.tr/tr/pub/akuje/article/1914216)</sup>

## 应用

全景分割应用于自动驾驶、航空与遥感以及视障辅助技术。<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S1051200421003225)</sup> 自动驾驶场景理解综述将其与目标检测、语义分割和实例分割并列为主要的二维感知任务之一。<sup>[18](https://www.sciencedirect.com/science/article/pii/S0957417425017191)</sup> 在医学影像中，该指标和任务已被借用于细胞核级分析，但需注意上文关于指标适用性的告诫。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)</sup>

## References

1. [Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, Piotr Dollár (2018/2019). Panoptic Segmentation. arXiv:1801.00868.](https://arxiv.org/abs/1801.00868)
2. [Panoptic Segmentation, CVPR 2019 open access PDF.](https://openaccess.thecvf.com/content_CVPR_2019/papers/Kirillov_Panoptic_Segmentation_CVPR_2019_paper.pdf)
3. [panopticapi/converters.md at master · cocodataset/panopticapi · github](https://github.com/cocodataset/panopticapi/blob/master/CONVERTERS.md)
4. [Adrien Foucart, Olivier Debeir, Christine Decaestecker (2023). Panoptic quality should be avoided as a metric for assessing cell nuclei segmentation and classification in digital pathology. Scientific Reports 13:8614.](https://pmc.ncbi.nlm.nih.gov/articles/PMC10224986/)
5. [COCO Panoptic Segmentation Task page, cocodataset.github.io.](https://github.com/cocodataset/cocodataset.github.io/blob/master/dataset/panoptic-2020.htm)
6. [Megvii COCO 2019 Panoptic Segmentation technical report.](https://cocodataset.org/files/panoptic_2019_reports/megvii_coco2019Panoptic-TechReport.pdf)
7. [A survey on deep learning-based panoptic segmentation. Digital Signal Processing 120:103283 (2022).](https://www.sciencedirect.com/science/article/abs/pii/S1051200421003225)
8. [You Only Segment Once: Towards Real-Time Panoptic Segmentation, CVPR 2023.](https://openaccess.thecvf.com/content/CVPR2023/papers/Hu_You_Only_Segment_Once_Towards_Real-Time_Panoptic_Segmentation_CVPR_2023_paper.pdf)
9. [A Review of panoptic segmentation for mobile mapping point clouds. ISPRS Journal of Photogrammetry and Remote Sensing 203 (2023).](https://doi.org/10.1016/j.isprsjprs.2023.08.008)
10. [From semantic segmentation to panoramic video panoptic segmentation: a survey on driving datasets and metrics. Akdeniz Mühendislik Dergisi.](https://dergipark.org.tr/tr/pub/akuje/article/1914216)
11. [Jitesh Jain et al. (2023). OneFormer: One Transformer To Rule Universal Image Segmentation, CVPR 2023.](https://openaccess.thecvf.com/content/CVPR2023/papers/Jain_OneFormer_One_Transformer_To_Rule_Universal_Image_Segmentation_CVPR_2023_paper.pdf)
12. [COCONut: Modernizing COCO Segmentation, CVPR 2024.](https://openaccess.thecvf.com/content/CVPR2024/papers/Deng_COCONut_Modernizing_COCO_Segmentation_CVPR_2024_paper.pdf)
13. [Cityscapes Benchmark Suite.](https://www.cityscapes-dataset.com/benchmarks/)
14. [Panoptic Segmentation Method Based on Feature Fusion and Edge Guidance. Applied Sciences 15(9):5152 (2025).](https://www.mdpi.com/2076-3417/15/9/5152)
15. [Masked-attention Mask Transformer for Universal Image Segmentation (Mask2Former). arXiv:2112.01527.](https://arxiv.org/abs/2112.01527)
16. [Open-vocabulary Panoptic Segmentation with Embedding Modulation, ICCV 2023.](https://openaccess.thecvf.com/content/ICCV2023/papers/Chen_Open-vocabulary_Panoptic_Segmentation_with_Embedding_Modulation_ICCV_2023_paper.pdf)
17. [A Review of Panoptic Segmentation for Mobile Mapping Point Clouds. arXiv:2304.13980.](https://arxiv.org/abs/2304.13980)
18. [Deep learning methods for autonomous driving scene understanding tasks: A review. Expert Systems with Applications.](https://www.sciencedirect.com/science/article/pii/S0957417425017191)

---
*Initially written Oct 15, 2026 · Edited: Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › Low-level image analysis

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/panoptic-segmentation

English original: https://www.edgepedia.org/panoptic-segmentation
