Skip to content

Commit d0fdcdf

Browse files
authored
PM feedback
1 parent 9e1e957 commit d0fdcdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ img_data = preprocess(img, resize_size, crop_size_onnx)
486486

487487
# [Object detection with Faster R-CNN](#tab/object-detect-cnn)
488488

489-
For object detection with the Faster R-CNN algorithm, follow the same preprocessing steps as image classification, except for image cropping. You can resize the image with height `600` and width `800`, and get the expected input height and width with the following code.
489+
For object detection with the Faster R-CNN algorithm, follow the same preprocessing steps as image classification, except for image cropping. You can resize the image with height `600` and width `800`. You can get the expected input height and width with the following code.
490490

491491
```python
492492
batch, channel, height_onnx, width_onnx = session.get_inputs()[0].shape
@@ -614,6 +614,9 @@ img_data = preprocess(img, resize_height, resize_width)
614614

615615
Inferencing with ONNX Runtime differs for each computer vision task.
616616

617+
>[!WARNING]
618+
> Batch scoring is not currently supported for all computer vision tasks.
619+
617620
# [Multi-class image classification](#tab/multi-class)
618621

619622
```python
@@ -719,9 +722,6 @@ result = get_predictions_from_ONNX(session, img_data)
719722

720723
# [Instance segmentation](#tab/instance-segmentation)
721724

722-
>[!WARNING]
723-
> Batch scoring is not currently supported for instance segmentation tasks.
724-
725725
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.
726726

727727
```python

0 commit comments

Comments
 (0)