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

Value: is not in the list of choices: [] #870

Open
qingcaixin opened this issue Jan 10, 2025 · 8 comments
Open

Value: is not in the list of choices: [] #870

qingcaixin opened this issue Jan 10, 2025 · 8 comments

Comments

@qingcaixin
Copy link

Value: is not in the list of choices: []
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api
inputs = await self.preprocess_data(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 1709, in preprocess_data
processed_input.append(block.preprocess(inputs_cached))
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/components/dropdown.py", line 202, in preprocess
raise Error(
gradio.exceptions.Error: 'Value: is not in the list of choices: []'
Traceback (most recent call last):
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api
inputs = await self.preprocess_data(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 1709, in preprocess_data
processed_input.append(block.preprocess(inputs_cached))
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/components/dropdown.py", line 202, in preprocess
raise Error(
gradio.exceptions.Error: 'Value: is not in the list of choices: []'
Traceback (most recent call last):
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api
inputs = await self.preprocess_data(
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 1709, in preprocess_data
processed_input.append(block.preprocess(inputs_cached))
File "/mount/data/anaconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/components/dropdown.py", line 202, in preprocess
raise Error(
gradio.exceptions.Error: 'Value: is not in the list of choices: []' how to solve it?

@aluminumbox
Copy link
Collaborator

因为基模型没有预训练音色,删掉了spk2info.pt,如果非要这个,可以从cosyvoice-300m-sft模型下copy这个文件,但注意这个不叫预训练音色

@qingcaixin
Copy link
Author

因为基模型没有预训练音色,删掉了spk2info.pt,如果非要这个,可以从cosyvoice-300m-sft模型下copy这个文件,但注意这个不叫预训练音色

请问放到哪个文件下面呢

@youngercloud
Copy link

因为基模型没有预训练音色,删掉了spk2info.pt,如果非要这个,可以从cosyvoice-300m-sft模型下copy这个文件,但注意这个不叫预训练音色

请问放到哪个文件下面呢

如果你使用的是 cosyvoice2 那么放到 pretrained_models 的 cosyvoice2 的文件夹下即可

@xiaobo5869
Copy link

@youngercloud 我的pretrained_models下没有 cosyvoice2文件 我拉的是最新的代码

@xiaobo5869
Copy link

@qingcaixin 请问解决了吗,我的报错跟你一模一样

@cruldra
Copy link

cruldra commented Jan 12, 2025

你好,我也遇到了这个问题

这是我的目录结构

image

image

控制台启动时没报任何错
image

预训练单色下拉框中没有任何选项
image

@Affliction-TK
Copy link

你只需要将spk2info.pt文件放在pretrained_models/CosyVoice2-0.5B目录下即可使用。

原先的解决方案是将pretrained_models/CosyVoice-300M中的spk2info.pt文件复制到pretrained_models/CosyVoice2-0.5B中。
但是在21630e454dae0cc3号更改中删除了CosyVoice-300MCosyVoice-300M-25Hz中的spk2info.pt文件。
目前,你可以从git历史中恢复此更改来获取该spk2info.pt文件。或者使用CosyVoice-300M-SFT中的此文件。

@cruldra
Copy link

cruldra commented Jan 12, 2025

#870 (comment)

感谢,已解决此问题

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

6 participants