babysor / MockingBird

🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
34.88k stars 5.18k forks source link

运行demo_cli出错 #846

Open liu-tq20 opened 1 year ago

liu-tq20 commented 1 year ago

每次运行都是在进度条快完成时报exception,如: generate wave {| ████████████████ 47500/48000 | Batch Size: 5 | Gen Rate: 4.4kHz | } C:\Users\xxxxx\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\lib\arraypad.py:736: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. array = np.asarray(array) Caught exception: ValueError('The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()') Restarting

我把此文件上方的from models.vocoder import inference as vocoder改成了from models.vocoder.wavernn import inference as vocoder(否则import inference会直接报错)

请问这是什么原因呢?谢谢!

liu-tq20 commented 1 year ago

补充:我的python是3.10.7,所以numpy只能安装比1.19.3更高版本的(如1.23)。

zysvadxd48 commented 1 year ago

你好,这个问题解决了吗