Azure ML Export COCO Labels from python

Zach Kaiser 21 Reputation points
2023-07-03T20:02:55.91+00:00

I have a data labelling project in Azure ML Studio. I can export the labels as a COCO file from the UI. Is there a way to do this programmatically from the python sdk? I looked at this article and the suggestion didn't work for me. I got an error saying that a tabular dataset doesn't have a method 'export_to_coco'.

Thanks!

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,334 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2023-07-04T06:17:13.6633333+00:00

    @Zach Kaiser I think this option is available programmatically using the REST API. Please see this page for exporting the labeled dataset in required formats.

    POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels?api-version=2023-04-01-preview

    Sample request:

    POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob/exportLabels?api-version=2023-04-01-preview
    
    {
      "format": "Dataset"
    }
    

    Also, Could you add the link to the document you are referring to? Thanks!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.