Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The results inferred using the model file with 'may' do not contain any faces in the video. #203

Open
yyjjww opened this issue Jul 31, 2024 · 1 comment

Comments

@yyjjww
Copy link

yyjjww commented Jul 31, 2024

ngp_ep0019.mp4
ngp_ep00191.mp4

The difference in usage above is whether or not the portrait command is used

@ZiqiaoPeng help me,please!

@AyushUnleashed
Copy link

AyushUnleashed commented Aug 12, 2024

I also had the same issue -> Problem in my case was that I was not doing all the steps & input video was not 25 fps, ( you can use online converter for that )

There are 3 steps.

  1. Processing of the video
  2. Training the model
  3. Final inference.

I was confusing processing & training & that's why I was having this problem.

eg code from my case, I created folder name 'head_sara' video: head_sara.mp4 -> 25 fps , 24 sec video, 1080x1080 video of face I used. ( I think with 512 x 512 I may get better result )

if you won't use 25fps video, you'll get error in training step

python data_utils/process.py data/head_sara/head_sara.mp4 --asr ave

Process the video

python data_utils/process.py data/head_sara/head_sara.mp4 --asr ave

Train the model from the processed video

python main.py data/head_sara --workspace model/head_sara -O --iters 60000 --asr_model ave
python main.py data/head_sara --workspace model/head_sara -O --iters 100000 --finetune_lips --patch_size 64 --asr_model ave

inference with audio

python main.py data/head_sara --workspace model/head_sara -O --test --test_train --asr_model ave --portrait --aud data/head_sara/head_sara.wav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants