|
发表于 2025-5-28 23:26:04
|
显示全部楼层
感谢大佬分享,确实吊打其他任何声音克隆应用。不过最近几天使用总是遇到这个问题,代码如下:
wav shape: torch.Size([1, 205824]) min: >> start inference...
Traceback (most recent call last):
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\gradio\blocks.py", line 2137, in process_api
result = await self.call_function(
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\gradio\blocks.py", line 1663, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run
result = context.run(func, *args)
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\env\lib\site-packages\gradio\utils.py", line 890, in wrapper
response = f(*args, **kwargs)
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\webui.py", line 36, in gen_single
output = tts.infer(prompt, text, output_path) # 普通推理
File "C:\Users\cutyf\Desktop\IndexTTS_1.5_250517\indextts\infer.py", line 457, in infer
text_tokens = torch.tensor(text_tokens, dtype=torch.int32, device=self.device).unsqueeze(0)
RuntimeError: CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. |
|