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

ModuleNotFoundError: No module named 'OpenVoice.utils.utils.commons'; 'OpenVoice.utils.utils' is not a package #9

Open
xy3xy3 opened this issue Nov 11, 2024 · 2 comments

Comments

@xy3xy3
Copy link

xy3xy3 commented Nov 11, 2024

(chattts) root@autodl-container-fa5b45ae8c-3f5f19fe:~/ChatTTS-OpenVoice# python app.py
Traceback (most recent call last):
  File "/root/ChatTTS-OpenVoice/app.py", line 15, in <module>
    from OpenVoice.api import ToneColorConverter
  File "/root/ChatTTS-OpenVoice/OpenVoice/api.py", line 11, in <module>
    from .utils.models import SynthesizerTrn
  File "/root/ChatTTS-OpenVoice/OpenVoice/utils/models.py", line 13, in <module>
    from .utils.commons import init_weights, get_padding
ModuleNotFoundError: No module named 'OpenVoice.utils.utils.commons'; 'OpenVoice.utils.utils' is not a package

运行提示这个,好像,utils了两次

@HKoon
Copy link
Owner

HKoon commented Nov 25, 2024

这个提示就是缺了相对应的模块,需要检查一下相应位置的py文件是否存在并命名一致

@yinpeilin
Copy link

yinpeilin commented Nov 28, 2024

just change the
from .utils.commons import init_weights, get_padding
to
from .commons import init_weights, get_padding
can fix the bug

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

3 participants