Skip to content

Commit

Permalink
Update detection model recommendation (#30272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Han-msft authored and Jaskirat Singh committed Aug 22, 2024
1 parent f13f6f2 commit 82f8c8c
Show file tree
Hide file tree
Showing 7 changed files with 548 additions and 6 deletions.
2 changes: 1 addition & 1 deletion specification/ai/Face/models.detect.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using TypeSpec.Rest;
namespace Face;

alias FaceDetectionOptions = {
@doc("The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'.")
@doc("The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations.")
@query
detectionModel?: DetectionModel = "detection_01";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
{
"name": "detectionModel",
"in": "query",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'.",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations.",
"required": false,
"type": "string",
"default": "detection_01",
Expand Down Expand Up @@ -4947,7 +4947,7 @@
{
"name": "detectionModel",
"in": "query",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'.",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations.",
"required": false,
"type": "string",
"default": "detection_01",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
{
"name": "detectionModel",
"in": "query",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'.",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations.",
"required": false,
"type": "string",
"default": "detection_01",
Expand Down Expand Up @@ -4991,7 +4991,7 @@
{
"name": "detectionModel",
"in": "query",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'.",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations.",
"required": false,
"type": "string",
"default": "detection_01",
Expand Down Expand Up @@ -5245,7 +5245,7 @@
{
"name": "detectionModel",
"in": "query",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'.",
"description": "The 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations.",
"required": false,
"type": "string",
"default": "detection_01",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"parameters": {
"api-version": "2024-04-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Workloads/SapDiscoverySites/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "SapDiscoverySites",
"operation": "Creates or updates the SapDiscoverySites",
"description": "Set SapDiscoverySites"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/Delete",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "SapDiscoverySites",
"operation": "Deletes the SapDiscoverySites",
"description": "Delete SapDiscoverySites"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "SapDiscoverySites",
"operation": "Reads the SapDiscoverySites",
"description": "Read SapDiscoverySites"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/SapInstances/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "SapInstances",
"operation": "Creates or updates the SapInstances",
"description": "Set SapInstances"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/SapInstances/Delete",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "SapInstances",
"operation": "Deletes the SapInstances",
"description": "Delete SapInstances"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/SapInstances/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "SapInstances",
"operation": "Reads the SapInstances",
"description": "Read SapInstances"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/SapInstances/serverInstances/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "serverInstances",
"operation": "Creates or updates the serverInstances",
"description": "Set serverInstances"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/SapInstances/serverInstances/Delete",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "serverInstances",
"operation": "Deletes the serverInstances",
"description": "Delete serverInstances"
}
},
{
"name": "Microsoft.Workloads/SapDiscoverySites/SapInstances/serverInstances/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "serverInstances",
"operation": "Reads the serverInstances",
"description": "Read serverInstances"
}
},
{
"name": "Microsoft.Workloads/connectors/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "connectors",
"operation": "Creates or updates the connectors",
"description": "Set connectors"
}
},
{
"name": "Microsoft.Workloads/connectors/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "connectors",
"operation": "Reads the connectors",
"description": "Read connectors"
}
},
{
"name": "Microsoft.Workloads/connectors/acssBackups/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "acssBackups",
"operation": "Creates or updates the acssBackups",
"description": "Set acssBackups"
}
},
{
"name": "Microsoft.Workloads/connectors/acssBackups/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "acssBackups",
"operation": "Reads the acssBackups",
"description": "Read acssBackups"
}
},
{
"name": "Microsoft.Workloads/connectors/amsInsights/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "amsInsights",
"operation": "Creates or updates the amsInsights",
"description": "Set amsInsights"
}
},
{
"name": "Microsoft.Workloads/connectors/amsInsights/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "amsInsights",
"operation": "Reads the amsInsights",
"description": "Read amsInsights"
}
},
{
"name": "Microsoft.Workloads/connectors/sapVirtualInstanceMonitors/Write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "sapVirtualInstanceMonitors",
"operation": "Creates or updates the sapVirtualInstanceMonitors",
"description": "Set sapVirtualInstanceMonitors"
}
},
{
"name": "Microsoft.Workloads/connectors/sapVirtualInstanceMonitors/Read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Workloads",
"resource": "sapVirtualInstanceMonitors",
"operation": "Reads the sapVirtualInstanceMonitors",
"description": "Read sapVirtualInstanceMonitors"
}
}
]
}
}
},
"operationId": "Operations_List",
"title": "List the operations for the provider."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"swagger": "2.0",
"info": {
"title": "Workloads Client",
"version": "2024-04-01-preview",
"description": "Workloads client provides access to various workload operations.",
"x-typespec-generated": [
{
"emitter": "@azure-tools/typespec-autorest"
}
]
},
"schemes": [
"https"
],
"host": "management.azure.com",
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow.",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"tags": [
{
"name": "Operations"
}
],
"paths": {
"/providers/Microsoft.Workloads/operations": {
"get": {
"operationId": "Operations_List",
"tags": [
"Operations"
],
"description": "List the operations for the provider",
"parameters": [
{
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Azure operation completed successfully.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"List the operations for the provider.": {
"$ref": "./examples/Operations_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {},
"parameters": {}
}
Loading

0 comments on commit 82f8c8c

Please sign in to comment.