Skip to content

Commit 9e1e957

Browse files
authored
Limitation warning and notices
1 parent cccffb9 commit 9e1e957

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/machine-learning/how-to-inference-onnx-automl-image-models.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ The output is a list of boxes, labels, and scores. For YOLO, you need the first
223223

224224
For this instance segmentation example, you use the Mask R-CNN model that has been trained on the [fridgeObjects dataset](https://cvbp-secondary.z19.web.core.windows.net/datasets/object_detection/odFridgeObjectsMask.zip) with 128 images and 4 classes/labels to explain ONNX model inference. For more information on training of the instance segmentation model, see the [instance segmentation notebook](https://github.com/Azure/azureml-examples/tree/81c7d33ed82f62f419472bc11f7e1bad448ff15b/python-sdk/tutorials/automl-with-azureml/image-instance-segmentation).
225225

226+
>[!IMPORTANT]
227+
> Only Mask R-CNN is supported for instance segmentation tasks. The input and output formats are based on Mask R-CNN only.
228+
226229
### Input format
227230

228231
The input is a preprocessed image. The ONNX model for Mask R-CNN has been exported to work with images of different shapes. We recommend that you resize them to a fixed size that's consistent with training image sizes, for better performance.
@@ -551,6 +554,8 @@ img_data, pad = preprocess(test_image_path)
551554
```
552555

553556
# [Instance segmentation](#tab/instance-segmentation)
557+
>[!IMPORTANT]
558+
> Only Mask R-CNN is supported for instance segmentation tasks. The preprocessing steps are based on Mask R-CNN only.
554559
555560
Perform the following preprocessing steps for the ONNX model inference:
556561

@@ -714,6 +719,9 @@ result = get_predictions_from_ONNX(session, img_data)
714719

715720
# [Instance segmentation](#tab/instance-segmentation)
716721

722+
>[!WARNING]
723+
> Batch scoring is not currently supported for instance segmentation tasks.
724+
717725
The instance segmentation model predicts boxes, labels, scores, and masks. ONNX outputs a predicted mask per instance, along with corresponding bounding boxes and class confidence score. You might need to convert from binary mask to polygon if necessary.
718726

719727
```python

0 commit comments

Comments
 (0)