OpenTalker / video-retalking

[SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild
https://opentalker.github.io/video-retalking/
Apache License 2.0
6.36k stars 943 forks source link

doesn't work on windows ? #117

Open nofacedeepfake opened 11 months ago

nofacedeepfake commented 11 months ago

doesn't work on windows ? D:\lipsing/video-retalking>conda activate video_retalking.

(video_retalking) D:\lipsing/video-retalking>python3 inference.py \ Python (video_retalking) D:\lipsing\video-retalking> --face examples/face/1.mp4 . "--face" is not an internal or external command, executable program, or batch file.

(video_retalking) D:\lipsing\video-retalking> --audio examples/audio/1.wav . "--audio" is not an internal or external command, executable program, or batch file.

(video_retalking) D:\lipsing\video-retalking> --outfile results/1_1.mp4

natlamir commented 11 months ago

might need to remove the newlines and run the command as one line and change python3 to python. i created a fork of this repo with instructions for windows if you wanna check that out

linhcentrio commented 11 months ago

i got this err: "[Info] Using cuda for inference. [Step 0] Number of frames available for inference: 135 [Step 1] Landmarks Extraction in Video. landmark Det:: 100%|█████████████████████████████████████████████████████████████████| 135/135 [00:32<00:00, 4.15it/s] Traceback (most recent call last): File "inference.py", line 345, in main() File "inference.py", line 82, in main lm = kp_extractor.extract_keypoint(frames_pil, './temp/'+base_name+'_landmarks.txt') File "C:\Users\Admin\Downloads\01.Video-Head-Talking\video-retalking\third_part\face3d\extract_kp_videos.py", line 34, in extract_keypoint np.savetxt(os.path.splitext(name)[0]+'.txt', keypoints.reshape(-1)) File "<__array_function__ internals>", line 200, in savetxt File "C:\Users\Admin\Downloads\01.Video-Head-Talking\video-retalking\venv\lib\site-packages\numpy\lib\npyio.py", line 1533, in savetxt open(fname, 'wt').close() FileNotFoundError: [Errno 2] No such file or directory: './temp/.\examples\face\1.mp4_landmarks.txt'"

linhcentrio commented 11 months ago

i got this err: "[Info] Using cuda for inference. [Step 0] Number of frames available for inference: 135 [Step 1] Landmarks Extraction in Video. landmark Det:: 100%|█████████████████████████████████████████████████████████████████| 135/135 [00:32<00:00, 4.15it/s] Traceback (most recent call last): File "inference.py", line 345, in main() File "inference.py", line 82, in main lm = kp_extractor.extract_keypoint(frames_pil, './temp/'+base_name+'_landmarks.txt') File "C:\Users\Admin\Downloads\01.Video-Head-Talking\video-retalking\third_part\face3d\extract_kp_videos.py", line 34, in extract_keypoint np.savetxt(os.path.splitext(name)[0]+'.txt', keypoints.reshape(-1)) File "<array_function internals>", line 200, in savetxt File "C:\Users\Admin\Downloads\01.Video-Head-Talking\video-retalking\venv\lib\site-packages\numpy\lib\npyio.py", line 1533, in savetxt open(fname, 'wt').close() FileNotFoundError: [Errno 2] No such file or directory: './temp/.\examples\face\1.mp4_landmarks.txt'"

how can i fix it to run on windows?

natlamir commented 10 months ago

I used conda with these instructions: https://github.com/natlamir/video-retalking#environment there is a video too but I don't think I have that linked on the github yet.

linhcentrio commented 10 months ago

I used conda with these instructions: https://github.com/natlamir/video-retalking#environment there is a video too but I don't think I have that linked on the github yet.

Thank natlamir, i've tried your repo and it worked with me.