

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# ラベルの検証ジョブまたは調整ジョブを開始する (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) - この crowd 要素をカスタム UI タスクテンプレートで使用して、検証または調整する必要があるセマンティックセグメンテーションのラベルを指定します。
  + [crowd-bounding-box](sms-ui-template-crowd-bounding-box.md) - この crowd 要素をカスタム UI タスクテンプレートで使用して、検証または調整する必要がある境界ボックスのラベルを指定します。
+ [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) パラメータには、前のラベル付けジョブと同じラベルカテゴリが含まれている必要があります。
+ [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)に、境界ボックスまたはセマンティックセグメンテーション調整または検証の Lambda ARN を使用します。
  + 境界ボックスの場合、調整ラベル付けジョブの Lambda 関数 ARN は `AdjustmentBoundingBox` で終わり、検証 Lambda 関数 ARN は `VerificationBoundingBox` で終わります。
  + セマンティックセグメンテーションの場合、調整ラベル付けジョブ Lambda 関数 ARN は `AdjustmentSemanticSegmentation` で終わり、検証 Lambda 関数 ARN は `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`) を使用する必要があります。サポートされている ARN を確認するには、「[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` パラメータを使用してすべてのラベルを変更できないことを指定する必要があります。`labels` の各エントリで、`editsAllowed` を `"none"` に設定します。必要に応じて、ワーカーがラベルカテゴリ属性とフレーム属性を調整できるかどうかを指定できます。
  + 必要に応じて、*調整*ラベル付けジョブでは、`editsAllowed` パラメータを使用して、ワーカーが変更できる、または変更できないラベル、ラベルカテゴリ属性、フレーム属性を指定できます。このパラメータを使用しない場合、すべてのラベル、ラベルカテゴリ属性、フレーム属性が調整可能になります。

  `editsAllowed` パラメータとラベルカテゴリ設定ファイルの設定については、「[ラベルカテゴリ設定ファイルスキーマ](sms-label-cat-config-attributes.md#sms-label-cat-config-attributes-schema)」を参照してください。
+ 調整と検証のラベル付けジョブの両方で、[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 ARN を使用します。
  + 3D 点群の場合、調整と検証のラベル付けジョブの Lambda 関数 ARN は、3D 点群のセマンティックセグメンテーション、オブジェクト検出、オブジェクト追跡のそれぞれで、 `Adjustment3DPointCloudSemanticSegmentation`、`Adjustment3DPointCloudObjectTracking`、`Adjustment3DPointCloudObjectDetection` で終わります。
  + 動画フレームの場合、調整と検証のラベル付けジョブの Lambda 関数 ARN は、動画フレームオブジェクト検出とオブジェクト追跡のそれぞれで、`AdjustmentVideoObjectDetection` と `AdjustmentVideoObjectTracking` で終わります。

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)」を参照してください。