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

Can't run for local testing. Error - ModuleNotFoundError: No module named 'model' #7

Open
khandakershahi opened this issue Jul 8, 2024 · 0 comments

Comments

@khandakershahi
Copy link

I am just a noob on this TTS. I am able to install TTS using pip but by python virtual environment.

In my project directory, I have cloned the git repository.

In your YouTube video you showed conda, but mine is pip.

I didn't able to run this code in the terminal.

import os
os.chdir('./tts-arabic-tacotron2')
!git checkout e384a3b0229f11e66311680a5b4402218bd433fb # we need version 2
os.chdir('../')

And If I try to run the python code from App folder from your - it shows this error.

(.venv) shahi@dell15:/data/TTS/c-b-tts/comprehensive-bangla-tts/Apps$ python3 gradio_api.py 
Traceback (most recent call last):
  File "/data/TTS/c-b-tts/comprehensive-bangla-tts/Apps/gradio_api.py", line 2, in <module>
    from multilingual_tts_v2 import BigTextToAudio
  File "/data/TTS/c-b-tts/comprehensive-bangla-tts/Apps/multilingual_tts_v2.py", line 44, in <module>
    from model.networks import Tacotron2Wave
ModuleNotFoundError: No module named 'model'

My project directory structure is

shahi@dell15:/data/TTS/c-b-tts$ ls -lha
total 2.0M
drwxr-xr-x  9 shahi shahi 4.0K জুলাই      8 23:40 .
drwxr-xr-x  3 shahi shahi 4.0K জুলাই      8 22:32 ..
drwxr-xr-x 10 shahi shahi 4.0K জুলাই      8 23:40 comprehensive-bangla-tts
drwxr-xr-x 15 shahi shahi 4.0K জুলাই      8 20:00 klaam
drwxr-xr-x 12 shahi shahi 4.0K জুলাই      8 20:01 tts-arabic-tacotron2
drwxr-xr-x  6 shahi shahi 4.0K জুলাই      8 22:30 .venv

Another thing is as I didn't able to figure out how to use your one. I tried the default TTS with its Bengali model and it worked. Except the numbers.

Here is linked

Did I miss anything here?

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

1 participant