

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 启动标签验证或调整作业 (API)
<a name="sms-data-verify-start-api"></a>

通过链接已成功完成的作业启动标签验证或调整作业，或者使用 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html) 操作从头开始启动新作业。该过程与使用 `CreateLabelingJob` 设置新标注作业几乎相同，只是做了一些修改。使用以下部分了解需要进行哪些修改才能链接标注作业以创建调整或验证标注作业。

当您使用 Ground Truth API 创建调整或验证标注作业时，*必须*使用与原始标注作业不同的 `LabelAttributeName`。原始标注作业是用于创建要调整或验证的标签的作业。

**重要**  
在 `CreateLabelingJob` 的 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelCategoryConfigS3Uri](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelCategoryConfigS3Uri) 中为调整或验证作业标识的标签类别配置文件必须包含原始标注作业中使用的相同标签。您可以添加新标签。对于 3D 点云和视频帧作业，可以将新的标签类别和帧属性添加到标签类别配置文件中。

## 边界框和语义分割
<a name="sms-data-verify-start-api-image"></a>

要创建边界框或语义分割标签验证或调整作业，请使用以下指导原则为 `CreateLabelingJob` 操作指定 API 属性。
+ 使用 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelAttributeName](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelAttributeName) 参数可指定要用于已验证或已调整的标签的输出标签名称。您必须使用与原始标注作业所用不同的 `LabelAttributeName`。
+ 如果要链接作业，则将在自定义 UI 模板中指定要调整或验证的前一个标注作业中的标签。要了解如何创建自定义模板，请参阅[创建自定义工作人员模板](a2i-custom-templates.md)。

  在[https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html)参数中标识 UI 模板的位置。 SageMaker AI 提供了小部件，您可以在自定义模板中使用这些控件来显示旧标签。使用以下 crowd 元素之一中的 `initial-value` 属性提取需要验证或调整的标签，并将其包含在任务模板中：
  + [crowd-semantic-segmentation](sms-ui-template-crowd-semantic-segmentation.md) – 在自定义 UI 任务模板中使用此 crowd 元素来指定需要验证或调整的语义分割标签。
  + [crowd-bounding-box](sms-ui-template-crowd-bounding-box.md) – 在自定义 UI 任务模板中使用此 crowd 元素来指定需要验证或调整的边界框标签。
+ [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelCategoryConfigS3Uri](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelCategoryConfigS3Uri) 参数必须包含与之前标注作业相同的标签类别。
+ 使用边界框或语义分割调整或验证 lambda ARNs 来表示和：[https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_HumanTaskConfig.html#sagemaker-Type-HumanTaskConfig-PreHumanTaskLambdaArn](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_HumanTaskConfig.html#sagemaker-Type-HumanTaskConfig-PreHumanTaskLambdaArn)
  + 对于边界框，调整标签作业 lambda 函数以 ARNs 结尾，验证 lambda 函数 ARNs 以结尾。`AdjustmentBoundingBox` `VerificationBoundingBox`
  + 对于语义分割，调整标签作业 lambda 函数以 ARNs 结尾，验证 lambda 函数 ARNs 以结尾。`AdjustmentSemanticSegmentation` `VerificationSemanticSegmentation`

## 3D 点云和视频帧
<a name="sms-data-verify-start-api-frame"></a>
+ 使用 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelAttributeName](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelAttributeName) 参数可指定要用于已验证或已调整的标签的输出标签名称。您必须使用与原始标注作业所用不同的 `LabelAttributeName`。
+ 必须使用原始标注作业所使用的人工任务 UI Amazon 资源名称 (ARN) (`HumanTaskUiArn`)。要查看支持 ARNs，请参阅[https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html#sagemaker-Type-UiConfig-HumanTaskUiArn](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html#sagemaker-Type-UiConfig-HumanTaskUiArn)。
+ 在标签类别配置文件中，必须在 `auditLabelAttributeName` 参数中指定用于创建调整或验证标注作业的前一个标注作业的标签属性名称 ([https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelAttributeName](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelAttributeName))。
+ 您可以使用由 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelCategoryConfigS3Uri](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html#SageMaker-CreateLabelingJob-request-LabelCategoryConfigS3Uri) 参数标识的标签类别配置文件中的 `editsAllowed` 参数指定您的标注作业是*验证*还是*调整*标注作业。
  + 对于*验证*标注作业，必须使用 `editsAllowed` 参数指定不能修改所有标签。`editsAllowed` 必须在 `labels` 的每个条目中设置为 `"none"`。您也可以指定工作人员是否可以调整标签类别属性和帧属性。
  + 或者，对于*调整*标注作业，可以使用 `editsAllowed` 参数来指定工作人员可以或不可以修改的标签、标签类别属性和帧属性。如果不使用此参数，则所有标签、标签类别属性和帧属性均可调整。

  要了解有关 `editsAllowed` 参数和配置标签类别配置文件的更多信息，请参阅[标签类别配置文件架构](sms-label-cat-config-attributes.md#sms-label-cat-config-attributes-schema)。
+ 使用 3D 点云或视频帧调整 lambda ARNs 进行[https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_HumanTaskConfig.html#sagemaker-Type-HumanTaskConfig-PreHumanTaskLambdaArn](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_HumanTaskConfig.html#sagemaker-Type-HumanTaskConfig-PreHumanTaskLambdaArn)调整和验证标签作业：[https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AnnotationConsolidationConfig.html#sagemaker-Type-AnnotationConsolidationConfig-AnnotationConsolidationLambdaArn](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AnnotationConsolidationConfig.html#sagemaker-Type-AnnotationConsolidationConfig-AnnotationConsolidationLambdaArn)
  + 对于 3D 点云，调整和验证标注作业 lambda 函数分别以`Adjustment3DPointCloudSemanticSegmentation``Adjustment3DPointCloudObjectTracking`、 ARNs 结尾，`Adjustment3DPointCloudObjectDetection`对于 3D 点云语义分割、物体检测和物体跟踪。
  + 对于视频帧，调整和验证标签作业 lambda 函数分别`AdjustmentVideoObjectTracking`以`AdjustmentVideoObjectDetection`和 ARNs 结尾，分别用于视频帧对象检测和对象跟踪。

Ground Truth 将标签验证或调整作业的输出数据存储在您在 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html) 操作的 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_LabelingJobOutputConfig.html#SageMaker-Type-LabelingJobOutputConfig-S3OutputPath](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_LabelingJobOutputConfig.html#SageMaker-Type-LabelingJobOutputConfig-S3OutputPath) 参数中指定的 S3 存储桶中。有关标签验证或调整标注作业的输出数据的更多信息，请参阅[输出清单中的标签验证和调整数据](sms-data-verify-manifest.md)。