本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
偵錯訓練失敗
如果您在轉接器詳細資訊頁面上收到訓練失敗的通知,請參閱狀態訊息以了解錯誤並進行修正。有兩種類型的錯誤:建立錯誤和檔案錯誤。有些狀態訊息會在主控台中傳回,有些則會顯示在驗證檔案中。
與訓練任務一起建立的驗證檔案包含訓練時所遇到錯誤類型的相關資訊。如果錯誤訊息指出錯誤是驗證錯誤 (「狀態訊息 = 資訊清單檔案包含無效的記錄。 如需詳細資訊,請參閱 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 主控台時發生錯誤,請閱讀錯誤快顯視窗以取得操作失敗原因的相關資訊。