Updated on 2022-11-24 GMT+08:00

Creating a Dataset Export Task

Export the samples of a dataset to a specified OBS path. This function is only supported by image classification, object detection, image segmentation, and custom format datasets.

dataset.export_data(path)

Sample Code

Export the samples of a dataset to an OBS path.
from modelarts.session import Session
from modelarts.dataset import Dataset
session = Session()

dataset = Dataset(session, dataset_id)
export_resp = dataset.export_data("/obs-gaia-test/data/output/export-test/")

Parameters

Table 1 Request parameters

Parameter

Mandatory

Type

Description

path

Yes

String

OBS path for storing the exported data