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

How to make blink effect? #48

Open
pango99 opened this issue Jun 28, 2024 · 1 comment
Open

How to make blink effect? #48

pango99 opened this issue Jun 28, 2024 · 1 comment

Comments

@pango99
Copy link

pango99 commented Jun 28, 2024

below is the video I create with 5sec duration audio

ztest_Res512Case_retarget.mp4

and this is the video I create with 30sec duration audio

ztest4_no_retarget_30sec.mp4

the 5sec dura video has eye blink effect, but 30sec video haven't, why 30sec video without blink effect? How can I add blink effect to video?

@tiankuan93
Copy link
Collaborator

This vivid blinking action comes from the change in the v-kps sequence. You're at 30s audio, but the v-kps is only 5s, so our current code interpolates the 5s v-kps to 30s by default, which attenuates the change in v-kps corresponding to blinking, which results in some of the blinking disappearing. To fix this, I suggest you use a longer natural v-kps sequence, preferably around 30s to accompany the audio, which will better preserve the facial detail of the original v-kps.

Here I provide a longer v-kps sequence corresponding to the raw video, you can replace the input v-kps file with the longer kps file I provided and do the inference again. I hope this is helpful to you.

https://github.com/tencent-ailab/V-Express/blob/c9f3d7d02eb3181e79a693eada75e12b2a3114b0/test_samples/short_case/AOC/AOC_long_kps.pth

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