Object Detector Using SDK - Upload, Train and Test the Model
Explore how to upload tagged images with object coordinates and train a custom object detection model using Azure Custom Vision SDK. This lesson guides you through preparing image data, uploading in batches, and initiating model training to build a detector for objects like forks and scissors.
We'll cover the following...
Let’s continue the implementation. Just to recap, in the previous lesson, we’ve created the training and prediction client objects. We’ve also created a project and added the two image tags that we want our model to identify.
Now, we’re going to upload the images with their coordinates and tags to our Custom Vision project and then we’ll train our custom model.
Uploading the images
When we build an object detection using the Web portal, we’ve tagged the location of the object to train the model. In a similar way, we need to specify the region of each tagged object. Below is the file that contains the coordinates of the two objects “Fork” and “Scissor” in the images. The coordinates are given in the following order: left, top, width, height.
Now let’s upload the images and their corresponding tags to the Custom Vision project.
-
In line 1, we import the required package to read the JSON file.
-
In ...