Skip to content
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

自然语言控制不能運作 #885

Open
nicorn01 opened this issue Jan 14, 2025 · 4 comments
Open

自然语言控制不能運作 #885

nicorn01 opened this issue Jan 14, 2025 · 4 comments

Comments

@nicorn01
Copy link

我可以執行3s极速复刻跟跨语种复刻,但是自然语言控制在WEB頁面出現ERROR,請問有人知道要怎麼解決嗎?謝謝
输入合成文本:我很難過,因為我的書被弄壞了
输入prompt文本 :小熊,什麼時候媽媽才願意聽我說
输入instruct文本 :sad

螢幕擷取畫面 2025-01-15 035753

Desktop (please complete the following information):

  • OS: [windows 11]
  • Browser [chrome 跟firefox]

CosyVoice2.0錯誤訊息:
INFO:root:get instruct inference request
Traceback (most recent call last):
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\queueing.py", line 521, in process_events
response = await route_utils.call_process_api(
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\blocks.py", line 1945, in process_api
result = await self.call_function(
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\blocks.py", line 1525, in call_function
prediction = await utils.async_iteration(iterator)
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\utils.py", line 655, in async_iteration
return await iterator.anext()
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\utils.py", line 648, in anext
return await anyio.to_thread.run_sync(
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\anyio_backends_asyncio.py", line 2505, in run_sync_in_worker_thread
return await future
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\anyio_backends_asyncio.py", line 1005, in run
result = context.run(func, *args)
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\utils.py", line 631, in run_sync_iterator_async
return next(iterator)
File "D:\CosyVoice2.0\CosyVoice\WZF\lib\site-packages\gradio\utils.py", line 814, in gen_wrapper
response = next(iterator)
File "D:\CosyVoice2.0\CosyVoice\webui.py", line 152, in generate_audio
for i in cosyvoice.inference_instruct2(tts_text, instruct_text, prompt_speech_16k, stream=stream, speed=speed):
File "D:\CosyVoice2.0\CosyVoice\cosyvoice\cli\cosyvoice.py", line 116, in inference_instruct2
assert isinstance(self.model, CosyVoice2Model)
AssertionError

@aluminumbox
Copy link
Collaborator

看github.io里的示例,比如Instruct文本Theo 'Crimson', is a fiery, passionate rebel leader. Fights with fervor for justice, but struggles with impulsiveness. 不是任意instruct都支持的

@czydfj
Copy link

czydfj commented Jan 16, 2025

请问这个webui在哪里呢?好像不是仓库里给的那个webui

@nicorn01
Copy link
Author

nicorn01 commented Jan 17, 2025

看github.io里的示例,比如Instruct文本Theo 'Crimson', is a fiery, passionate rebel leader. Fights with fervor for justice, but struggles with impulsiveness. 不是任意instruct都支持的

謝謝,你提到不是任意instruct都支援,我才想到是不是我用錯版本了,後來發現我啟動成CosyVoice-300M而不是CosyVoice2-0.5B,instruct文本 :sad只能用在CosyVoice2-0.5B。

@nicorn01
Copy link
Author

nicorn01 commented Jan 17, 2025

请问这个webui在哪里呢?好像不是仓库里给的那个webui

我是拿別人做的整合包,可能他有做調整吧,youtube上打CosyVoice就有很多整合包。

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

3 participants