|
发表于 2024-9-5 10:04:13
|
显示全部楼层
预训音色和3秒极速复刻,只要调了语速就会报错,不调就正常
To create a public link, set `share=True` in `launch()`.
2024-09-05 09:58:42,843 INFO get sft inference request
Building prefix dict from the default dictionary ...
2024-09-05 09:58:43,173 DEBUG Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\MSI-NB\AppData\Local\Temp\jieba.cache
2024-09-05 09:58:43,174 DEBUG Loading model from cache C:\Users\MSI-NB\AppData\Local\Temp\jieba.cache
Loading model cost 0.409 seconds.
2024-09-05 09:58:43,582 DEBUG Loading model cost 0.409 seconds.
Prefix dict has been built successfully.
2024-09-05 09:58:43,582 DEBUG Prefix dict has been built successfully.
['轻轻的我走了,正如我轻轻地来。我挥一挥衣袖,不带走一片云彩。、。']
轻轻的我走了,正如我轻轻地来。我挥一挥衣袖,不带走一片云彩。、。
ZH1
读取pt
融合音色: 团长_悲伤
C:\CosyVoice-V3\python\Lib\site-packages\diffusers\models\attention_processor.py:1279: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at ..\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:455.)
hidden_states = F.scaled_dot_product_attention(
tensor([[ 7.3901e-06, 4.5658e-06, 1.3181e-05, ..., -1.4055e-03,
-1.4441e-03, -1.4148e-03]])
[ 7.3901201e-06 4.5658371e-06 1.3180562e-05 ... -1.4055450e-03
-1.4440864e-03 -1.4147667e-03]
[tensor([[ 7.3901e-06, 4.5658e-06, 1.3181e-05, ..., -1.4055e-03,
-1.4441e-03, -1.4148e-03]])]
推理方法 inference_sft 运行时长: 6.9186 秒
Failed to change speed of audio:
[WinError 2] 系统找不到指定的文件。
Traceback (most recent call last):
File "C:\CosyVoice-V3\python\Lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\gradio\blocks.py", line 1897, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\gradio\blocks.py", line 1483, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\anyio\_backends\_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\anyio\_backends\_asyncio.py", line 859, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\python\Lib\site-packages\gradio\utils.py", line 816, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\CosyVoice-V3\webui.py", line 240, in generate_audio
return (target_sr, audio_data)
^^^^^^^^^^
UnboundLocalError: cannot access local variable 'audio_data' where it is not associated with a value
|
|