Skip to content

Commit f5f046b

Browse files
authored
AC: port some important fixes for api2.0 (#3050)
1 parent 31b7c62 commit f5f046b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/accuracy_checker/openvino/tools/accuracy_checker/adapters/image_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def configure(self):
7272
self.output_verified = False
7373

7474
def select_output_blob(self, outputs):
75-
self.outputs_checked = True
75+
self.outputs_verified = True
7676
if not self.target_out:
7777
super().select_output_blob(outputs)
7878
self.target_out = self.output_blob
@@ -114,7 +114,7 @@ class SuperResolutionAdapter(ImageProcessingAdapter):
114114
def process(self, raw, identifiers=None, frame_meta=None):
115115
result = []
116116
raw_outputs = self._extract_predictions(raw, frame_meta)
117-
if not self.target_out:
117+
if not self.outputs_verified:
118118
self.select_output_blob(raw_outputs)
119119
self.target_out = self.output_blob
120120

tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/lpcnet_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def infer(self, input_data):
150150
if self.feature_input in self.dynamic_inputs or feature_layer_shape != input_data[self.feature_input].shape:
151151
input_shapes = {in_name: value.shape for in_name, value in input_data.items()}
152152
self._reshape_input(input_shapes)
153-
return self.infer(input_data)
153+
return super().infer(input_data)
154154

155155

156156
class EncoderONNXModel(BaseONNXModel, EncoderModel):

tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/tacotron2_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def prepare_inputs(self, feed_dict):
481481
if len(feed_dict) != len(self.inputs):
482482
extra_inputs = set(self.inputs).difference(set(feed_dict))
483483
for input_layer in extra_inputs:
484-
shape = self.inputs[input_layer].input_data.shape
484+
shape = parse_partial_shape(self.inputs[input_layer].get_partial_shape())
485485
if self.additional_inputs_filling == 'zeros':
486486
feed_dict[input_layer] = np.zeros(shape, dtype=np.float32)
487487
else:

0 commit comments

Comments
 (0)