View a markdown version of this page

훈련 실패 디버깅 - Amazon Textract

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

훈련 실패 디버깅

어댑터 세부 정보 페이지에서 훈련이 실패했다는 알림을 받으면 상태 메시지를 참조하여 오류를 이해하고 수정합니다. 오류에는 생성 오류와 파일 오류라는 두 가지 유형이 있습니다. 일부 상태 메시지는 콘솔에 반환되고 다른 상태 메시지는 검증 파일에 표시됩니다.

훈련 작업과 함께 생성되는 검증 파일에는 훈련 시 발생하는 오류 유형에 대한 정보가 포함되어 있습니다. 오류 메시지에 오류가 검증 오류라고 표시되면("상태 메시지 = 매니페스트 파일에 잘못된 레코드가 포함된 경우. 자세한 내용은 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 콘솔을 사용할 때 오류가 발생하면 오류 팝업에서 작업이 실패한 이유에 대한 정보를 확인하세요.