You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
在执行音频处理时,总是报错如下,试了很多方法无法解决。
File "E:\openvinotoolkit-openvino_notebooks-master\openvino_notebooks\notebooks\wav2lip\ov_inference.py", line 12, in
from Wav2Lip import audio
File "E:\openvinotoolkit-openvino_notebooks-master\openvino_notebooks\notebooks\wav2lip\Wav2Lip\audio.py", line 8, in
from hparams.hparams import preemphasis
ImportError: cannot import name 'preemphasis' from 'hparams.hparams' (D:\Anaconda\envs\py310\lib\site-packages\hparams\hparams.py) Expected behavior
搞了好多遍,崩溃。 Screenshots
I was able to reproduce the issue when importing the hparams Python script. It might due to the duplicate name of "hparams" in defining hparams in hparams.py file.
Yes, I agree with you that copying the content of hparams.py file directly to audio.py file is much easier. I was able to run ov_inference.py and generate outputs with the following approaches.
Copy the content of hparams.py file directly to audio.py file, which you are doing the same thing. Then, change hparams = HParams( to hp = HParams(
Add ov_inference("data_video_sun_5s.mp4","data_audio_sun_5s.wav") at the last line in ov_inference.py.
Run command winget install ffmpeg if ffmpeg is not installed.
Describe the bug
在执行音频处理时,总是报错如下,试了很多方法无法解决。
File "E:\openvinotoolkit-openvino_notebooks-master\openvino_notebooks\notebooks\wav2lip\ov_inference.py", line 12, in
from Wav2Lip import audio
File "E:\openvinotoolkit-openvino_notebooks-master\openvino_notebooks\notebooks\wav2lip\Wav2Lip\audio.py", line 8, in
from hparams.hparams import preemphasis
ImportError: cannot import name 'preemphasis' from 'hparams.hparams' (D:\Anaconda\envs\py310\lib\site-packages\hparams\hparams.py)
Expected behavior
搞了好多遍,崩溃。
Screenshots
Installation instructions (Please mark the checkbox)
[ ] I followed the installation guide at https://github.com/openvinotoolkit/openvino_notebooks#-installation-guide to install the notebooks.
** Environment information **
???
Additional context
经过查看,干脆把两个文件合并了,就可以执行了。
w但后面还有问题,再摸索吧。
把合并的代码放在下面。请大神指导一下。
The text was updated successfully, but these errors were encountered: