Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.89k stars 1.94k forks source link

[Bug]: ControlNet inpaint "only masked" incorrect cropping #2626

Open TimothyKrell opened 8 months ago

TimothyKrell commented 8 months ago

Is there an existing issue for this?

What happened?

When inpainting with controlnet, the sample passed to controlnet does not match the cropped portion of the image. You can see the entire image is being overlayed into the inpaint region. This is on a fresh install of sdnext.

Steps to reproduce the problem

  1. Go to inpaint
  2. Mask inpaint region
  3. turn on controlnet tile
  4. Generate

302653851-5a0eae65-800f-44df-bcc0-1f61eba53af5 302653919-ba14f649-5e52-48b2-8dec-b1df46812d51 302654386-e4beb21e-827a-423c-b79d-17f3da5a3f6a 302654601-aa44ce05-e7dc-4435-a351-f49afb9f04bb

What should have happened?

Controlnet should receive the correctly cropped region passed to its control image.

Commit where the problem happens

webui: SDNext (latest) controlnet: 416c3450

What browsers do you use to access the UI ?

No response

Command Line Arguments

.\webui.bat --models-dir C:\Users\timot\Code\AI\models\

List of enabled extensions

'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'

Console logs

https://pastebin.com/gwAJvxHN

Additional information

No response

huchenlei commented 8 months ago

So SDNext does not seem to properly display the Crop input image with A1111 mask checkbox. In theory that checkbox should be visible when you select inpaint only masked.

2blackbar commented 8 months ago

yup works in auto11, sometimes you have to remove json file with all the config saved cause sometimes it just wont add new lines to config when extension already exists, it bugged me when i tried to add custom boxes to extensions, had to remove config ui json file over and over with each change to extension