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
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 |
Last Article: Managing Labeling Jobs
Next Article: Obtaining the Labeling Job List of a Dataset
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.