yylgoodlucky / HDTR-Net

A Real-Time High-Definition Teeth Restoration Network for ArbitraryTalking Face Generation Methods
134 stars 12 forks source link

NameError: name 'finout_image_path' is not defined #8

Open AshenJie6 opened 1 year ago

AshenJie6 commented 1 year ago

[info] Step1: Prepare input data ... ==> detect face landmarks ... 0it [00:00, ?it/s] ==> face align ... 0it [00:00, ?it/s] [info] Step2: load model ... Load checkpoint from: ./checkpoint/lip-clarity-model.pth [info] Step3: save results ... ./test_result/00001/audio.wav: No such file or directory [info] Step4: Inver Affine Transform (Being here means wearing paste back) ... ==> paste background ... 0it [00:00, ?it/s] Traceback (most recent call last): File "inference.py", line 304, in os.system(synthesis_CMD.format(wav_path, finout_image_path, result_path, "result", video_basename)) NameError: name 'finout_image_path' is not defined

My input_video is /sample/00001.mp4. This error occurs after I execute inference.py And my _align_crop_image、full_frame、imageconfig、landmarks folders are all empty, how can I solve this problem? thnak you.

TalhaaaYaqoob commented 1 year ago

solved it! if you are using Nvidia gpu edit these lines split_image_cmd = 'ffmpeg -hwaccel cuda -hide_banner -y -i {} -r 25 {}/%05d.png' split_wav_cmd = 'ffmpeg -hwaccel cuda -hide_banner -y -i {} -async 1 -ac 1 -vn -acodec pcm_s16le -ar 16000 {}'

yylgoodlucky commented 1 year ago

Sorry,I just saw your issue, good lucky to you solved it .

Chechgroup commented 11 months ago

solved it! if you are using Nvidia gpu edit these lines split_image_cmd = 'ffmpeg -hwaccel cuda -hide_banner -y -i {} -r 25 {}/%05d.png' split_wav_cmd = 'ffmpeg -hwaccel cuda -hide_banner -y -i {} -async 1 -ac 1 -vn -acodec pcm_s16le -ar 16000 {}'

Снимок экрана 2023-12-03 005026

I have the same problem... please help. My telegram the_best

Chechgroup commented 11 months ago

Sorry,I just saw your issue, good lucky to you solved it .

hi help me please... I have the same problem... please help. My telegram the_best

Снимок экрана 2023-12-03 005026
Chechgroup commented 11 months ago

solved it! if you are using Nvidia gpu edit these lines split_image_cmd = 'ffmpeg -hwaccel cuda -hide_banner -y -i {} -r 25 {}/%05d.png' split_wav_cmd = 'ffmpeg -hwaccel cuda -hide_banner -y -i {} -async 1 -ac 1 -vn -acodec pcm_s16le -ar 16000 {}'

help me please

Снимок экрана 2023-12-03 005026