babysor / MockingBird

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

UnboundLocalError: local variable 'ppg' referenced before assignment #927

Open danfouer opened 1 year ago

danfouer commented 1 year ago

Summary[问题简述(一句话)] 上传自己的wav文件报UnboundLocalError: local variable 'ppg' referenced before assignment

Env & To Reproduce[复现与环境] 描述你用的环境、代码版本、模型 Windows 10 ,python3.8 按照readme.txt安装成功 ,执行python demo_toolbox.py -vc -d "E:\3DData\sounddata\" Screenshots[截图(如有)] image 出错信息: Traceback (most recent call last): File "E:\1JSONPro\MBIRD\control\toolbox__init.py", line 141, in func = lambda: self.convert() or self.vocode() File "E:\1JSONPro\MBIRD\control\toolbox\init.py", line 378, in convert min_len = min(ppg.shape[1], len(lf0_uv)) UnboundLocalError: local variable 'ppg' referenced before assignment Traceback (most recent call last): File "E:\1JSONPro\MBIRD\control\toolbox\init.py", line 141, in func = lambda: self.convert() or self.vocode() File "E:\1JSONPro\MBIRD\control\toolbox\init.py", line 378, in convert min_len = min(ppg.shape[1], len(lf0_uv)) UnboundLocalError: local variable 'ppg' referenced before assignment Traceback (most recent call last): File "E:\1JSONPro\MBIRD\control\toolbox\init.py", line 141, in func = lambda: self.convert() or self.vocode() File "E:\1JSONPro\MBIRD\control\toolbox\init__.py", line 378, in convert min_len = min(ppg.shape[1], len(lf0_uv)) UnboundLocalError: local variable 'ppg' referenced before assignment

L1590 commented 1 year ago

Hello, I have the same problem as you, it seems that two models are not loaded, if you solve it, please help me, thank you very much!

jimmyken commented 1 year ago

这个怎么解决的?在M2上也会发生相同的错误.