Skip to content

Instantly share code, notes, and snippets.

@hariby
Last active January 12, 2019 02:45
Show Gist options
  • Save hariby/8e47e7f39e06f6234b0ae7ff67ba9767 to your computer and use it in GitHub Desktop.
Save hariby/8e47e7f39e06f6234b0ae7ff67ba9767 to your computer and use it in GitHub Desktop.
Create a Manifest File for Amazon SageMaker Ground Truth
# put the output manifest file to your S3 (in the us-east-1 region).
object = 's3://aft-vbi-pds/bin-images/{:05}.jpg'
with open('aft-vbi-pds-manifest.json', 'w') as f:
for i in range(1, 100000):
f.write('{"source-ref":"' + object.format(i) + '"}\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment