Rudrabha / Wav2Lip

This repository contains the codes of "A Lip Sync Expert Is All You Need for Speech to Lip Generation In the Wild", published at ACM Multimedia 2020. For HD commercial model, please try out Sync Labs
https://synclabs.so
10.28k stars 2.21k forks source link

ERROR: Could not find a version that satisfies the requirement torch==1.1.0 (from -r requirements.txt (line 6)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) #85

Closed echosvile closed 3 years ago

echosvile commented 3 years ago

i have installed ffmepg, changed the version of the torch in requirements to 1.1.2 and its all still giving me the same 'could not find a version that satisfies the requirements torch==1.1.0'

wav error 3 '

prajwalkr commented 3 years ago

https://stackoverflow.com/a/57565285

Does this help?

echosvile commented 3 years ago

yes thank you. like one stage of everlasting problem passed. i had to torch==1.5.0 -f https://download.pytorch.org/whl/torch_stable.html then changed the torch in the requirements from torch==1.1.0 to 1.5.0 and then it loaded and brought this wav error 4

prajwalkr commented 3 years ago

I think you should be able to run the code irrespective of those errors

echosvile commented 3 years ago

ok. i ran the code irrespective of the errors and i guess its running but its showing me this which i guess might be from the path i save the audio which is mp3 for the syncing in a folder named audio inside the Wav2lip file and the video its meant to sync named result which is mp4 inside a folder named video and this is the code i ran `python inference.py --checkpoint_path checkpoints/wav2lip.pth --face "../video/result.mp4" --audio "../audio/sound.mp3" and this is what i get wav error 6

echosvile commented 3 years ago

and i already have installed pip install ffmpeg

prajwalkr commented 3 years ago

and i already have installed pip install ffmpeg this is not the right way to install ffmpeg. Please check how to install it on Windows.

echosvile commented 3 years ago

i ran these codes respectively conda install -c conda-forge ffmpeg' 'conda install -c conda-forge/label/gcc7 ffmpeg' 'conda install -c conda-forge/label/cf201901 ffmpeg' 'conda install -c conda-forge/label/cf202003 ffmpeg

echosvile commented 3 years ago

is this error now from me again? wav error 7

prajwalkr commented 3 years ago

is this error now from me again?

Yes. Please follow the steps in the pre-requisites section of the README.

echosvile commented 3 years ago

finally it works.... i had to go to the file directory face_detection, detection, sfd and i renamed the s3fd.pth from s3fd-6789.pth to s3fd.pth and it ran to an extent and it stopped wav error 8 as shown in the attachment

prajwalkr commented 3 years ago

Your GPU memory is too less. Reduce the batch sizes of face detection and wav2lip. There are arguments to control that.

echosvile commented 3 years ago

please i beg you direct me, i don't understand this part

prajwalkr commented 3 years ago

Along with the other arguments you have used such as --face etc., please add --face_det_batch_size 2 and --wav2lip_batch_size 8.

echosvile commented 3 years ago

i.e python inference.py --checkpoint_path checkpoints/wav2lip.pth --face_det_batch_size 2 --wav2lip_batch_size 8"../video/result.mp4" --audio "../audio/sound.mp3"

echosvile commented 3 years ago

that didnt run please can you help me with the arrangement i don't know where to place the '--wav2lip_batch_size 8'

prajwalkr commented 3 years ago

8"../

add a space here between your arguments.

echosvile commented 3 years ago

python inference.py --checkpoint_path checkpoints/wav2lip.pth --face_det_batch_size 2 --wav2lip_batch_size 8 "../video/result.mp4" --audio "../audio/sound.mp3" wav error 9

prajwalkr commented 3 years ago

python inference.py --checkpoint_path checkpoints/wav2lip.pth --face_det_batch_size 2 --wav2lip_batch_size 8 --face "../video/result.mp4" --audio "../audio/sound.mp3"

echosvile commented 3 years ago

showed me the same thing ![Uploading wav error 9.PNG…]()

echosvile commented 3 years ago

wav error 9

Rudrabha commented 3 years ago

python inference.py --checkpoint_path checkpoints/wav2lip.pth --face_det_batch_size 2 --wav2lip_batch_size 8 --face "../video/result.mp4" --audio "../audio/sound.mp3" Please try this once

echosvile commented 3 years ago

python inference.py --checkpoint_path checkpoints/wav2lip.pth --face_det_batch_size 2 --wav2lip_batch_size 8 --face "../video/result.mp4" --audio "../audio/sound.mp3" wac error 10

echosvile commented 3 years ago

show error 1 and its still in the same directory as it was when it ran the other time

prajwalkr commented 3 years ago

Please google and figure out how to specify the audio and video paths correctly. I do not know how to specify this properly in Windows.

echosvile commented 3 years ago

ok i used this no and its running i hope and pray it doesnt give error again python inference.py --checkpoint_path checkpoints/wav2lip.pth --face_det_batch_size 2 --wav2lip_batch_size 8 --face video/result.mp4 --audio audio/sound.mp3

echosvile commented 3 years ago

finally its done. very big thank you to you @prajwalkr and @Rudrabha Hat's off as i roll on the ground in thanks. Bless you! success

nishir53 commented 2 years ago

i have installed ffmepg, changed the version of the torch in requirements to 1.1.2 and its all still giving me the same 'could not find a version that satisfies the requirements torch==1.1.0'

wav error 3 '

hi there can you tell which version of python you have used and if possible can you help us with this project , we have this same project and we are getting issues in installing dependencies and running it

please please can you help?

sahilg06 commented 2 years ago

@nishir53 Using python 3.9 and replacing all the == in req.txt with >= worked for me.

nishir53 commented 2 years ago

@sahilg06 thanks but if you are free can we arrange google meet?

nishir53 commented 2 years ago

also sir its taking too much time in loading Screenshot (54)

nishir53 commented 2 years ago

@sahilg06 can you share your input video and input audio file please

nishir53 commented 2 years ago

my files are having lot of frames please can you share your input video and input audio file

sahilg06 commented 2 years ago

@nishir53 you can download video/audio for inference from here