shivammehta25 / Matcha-TTS

[ICASSP 2024] 🍵 Matcha-TTS: A fast TTS architecture with conditional flow matching
https://shivammehta25.github.io/Matcha-TTS/
MIT License
747 stars 96 forks source link

ImportError: cannot import name 'utils' from 'matcha' #107

Closed Shazzum closed 3 weeks ago

Shazzum commented 1 month ago

I am trying to train my own dataset. I keep getting this error message when I run python matcha/train.py experiment=ljspeech . Anyone know how to fix this?

shivammehta25 commented 1 month ago

Did you do pip install -e .?

Shazzum commented 1 month ago

Sorry to bother, I am very new to coding. when I did that, it gave me this message.

Usage:
pip install [options] [package-index-options] ... pip install [options] -r [package-index-options] ... pip install [options] [-e] ... pip install [options] [-e] ... pip install [options] <archive url/path> ...

-e option requires 1 argument

shivammehta25 commented 1 month ago

Just put a dot/period/point at the end '.'

Shazzum commented 1 month ago

Ok! Thank you so much for your help! I put a period on the end this time, and I think it successfully installed '-e.' However, now when i run 'python matcha/train.py experiment=ljspeech' I am still getting the error 'ImportError: cannot import name 'utils' from 'matcha' (C:\Users\mcboo\AppData\Local\Programs\Python\Python310\lib\site-packages\matcha.py) from 'matcha'' What am I doing wrong?

Shazzum commented 1 month ago

I am trying to resolve this issue, but I cannot seem to figure out how. I want to train the model on the libritts dataset and I think I am preparing the files directly. I am trying to follow the instructions on the main page, but I am still having this issue. Please let me know if you have any suggestions. Thanks!

shivammehta25 commented 1 month ago

Could you share the exact command and screenshot that you've used? It should have been working at this point. Can you make sure that you are in the correct environment?

Shazzum commented 1 month ago

issue is solved. The matcha.py file was causing issues because it had the same name as the folder