GPT-SoVITS
GPT-SoVITS copied to clipboard
一键三联点击后 显示没有找到
输出logs/实验名目录下应有23456开头的文件和文件夹 但是这些文件应该在哪里呢?
Traceback (most recent call last): │Processing file: vo_EQHDJ003_1_xiao_03.wav
File "/home/gpttts/GPT_SoVITS/GPT_SoVITS/prepare_datasets/1-get-text.py", line 18, in <module> │File vo_EQHDJ003_1_xiao_03.wav copied to /home/gpttts/GPT_SoVITS/xiao/raw/xiao-zhofvo_EQHDJ003_1_xiao_03.wav
Traceback (most recent call last): │Processing file: vo_card_xiao_invite_hard_03.lab
from text.cleaner import clean_text │Writing to output file: /home/gpttts/GPT_SoVITS/xiao/raw/xiao-zhofvo_card_xiao_invite_hard_03.wav|xiao-zh|zh|…你对
File "/home/gpttts/GPT_SoVITS/GPT_SoVITS/prepare_datasets/1-get-text.py", line 18, in <module> │此游艺倒有几分造诣。
ModuleNotFoundError: No module named 'text' │Processing file: vo_xiao_mimitomo_friendship2_03a_3.lab
from text.cleaner import clean_text │Writing to output file: /home/gpttts/GPT_SoVITS/xiao/raw/xiao-zhofvo_xiao_mimitomo_friendship2_03a_3.wav|xiao-zh|zh
ModuleNotFoundError: No module named 'text' │|人类的交往,真是麻烦。
Traceback (most recent call last): │Processing file: vo_card_xiao_inGame_easy_02.lab
File "/home/gpttts/GPT_SoVITS/webui.py", line 584, in open1abc │Writing to output file: /home/gpttts/GPT_SoVITS/xiao/raw/xiao-zhofvo_card_xiao_inGame_easy_02.wav|xiao-zh|zh|有意思
with open(txt_path, "r",encoding="utf8") as f: │。
FileNotFoundError: [Errno 2] No such file or directory: 'logs/xiao/2-name2text-0.txt'
因为没有跑通,症结在这句ModuleNotFoundError: No module named 'text'
找gpt-sovits的根目录路径找错了
方便问下你现在跑gpt-sovits的python环境是啥吗,有几个
我现在的环境是这样的,好像没有text
(gptsovits) gpttts@VM-3-13-ubuntu:~$ conda list
# packages in environment at /home/gpttts/.conda/envs/gptsovits:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
bzip2 1.0.8 h5eee18b_6
ca-certificates 2024.7.2 h06a4308_0
ffmpeg 4.2.2 h20bf706_0
freetype 2.12.1 h4a9f257_0
gmp 6.2.1 h295c915_3
gnutls 3.6.15 he1e5248_0
lame 3.100 h7b6447c_0
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libidn2 2.3.4 h5eee18b_0
libopus 1.3.1 h7b6447c_0
libpng 1.6.39 h5eee18b_0
libstdcxx-ng 11.2.0 h1234567_1
libtasn1 4.19.0 h5eee18b_0
libunistring 0.9.10 h27cfd23_0
libvpx 1.7.0 h439df22_0
nettle 3.7.3 hbbd107a_1
openh264 2.1.1 h4ff587b_0
x264 1!157.20191217 h7b6447c_0
zlib 1.2.13 h5eee18b_1
(gptsovits) gpttts@VM-3-13-ubuntu:~$ pip list
Package Version
------------------------- -------------
absl-py 2.1.0
addict 2.4.0
aiofiles 23.2.1
aiohttp 3.9.5
aiosignal 1.3.1
aliyun-python-sdk-core 2.15.1
aliyun-python-sdk-kms 2.16.3
altair 5.3.0
annotated-types 0.7.0
antlr4-python3-runtime 4.9.3
anyio 4.4.0
async-timeout 4.0.3
attrs 23.2.0
audioread 3.0.1
Automat 20.2.0
av 12.2.0
bcrypt 3.2.0
blinker 1.4
certifi 2024.7.4
cffi 1.16.0
chardet 4.0.0
charset-normalizer 3.3.2
click 8.0.3
cn2an 0.5.22
colorama 0.4.4
coloredlogs 15.0.1
command-not-found 0.3
configobj 5.0.6
constantly 15.1.0
contourpy 1.2.1
crcmod 1.7
cryptography 3.4.8
ctranslate2 4.3.1
cycler 0.12.1
Cython 0.29.37
datasets 2.20.0
dbus-python 1.2.18
decorator 5.1.1
dill 0.3.8
Distance 0.1.3
distro 1.7.0
distro-info 1.1build1
dnspython 2.6.1
editdistance 0.8.1
einops 0.8.0
email_validator 2.2.0
exceptiongroup 1.2.1
fastapi 0.111.0
fastapi-cli 0.0.4
faster-whisper 1.0.3
ffmpeg-python 0.2.0
ffmpy 0.3.2
filelock 3.15.4
flatbuffers 24.3.25
fonttools 4.53.1
frozenlist 1.4.1
fsspec 2024.5.0
funasr 1.0.0
future 1.0.0
g2p-en 2.1.0
gast 0.6.0
gradio 3.38.0
gradio_client 0.8.1
grpcio 1.65.0
h11 0.14.0
hdbscan 0.8.37
httpcore 1.0.5
httplib2 0.20.2
httptools 0.6.1
httpx 0.27.0
huggingface-hub 0.23.4
humanfriendly 10.0
hydra-core 1.3.2
hyperlink 21.0.0
idna 3.3
importlib_metadata 8.0.0
incremental 21.3.0
inflect 7.3.1
jaconv 0.3.4
jamo 0.4.1
jeepney 0.7.1
jieba 0.42.1
jieba-fast 0.53
Jinja2 3.1.4
jmespath 0.10.0
joblib 1.4.2
jsonschema 4.23.0
jsonschema-specifications 2023.12.1
kaldiio 2.18.0
keyring 23.5.0
kiwisolver 1.4.5
LangSegment 0.3.3
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
librosa 0.9.2
lightning-utilities 0.11.3.post0
linkify-it-py 2.0.3
llvmlite 0.39.1
Markdown 3.6
markdown-it-py 2.2.0
MarkupSafe 2.1.5
matplotlib 3.9.1
mdit-py-plugins 0.3.3
mdurl 0.1.2
modelscope 1.10.0
more-itertools 8.10.0
mpmath 1.3.0
multidict 6.0.5
multiprocess 0.70.16
netifaces 0.11.0
networkx 3.3
nltk 3.8.1
numba 0.56.4
numpy 1.23.4
nvidia-cublas-cu12 12.1.3.1
nvidia-cuda-cupti-cu12 12.1.105
nvidia-cuda-nvrtc-cu12 12.1.105
nvidia-cuda-runtime-cu12 12.1.105
nvidia-cudnn-cu12 8.9.2.26
nvidia-cufft-cu12 11.0.2.54
nvidia-curand-cu12 10.3.2.106
nvidia-cusolver-cu12 11.4.5.107
nvidia-cusparse-cu12 12.1.0.106
nvidia-nccl-cu12 2.20.5
nvidia-nvjitlink-cu12 12.5.82
nvidia-nvtx-cu12 12.1.105
oauthlib 3.2.0
omegaconf 2.3.0
onnxruntime 1.18.1
orjson 3.10.6
oss2 2.18.6
packaging 24.1
pandas 2.2.2
pexpect 4.8.0
pillow 10.4.0
pip 24.1.2
platformdirs 4.2.2
pooch 1.8.2
proces 0.1.7
protobuf 4.25.3
psutil 6.0.0
ptyprocess 0.7.0
py3langid 0.2.2
pyarrow 16.1.0
pyarrow-hotfix 0.6
pyasn1 0.4.8
pyasn1-modules 0.2.1
pycparser 2.22
pycryptodome 3.20.0
pydantic 2.8.2
pydantic_core 2.20.1
pydub 0.25.1
Pygments 2.18.0
PyGObject 3.42.0
PyHamcrest 2.0.2
PyJWT 2.3.0
pyopenjtalk 0.3.3
pyOpenSSL 21.0.0
pyparsing 2.4.7
pypinyin 0.51.0
pyserial 3.5
python-apt 2.3.0+ubuntu2
python-dateutil 2.9.0.post0
python-debian 0.1.43ubuntu1
python-dotenv 1.0.1
python-magic 0.4.24
python-multipart 0.0.9
pythonpy 0.4.11
pytorch-lightning 2.3.3
pytorch-wpe 0.0.1
pytz 2024.1
PyYAML 5.4.1
referencing 0.35.1
regex 2024.5.15
requests 2.32.3
resampy 0.4.3
rich 13.7.1
rpds-py 0.19.0
safetensors 0.4.3
scikit-learn 1.5.1
scipy 1.13.1
SecretStorage 3.3.1
semantic-version 2.10.0
sentencepiece 0.2.0
service-identity 18.1.0
setuptools 59.6.0
shellingham 1.5.4
simplejson 3.19.2
six 1.16.0
sniffio 1.3.1
sortedcontainers 2.4.0
sos 4.4
soundfile 0.12.1
ssh-import-id 5.11
starlette 0.37.2
sympy 1.13.0
systemd-python 234
tensorboard 2.17.0
tensorboard-data-server 0.7.2
textblob 0.18.0.post0
threadpoolctl 3.5.0
tokenizers 0.19.1
tomli 2.0.1
toolz 0.12.1
torch 2.3.1
torch-complex 0.4.4
torchaudio 2.3.1
torchmetrics 1.4.0.post0
tqdm 4.66.4
transformers 4.42.3
triton 2.3.1
Twisted 22.1.0
typeguard 4.3.0
typer 0.12.3
typing_extensions 4.12.2
tzdata 2024.1
ubuntu-advantage-tools 27.7
ubuntu-drivers-common 0.0.0
uc-micro-py 1.0.3
ufw 0.36.1
ujson 5.10.0
umap 0.1.1
unattended-upgrades 0.1
urllib3 2.2.2
uvicorn 0.30.1
uvloop 0.19.0
wadllib 1.3.6
watchfiles 0.22.0
websockets 11.0.3
Werkzeug 3.0.3
wheel 0.37.1
wordsegment 1.3.1
xkit 0.0.0
xxhash 3.4.1
yapf 0.40.2
yarl 1.9.4
zipp 1.0.0
zope.interface 5.4.0
``` 但是我应该安装哪一个Text呢? GPT说有好几个包的名字都是text?
我是直接使用的Requirements.txt搭建的
text 其实是项目里的文件夹 (通常是 GPT-SoVITS/GPT_SoVITS/text),
问题如花佬说的 找gpt-sovits的根目录路径找错了。
Traceback (most recent call last):
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS.venv\lib\site-packages\transformers\utils\hub.py", line 398, in cached_file
Traceback (most recent call last):
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS.venv\lib\site-packages\transformers\utils\hub.py", line 398, in cached_file
resolved_file = hf_hub_download(
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS.venv\lib\site-packages\huggingface_hub\utils_validators.py", line 110, in _inner_fn
resolved_file = hf_hub_download(
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS.venv\lib\site-packages\huggingface_hub\utils_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS.venv\lib\site-packages\huggingface_hub\utils_validators.py", line 158, in validate_repo_id
validate_repo_id(arg_value)
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS.venv\lib\site-packages\huggingface_hub\utils_validators.py", line 158, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large'. Use repo_type argument if needed.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS\GPT_SoVITS\prepare_datasets\1-get-text.py", line 56, in repo_type argument if needed.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\lolokj\PycharmProjects\GPT-SoVITS\GPT_SoVITS\prepare_datasets\1-get-text.py", line 56, in
下载预训练模型
https://www.123pan.com/s/UHp9-ofL8H.html用这个修修试试,我的修完好了
text 其实是项目里的文件夹 (通常是
GPT-SoVITS/GPT_SoVITS/text), 问题如花佬说的找gpt-sovits的根目录路径找错了。
如同这楼说的,你需要在调用text的地方加sys.path加上GPT-SoVITS/GPT_SoVITS的位置,因为我看你的conda环境不支持自动放user.pth,或者你手工加一下放在合适位置。