Azure-Samples / custom-vision-move-project

Moving projects between resources for Microsoft Cognitive Services - Custom Vision service
MIT License
9 stars 6 forks source link

ERROR: Failed to upload image batch midway causing only part of images migrated #4

Open cupskeee opened 5 years ago

cupskeee commented 5 years ago

Hi there,

I was trying to migrate 4 of my projects from a directory to another directory, 3 of them are successfully migrated.

But on the last project, the migration failed midway and only parts of my dataset are migrated.

This is the quantity of dataset that I have image

And this is the migrated dataset image

Here is the error code

ERROR: Failed to upload image batch Traceback (most recent call last): File ".\migrate_project.py", line 118, in <module> source_images = migrate_images(src_trainer, dest_trainer, args.project_id, destination_project.id, tags) File ".\migrate_project.py", line 53, in migrate_images print ("\tImage status:", i.id, i.status)AttributeError: 'ImageCreateResult' object has no attribute 'id'

image