Audio2Head icon indicating copy to clipboard operation
Audio2Head copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: './results/temp.wav'

Open rongweihe opened this issue 1 year ago • 2 comments

mac 环境,直接运行报错

python3 inference.py --audio_path input.wav --img_path input.png /bin/sh: ffmpeg: command not found Traceback (most recent call last): File "/Users/xxx/Documents/GitHub_Source/Audio2Head/inference.py", line 251, in audio2head(parse.audio_path,parse.img_path,parse.model_path,parse.save_path) File "/Users/xxx/Documents/GitHub_Source/Audio2Head/inference.py", line 125, in audio2head audio_feature = get_audio_feature_from_audio(temp_audio) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxx/Documents/GitHub_Source/Audio2Head/inference.py", line 99, in get_audio_feature_from_audio sample_rate, audio = wavfile.read(audio_path) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/scipy/io/wavfile.py", line 647, in read fid = open(filename, 'rb') ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: './results/temp.wav'

rongweihe avatar May 28 '23 11:05 rongweihe

i get it too

RodnoiD1m0n avatar Jun 22 '23 20:06 RodnoiD1m0n

自己创建一个目录results,用于临时存放文件;

boycuijg avatar Jun 24 '23 14:06 boycuijg