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

Provide option to use bilinear filtering for resizing masks/grayscale images #16347

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Commits on Aug 8, 2024

  1. Use bilinear filtering for resizing grayscale images (disabled by def…

    …ault)
    
    * Lanczos is a good default when resizing, however, it is suboptimal for masks as it can introduce ringing artifacts. So use bilinear in these situations.
    * Bicubic is better than Lanczos here, but can introduce "pinching" on corners. Nearest would be optimal for binary masks, but much worse if there's any blurring.
    * Adds a new toggle to the img2img settings, which is disabled by default, as it does affect the shape of masks compared to Lanczos.
    LoganBooker committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    02d4229 View commit details
    Browse the repository at this point in the history