Help Center/ ModelArts/ SDK Reference/ Data Management/ Managing Export Tasks/ Creating a Dataset Export Task
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
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| path | Yes | String | OBS path for storing the exported data |
Parent topic: Managing Export Tasks
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