p0p4k / pflowtts_pytorch

Unofficial implementation of NVIDIA P-Flow TTS paper
https://neurips.cc/virtual/2023/poster/69899
MIT License
214 stars 30 forks source link

not import monotonic_align at every forward pass #29

Closed Tera2Space closed 7 months ago

p0p4k commented 7 months ago

Thanks! I have always wanted to learn about python imports inside a loop. As far as I know, it won't be called multiple times (I might be wrong). I will try to read more on it. Removing from the loop is just for good readability and no impact on performance, I think.

Tera2Space commented 7 months ago

I am not sure if it would be called or not, but anyways it would look more nice, thanks)