個人的メモとして残しています。
Import
Rekognition Custom Labels にてラベル付けしたデータセットの内容は、ListDatasetEntries API にて取得可能
(参考資料[1])
用途に応じて、API のレスポンスを整形するなどで利用できる。
ListDatasetEntries API 実行時に必要となるデータセットの ARN は、対象プロジェクトに対して DescribeProjects API を実行することで確認可能。
(参考資料[2])
Import参考資料
[1] ListDatasetEntries
https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListDatasetEntries.html
[2] DescribeProjects
https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeProjects.html
Export
ローカル環境から S3 バケットにアップロードしたマニフェストファイルをインポートし、データセットを作成できる。
(ご参考資料[3])
ローカル環境のデータを SageMaker Ground Truth 形式のマニフェストファイル形式にして、参考資料[4,5]を参照して形式を変換した上でインポート可能。
Export参考資料
[3] Creating training and test datasets with images
https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-create-dataset.html
[4] Creating a manifest file
https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-create-manifest-file.html
[5] Converting other dataset formats to a manifest file
https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-converting-to-sm-format.html