Help Center/ ModelArts/ SDK Reference/ Data Management/ Managing Labeling Jobs/ Creating a Labeling Job
Updated on 2025-08-20 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
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.