MockingBird icon indicating copy to clipboard operation
MockingBird copied to clipboard

python3.9 运行 demo_toolbox.py 毫无反应。 web界面模式合成也会报错。

Open Chinakentgao opened this issue 1 year ago • 2 comments

Summary[问题简述(一句话)] python3.9 运行 demo_toolbox.py 毫无反应 就最新版本的 web界面模式合成也会报错。

Env & To Reproduce[复现与环境] py3.9.12

Screenshots[截图(如有)] 微信图片_20230514181152

web模式合成的时候会提示 File "C:\Users\kent.conda\envs\py39\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in run_script exec(code, module.dict) File "C:\Users\kent\AppData\Local\Temp\tmp41wtvgs9.py", line 13, in render_streamlit_ui() File "D:\MockingBird-main\control\mkgui\base\ui\streamlit_ui.py", line 909, in render_streamlit_ui session_state.output_data = opyrator(input=input_data_obj) File "D:\MockingBird-main\control\mkgui\base\core.py", line 203, in call return self.function(input_obj, **kwargs) File "D:\MockingBird-main\control\mkgui\app.py", line 125, in synthesize encoder_wav = encoder.preprocess_wav(wav, sample_rate) File "D:\MockingBird-main\models\encoder\audio.py", line 48, in preprocess_wav wav = trim_long_silences(wav) File "D:\MockingBird-main\models\encoder\audio.py", line 102, in trim_long_silences audio_mask = np.round(audio_mask).astype(np.bool) File "C:\Users\kent.conda\envs\py39\lib\site-packages\numpy_init.py", line 305, in getattr raise AttributeError(former_attrs[attr]) AttributeError: module 'numpy' has no attribute 'bool'. np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Chinakentgao avatar May 14 '23 10:05 Chinakentgao

可以考虑克隆我的项目,体验一下

0warning0error avatar Jun 07 '23 14:06 0warning0error

版本不匹配,我降低版本解决了:numpy==1.23

cbingl avatar Jun 17 '23 10:06 cbingl