Skip to content

TypeError: decode_encp() takes from 4 to 5 positional arguments but 6 were given #2360

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

Open
dxmxyx opened this issue May 6, 2025 · 1 comment

Comments

@dxmxyx
Copy link

dxmxyx commented May 6, 2025

我在使用v3模型进行推理的时候,会出下如下报错,有人知道这个咋解决么
我直接运行的inference_webui.py
Traceback (most recent call last):
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/queueing.py", line 522, in process_events
response = await route_utils.call_process_api(
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/route_utils.py", line 260, in call_process_api
output = await app.get_blocks().process_api(
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/blocks.py", line 1689, in process_api
result = await self.call_function(
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/blocks.py", line 1267, in call_function
prediction = await utils.async_iteration(iterator)
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/utils.py", line 574, in async_iteration
return await iterator.anext()
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/utils.py", line 567, in anext
return await anyio.to_thread.run_sync(
File "/opt/conda/envs/GPTSoVits/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 "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/utils.py", line 550, in run_sync_iterator_async
return next(iterator)
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/gradio/utils.py", line 733, in gen_wrapper
response = next(iterator)
File "/home/notebook/code/personal/80398451/GPT-SoVITS-WebUI/gpt-sovits_v2/GPT-SoVITS/GPT_SoVITS/inference_webui.py", line 851, in get_tts_wav
fea_todo, ge = vq_model.decode_encp(pred_semantic, phoneme_ids1, refer, ge, speed)
File "/opt/conda/envs/GPTSoVits/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
TypeError: decode_encp() takes from 4 to 5 positional arguments but 6 were given

@dxmxyx
Copy link
Author

dxmxyx commented May 6, 2025

找到原因了,我部署了两个这个项目,但是有个包总是import了原来老项目的代码。很奇怪,我没记得这个项目有设置什么环境变量呀

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

1 participant