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

运行app.py会出错,请问要怎么解决 #7

Open
iMechainc opened this issue Sep 1, 2024 · 11 comments
Open

运行app.py会出错,请问要怎么解决 #7

iMechainc opened this issue Sep 1, 2024 · 11 comments

Comments

@iMechainc
Copy link

运行环境:64位win10,python3.10
运行app.py会出现以下错误:
Traceback (most recent call last):
File "E:\AI\ChatTTS-OpenVoice\app.py", line 12, in
from OpenVoice import se_extractor
ImportError: cannot import name 'se_extractor' from 'OpenVoice' (unknown location)

@yipeng7816
Copy link

image

@hemidio
Copy link

hemidio commented Sep 19, 2024

  1. clone code from https://github.com/myshell-ai/OpenVoice/tree/main,
  2. replace OpenVoice folder with the inner openvoice folder of new download project
  3. replace all 'openvoice' with 'OpenVoice' in import code
  4. download checkpoint file from https://myshell-public-repo-host.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip
  5. unzip zip file, rename checkpoints_v2 to checkpoints and copy it to \ChatTTS-OpenVoice\OpenVoice\

@a289672082
Copy link

a289672082 commented Oct 9, 2024

做py的都那么随意的吗 这么大一个问题都无视,建议这个开源库直接删库,浪费公共资源

@HKoon
Copy link
Owner

HKoon commented Oct 9, 2024

  1. clone code from https://github.com/myshell-ai/OpenVoice/tree/main,
  2. replace OpenVoice folder with the inner openvoice folder of new download project
  3. replace all 'openvoice' with 'OpenVoice' in import code
  4. download checkpoint file from https://myshell-public-repo-host.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip
  5. unzip zip file, rename checkpoints_v2 to checkpoints and copy it to \ChatTTS-OpenVoice\OpenVoice\

Thank you for the additional information.

@HKoon
Copy link
Owner

HKoon commented Oct 9, 2024

image

感谢补充,确实是规整代码过程中遗漏了。

@HKoon
Copy link
Owner

HKoon commented Oct 9, 2024

已修复

@a289672082
Copy link

a289672082 commented Oct 9, 2024

多谢,我这边无法解决,已在寻找替代品。

Traceback (most recent call last):
File "E:\OpenVoice\ChatTTS-OpenVoice\app.py", line 13, in
from OpenVoice.api import ToneColorConverter
File "E:\OpenVoice\ChatTTS-OpenVoice\OpenVoice\api.py", line 11, in
from .utils.models import SynthesizerTrn
File "E:\OpenVoice\ChatTTS-OpenVoice\OpenVoice\utils\models.py", line 13, in
from .utils.commons import init_weights, get_padding
ModuleNotFoundError: No module named 'OpenVoice.utils.utils.commons'; 'OpenVoice.utils.utils' is not a package

@ssbeaut
Copy link

ssbeaut commented Oct 31, 2024

图像

版主他写错了,你要将你ChatTTS-OpenVoice 文件里的OpenVoice改成小写openvoice ,APP代码中的所有“OpenVoice”替换为“openvoice”,将APP第一行 #import spaces 禁掉。就可以了

@ssbeaut
Copy link

ssbeaut commented Oct 31, 2024

多谢,我这边无法解决,已在寻找替代品。

Traceback (most recent call last): File "E:\OpenVoice\ChatTTS-OpenVoice\app.py", line 13, in from OpenVoice.api import ToneColorConverter File "E:\OpenVoice\ChatTTS-OpenVoice\OpenVoice\api.py", line 11, in from .utils.models import SynthesizerTrn File "E:\OpenVoice\ChatTTS-OpenVoice\OpenVoice\utils\models.py", line 13, in from .utils.commons import init_weights, get_padding ModuleNotFoundError: No module named 'OpenVoice.utils.utils.commons'; 'OpenVoice.utils.utils' is not a package

image

@ssbeaut
Copy link

ssbeaut commented Oct 31, 2024

多谢,我努力解决问题,已在寻找替代品。

回溯(最近一次调用最后一次):文件“E:\OpenVoice\ChatTTS-OpenVoice\app.py”,第 13 行,来自 OpenVoice.api 导入 ToneColorConverter 文件“E:\OpenVoice\ChatTTS-OpenVoice\OpenVoice\api.py”,第 11 行,来自 .utils.models 导入 SynthesizerTrn 文件“E:\OpenVoice\ChatTTS-OpenVoice\OpenVoice\utils\models.py”,第 13 行,来自 .utils.commons 导入 init_weights、get_padding ModuleNotFoundError:没有名为“OpenVoice.utils.utils.commons”的模块;“OpenVoice.utils.utils”不是包

图像

image
APP.py代码,里的方法一@gpu也要去掉下不然会报错,

@HKoon
Copy link
Owner

HKoon commented Nov 7, 2024

图像

版主他写错了,你要将你ChatTTS-OpenVoice 文件里的OpenVoice改成小写openvoice ,APP代码中的所有“OpenVoice”替换为“openvoice”,将APP第一行 #import spaces 禁掉。就可以了

如果要改为小写,记得将文件夹名字改成小写

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

6 participants