Skip to content

Commit c360def

Browse files
authored
Added code snippet related to Data Labeling tool
resolved merge conflict
1 parent 83bc90d commit c360def

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

articles/machine-learning/how-to-prepare-datasets-for-automl-images.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,33 @@ It helps to create, manage, and monitor data labeling tasks for
4747

4848
If you already have a data labeling project and you want to use that data, you can [export your labeled data as an Azure ML Dataset](how-to-create-image-labeling-projects.md#export-the-labels) and then access the dataset under 'Datasets' tab in Azure ML Studio. This exported dataset can then be passed as an input using `azureml:<tabulardataset_name>:<version>` format. Here is an example on how to pass existing dataset as input for training computer vision models.
4949

50+
# [Azure CLI](#tab/cli)
51+
52+
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]
53+
54+
```yaml
55+
training_data:
56+
path: azureml:odFridgeObjectsTrainingDataset:1
57+
type: mltable
58+
mode: direct
59+
```
60+
61+
# [Python SDK](#tab/python)
62+
63+
[!INCLUDE [sdk v2](../../includes/machine-learning-sdk-v2.md)]
64+
65+
```python
66+
from azure.ai.ml.constants import AssetTypes, InputOutputModes
67+
from azure.ai.ml import Input
68+
69+
# Training MLTable with v1 TabularDataset
70+
my_training_data_input = Input(
71+
type=AssetTypes.MLTABLE, path="azureml:odFridgeObjectsTrainingDataset:1",
72+
mode=InputOutputModes.DIRECT
73+
)
74+
```
75+
---
76+
5077
### Using pre-labeled training data from local machine
5178
If you have previously labeled data that you would like to use to train your model, you will first need to upload the images to the default Azure Blob Storage of your Azure ML Workspace and register it as a [data asset](how-to-create-data-assets.md).
5279

@@ -127,4 +154,4 @@ You can then pass in the `MLTable` as a [data input for your AutoML training job
127154

128155
* [Train computer vision models with automated machine learning](how-to-auto-train-image-models.md).
129156
* [Train a small object detection model with automated machine learning](how-to-use-automl-small-object-detect.md).
130-
* [Tutorial: Train an object detection model (preview) with AutoML and Python](tutorial-auto-train-image-models.md).
157+
* [Tutorial: Train an object detection model (preview) with AutoML and Python](tutorial-auto-train-image-models.md).

0 commit comments

Comments
 (0)