saifhassan/Wav2Lip-HD

Could find no file with path '../frames_hd/....'

Opened this issue · 2 comments

After getting this environment setup well enough to run the first part, im now running into an issue.

Here is a breakdown of everything that was successful from the run_final.sh file:

[ ✅ ] : export filename=9
[ ✅ ] : export input_video=input_videos
[ ✅ ] : export input_audio=input_audios/3.mp3
[ ✅ ] : export frames_wav2lip=frames_wav2lip
[ ✅ ] : export frames_hd=frames_hd
[ ✅ ] : export output_videos_wav2lip=output_videos_wav2lip
[ ✅ ] : export output_videos_hd=output_videos_hd
[ ✅ ] : export back_dir=..

[ ✅ ] : python inference.py --checkpoint_path "checkpoints/wav2lip_gan.pth" --segmentation_path "checkpoints/face_segmentation.pth" --sr_path "checkpoints/esrgan_yunying.pth" --face ${input_video}/${filename}.mp4 --audio ${input_audio} --save_frames --gt_path "data/gt" --pred_path "data/lq" --no_sr --no_segmentation --outfile ${output_videos_wav2lip}/${filename}.mp4

[ ✅ ] : python video2frames.py --input_video ${output_videos_wav2lip}/${filename}.mp4 --frames_path ${frames_wav2lip}/${filename}

[ ❌ ] : cd Real-ESRGAN

[ ❌ ] : python inference_realesrgan.py -n RealESRGAN_x4plus -i ${back_dir}/${frames_wav2lip}/${filename} --output ${back_dir}/${frames_hd}/${filename} --outscale 3.5 --face_enhance

[ ❌ ] : ffmpeg -r 20 -i ${back_dir}/${frames_hd}/${filename}/frame_%05d_out.jpg -i ${back_dir}/${input_audios} -vcodec libx264 -crf 25 -preset veryslow -acodec copy ${back_dir}/${output_videos_hd}/${filename}.mkv

The input file was 8.mp4. Here is the error i received:

[image2 @ 000001D5CDABABC0] Could find no file with path '../frames_hd/8/frame_%05d_out.jpg' and index in the range 0-4
[in#0 @ 000001D5CDA72BC0] Error opening input: No such file or directory
Error opening input file ../frames_hd/8/frame_%05d_out.jpg.
Error opening input files: No such file or directory

And the clarify, i know there was a closed issue on this a while back, but creating the directory does not do anything. Is the frames_hd directory supposed to be something else?

frames_wav2lip contains the original images but nothing gets generated in the frames_hd folder

请问怎么解决呢,我也遇到相同的问题