Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created Oct 21, 2021
Embed
What would you like to do?
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