KwaiVGI / LivePortrait

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

What should we do to prevent filtering during resizing (in Pixel art scenarios) #49

Open mbeytekin opened 2 months ago

mbeytekin commented 2 months ago

First of all, thank you for this great work. When I tried it in my pixel art-based images, it produced very successful results. However, I have one question: Is it possible to make it not apply filtering during resizing and perform a nearest neighbor style resize? I changed the interpolation in the cv2 resize parts, but the result did not change. I think the model is doing this smoothing internally during resize. Do you have any suggestions for this?

cleardusk commented 1 month ago

Thanks for your attention. What does your filtering mean? Could you specify the lines of the code?