Help Center/
ModelArts/
SDK Reference/
Data Management/
Managing Labeling Jobs/
Creating a Labeling Job
Updated on 2022-11-24 GMT+08:00
Creating a Labeling Job
Create a labeling job based on a dataset.
dataset.create_label_task(self, task_name=None, task_type=None, **kwargs)
Sample Code
Example 1: Create an object detection labeling job based on an image dataset.
from modelarts.session import Session from modelarts.dataset import Dataset session = Session() dataset = Dataset(session, dataset_id="VukxA2FlaTUm7tkDtq0") # Initialize the dataset. create_task_resp = dataset.create_label_task(task_name="obj_detection_task", task_type=1, description="label task")
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
task_name |
Yes |
String |
Name of a labeling job |
task_type |
Yes |
Integer |
Type of a labeling job. Options:
|
description |
No |
String |
Description of a labeling job |
Parent topic: Managing Labeling Jobs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot