语义分割
使用预训练 AI 模型标注真实值并执行语义分割,使用迁移学习训练 U-Net 等自定义网络
Computer Vision Toolbox™ 中的语义分割工具支持您使用预训练 AI 模型和自定义深度学习网络执行图像的像素级分类。您可以首先使用图像标注器和视频标注器创建标注真实值,它们支持对图像和视频进行交互式和 AI 辅助的像素级类别标签注解。有关详细信息,请参阅Label Pixels for Semantic Segmentation。
工具箱提供了预训练语义分割模型,如 BiSeNet V2。您可以直接使用这些模型进行推断,或将其适配到特定应用。您还可以使用迁移学习通过 U-Net、3D U-Net 和 DeepLab v3+ 等架构来训练自定义分割网络。有关详细信息,请参阅Get Started with Semantic Segmentation Using Deep Learning。
为了准备训练数据,工具箱提供了用于加载和管理数据集以及组织和分析像素标签数据的实用工具。工具箱还支持数据增强和预处理。有关详细信息,请参阅Training Data for Object Detection and Semantic Segmentation。
使用预训练或自定义模型生成预测结果后,您可以将分割预测结果与真实值进行比较,并计算轮廓匹配得分、Sørensen-Dice 相似度、Jaccard 相似度以及混淆矩阵等评估度量。有关详细信息,请参阅 evaluateSemanticSegmentation。

函数
主题
快速入门
- Get Started with Semantic Segmentation Using Deep Learning
Segment objects by class using deep learning networks such as U-Net and DeepLab v3+. - Choose Function to Visualize Detected Objects
Compare visualization functions.
为语义分割创建真实值
- Label Pixels for Semantic Segmentation
Label pixels for training a semantic segmentation network by using a labeling app. - How Labeler Apps Store Exported Pixel Labels
Learn how the labeling apps store pixel label data.
为语义分割准备训练数据
- Training Data for Object Detection and Semantic Segmentation
Create training data for object detection or semantic segmentation using the Image Labeler or Video Labeler. - Datastores for Deep Learning (Deep Learning Toolbox)
Learn how to use datastores in deep learning applications. - Get Started with Image Preprocessing and Augmentation for Deep Learning
Preprocess data for deep learning applications with deterministic operations such as resizing, or augment training data with randomized operations such as random cropping.







