Skip to content

Commit 9d44d95

Browse files
committed
Fix normalization_scale getter from config
1 parent 980cbc7 commit 9d44d95

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cpp/include/tasks/anomaly.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ class Anomaly {
3333
auto config = adapter->getModelConfig();
3434
image_threshold = utils::get_from_any_maps("image_threshold", config, {}, image_threshold);
3535
pixel_threshold = utils::get_from_any_maps("pixel_threshold", config, {}, pixel_threshold);
36-
normalization_scale = utils::get_from_any_maps("pixel_threshold", config, {}, normalization_scale);
36+
normalization_scale = utils::get_from_any_maps("normalization_scale", config, {}, normalization_scale);
3737
task = utils::get_from_any_maps("pixel_threshold", config, {}, task);
3838
labels = utils::get_from_any_maps("labels", config, {}, labels);
39-
40-
// labels = utils::get_from_any_maps("labels", config, {}, labels);
41-
// confidence_threshold = utils::get_from_any_maps("confidence_threshold", config, {}, confidence_threshold);
4239
}
4340

4441
static cv::Size serialize(std::shared_ptr<ov::Model>& ov_model);

0 commit comments

Comments
 (0)