This commit is contained in:
mrq 2024-10-12 11:29:16 -05:00
parent 04e983b86b
commit 541e45263c

View File

@ -244,15 +244,15 @@ def main():
tqdm=False, tqdm=False,
) )
def safe_inference(): def safe_inference( out_path=out_path ):
try: try:
tts.inference( out_path=out_path_comparison, **kwargs ) tts.inference( out_path=out_path, **kwargs )
except Exception as e: except Exception as e:
print(f'Error while processing {out_path}: {e}') print(f'Error while processing {out_path}: {e}')
if comparison_kwargs["enabled"]: if comparison_kwargs["enabled"]:
kwargs.update( comparison_kwargs["before"] ) kwargs.update( comparison_kwargs["before"] )
safe_inference() safe_inference(out_path_comparison)
kwargs.update( comparison_kwargs["after"] ) kwargs.update( comparison_kwargs["after"] )
safe_inference() safe_inference()