View a markdown version of this page

トレーニング失敗のデバッグ - Amazon Textract

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

トレーニング失敗のデバッグ

アダプターの詳細ページでトレーニングが失敗したことが通知された場合は、ステータスメッセージを参照してエラーを理解し、修正します。エラーには、作成エラーとファイルエラーの 2 種類があります。一部のステータスメッセージはコンソールで返され、他のステータスメッセージは検証ファイルに表示されます。

トレーニングジョブと一緒に作成される検証ファイルには、トレーニング時に発生するエラーのタイプに関する情報が含まれています。エラーが検証エラーであることを示すエラーメッセージが表示された場合 (「ステータスメッセージ = マニフェストファイルに無効なレコードが含まれています。 詳細については、OutputConfig パスの検証エラーファイルを参照してください。」) は、アダプタートレーニング中に選択した S3 出力バケットにある検証ファイルを参照してください。生成された検証ファイルの名前は ですvalidation_errors.jsonl。ファイル内の各行はマニフェストファイルの行に対応し、マニフェストファイルの各行にエラーが発生してエラーが発生します。

以下は、すべての作成エラーと考えられる原因のリストです。

Error name Error description
CREATION_ERROR Manifest file contains invalid records. Consult validation error file at OutputConfig path for more details.
CREATION_ERROR No manifest file found. Ensure manifest file is provided.
CREATION_ERROR Unable to access manifest file in specified S3 bucket.
CREATION_ERROR Manifest file located in an unsupported cross-Region S3 bucket.
CREATION_ERROR Contents of manifest file are empty.
CREATION_ERROR The manifest file size exceeds the maximum supported size.
CREATION_ERROR The manifest file has too many training documents.
CREATION_ERROR The manifest file has too many testing documents.
CREATION_ERROR The manifest file has too few training documents.
CREATION_ERROR The manifest file has too few testing documents.
CREATION_ERROR The manifest file has too few training, and testing documents.
CREATION_ERROR The manifest file has too many training, and testing documents.
CREATION_ERROR The manifest file has invalid encoding.
CREATION_ERROR Manifest file contains more training records than allowed limits.
CREATION_ERROR Manifest file contains more testing records than allowed limits.
CREATION_ERROR Unable to access the specified KMS key.
CREATION_ERROR Unable to access the S3 output bucket.
CREATION_ERROR Amazon Textract does not support cross-Region Amazon S3 resources.

以下は、ファイル関連のエラーのリストです。

Error name Error description
ERROR_PAGE_COUNT_EXCEEDS_MAXIMUM Number of pages for the same document exceeds maximum limit.(This happens when customer specified origin-ref and page_number in source-ref metadata.)
ERROR_INVALID_FILE The {source-ref|annotations-ref|prelabeling-refs} file(s) is invalid. Check S3 path and/or file properties.
ERROR_INVALID_JSON_LINE The JSON line format is invalid
ERROR_MANIFEST_JSON_DECODE_ERROR The record is not a valid JSON object.
ERROR_DUPLICATE_SOURCE_REF A record with this source-ref already exists in the manifest.
ERROR_IMAGE_TOO_LARGE The image resolution is too large.
ERROR_INVALID_PAGE_COUNT The file is invalid. Expected number of pages to be 1.
ERROR_INVALID_IMAGE Unsupported source reference file format.
ERROR_INVALID_PDF Unsupported PDF file.
ERROR_INVALID_PDF_PAGE_TOO_LARGE Unsupported PDF file. PDF page exceeds max dimensions.
ERROR_INVALID_TIFF Unsupported TIFF file.
ERROR_INVALID_TIFF_COMPRESSION Unsupported TIFF compression type.
ERROR_INVALID_ANNOTATIONS Invalid annotation or prelabeling file.
ERROR_INVALID_ANNOTATIONS_FILE_FORMAT Invalid annotations file format.
ERROR_MISSING_ANNOTATION_BLOCKS Missing {PAGE|QUERY|QUERY_RESULT} block(s).
ERROR_INVALID_BLOCK Invalid {QUERY|QUERY_RESULT} block(s) found.
ERROR_FILE_SIZE_LIMIT_EXCEEDED The size of the {ref_file_type} file(s) exceeds the limit: {size_limit} MB.
ERROR_INVALID_PERMISSIONS_DATASET_S3_BUCKET Unable to access the {ref_file_type} file(s).
ERROR_FILE_NOT_FOUND The {ref_file_type} file(s) is not found.
ERROR_FILE_NOT_FOUND_IN_REGION Amazon Textract does not support cross-Region Amazon S3 resources.
ERROR_QUERY_RESULT_TEXT_LENGTH_LIMIT_EXCEEDED QUERY_RESULT text length is greater than the maximum length.
ERROR_QUERY_PER_PAGE_LIMIT_EXCEEDED Number of QUERY blocks is greater than the maximum allowed.
ERROR_INVALID_DATA_FORMAT "Invalid data format in {filename}."
ERROR_BLOCK_LIMIT_EXCEEDED "Number of {block_type} blocks is greater than the maximum allowed."
ERROR_DUPLICATE_ORIGIN_REF_PAGE_NUMBER_COMBINATION "A record with this origin-ref and page-number already exists in the manifest."
ERROR_INVALID_BLOCK_RELATIONSHIP "Invalid block relationship(s) found."
ERROR_DUPLICATED_BLOCK_ID "Blocks Id should be unique."

API エラーの説明を確認するには、該当するオペレーションの Amazon Textract API リファレンスを参照してください。CreateAdapterVersion オペレーションを使用して新しいアダプターを作成しようとしたときにエラーが発生した場合は、 API リファレンスページを参照してください。Amazon Textract コンソールの使用中にエラーが発生した場合は、エラーポップアップをお読みになり、操作が失敗した理由を確認してください。