Custom Vision BadRequestImageBatch on Existing Project Training

Bryan Leighton 1 Reputation point Microsoft Employee
2020-11-24T20:06:37.903+00:00

I am coming across the error:
ERROR:root:Error Code: BadRequestImageBatch
ERROR:root:Error Message: No valid image files
ERROR:root:Error Response: <Response [400]>

This Error happens when a new iteration is attempted to be trained on an existing CustomVision Project. 400 represents an invalid syntax, however the Image Batch passed to the trainer.create_images_from_files(project_id, batch) is populated with the correct information, and the project id exists.

Interestingly, when we create a new project and run the same logic, the training will succeed just fine. This only happens when a train is attempted on an existing project.

Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
209 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,354 questions
{count} votes