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

output video from partswap.py is very blurry #24

Closed
Mohamed209 opened this issue Aug 27, 2020 · 5 comments
Closed

output video from partswap.py is very blurry #24

Mohamed209 opened this issue Aug 27, 2020 · 5 comments

Comments

@Mohamed209
Copy link

Mohamed209 commented Aug 27, 2020

check attached image , output of face swap is very blurry (image taken from video)
the question is does this relate to networks (segmentation network or generator) operations , or relates to frame post or pre-processing after model predictions

Screenshot_2020-08-27_02-18-26

In other words , how can I get higher resolution results

@AliaksandrSiarohin
Copy link
Owner

What is the input source?

@Mohamed209
Copy link
Author

Mohamed209 commented Aug 27, 2020

What is the input source?

here is original target video : https://drive.google.com/file/d/1QSEECWaH3J-KrYV1CG13at7t92tIIkE_/view?usp=sharing
and input source : https://drive.google.com/file/d/1DWAvcKoVCGOaM1Ywoa6ulsCTQu8QqMQD/view?usp=sharing

I have also checked all post-processing steps , i think resolution loss happens in model predictions stage !

and here is my command !python part_swap.py --source_image 'image path' --target_video 'target.mp4' --checkpoint weights/vox-cpk.pth.tar --config config/vox-256-sem-10segments.yaml --supervised --first_order_motion_model --swap_index 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15

@AliaksandrSiarohin
Copy link
Owner

Try to crop the target video, it is too large probably.

@Mohamed209
Copy link
Author

Try to crop the target video, it is too large probably.

shall this script crop desired speaker face in all video frames to generate smaller version of the original video !

https://github.com/AliaksandrSiarohin/first-order-model/blob/master/crop-video.py

@AliaksandrSiarohin
Copy link
Owner

Yes.

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