KwaiVGI / LivePortrait

Bring portraits to life!
https://liveportrait.github.io
Other
11.69k stars 1.22k forks source link

Retargeted Image Paste-Back Result Resolution #286

Open MarsEverythingTech opened 1 month ago

MarsEverythingTech commented 1 month ago

Hello,

I was wondering on how to keep the resolution of the retargeted image paste-back result same the source image. For example: my source image is 3000x3000 in .png format, and the paste-back result is 1280x1280 and it is in .webp format Also, are there any modification I could do for the generated video? I've heard of something like crf value which is related to the output quality.

Thanks in advance

thatnerdyaigirl commented 1 month ago

You can use the source_max_dim parameter and update it from 1280 but it does go beyond 1920 as per my experiments, it generates based on input I guess, do let me know if you were able to generate with 3000x3000.

thatnerdyaigirl commented 1 month ago

source_max_dim: int = 1280 by default

MarsEverythingTech commented 1 month ago

You can use the source_max_dim parameter and update it from 1280 but it does go beyond 1920 as per my experiments, it generates based on input I guess, do let me know if you were able to generate with 3000x3000.

Where can I find that command? So, if I set it to for example 2048, then it means it can go up to 2048, correct?

cleardusk commented 1 month ago

@MarsEverythingTech https://github.com/KwaiVGI/LivePortrait/blob/f24b6ff5d1e3d49c23dd852c57bd1d8cf7c585cd/src/config/argument_config.py#L44

MarsEverythingTech commented 1 month ago

@MarsEverythingTech

https://github.com/KwaiVGI/LivePortrait/blob/f24b6ff5d1e3d49c23dd852c57bd1d8cf7c585cd/src/config/argument_config.py#L44

Hello!

Thanks, I have done that and changed it to 4096 but it is still giving me 1280x1280 image.