7
应该不是本地网络问题,因为open-webui的本地服务器都能启动
C:\Users\admin\index-tts>uv run webui.py
warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning.
>> GPT weights restored from: ./checkpoints\gpt.pth
GPT2InferenceModel 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.
>> semantic_codec weights restored from: C:\Users\admin\.cache\huggingface\hub\models--amphion--MaskGCT\snapshots\265c6cef07625665d0c28d2faafb1415562379dc\semantic_codec\model.safetensors
cfm loaded
length_regulator loaded
gpt_layer loaded
>> s2mel weights restored from: ./checkpoints\s2mel.pth
>> campplus_model weights restored from: C:\Users\admin\.cache\huggingface\hub\models--funasr--campplus\snapshots\fb71fe990cbf6031ae6987a2d76fe64f94377b7e\campplus_cn_common.bin
Loading weights from nvidia/bigvgan_v2_22khz_80band_256x
Removing weight norm...
>> bigvgan weights restored from: nvidia/bigvgan_v2_22khz_80band_256x
>> TextNormalizer loaded
>> bpe model loaded from: ./checkpoints\bpe.model
* Running on local URL: http://0.0.0.0:7860
Traceback (most recent call last):
File "C:\Users\admin\index-tts\webui.py", line 350, in <module>
demo.launch(server_name=cmd_args.host, server_port=cmd_args.port)
File "C:\Users\admin\index-tts\.venv\lib\site-packages\gradio\blocks.py", line 2843, in launch
raise Exception(
Exception: Couldn't start the app because 'http://localhost:7860/gradio_api/startup-events' failed (code 503). Check your network or proxy settings to ensure localhost is accessible.
只好自己写了个批量克隆脚本:
param_descriptions.py voice_cloner_gui.py
输入需要克隆的样本,然后将某个文件夹下所有txt文件转换为wav文件