Skip to content

Instantly share code, notes, and snippets.

Created October 21, 2021 18:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
for batchOfImages in batchedImages:
upload_result = trainer.create_images_from_files(, ImageFileCreateBatch(images=batchOfImages))
if not upload_result.is_batch_successful:
print("Image batch upload failed.")
for image in upload_result.images:
print("Image status: ", image.status)
print("Batch uploaded successfully")
print("Done uploading")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment