-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Some error while trying to get SoVITS v3 running on Mac #2046
Comments
Update Code |
Don't use update.command for now |
so is there any ways to upgrade to v3? |
|
thanks a lot,the problem had been solved |
when I try to turn on tts inference webUI with parallel inference on.it will raise:
Loading Text2Semantic weights from GPT_weights_v3/xxx-e50.ckpt
Loading VITS weights from SoVITS_weights_v3/xxx_e2_s40.pth
Traceback (most recent call last):
File "/Users/duoduo/GPT-SoVITS/GPT_SoVITS/inference_webui_fast.py", line 111, in
tts_pipeline = TTS(tts_config)
File "/Users/duoduo/GPT-SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 252, in init
self._init_models()
File "/Users/duoduo/GPT-SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 278, in _init_models
self.init_vits_weights(self.configs.vits_weights_path)
File "/Users/duoduo/GPT-SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 307, in init_vits_weights
dict_s2 = torch.load(weights_path, map_location=self.configs.device)
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/torch/serialization.py", line 1470, in load
raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
_pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint.
(1) In PyTorch 2.6, we changed the default value of the
weights_only
argument intorch.load
fromFalse
toTrue
. Re-runningtorch.load
withweights_only
set toFalse
will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.(2) Alternatively, to load with
weights_only=True
please check the recommended steps in the following error message.WeightsUnpickler error: Unsupported global: GLOBAL utils.HParams was not an allowed global by default. Please use
torch.serialization.add_safe_globals([HParams])
or thetorch.serialization.safe_globals([HParams])
context manager to allowlist this global if you trust this class/function.Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
but what I get from terminal by python3 -m pip show torch says my torch version is 2.5.0.
if I turn on tts inference webUI with parallel inference off,i can get inference webUI on ,but when I try to make output, it will raise:
Traceback (most recent call last):
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/queueing.py", line 522, in process_events
response = await route_utils.call_process_api(
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/route_utils.py", line 260, in call_process_api
output = await app.get_blocks().process_api(
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/blocks.py", line 1689, in process_api
result = await self.call_function(
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/blocks.py", line 1267, in call_function
prediction = await utils.async_iteration(iterator)
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/utils.py", line 574, in async_iteration
return await iterator.anext()
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/utils.py", line 567, in anext
return await anyio.to_thread.run_sync(
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/utils.py", line 550, in run_sync_iterator_async
return next(iterator)
File "/Users/duoduo/GPT-SoVITS/runtime/lib/python3.9/site-packages/gradio/utils.py", line 733, in gen_wrapper
response = next(iterator)
File "/Users/duoduo/GPT-SoVITS/GPT_SoVITS/inference_webui.py", line 520, in get_tts_wav
int(hps.data.sampling_rate * 0.3),
NameError: name 'hps' is not defined
the same thing happens totally the same when I switch back to v2
The text was updated successfully, but these errors were encountered: