Skip to content

Commit 8e37116

Browse files
authored
Update how-to-image-processing-batch.md
1 parent a2d20b0 commit 8e37116

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/machine-learning/batch-inference/how-to-image-processing-batch.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ ms.custom: devplatv2
1717

1818
[!INCLUDE [ml v2](../../../includes/machine-learning-dev-v2.md)]
1919

20-
Batch Endpoints can be used for processing tabular data, but also any other file type like images. Those deployments are supported in both MLflow and custom models. In this tutorial we will learn how to deploy a model that classifies images according to the ImageNet taxonomy.
20+
Batch Endpoints can be used for processing tabular data, but also any other file type like images. Those deployments are supported in both MLflow and custom models. In this tutorial, we will learn how to deploy a model that classifies images according to the ImageNet taxonomy.
2121

2222
## About this sample
2323

24-
The model we are going to work with was built using TensorFlow along with the RestNet architecture ([Identity Mappings in Deep Residual Networks](https://arxiv.org/abs/1603.05027)). A sample of this model can be downloaded from `https://azuremlexampledata.blob.core.windows.net/data/imagenet/model.zip`. This model has the following constrains that are important to keep in mind for deployment:
24+
The model we are going to work with was built using TensorFlow along with the RestNet architecture ([Identity Mappings in Deep Residual Networks](https://arxiv.org/abs/1603.05027)). A sample of this model can be downloaded from `https://azuremlexampledata.blob.core.windows.net/data/imagenet/model.zip`. The model has the following constrains that are important to keep in mind for deployment:
2525

2626
* It works with images of size 244x244 (tensors of `(224, 224, 3)`).
2727
* It requires inputs to be scaled to the range `[0,1]`.
2828

29-
The information in this article is based on code samples contained in the [azureml-examples](https://github.com/azure/azureml-examples) repository. To run the commands locally without having to copy/paste YAML and other files, clone the repo and then change directories to the `cli/endpoints/batch` if you are using the Azure CLI or `sdk/endpoints/batch` if you are using our SDK for Python.
29+
The information in this article is based on code samples contained in the [azureml-examples](https://github.com/azure/azureml-examples) repository. To run the commands locally without having to copy/paste YAML and other files, clone the repo, and then change directories to the `cli/endpoints/batch` if you are using the Azure CLI or `sdk/endpoints/batch` if you are using our SDK for Python.
3030

3131
```azurecli
3232
git clone https://github.com/Azure/azureml-examples --depth 1
@@ -41,8 +41,8 @@ You can follow along this sample in a Jupyter Notebook. In the cloned repository
4141

4242
[!INCLUDE [basic cli prereqs](../../../includes/machine-learning-cli-prereqs.md)]
4343

44-
* You must have an endpoint already created. If you don't please follow the instructions at [Use batch endpoints for batch scoring](how-to-use-batch-endpoint.md). This example assumes the endpoint is named `imagenet-classifier-batch`.
45-
* You must have a compute created where to deploy the deployment. If you don't please follow the instructions at [Create compute](how-to-use-batch-endpoint.md#create-compute). This example assumes the name of the compute is `cpu-cluster`.
44+
* You must have a batch endpoint already created. This example assumes the endpoint is named `imagenet-classifier-batch`. If you don't have one, follow the instructions at [Use batch endpoints for batch scoring](how-to-use-batch-endpoint.md).
45+
* You must have a compute created where to deploy the deployment. This example assumes the name of the compute is `cpu-cluster`. If you don't, follow the instructions at [Create compute](how-to-use-batch-endpoint.md#create-compute).
4646

4747
## Image classification with batch deployments
4848

@@ -96,7 +96,7 @@ Batch Endpoint can only deploy registered models so we need to register it. You
9696
9797
### Creating a scoring script
9898
99-
We need to create a scoring script that can read the images provided by the batch deployment and return the scores of the model. The following script does the following:
99+
We need to create a scoring script that can read the images provided by the batch deployment and return the scores of the model. The following script:
100100
101101
> [!div class="checklist"]
102102
> * Indicates an `init` function that load the model using `keras` module in `tensorflow`.
@@ -252,7 +252,7 @@ One the scoring script is created, it's time to create a batch deployment for it
252252
ml_client.batch_deployments.begin_create_or_update(deployment)
253253
```
254254

255-
1. Although you can invoke a specific deployment inside of an endpoint, you will usually want to invoke the endpoint itself and let the endpoint decide which deployment to use. Such deployment is named the "default" deployment. This gives you the possibility of changing the default deployment and hence changing the model serving the deployment without changing the contract with the user invoking the endpoint. Use the following instruction to update the default deployment:
255+
1. Although you can invoke a specific deployment inside of an endpoint, you will usually want to invoke the endpoint itself, and let the endpoint decide which deployment to use. Such deployment is named the "default" deployment. This gives you the possibility of changing the default deployment - and hence changing the model serving the deployment - without changing the contract with the user invoking the endpoint. Use the following instruction to update the default deployment:
256256

257257
# [Azure ML CLI](#tab/cli)
258258

0 commit comments

Comments
 (0)