-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validation for vision results (#3377)
* Validation for vision results. * Changelog and setup updates.
- Loading branch information
1 parent
fefc90c
commit 99c48b3
Showing
10 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ evaluation_type: | |
values: | ||
- text_generation | ||
- text_embeddings | ||
- vision |
7 changes: 7 additions & 0 deletions
7
scripts/azureml-assets/azureml/assets/config/evaluationresult/tag_values_vision.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Valid tag values that can be applied to evaluation results whose evaluation_type is `vision`. | ||
task: | ||
required: True | ||
allow_multiple: False | ||
values: | ||
- image-generation | ||
- image-vqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/resources/validate/evaluationresult/vision_correct/asset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: evaluationresult | ||
spec: spec.yaml | ||
categories: ["EvaluationResult"] |
24 changes: 24 additions & 0 deletions
24
test/resources/validate/evaluationresult/vision_correct/spec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
type: evaluationresult | ||
name: vision_correct | ||
version: 1 | ||
display_name: vision_correct | ||
description: vision_correct | ||
dataset_name: dataset1 | ||
dataset_family: family1 | ||
|
||
model_name: model1 | ||
model_version: "1" | ||
model_asset_id: azureml://registries/azureml/models/model1/versions/1 | ||
relationships: | ||
- relationshipType: Source | ||
assetId: azureml://registries/azureml/models/model1/versions/1 | ||
|
||
tags: | ||
evaluation_type: vision | ||
task: image-generation | ||
primary_metric: fid | ||
|
||
metrics: | ||
fid: 300.1 | ||
|
||
properties: {} |
3 changes: 3 additions & 0 deletions
3
test/resources/validate/evaluationresult/vision_incorrect/asset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: evaluationresult | ||
spec: spec.yaml | ||
categories: ["EvaluationResult"] |
24 changes: 24 additions & 0 deletions
24
test/resources/validate/evaluationresult/vision_incorrect/spec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
type: evaluationresult | ||
name: vision_incorrect | ||
version: 1 | ||
display_name: vision_incorrect | ||
description: vision_incorrect | ||
dataset_name: dataset1 | ||
dataset_family: family1 | ||
|
||
model_name: model1 | ||
model_version: "1" | ||
model_asset_id: azureml://registries/azureml/models/model1/versions/1 | ||
relationships: | ||
- relationshipType: Source | ||
assetId: azureml://registries/azureml/models/model1/versions/1 | ||
|
||
tags: | ||
evaluation_type: vision | ||
task: image-understanding | ||
primary_metric: visual_intelligence | ||
|
||
metrics: | ||
ndcg_at_10: 0.001 | ||
|
||
properties: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters