@@ -88,17 +88,17 @@ void SemanticSegmentation::serialize(std::shared_ptr<ov::Model>& ov_model) {
8888 scale_values = utils::get_from_any_maps (" scale_values" , config, ov::AnyMap{}, scale_values);
8989 mean_values = utils::get_from_any_maps (" mean_values" , config, ov::AnyMap{}, mean_values);
9090
91-
92- ov_model = utils::embedProcessing (ov_model,
93- input.get_any_name (),
94- layout,
95- resize_mode,
96- interpolation_mode,
97- ov::Shape{shape[ov::layout::width_idx (layout)], shape[ov::layout::height_idx (layout)]},
98- pad_value,
99- reverse_input_channels,
100- mean_values,
101- scale_values);
91+ ov_model =
92+ utils::embedProcessing (ov_model,
93+ input.get_any_name (),
94+ layout,
95+ resize_mode,
96+ interpolation_mode,
97+ ov::Shape{shape[ov::layout::width_idx (layout)], shape[ov::layout::height_idx (layout)]},
98+ pad_value,
99+ reverse_input_channels,
100+ mean_values,
101+ scale_values);
102102
103103 ov::preprocess::PrePostProcessor ppp = ov::preprocess::PrePostProcessor (ov_model);
104104 ov::Layout out_layout = utils::getLayoutFromShape (ov_model->output (out_name).get_partial_shape ());
@@ -112,8 +112,7 @@ void SemanticSegmentation::serialize(std::shared_ptr<ov::Model>& ov_model) {
112112 }
113113 ov_model = ppp.build ();
114114
115- cv::Size input_shape (shape[ov::layout::width_idx (layout)],
116- shape[ov::layout::height_idx (layout)]);
115+ cv::Size input_shape (shape[ov::layout::width_idx (layout)], shape[ov::layout::height_idx (layout)]);
117116 ov_model->set_rt_info (input_shape.width , " model_info" , " orig_width" );
118117 ov_model->set_rt_info (input_shape.height , " model_info" , " orig_height" );
119118}
0 commit comments