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

[Feature Request]: Click-to-Select Inpainting Area and Padding Option in Fooocus #3539

Open
1 task done
tranchien opened this issue Aug 17, 2024 · 1 comment
Open
1 task done
Labels
enhancement New feature or request triage This needs an (initial) review

Comments

@tranchien
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do?

Firstly, I want to express my appreciation for the work you've done, especially with the Enable Advanced Masking Features. However, I’ve noticed that the auto-masking feature, while useful, doesn’t always yield the most precise results. I believe the inpainting experience could be significantly improved with a couple of enhancements.

Click-to-Select Inpainting Area: Similar to the "Inpaint Anything" extension in Automatic1111, it would be highly beneficial to have a feature that allows users to click directly on the image to select the area they wish to inpaint. This manual selection would give users more control and precision, leading to better outcomes.

Padding Option Post-Inpainting: After inpainting is completed, it would be helpful to have an option to add padding around the selected area, such as an additional 10 pixels. This would allow for smoother integration with the surrounding image and provide a more polished final result.

Proposed workflow

Proposed Workflow:

  1. Go to the Inpainting Tool:

    • Open Fooocus and load the image you want to work on.
    • Navigate to the Inpainting Tool.
  2. Enable Click-to-Select Feature:

    • In the Inpainting Tool, click on the settings icon (or a new button labeled "Enable Click-to-Select").
    • Activate the Click-to-Select Inpainting Area option similar to the "Inpaint Anything" feature in Automatic1111, where users can click directly on the image to select specific areas for inpainting.
  3. Auto-Generate Mask:

    • Once an area is selected by clicking, Fooocus should automatically generate a mask for that area, similar to how "Inpaint Anything" automatically segments and highlights different objects or regions in the image.
  4. Adjust Padding (Optional):

    • After selecting the area and generating the mask, allow users to add padding around the selected area by entering the number of pixels (e.g., 10 pixels).
    • Confirm the padding adjustment.
  5. Perform Inpainting:

    • Press the Inpaint button to apply the inpainting effect to the selected and padded area.
    • Fooocus will process the inpainting, including the additional padding if specified.

Additional information

inpainting-1

@tranchien tranchien added enhancement New feature or request triage This needs an (initial) review labels Aug 17, 2024
@XDM-Inc
Copy link

XDM-Inc commented Oct 23, 2024

I would LOVE this feature as well,im transiting from AVC photolabs ai and topaz and that feature is a GODSEND.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage This needs an (initial) review
Projects
None yet
Development

No branches or pull requests

2 participants