Skip to content

Commit 675e49e

Browse files
committed
addressing validation errors
1 parent 2870c25 commit 675e49e

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

articles/machine-learning/how-to-auto-train-image-models.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Once the run completes, you can register the model that was created from the bes
537537

538538
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]
539539
```yaml
540-
to be supported
540+
541541
```
542542

543543
# [Python SDK v2 (preview)](#tab/SDK-v2)
@@ -547,7 +547,8 @@ Once the run completes, you can register the model that was created from the bes
547547
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_local_dir)]
548548

549549
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=download_model)]
550-
550+
---
551+
551552
### register the model
552553

553554
Register the model either using the azureml path or your locally downloaded path.
@@ -562,6 +563,7 @@ Register the model either using the azureml path or your locally downloaded path
562563
# [Python SDK v2 (preview)](#tab/SDK-v2)
563564

564565
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=register_model)]
566+
---
565567

566568
After you register the model you want to use, you can deploy it using the managed online endpoint [deploy-managed-online-endpoint](how-to-deploy-managed-online-endpoint-sdk-v2.md)
567569

@@ -598,6 +600,7 @@ az ml online-endpoint create --file .\create_endpoint.yml --workspace-name [YOUR
598600
# [Python SDK v2 (preview)](#tab/SDK-v2)
599601

600602
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_endpoint)]
603+
---
601604

602605
### Configure online deployment
603606

@@ -631,6 +634,7 @@ readiness_probe:
631634
# [Python SDK v2 (preview)](#tab/SDK-v2)
632635

633636
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=deploy)]
637+
---
634638

635639

636640
### Create the deployment
@@ -648,6 +652,7 @@ az ml online-deployment create --file .\create_deployment.yml --workspace-name [
648652
# [Python SDK v2 (preview)](#tab/SDK-v2)
649653

650654
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_deploy)]
655+
---
651656

652657
### update traffic:
653658
By default the current deployment is set to receive 0% traffic. you can set the traffic percentage current deployment should receive. Sum of traffic percentages of all the deployments with one end point should not exceed 100%.
@@ -663,7 +668,8 @@ az ml online-endpoint update --name 'od-fridge-items-endpoint' --traffic 'od-fri
663668
# [Python SDK v2 (preview)](#tab/SDK-v2)
664669

665670
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=update_traffic)]
666-
671+
---
672+
667673

668674
Alternatively You can deploy the model from the [Azure Machine Learning studio UI](https://ml.azure.com/).
669675
Navigate to the model you wish to deploy in the **Models** tab of the automated ML run and click on **Deploy** and select **Deploy to real-time endpoint** .

articles/machine-learning/tutorial-auto-train-image-models.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ Once the run completes, you can register the model that was created from the bes
407407
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_local_dir)]
408408

409409
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=download_model)]
410-
410+
---
411+
411412
### register the model
412413

413414
Register the model either using the azureml path or your locally downloaded path.
@@ -422,6 +423,7 @@ Register the model either using the azureml path or your locally downloaded path
422423
# [Python SDK v2 (preview)](#tab/SDK-v2)
423424

424425
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=register_model)]
426+
---
425427

426428
After you register the model you want to use, you can deploy it using the managed online endpoint [deploy-managed-online-endpoint](how-to-deploy-managed-online-endpoint-sdk-v2.md)
427429

@@ -440,6 +442,7 @@ auth_mode: key
440442
# [Python SDK v2 (preview)](#tab/SDK-v2)
441443

442444
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=endpoint)]
445+
---
443446

444447
### Create the endpoint
445448

@@ -457,6 +460,7 @@ az ml online-endpoint create --file .\create_endpoint.yml --workspace-name [YOUR
457460
# [Python SDK v2 (preview)](#tab/SDK-v2)
458461

459462
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_endpoint)]
463+
---
460464

461465
### Configure online deployment
462466

@@ -490,6 +494,7 @@ readiness_probe:
490494
# [Python SDK v2 (preview)](#tab/SDK-v2)
491495

492496
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=deploy)]
497+
---
493498

494499

495500
### Create the deployment
@@ -507,6 +512,7 @@ az ml online-deployment create --file .\create_deployment.yml --workspace-name [
507512
# [Python SDK v2 (preview)](#tab/SDK-v2)
508513

509514
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_deploy)]
515+
---
510516

511517
### update traffic:
512518
By default the current deployment is set to receive 0% traffic. you can set the traffic percentage current deployment should receive. Sum of traffic percentages of all the deployments with one end point should not exceed 100%.
@@ -522,22 +528,39 @@ az ml online-endpoint update --name 'od-fridge-items-endpoint' --traffic 'od-fri
522528
# [Python SDK v2 (preview)](#tab/SDK-v2)
523529

524530
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=update_traffic)]
531+
---
525532

526533
## Test the deployment
534+
# [CLI v2](#tab/CLI-v2)
535+
536+
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]
537+
```yaml
538+
539+
```
540+
541+
# [Python SDK v2 (preview)](#tab/SDK-v2)
527542

528543
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=create_inference_request)]
529544

530545
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=dump_inference_request)]
531546

532547
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=invoke_inference)]
533-
548+
---
534549

535550
## Visualize detections
536551

537552
Now that you have scored a test image, you can visualize the bounding boxes for this image. To do so, be sure you have matplotlib installed.
553+
# [CLI v2](#tab/CLI-v2)
538554

539-
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=visualize_detections)]
555+
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]
556+
```yaml
557+
558+
```
559+
560+
# [Python SDK v2 (preview)](#tab/SDK-v2)
540561

562+
[!Notebook-python[] (~/azureml-examples-main/sdk/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb?name=visualize_detections)]
563+
---
541564

542565
## Clean up resources
543566

0 commit comments

Comments
 (0)