Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit 8c0bb98

Browse files
authored
[78161] Show fastseg models in OMZ table (#25)
1 parent 8aec16c commit 8c0bb98

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

automation/bom/image_BOM.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ migrations/versions/1e1c4fc30e7c_add_accuracy_import.py
3838
migrations/versions/2133a18b601e_load_text_dataset_support.py
3939
migrations/versions/241ced8ef5aa_create_project_report_pipeline.py
4040
migrations/versions/260ffba4b041_create_inference_report_pipeline.py
41-
migrations/versions/275bd4d6cd35_instant_assets_sharing.py
4241
migrations/versions/2a070ca81f20_tensor_distance_report_query_api.py
4342
migrations/versions/39bd11960375_edge_node_script_in_deployment.py
4443
migrations/versions/424ed0531227_add_annotate_dataset_job.py
@@ -67,6 +66,7 @@ migrations/versions/8e7b97ccae4d_add_ubuntu20_support.py
6766
migrations/versions/9af85a4ff36c_add_operating_system_to_targets.py
6867
migrations/versions/9dd49b6b0552_early_visualization.py
6968
migrations/versions/9eae56bc5c8e_add_wider_and_openimages_datasets.py
69+
migrations/versions/9ede8e012999_enable_fastseg_models.py
7070
migrations/versions/a291f54f85ec_add_new_yolo_task_methods.py
7171
migrations/versions/a4bffbc50716_add_visualization_config.py
7272
migrations/versions/a511acc6ec24_add_opset_in_model_details.py
@@ -78,6 +78,7 @@ migrations/versions/b6ba1e22cc13_add_reshape_model_pipeline.py
7878
migrations/versions/b9bfeb130aff_dataset_creation_to_pipeline.py
7979
migrations/versions/bc1a7d48829c_generate_accuracy_reports_for_accuracy_.py
8080
migrations/versions/bec2e0d3859d_add_accuracy_report.py
81+
migrations/versions/c2f12b313b48_instant_assets_sharing.py
8182
migrations/versions/c2ff2481cc2e_add_inference_test_image.py
8283
migrations/versions/c7e09f4ff6e9_fix_enums.py
8384
migrations/versions/d1d5c84cafbe_remote_accuracy.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
"""Enable fastseg models to appear in the OMZ table
2+
3+
Revision ID: 9ede8e012999
4+
Revises: c2f12b313b48
5+
Create Date: 2022-02-11 15:23:34.127963
6+
7+
"""
8+
9+
"""
10+
OpenVINO DL Workbench
11+
Migration: Enable fastseg models to appear in the OMZ table
12+
13+
Copyright (c) 2022 Intel Corporation
14+
15+
Licensed under the Apache License, Version 2.0 (the "License");
16+
you may not use this file except in compliance with the License.
17+
You may obtain a copy of the License at
18+
http://www.apache.org/licenses/LICENSE-2.0
19+
Unless required by applicable law or agreed to in writing, software
20+
distributed under the License is distributed on an "AS IS" BASIS,
21+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22+
See the License for the specific language governing permissions and
23+
limitations under the License.
24+
"""
25+
26+
from alembic import op
27+
import sqlalchemy as sa
28+
29+
30+
# revision identifiers, used by Alembic.
31+
revision = '9ede8e012999'
32+
down_revision = 'c2f12b313b48'
33+
branch_labels = None
34+
depends_on = None
35+
36+
37+
def upgrade():
38+
39+
op.execute(
40+
'UPDATE omz_topologies SET advanced_configuration = \'{"preprocessing": [{"type": "auto_resize"}], "postprocessing": [{"type": "encode_segmentation_mask", "apply_to": "annotation"}, {"type": "resize_segmentation_mask", "apply_to": "prediction"}], "metric": [{"type": "mean_iou", "use_argmax": false, "presenter": "print_scalar", "reference": 0.7267}], "annotationConversion": {}, "adapterConfiguration": {"adapter": {"type": "segmentation", "make_argmax": true}}}\' WHERE name = \'fastseg-large\';')
41+
op.execute(
42+
'UPDATE omz_topologies SET advanced_configuration = \'{"preprocessing": [{"type": "auto_resize"}], "postprocessing": [{"type": "encode_segmentation_mask", "apply_to": "annotation"}, {"type": "resize_segmentation_mask", "apply_to": "prediction"}], "metric": [{"type": "mean_iou", "use_argmax": false, "presenter": "print_scalar", "reference": 0.6715}], "annotationConversion": {}, "adapterConfiguration": {"adapter": {"type": "segmentation", "make_argmax": true}}}\' WHERE name = \'fastseg-small\';')
43+
44+
45+
def downgrade():
46+
raise NotImplementedError(f'Downgrade is not implemented for the {revision} migration')
47+

0 commit comments

Comments
 (0)