Skip to content

Commit ccb3427

Browse files
authored
AC: fix text to speech models evaluation (#3177)
1 parent f7cd466 commit ccb3427

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def __init__(self, network_info, launcher, models_args, adapter_info, pos_mask_w
114114
self.pos_mask_window = int(pos_mask_window)
115115
self.adapter = create_adapter(adapter_info)
116116
self.adapter.output_blob = self.audio_output
117+
if not delayed_model_loading:
118+
self.update_inputs_outputs_info()
117119

118120
self.init_pos_mask(window_size=self.pos_mask_window)
119121

@@ -250,7 +252,7 @@ def update_inputs_outputs_info(self):
250252
self.adapter.output_blob = self.audio_output
251253
current_name = next(iter(self.forward_tacotron_duration.inputs))
252254
with_prefix = current_name.startswith('forward_tacotron_duration_')
253-
if with_prefix != self.with_prefix:
255+
if not hasattr(self, 'with_prefix') or with_prefix != self.with_prefix:
254256
self.forward_tacotron_duration_input = next(iter(self.forward_tacotron_duration.inputs))
255257
self.melgan_input = next(iter(self.melgan.inputs))
256258
if self.duration_speaker_embeddings:

0 commit comments

Comments
 (0)