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

Video output size #19

Open
dongyun-kim-arch opened this issue Nov 17, 2023 · 1 comment
Open

Video output size #19

dongyun-kim-arch opened this issue Nov 17, 2023 · 1 comment

Comments

@dongyun-kim-arch
Copy link

I generated output video using video_editing.py, but the output size is different from the input resolution. (The bottom part is cut)
The input is portrait video, and the head is not located at the center. Something like this.
pretty-smiling-joyfully-female-with-fair-hair-dressed-casually-looking-with-satisfaction

Is there any way to get the same resolution to the original input? it would be great if you can point out the lines needed to be changed...

Always thank you,

@williamyang1991
Copy link
Owner

You can use a large padding when calling get_video_crop_parameter

def get_video_crop_parameter(filepath, predictor, padding=[256,256,256,256]):

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