已解决,部署GPTSoVITS报错‘AsyncRequest‘ object has no attribute ‘_json_response_data‘

部署GPTSoVITS过程中,开启一键三连进程发生,报错'AsyncRequest' object has no attribute '_json_response_data'

具体报错内容为

(GPTSoVITS) PS D:\Code\GPT-SoVITS-beta0706> python webui.py
Running on local URL:  http://0.0.0.0:9874
IMPORTANT: You are using gradio version 3.38.0, however version 4.44.1 is available, please upgrade.
--------
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/1-get-text.py
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/1-get-text.py
'AsyncRequest' object has no attribute '_json_response_data'
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
BertForMaskedLM has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👉v4.50👈 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions.
  - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception).
  - If you are not the owner of the model architecture class, please contact the model code owner to update it.
BertForMaskedLM has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👉v4.50👈 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions.
  - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception).
  - If you are not the owner of the model architecture class, please contact the model code owner to update it.
Building prefix dict from the default dictionary ...
Loading model from cache D:\Code\GPT-SoVITS-beta0706\TEMP\jieba.cache
Building prefix dict from the default dictionary ...
Loading model from cache D:\Code\GPT-SoVITS-beta0706\TEMP\jieba.cache
Loading model cost 0.521 seconds.
Prefix dict has been built succesfully.
Loading model cost 0.512 seconds.
Prefix dict has been built succesfully.
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/s2_train.py --config "D:\Code\GPT-SoVITS-beta0706\TEMP/tmp_s2.json"
'AsyncRequest' object has no attribute '_json_response_data'
INFO:test:{'train': {'log_interval': 100, 'eval_interval': 500, 'seed': 1234, 'epochs': 8, 'learning_rate': 0.0001, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 3, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 20480, 
'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0, 'text_low_lr_rate': 0.4, 'pretrained_s2G': 'GPT_SoVITS/pretrained_models/s2G488k.pth', 'pretrained_s2D': 'GPT_SoVITS/pretrained_models/s2D488k.pth', 'if_save_latest':
 True, 'if_save_every_weights': True, 'save_every_epoch': 4, 'gpu_numbers': '0'}, 'data': {'max_wav_value': 32768.0, 'sampling_rate': 32000, 'filter_length': 2048, 'hop_length': 640, 'win_length': 2048, 'n_mel_channels': 128, 'mel_f
min': 0.0, 'mel_fmax': None, 'add_blank': True, 'n_speakers': 300, 'cleaned_text': True, 'exp_dir': 'logs/test'}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_
size': 3, 'p_dropout': 0.1, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [10, 8, 2, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_si
zes': [16, 16, 8, 2, 2], 'n_layers_q': 3, 'use_spectral_norm': False, 'gin_channels': 512, 'semantic_frame_rate': '25hz', 'freeze_quantizer': True}, 's2_ckpt_dir': 'logs/test', 'content_module': 'cnhubert', 'save_weight_dir': 'SoVITS_weights', 'name': 'test', 'pretrain': None, 'resume_step': None}
Traceback (most recent call last):
  File "D:\Code\GPT-SoVITS-beta0706\GPT_SoVITS\s2_train.py", line 600, in <module>
    main()
    mp.spawn(
  File "D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\multiprocessing\spawn.py", line 246, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
  File "D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\multiprocessing\spawn.py", line 202, in start_processes
    while not context.join():
  File "D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\multiprocessing\spawn.py", line 163, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 0 terminated with the following error:
Traceback (most recent call last):
  File "D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\multiprocessing\spawn.py", line 74, in _wrap
    fn(i, *args)
  File "D:\Code\GPT-SoVITS-beta0706\GPT_SoVITS\s2_train.py", line 85, in run
    train_dataset = TextAudioSpeakerLoader(hps.data)  ########
  File "D:\Code\GPT-SoVITS-beta0706\GPT_SoVITS\module\data_utils.py", line 36, in __init__
    assert os.path.exists(self.path4)
AssertionError

 报错的地方出现的py包为gradio,因此第一debug思路为换个gradio版本,优先考虑最新版本

首先

pip list

看到当前的gradio版本为3.38.0

(GPTSoVITS) PS D:\Code\GPT-SoVITS-beta0706> pip list
Package                   Version
------------------------- ------------
absl-py                   2.1.0
addict                    2.4.0
aiofiles                  23.2.1
aiohappyeyeballs          2.4.3
aiohttp                   3.10.10
aiosignal                 1.3.1
aliyun-python-sdk-core    2.16.0
aliyun-python-sdk-kms     2.16.5
altair                    5.4.1
annotated-types           0.7.0
antlr4-python3-runtime    4.9.3
anyio                     4.6.2.post1
async-timeout             4.0.3
attrs                     24.2.0
audioread                 3.0.1
av                        12.3.0
certifi                   2022.12.7
cffi                      1.17.1
chardet                   5.2.0
charset-normalizer        2.1.1
click                     8.1.7
cn2an                     0.5.22
colorama                  0.4.6
coloredlogs               15.0.1
contourpy                 1.3.0
crcmod                    1.7
cryptography              43.0.3
ctranslate2               4.5.0
cycler                    0.12.1
datasets                  3.0.2
decorator                 5.1.1
dill                      0.3.8
Distance                  0.1.3
editdistance              0.8.1
einops                    0.8.0
exceptiongroup            1.2.2
fastapi                   0.115.4
faster-whisper            1.0.3
ffmpeg-python             0.2.0
ffmpy                     0.4.0
filelock                  3.13.1
flatbuffers               24.3.25
fonttools                 4.54.1
frozenlist                1.5.0
fsspec                    2024.2.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.67.1
h11                       0.14.0
hdbscan                   0.8.39
httpcore                  1.0.6
httpx                     0.27.2
huggingface-hub           0.26.2
humanfriendly             10.0
hydra-core                1.3.2
idna                      3.4
importlib_metadata        8.5.0
inflect                   7.4.0
jaconv                    0.4.0
jamo                      0.4.1
jieba                     0.42.1
jieba_fast                0.53
Jinja2                    3.1.3
jmespath                  0.10.0
joblib                    1.4.2
jsonschema                4.23.0
jsonschema-specifications 2024.10.1
kaldiio                   2.18.0
kiwisolver                1.4.7
LangSegment               0.3.5
librosa                   0.9.2
lightning-utilities       0.11.8
linkify-it-py             2.0.3
llvmlite                  0.39.1
Markdown                  3.7
markdown-it-py            2.2.0
MarkupSafe                2.1.5
matplotlib                3.9.2
mdit-py-plugins           0.3.3
mdurl                     0.1.2
modelscope                1.10.0
more-itertools            10.5.0
mpmath                    1.3.0
multidict                 6.1.0
multiprocess              0.70.16
narwhals                  1.12.1
networkx                  3.2.1
nltk                      3.9.1
numba                     0.56.4
numpy                     1.23.5
omegaconf                 2.3.0
onnxruntime               1.19.2
orjson                    3.10.10
oss2                      2.19.1
packaging                 24.1
pandas                    2.2.3
pillow                    10.2.0
pip                       24.2
platformdirs              4.3.6
pooch                     1.8.2
proces                    0.1.7
propcache                 0.2.0
protobuf                  5.28.3
psutil                    6.1.0
py3langid                 0.2.2
pyarrow                   18.0.0
pycparser                 2.22
pycryptodome              3.21.0
pydantic                  2.9.2
pydantic_core             2.23.4
pydub                     0.25.1
pyopenjtalk               0.3.4
pyparsing                 3.2.0
pypinyin                  0.53.0
pyreadline3               3.5.4
python-dateutil           2.9.0.post0
python-multipart          0.0.16
pytorch-lightning         2.4.0
pytorch-wpe               0.0.1
pytz                      2024.2
PyYAML                    6.0.2
referencing               0.35.1
regex                     2024.9.11
requests                  2.32.3
resampy                   0.4.3
rpds-py                   0.20.0
safetensors               0.4.5
scikit-learn              1.5.2
scipy                     1.14.1
semantic-version          2.10.0
sentencepiece             0.2.0
setuptools                75.1.0
simplejson                3.19.3
six                       1.16.0
sniffio                   1.3.1
some-package              0.1
sortedcontainers          2.4.0
soundfile                 0.12.1
starlette                 0.41.2
sympy                     1.13.1
tensorboard               2.18.0
tensorboard-data-server   0.7.2
threadpoolctl             3.5.0
tokenizers                0.20.1
tomli                     2.0.2
torch                     2.1.2+cu121
torchaudio                2.1.2+cu121
torchmetrics              1.5.1
torchvision               0.16.2+cu121
tqdm                      4.66.6
transformers              4.46.1
typeguard                 4.4.0
typing_extensions         4.12.2
tzdata                    2024.2
uc-micro-py               1.0.3
umap                      0.1.1
urllib3                   1.26.13
uvicorn                   0.32.0
Werkzeug                  3.0.6
wheel                     0.44.0
wordsegment               1.3.1
xxhash                    3.5.0
yapf                      0.40.2
yarl                      1.17.0
zipp                      3.20.2

接下来

pip install gradio==99999
ERROR: Ignored the following yanked versions: 2.8.0, 3.0.7, 3.1.2, 3.13.1, 4.7.0
ERROR: Could not find a version that satisfies the requirement gradio==99999 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.4.0, 0.4.1,
.2, 1.0.0a1, 1.0.0a3, 1.0.0a4, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.8, 1.1.8.1, 1.1.9, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.2, 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 2.0.0, 2.0.1, 2.0.2, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.1.0, 2.1.1, 2.1.2, 2.1.4, 2.1.6, 2.1.7, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 2.2.9a0, 2.2.9a2, 2.2.10, 2.2.11, 2.2.12, 2.2.13, 2.2.14, 2.2.15, 2.3.0a0, 2.3.0b99, 2.3.0b101, 2.3.0b102, 2.3.0, 2.3.3, 2.3.4, 2.3.5b0, 2.3.5, 2.3.6, 2.3.7b0, 2.3.7b1, 2.3.7b2, 2.3.7, 2.3.8b0, 2.3.9, 2.4.0a0, 2.4.0, 2.4.1, 2.4.2, 2.4.4, 2.4.5, 2.4.6, 2.4.7b0, 2.4.7b2, 2.4.7b3, 2.4.7b4, 2.4.7b5, 2.4.7b6, 2.4.7b7, 2.4.7b8, 2.4.7b9, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.8a0, 2.6.0, 2.6.1a0, 2.6.1b0, 2.6.1b3, 2.6.1, 1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 2.8.6, 2.8.7, 2.8.8, 2.8.9, 2.8.10, 2.8.11, 2.8.12, 2.8.13, 2.8.14, 2.9.0b0, 2.9.0b1, 2.9.0b2, 2.9.0b3, 2.9.0b5, 2.9.0b6, 2.9.0b7, 2.9.0b8, 2.9.0b9, 2.9.0b10, 2.9b11, 2.9b12, 2.9b13, 2.9b14, 2.9b15, 2.9b20, 2.9b21, 2.9b22, 2.9b23, 2.9b24, 2.9b25, 2.9b26, 2.9b27, 2.9b28, 2.9b30, 2.9b31, 2.9b32, 2.9b33, 2.9b40, 2.9b48, 2.9b50, 2.9.0, 2.9.0.1, 2.9.1, 2.9.2, 2.9.3, 2.9.4, 3.0b0, 3.0b1, 3.0b2, 3.0b5, 3.0b6, 3.0b8, 3.0b9, 3.0b10, 3.0, 3.0.1b120, 3.0.1b121, 3.0.1b300, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6b1, 3.0.6b2, 3.0.6b3, 3.0.6, 3.0.8b1, 3.0.8, 3.0.9b10, 3.0.9b11, 3.0.9b20, 3.0.9, 3.0.10b2, 3.0.10b16, 3.0.10, 3.0.11b1, 3.0.11, 3.0.12, 3.0.13b13, 3.0.13b15, 3.0.13b100, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18b0, 3.0.18, 3.0.19b0, 3.0.19b1, 3.0.19b2, 3.0.19, 3.0.20.dev0, 3.0.20, 3.0.21, 3.0.22, 3.0.23.dev1, 3.0.23, 3.0.24, 3.0.25, 3.0.26, 3.1.0, 3.1.1, 3.1.3a0, 3.1.3a2, 3.1.3a3, 3.1.3a4, 3.1.3a5, 3.1.3, 3.1.4b0, 3.1.4b1, 3.1.4b2, 3.1.4b3, 3.1.4b4, 3.1.4b5, 3.1.4, 3.1.5b1, 3.1.5b2, 3.1.5b3, 3.1.5b4, 3.1.5b5, 3.1.5b7, 3.1.5b8, 3.1.5b9, 3.1.5b10, 3.1.5, 3.1.6b1, 3.1.6, 3.1.7, 3.1.8b0, 3.1.8b2, 3.1.8b3, 3.1.8b4, 3.1.8b6, 3.2, 3.2.1b0, 3.2.1b1, 3.2.1b2, 3.3b0, 3.3b1, 3.3, 3.3.1, 3.4b0, 3.4b1, 3.4b2, 3.4b3, 3.4b5, 3.4, 3.4.1, 3.5, 3.6.0b1, 3.6.0b2, 3.6.0b3, 3.6.0b7, 3.6.0b10, 3.6, 3.7, 3.8b1, 3.8b2, 3.8, 3.8.1.dev1, 3.8.1, 3.8.2, 3.9, 3.9.1, 3.10.0, 3.10.1, 3.11.0, 3.12.0b1, 3.12.0b2, 3.12.0b3, 3.12.0b6, 3.12.0b7, 3.12.0, 3.13.0b1, 3.13.0, 3.13.1b0, 3.13.1b1, 3.13.1b2, 3.13.2, 3.14.0a1, 3.14.0, 3.15.0, 3.16.0, 3.16.1b1, 3.16.1, 3.16.2, 3.17.0, 3.17.1b1, 3.17.1b2, 3.17.1, 3.18.0, 3.18.1b1, 3.18.1b2, 3.18.1b3, 3.18.1b4, 3.18.1b5, 3.18.1b6, 3.18.1b7, 3.19.0, 3.19.1, 3.20.0b1, 3.20.0b2, 3.20.0, 3.20.1, 3.21.0, 3.22.0, 3.22.1b1, 3.22.1, 3.23.0, 3.23.1b1, 3.23.1b2, 3.23.1b3, 3.24.0, 3.24.1, 3.25.0, 3.25.1b1, 3.25.1b2, 3.26.0, 3.27.0, 3.28.0, 3.28.1, 3.28.2, 3.28.3, 3.28.4b0, 3.29.0, 3.30.0, 3.31.0, 3.32.0, 3.33.0, 3.33.1, 3.34.0, 3.35.0, 3.35.1, 3.35.2, 3.36.0, 3.36.1, 3.37.0, 3.38.0, 3.39.0, 3.40.0, 3.40.1, 3.41.0, 3.41.1, 3.41.2, 3.42.0, 3.43.0, 3.43.1, 3.43.2, 3.44.0, 3.44.1, 3.44.2, 3.44.3, 3.44.4, 3.45.0b0, 3.45.0b1, 3.45.0b2, 3.45.0b3, 3.45.0b4, 3.45.0b5, 3.45.0b6, 3.45.0b7, 3.45.0b8, 3.45.0b9, 3.45.0b10, 3.45.0b11, 3.45.0b12, 3.45.0b13, 3.45.0, 3.45.1, 3.45.2, 3.46.0, 3.46.1, 3.47.0, 3.47.1, 3.48.0, 3.49.0, 3.50.0, 3.50.1, 3.50.2, 4.0.0b15, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.3.0, 4.4.0, 4.4.1, 4.5.0, 4.7.1, 4.8.0, 4.9.0, 4.9.1, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.14.0, 4.15.0, 4.16.0, 4.17.0, 4.18.0, 4.19.0, 4.19.1, 4.19.2, 4.20.0, 4.20.1, 4.21.0, 4.22.0, 4.23.0, 4.24.0, 4.25.0, 4.26.0, 4.27.0, 4.28.0, 4.28.1, 4.28.2, 4.28.3, 4.29.0, 4.31.0, 4.31.1, 4.31.2, 4.31.3, 4.31.4, 4.31.5, 4.32.0, 4.32.1, 4.32.2, 4.33.0, 4.35.0, 4.36.0, 4.36.1, 4.37.1, 4.37.2, 4.38.0, 4.38.1, 4.39.0, 4.40.0, 4.41.0, 4.42.0, 4.43.0, 4.44.0, 4.44.1, 5.0.0b1, 5.0.0b5, 5.0.0b6, 5.0.0b7, 5.0.0b8, 5.0.0b9, 5.0.0b10, 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.3.0, 5.4.0)

然后

pip install gradio==5.4.0

重新运行webui.py在gradio页面中开启一键三连还是报错了

(GPTSoVITS) PS D:\Code\GPT-SoVITS-beta0706> pip install gradio==5.4.0
Collecting gradio==5.4.0
  Downloading gradio-5.4.0-py3-none-any.whl.metadata (16 kB)
Requirement already satisfied: aiofiles<24.0,>=22.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (23.2.1)
Requirement already satisfied: anyio<5.0,>=3.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (4.6.2.post1)
Requirement already satisfied: fastapi<1.0,>=0.115.2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.115.4)
Requirement already satisfied: ffmpy in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.4.0)
Collecting gradio-client==1.4.2 (from gradio==5.4.0)
  Downloading gradio_client-1.4.2-py3-none-any.whl.metadata (7.1 kB)
Requirement already satisfied: httpx>=0.24.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.27.2)
Requirement already satisfied: huggingface-hub>=0.25.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.26.2)
Requirement already satisfied: jinja2<4.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (3.1.3)
Requirement already satisfied: markupsafe~=2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (2.1.5)
Requirement already satisfied: numpy<3.0,>=1.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (1.23.5)
Requirement already satisfied: orjson~=3.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (3.10.10)
Requirement already satisfied: packaging in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (24.1)
Requirement already satisfied: pandas<3.0,>=1.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (2.2.3)
Requirement already satisfied: pillow<12.0,>=8.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (10.2.0)
Requirement already satisfied: pydantic>=2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (2.9.2)
Requirement already satisfied: pydub in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.25.1)
Collecting python-multipart==0.0.12 (from gradio==5.4.0)
  Downloading python_multipart-0.0.12-py3-none-any.whl.metadata (1.9 kB)
Requirement already satisfied: pyyaml<7.0,>=5.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (6.0.2)
Collecting ruff>=0.2.2 (from gradio==5.4.0)
  Downloading ruff-0.7.2-py3-none-win_amd64.whl.metadata (25 kB)
Collecting safehttpx<1.0,>=0.1.1 (from gradio==5.4.0)
  Downloading safehttpx-0.1.1-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: semantic-version~=2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (2.10.0)
Requirement already satisfied: starlette<1.0,>=0.40.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.41.2)
Collecting tomlkit==0.12.0 (from gradio==5.4.0)
  Using cached tomlkit-0.12.0-py3-none-any.whl.metadata (2.7 kB)
Collecting typer<1.0,>=0.12 (from gradio==5.4.0)
  Downloading typer-0.12.5-py3-none-any.whl.metadata (15 kB)
Requirement already satisfied: typing-extensions~=4.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (4.12.2)
Requirement already satisfied: uvicorn>=0.14.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==5.4.0) (0.32.0)
Requirement already satisfied: fsspec in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio-client==1.4.2->gradio==5.4.0) (2024.2.0)
Requirement already satisfied: websockets<13.0,>=10.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio-client==1.4.2->gradio==5.4.0) (11.0.3)
Requirement already satisfied: idna>=2.8 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from anyio<5.0,>=3.0->gradio==5.4.0) (3.4)
Requirement already satisfied: sniffio>=1.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from anyio<5.0,>=3.0->gradio==5.4.0) (1.3.1)
Requirement already satisfied: exceptiongroup>=1.0.2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from anyio<5.0,>=3.0->gradio==5.4.0) (1.2.2)
Requirement already satisfied: certifi in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from httpx>=0.24.1->gradio==5.4.0) (2022.12.7)
Requirement already satisfied: httpcore==1.* in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from httpx>=0.24.1->gradio==5.4.0) (1.0.6)
Requirement already satisfied: h11<0.15,>=0.13 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from httpcore==1.*->httpx>=0.24.1->gradio==5.4.0) (0.14.0)
Requirement already satisfied: filelock in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from huggingface-hub>=0.25.1->gradio==5.4.0) (3.13.1)
Requirement already satisfied: requests in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from huggingface-hub>=0.25.1->gradio==5.4.0) (2.32.3)
Requirement already satisfied: tqdm>=4.42.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from huggingface-hub>=0.25.1->gradio==5.4.0) (4.66.6)
Requirement already satisfied: python-dateutil>=2.8.2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pandas<3.0,>=1.0->gradio==5.4.0) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pandas<3.0,>=1.0->gradio==5.4.0) (2024.2)
Requirement already satisfied: tzdata>=2022.7 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pandas<3.0,>=1.0->gradio==5.4.0) (2024.2)
Requirement already satisfied: annotated-types>=0.6.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pydantic>=2.0->gradio==5.4.0) (0.7.0)
Requirement already satisfied: pydantic-core==2.23.4 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pydantic>=2.0->gradio==5.4.0) (2.23.4)
Requirement already satisfied: click>=8.0.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from typer<1.0,>=0.12->gradio==5.4.0) (8.1.7)
Collecting shellingham>=1.3.0 (from typer<1.0,>=0.12->gradio==5.4.0)
  Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting rich>=10.11.0 (from typer<1.0,>=0.12->gradio==5.4.0)
  Downloading rich-13.9.4-py3-none-any.whl.metadata (18 kB)
Requirement already satisfied: colorama in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from click>=8.0.0->typer<1.0,>=0.12->gradio==5.4.0) (0.4.6)
Requirement already satisfied: six>=1.5 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio==5.4.0) (1.16.0)
Requirement already satisfied: markdown-it-py>=2.2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==5.4.0) (2.2.0)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.11.0->typer<1.0,>=0.12->gradio==5.4.0)
  Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from requests->huggingface-hub>=0.25.1->gradio==5.4.0) (2.1.1)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from requests->huggingface-hub>=0.25.1->gradio==5.4.0) (1.26.13)
Requirement already satisfied: mdurl~=0.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio==5.4.0) (0.1.2)
Downloading gradio-5.4.0-py3-none-any.whl (56.7 MB)
Downloading gradio_client-1.4.2-py3-none-any.whl (319 kB)
Downloading python_multipart-0.0.12-py3-none-any.whl (23 kB)
Using cached tomlkit-0.12.0-py3-none-any.whl (37 kB)
Downloading ruff-0.7.2-py3-none-win_amd64.whl (9.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.4/9.4 MB 18.9 MB/s eta 0:00:00
Downloading safehttpx-0.1.1-py3-none-any.whl (8.4 kB)
Downloading typer-0.12.5-py3-none-any.whl (47 kB)
Downloading rich-13.9.4-py3-none-any.whl (242 kB)
Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
  Attempting uninstall: python-multipart
    Found existing installation: python-multipart 0.0.16
    Uninstalling python-multipart-0.0.16:
      Successfully uninstalled python-multipart-0.0.16
  Attempting uninstall: gradio-client
    Found existing installation: gradio_client 0.8.1
    Uninstalling gradio_client-0.8.1:
      Successfully uninstalled gradio_client-0.8.1
Successfully installed gradio-5.4.0 gradio-client-1.4.2 pygments-2.18.0 python-multipart-0.0.12 rich-13.9.4 ruff-0.7.2 safehttpx-0.1.1 shellingham-1.5.4 tomlkit-0.12.0 typer-0.12.5
(GPTSoVITS) PS D:\Code\GPT-SoVITS-beta0706> python webui.py
Traceback (most recent call last):
  File "D:\Code\GPT-SoVITS-beta0706\webui.py", line 875, in <module>
    app.queue(concurrency_count=511, max_size=1022).launch(
Exception ignored in: <module 'threading' from 'D:\\ProgramData\\anaconda3\\envs\\GPTSoVITS\\lib\\threading.py'>
Traceback (most recent call last):
  File "D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\threading.py", line 1567, in _shutdown
    lock.acquire()
KeyboardInterrupt:

因此替换为3.xx.x最后一个版本——3.50.2

pip install gradio=3.50.2

 接下来就可以实现三连进程的正常运行了

(GPTSoVITS) PS D:\Code\GPT-SoVITS-beta0706> pip install gradio==3.50.2
Collecting gradio==3.50.2
  Downloading gradio-3.50.2-py3-none-any.whl.metadata (17 kB)
Requirement already satisfied: aiofiles<24.0,>=22.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (23.2.1)
Requirement already satisfied: altair<6.0,>=4.2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (5.4.1)
Requirement already satisfied: fastapi in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.115.4)
Requirement already satisfied: ffmpy in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.4.0)
Collecting gradio-client==0.6.1 (from gradio==3.50.2)
  Downloading gradio_client-0.6.1-py3-none-any.whl.metadata (7.1 kB)
Requirement already satisfied: httpx in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.27.2)
Requirement already satisfied: huggingface-hub>=0.14.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.26.2)
Collecting importlib-resources<7.0,>=1.3 (from gradio==3.50.2)
  Downloading importlib_resources-6.4.5-py3-none-any.whl.metadata (4.0 kB)
Requirement already satisfied: jinja2<4.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (3.1.3)
Requirement already satisfied: markupsafe~=2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (2.1.5)
Requirement already satisfied: matplotlib~=3.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (3.9.2)
Requirement already satisfied: numpy~=1.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (1.23.5)
Requirement already satisfied: orjson~=3.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (3.10.10)
Requirement already satisfied: packaging in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (24.1)
Requirement already satisfied: pandas<3.0,>=1.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (2.2.3)
Requirement already satisfied: pillow<11.0,>=8.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (10.2.0)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (2.9.2)
Requirement already satisfied: pydub in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.25.1)
Requirement already satisfied: python-multipart in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.0.12)
Requirement already satisfied: pyyaml<7.0,>=5.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (6.0.2)
Requirement already satisfied: requests~=2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (2.32.3)
Requirement already satisfied: semantic-version~=2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (2.10.0)
Requirement already satisfied: typing-extensions~=4.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (4.12.2)
Requirement already satisfied: uvicorn>=0.14.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (0.32.0)
Requirement already satisfied: websockets<12.0,>=10.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio==3.50.2) (11.0.3)
Requirement already satisfied: fsspec in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from gradio-client==0.6.1->gradio==3.50.2) (2024.2.0)
Requirement already satisfied: jsonschema>=3.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from altair<6.0,>=4.2.0->gradio==3.50.2) (4.23.0)
Requirement already satisfied: narwhals>=1.5.2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from altair<6.0,>=4.2.0->gradio==3.50.2) (1.12.1)
Requirement already satisfied: filelock in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from huggingface-hub>=0.14.0->gradio==3.50.2) (3.13.1)
Requirement already satisfied: tqdm>=4.42.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from huggingface-hub>=0.14.0->gradio==3.50.2) (4.66.6)
Requirement already satisfied: contourpy>=1.0.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from matplotlib~=3.0->gradio==3.50.2) (1.3.0)
Requirement already satisfied: cycler>=0.10 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from matplotlib~=3.0->gradio==3.50.2) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from matplotlib~=3.0->gradio==3.50.2) (4.54.1)
Requirement already satisfied: kiwisolver>=1.3.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from matplotlib~=3.0->gradio==3.50.2) (1.4.7)
Requirement already satisfied: pyparsing>=2.3.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from matplotlib~=3.0->gradio==3.50.2) (3.2.0)
Requirement already satisfied: python-dateutil>=2.7 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from matplotlib~=3.0->gradio==3.50.2) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.50.2) (2024.2)
Requirement already satisfied: tzdata>=2022.7 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.50.2) (2024.2)
Requirement already satisfied: annotated-types>=0.6.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.50.2) (0.7.0)
Requirement already satisfied: pydantic-core==2.23.4 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.50.2) (2.23.4)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from requests~=2.0->gradio==3.50.2) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from requests~=2.0->gradio==3.50.2) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from requests~=2.0->gradio==3.50.2) (1.26.13)
Requirement already satisfied: certifi>=2017.4.17 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from requests~=2.0->gradio==3.50.2) (2022.12.7)
Requirement already satisfied: click>=7.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from uvicorn>=0.14.0->gradio==3.50.2) (8.1.7)
Requirement already satisfied: h11>=0.8 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from uvicorn>=0.14.0->gradio==3.50.2) (0.14.0)
Requirement already satisfied: anyio in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from httpx->gradio==3.50.2) (4.6.2.post1)
Requirement already satisfied: httpcore==1.* in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from httpx->gradio==3.50.2) (1.0.6)
Requirement already satisfied: sniffio in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from httpx->gradio==3.50.2) (1.3.1)
Requirement already satisfied: colorama in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from click>=7.0->uvicorn>=0.14.0->gradio==3.50.2) (0.4.6)
Requirement already satisfied: attrs>=22.2.0 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.50.2) (24.2.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.50.2) (2024.10.1)
Requirement already satisfied: referencing>=0.28.4 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.50.2) (0.35.1)
Requirement already satisfied: rpds-py>=0.7.1 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.50.2) (0.20.0)
Requirement already satisfied: six>=1.5 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==3.50.2) (1.16.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in d:\programdata\anaconda3\envs\gptsovits\lib\site-packages (from anyio->httpx->gradio==3.50.2) (1.2.2)
Downloading gradio-3.50.2-py3-none-any.whl (20.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.3/20.3 MB 22.1 MB/s eta 0:00:00
Downloading gradio_client-0.6.1-py3-none-any.whl (299 kB)
Downloading importlib_resources-6.4.5-py3-none-any.whl (36 kB)
Installing collected packages: importlib-resources, gradio-client, gradio
  Attempting uninstall: gradio-client
    Found existing installation: gradio_client 1.4.2
    Uninstalling gradio_client-1.4.2:
      Successfully uninstalled gradio_client-1.4.2
Successfully installed gradio-3.50.2 gradio-client-0.6.1 importlib-resources-6.4.5
(GPTSoVITS) PS D:\Code\GPT-SoVITS-beta0706> python webui.py
Running on local URL:  http://0.0.0.0:9874
IMPORTANT: You are using gradio version 3.50.2, however version 4.44.1 is available, please upgrade.
--------
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/1-get-text.py
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/1-get-text.py
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
BertForMaskedLM has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👉v4.50👈 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions.
  - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception).
  - If you are not the owner of the model architecture class, please contact the model code owner to update it.
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
BertForMaskedLM has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👉v4.50👈 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions.
  - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception).
  - If you are not the owner of the model architecture class, please contact the model code owner to update it.
Building prefix dict from the default dictionary ...
Loading model from cache D:\Code\GPT-SoVITS-beta0706\TEMP\jieba.cache
Building prefix dict from the default dictionary ...
Loading model from cache D:\Code\GPT-SoVITS-beta0706\TEMP\jieba.cache
Loading model cost 0.495 seconds.
Prefix dict has been built succesfully.
Loading model cost 0.489 seconds.
Prefix dict has been built succesfully.
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/3-get-semantic.py
"D:\ProgramData\anaconda3\envs\GPTSoVITS\python.exe" GPT_SoVITS/prepare_datasets/3-get-semantic.py
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\nn\utils\weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
  warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
D:\ProgramData\anaconda3\envs\GPTSoVITS\lib\site-packages\torch\nn\utils\weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
  warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
<All keys matched successfully>
<All keys matched successfully>

此时gradio中出现页面为一键三连进程结束

PowerShell 7 环境已加载 (版本: 7.5.2) PS C:\Users\Administrator\Desktop> # 1. 导航到项目目录 PS C:\Users\Administrator\Desktop> cd E:\AI_System PS E:\AI_System> PS E:\AI_System> # 2. 激活虚拟环境(只需执行一次) PS E:\AI_System> venv\Scripts\activate (venv) PS E:\AI_System> (venv) PS E:\AI_System> # 3. 运行环境接口测试 (venv) PS E:\AI_System> python agent\environment_interface.py 2025-08-27 23:21:48,031 - CoreConfig - INFO - 📂 从 E:\AI_System\config\default.json 加载配置: { "LOG_DIR": "E:/AI_System/logs", "CONFIG_DIR": "E:/AI_System/config", "MODEL_CACHE_DIR": "E:/AI_System/model_cache", "AGENT_NAME": "\u5c0f\u84dd", "DEFAULT_USER": "\u7ba1\u7406\u5458", "MAX_WORKERS": 4, "AGENT_RESPONSE_TIMEOUT": 30.0, "MODEL_BASE_PATH": "E:/AI_Models", "MODEL_PATHS": { "TEXT_BASE": "E:/AI_Models/Qwen2-7B", "TEXT_CHAT": "E:/AI_Models/deepseek-7b-chat", "MULTIMODAL": "E:/AI_Models/deepseek-vl2", "IMAGE_GEN": "E:/AI_Models/sdxl", "YI_VL": "E:/AI_Models/yi-vl", "STABLE_DIFFUSION": "E:/AI_Models/stable-diffusion-xl-base-1.0" }, "NETWORK": { "HOST": "0.0.0.0", "FLASK_PORT": 8000, "GRADIO_PORT": 7860 }, "DATABASE": { "DB_HOST": "localhost", "DB_PORT": 5432, "DB_NAME": "ai_system", "DB_USER": "ai_user", "DB_PASSWORD": "secure_password_here" }, "SECURITY": { "SECRET_KEY": "generated-secret-key-here" }, "ENVIRONMENT": { "ENV": "dev", "LOG_LEVEL": "DEBUG", "USE_GPU": true }, "DIRECTORIES": { "DEFAULT_MODEL": "E:/AI_Models/Qwen2-7B", "WEB_UI_DIR": "E:/AI_System/web_ui", "AGENT_DIR": "E:/AI_System/agent", "PROJECT_ROOT": "E:/AI_System" } } 2025-08-27 23:21:48,031 - CoreConfig - INFO - 📂 从 E:\AI_System\config\local.json 加载配置: {} 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🌐 从 E:\AI_System\.env 加载环境变量 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_ROOT=E:\AI_System 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DIRECTORIES__PROJECT_ROOT=E:\AI_System 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DIRECTORIES__AGENT_DIR=E:\AI_System\agent 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DIRECTORIES__WEB_UI_DIR=E:\AI_System\web_ui 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DIRECTORIES__DEFAULT_MODEL=E:\AI_Models\Qwen2-7B 2025-08-27 23:21:48,032 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_ENVIRONMENT__LOG_LEVEL=DEBUG 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DATABASE__DB_HOST=localhost 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DATABASE__DB_PORT=5432 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DATABASE__DB_NAME=ai_system 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DATABASE__DB_USER=ai_user 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_DATABASE__DB_PASSWORD=****** 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_SECURITY__SECRET_KEY=****** 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_MODEL_PATHS__TEXT_BASE=E:\AI_Models\Qwen2-7B 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_MODEL_PATHS__TEXT_CHAT=E:\AI_Models\deepseek-7b-chat 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_MODEL_PATHS__MULTIMODAL=E:\AI_Models\deepseek-vl2 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_MODEL_PATHS__IMAGE_GEN=E:\AI_Models\sdxl 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_MODEL_PATHS__YI_VL=E:\AI_Models\yi-vl 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_MODEL_PATHS__STABLE_DIFFUSION=E:\AI_Models\stable-diffusion-xl-base-1.0 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_NETWORK__HOST=0.0.0.0 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_NETWORK__FLASK_PORT=8000 2025-08-27 23:21:48,033 - CoreConfig - INFO - 🔄 环境变量覆盖: AI_SYSTEM_NETWORK__GRADIO_PORT=7860 2025-08-27 23:21:48,034 - CoreConfig - WARNING - ⚠️ 模型路径不存在: STABLE_DIFFUSION = E:/AI_Models/stable-diffusion-xl-base-1.0 2025-08-27 23:21:48,034 - CoreConfig - INFO - ✅ 配置系统初始化完成 2025-08-27 23:21:48,416 - EnvironmentInterface - INFO - ✅ 初始化环境模块: EnvironmentInterface 2025-08-27 23:21:48,416 - EnvironmentInterface - INFO - ✅ 初始化环境模块: EnvironmentInterface Traceback (most recent call last): File "E:\AI_System\agent\environment_interface.py", line 198, in <module> env = EnvironmentInterface(config=config) File "E:\AI_System\agent\environment_interface.py", line 78, in __init__ self.workspace_root = self._resolve_workspace_path(self.base_dir) AttributeError: 'EnvironmentInterface' object has no attribute '_resolve_workspace_path' (venv) PS E:\AI_System> (venv) PS E:\AI_System> # 确认文件存在 (venv) PS E:\AI_System> dir agent\environment_interface.py Directory: E:\AI_System\agent Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 2025/8/27 23:18 6972 environment_interface.py (venv) PS E:\AI_System> (venv) PS E:\AI_System> python --version Python 3.10.10 (venv) PS E:\AI_System> # 应该显示 Python 3.x (venv) PS E:\AI_System> # 检查虚拟环境中的包 (venv) PS E:\AI_System> pip list Package Version ------------------------- ------------ accelerate 0.27.2 aiofiles 23.2.1 aiohttp 3.9.3 aiosignal 1.4.0 altair 5.5.0 annotated-types 0.7.0 ansicon 1.89.0 anyio 4.10.0 async-timeout 4.0.3 attrs 25.3.0 bidict 0.23.1 blessed 1.21.0 blinker 1.9.0 Brotli 1.1.0 certifi 2025.8.3 cffi 1.17.1 charset-normalizer 3.4.3 click 8.2.1 colorama 0.4.6 coloredlogs 15.0.1 contourpy 1.3.2 cryptography 42.0.4 cycler 0.12.1 diffusers 0.26.3 diskcache 5.6.3 distro 1.9.0 exceptiongroup 1.3.0 fastapi 0.116.1 ffmpy 0.6.1 filelock 3.19.1 Flask 3.0.2 Flask-SocketIO 5.3.6 flatbuffers 25.2.10 fonttools 4.59.1 frozenlist 1.7.0 fsspec 2025.7.0 gpustat 1.1 gradio 4.19.2 gradio_client 0.10.1 groovy 0.1.2 h11 0.16.0 httpcore 1.0.9 httpx 0.28.1 huggingface-hub 0.21.3 humanfriendly 10.0 idna 3.10 importlib_metadata 8.7.0 importlib_resources 6.5.2 itsdangerous 2.2.0 Jinja2 3.1.6 jinxed 1.3.0 jsonschema 4.25.1 jsonschema-specifications 2025.4.1 kiwisolver 1.4.9 loguru 0.7.2 markdown-it-py 4.0.0 MarkupSafe 2.1.5 matplotlib 3.10.5 mdurl 0.1.2 mpmath 1.3.0 multidict 6.6.4 narwhals 2.1.2 networkx 3.4.2 numpy 1.26.3 nvidia-ml-py 13.580.65 onnxruntime 1.17.1 openai 1.13.3 orjson 3.11.2 packaging 25.0 pandas 2.1.4 pillow 10.4.0 pip 22.3.1 prettytable 3.16.0 propcache 0.3.2 protobuf 6.32.0 psutil 5.9.7 pycparser 2.22 pydantic 2.11.7 pydantic_core 2.33.2 pydub 0.25.1 Pygments 2.19.2 pyparsing 3.2.3 pyreadline3 3.5.4 python-dateutil 2.9.0.post0 python-dotenv 1.0.1 python-engineio 4.12.2 python-multipart 0.0.20 python-socketio 5.13.0 pytz 2025.2 pywin32 306 PyYAML 6.0.2 redis 5.0.3 referencing 0.36.2 regex 2025.7.34 requests 2.31.0 rich 14.1.0 rpds-py 0.27.0 ruff 0.12.10 safehttpx 0.1.6 safetensors 0.4.2 semantic-version 2.10.0 setuptools 65.5.0 shellingham 1.5.4 simple-websocket 1.1.0 six 1.17.0 sniffio 1.3.1 starlette 0.47.2 sympy 1.14.0 tomlkit 0.12.0 torch 2.1.2 torchaudio 2.5.1+cu118 torchvision 0.20.1+cu118 tqdm 4.67.1 transformers 4.37.0 typer 0.16.1 typing_extensions 4.14.1 typing-inspection 0.4.1 tzdata 2025.2 urllib3 2.5.0 uvicorn 0.35.0 waitress 2.1.2 wcwidth 0.2.13 websockets 11.0.3 Werkzeug 3.1.3 win32_setctime 1.2.0 wsproto 1.2.0 yarl 1.20.1 zipp 3.23.0 [notice] A new release of pip available: 22.3.1 -> 25.2 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) PS E:\AI_System> # 应该包含 transformers, diskcache 等 (venv) PS E:\AI_System> # 进入Python交互模式 (venv) PS E:\AI_System> python Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
08-28
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

光芒再现dev

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值