Skip to content

Instantly share code, notes, and snippets.

@icebeam7
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
Save icebeam7/06d35320f1b348e9705754ae630a8378 to your computer and use it in GitHub Desktop.
for batchOfImages in batchedImages:
upload_result = trainer.create_images_from_files(project.id, 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)
else:
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