Step 1 - Create the Object Detection Dataset
The first step is to create the dataset that contains the training data. You use this dataset to create the model.
You create the dataset from the .zip file called alpine.zip
, referenced by its URL. In the following command, replace <TOKEN>
with your JWT token and run the command. This command:
- Creates a dataset called
alpine
from the specified .zip file - Creates three labels specified in the annotations.csv file:
Alpine - Oat Cereal
,Alpine - Corn Flakes
, andAlpine - Bran Cereal
- Creates an example for each image specified in the annotations file. In this scenario there are 33 examples.
- Adds the specified labels from the annotations file to each image.
The type
parameter specifies that the new dataset is an object detection dataset.
This call is asynchronous, so you get the dataset ID back right away, but the API continues to load data into the dataset. Use the call to Get a Dataset to monitor the status of the upload. When available
is true
and statusMsg
is SUCCEEDED
, the upload is complete and the dataset is ready to be trained.
This cURL call gets the dataset.
The .zip file used to create an object detection dataset must contain the images and an annotations.csv file. The .zip file must have a specific structure, and the annotations.csv file must also be in the required format.
See the Object Detection Datasets section in Create a Dataset From a Zip File Asynchronously for guidelines about the .zip file and the annotations file.