Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several typos in inference_tflite.py code and missing audio generation #3

Closed
eqikkwkp25-cyber opened this issue Dec 18, 2020 · 1 comment

Comments

@eqikkwkp25-cyber
Copy link

eqikkwkp25-cyber commented Dec 18, 2020

diff inference_tflite.py inference_tflite_corrected.py
89a90

processor = Processor()

136c137
< mbmelgan_interpreter = tf.lite.Interpreter(model_path=path_tombmelgan[:-6] + "tflite")

mbmelgan_interpreter = tf.lite.Interpreter(model_path=path_to_melgan[:-6] + "tflite")

142c143,148
< audio = inference_tflite("Möchtest du das meiner Frau erklären? Nein? Ich auch nicht.", interpreter, mbmelgan_interpreter)
\ Kein Zeilenumbruch am Dateiende.

start = time.time()
audio = infer_tflite("Möchtest du das meiner Frau erklären? Nein? Ich auch nicht.", interpreter, mbmelgan_interpreter)

duration = time.time() - start
print(f"it took {duration} secs")
wavfile.write("sample.wav", 22050, audio)
@monatis
Copy link
Owner

monatis commented Dec 18, 2020

I was cherrypicking this code from the e2e notebook, and a little bit lazy at midnight, hence the typos. Fixed it now, and thanks a lot for letting me know about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants