Share via

Custom trained .pth model for labeling images on Azure ML

Goyal, Aakash 20 Reputation points
2026-03-18T11:15:40.96+00:00

Hello,

Can i use a locally trained custom model.pth/ model.onnx file for labeling my images on Azure ML? Is it possible? If yes, How?

Azure Machine Learning
0 comments No comments

Answer accepted by question author
  1. Q&A Assist
    2026-03-18T11:15:52.0133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Azure Machine Learning’s built-in data labeling tool does not support plugging in a custom .pth or .onnx model directly as the labeling engine.

    Supported image labeling capabilities in Azure Machine Learning are:

    • Human-in-the-loop labeling
    • ML-assisted labeling using the service’s own mechanisms

    These projects operate over images stored in an Azure Blob Storage–backed datastore or an MLTable data asset, and then export labels as an Azure Machine Learning dataset (for example, COCO) that can be used later to train or evaluate custom models. The documentation describes creating and managing labeling projects, but does not provide a way to upload or attach a custom PyTorch/ONNX model to drive the labeling UI.

    To use a custom .pth/.onnx model in the broader workflow, the supported pattern is:

    1. Use Azure Machine Learning data labeling to create and export labeled datasets.
    2. Train or fine-tune custom models (including PyTorch models exported to ONNX) in Azure Machine Learning or elsewhere.
    3. Use those models for inference or deployment (for example, ONNX with ONNX Runtime, or Windows ML), but not as pluggable labelers inside the labeling tool itself.

    References:


0 additional answers

Sort by: Most helpful

Your answer

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