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

推理模式选择自然语言控制推理出现错误 #774

Open
ymmbb8882ymmbb opened this issue Dec 23, 2024 · 5 comments
Open

推理模式选择自然语言控制推理出现错误 #774

ymmbb8882ymmbb opened this issue Dec 23, 2024 · 5 comments

Comments

@ymmbb8882ymmbb
Copy link

推理模式选择自然语言控制推理时出现:您正在使用自然语言控制模型,pretrained_models/CosyVoice2-0.5B模型不支持此模型,请使用iic/CosyVoice-300M-Instruct模型。我在切换CosyVoice-300M-Instruct这个模型时还是报错。

@cpken
Copy link

cpken commented Dec 23, 2024

认真看一下 README.md 的文档,每个模型支持的形式不一样。

@ymmbb8882ymmbb
Copy link
Author

认真看一下README.md的文档,每个模型支持的形式都不一样。

在使用
cosyvoice = CosyVoice('pretrained_models/CosyVoice-300M-Instruct')

instruct usage, support [laughter][breath]

for i, j in enumerate(cosyvoice.inference_instruct('在面对挑战时,他展现了非凡的勇气智慧。', '中文男', '用四川话说', stream=False)):
torchaudio.save('instruct_{}.wav'.format(i), j['tts_speech'], cosyvoice.sample_rate)
会出现段错误 (核心已转储)

@cpken
Copy link

cpken commented Dec 23, 2024

同步官方最新代码。

@ymmbb8882ymmbb
Copy link
Author

拉取的是目前最新版了,您那可以跑通吗?

@cpken
Copy link

cpken commented Dec 23, 2024

原本更新前就可以跑通,更新后也可以跑通。

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

2 participants