Mikubill / sd-webui-controlnet

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

[Bug]: Output image shift if "Crop input image based on A1111 mask" doesn't ticked #2430

Closed phatal closed 10 months ago

phatal commented 10 months ago

Is there an existing issue for this?

What happened?

I use "lineart" ControlNet model during img2img inpaint process. I use lineart image as a reference to have consistent image composition (i just add details that i need through photopea and upload it to model). Image for lineart size 720960 (i doesn't use preprocessor, only model). Base image size uploaded at img2img inpaint same 720960. Output image also 720*960. But if I doesn't tick "Crop input image based on A1111 mask" it produce result like it doesn't respect what on lineart image is or something like that (look at screenshots inpainting mask, resulted image and lineart settings) image image but If i tick "Crop input image based on A1111 mask" setting, it works well (check next screenshots). This problem appeared after last update few hours ago. image image As you can see elements on lineart input image sucessfull inpainted.

Steps to reproduce the problem

  1. Go to .... img2img inpaint => set the mask and settings => open ControlNet and enable, set Lineart model without preprocessors (lineart, img2img input img and output image size are equal), tick off Crop input image based on A1111 mask.
  2. Press .... Generate
  3. ... Result described in "What happened" section of the ticket.

What should have happened?

In described conditions (equal size of all images and lineart elements at the same as on input image positions) result should be equal as on 2nd set of screenshots.

Commit where the problem happens

webui: Version: v1.7.0 Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e controlnet: ControlNet - INFO - ControlNet v1.1.427 a5b3fa931fe8d3f18ce372a7bb1a692905d3affc

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers --lowvram --gradio-img2img-tool color-sketch

List of enabled extensions

image image

Console logs

PowerShell 7.3.10

   A new PowerShell stable release is available: v7.4.0
   Upgrade now, or check out the release page at:
     https://aka.ms/PowerShell-Release?tag=v7.4.0

PS C:\Users\phata> D:
PS D:\> cd ai_github_projects\
PS D:\AI_github_projects> cd .\stable-diffusion-webui\
PS D:\AI_github_projects\stable-diffusion-webui> .\webui-user.bat
venv "D:\AI_github_projects\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Installing requirements
bin D:\AI_github_projects\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118_nocublaslt.dll
Installing requirements for diffusers
is_installed check for tensorflow-cpu failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
is_installed check for imageio[pyav] failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for imageio[pyav]
#######################################################################################################
Initializing Civitai Link
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Civitai Link revision: 2008ba9126ddbb448f23267029b07e4610dffc15
SD-WebUI revision: cf2772fab0af5573da775e7437e6acdca424f26e

Checking Civitai Link requirements...

#######################################################################################################
bin D:\AI_github_projects\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118_nocublaslt.dll
If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: 8207ccd85430fdfddcb4afa8589c88305be40f9c
Checking xformers...
Xformers is outdated, and automatic installation has been removed. Please install manually if desired.
Checking bitsandbytes...
Checking bitsandbytes (Windows)
Virtual environment path: D:\AI_github_projects\stable-diffusion-webui\venv
Checking for D:\AI_github_projects\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda111.dll
Found windows BNB DLL D:\AI_github_projects\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda111.dll
Checking Dreambooth requirements...
Installed version of accelerate: 0.21.0
[Dreambooth] accelerate v0.21.0 is already installed.
Installed version of dadaptation: 3.2
[Dreambooth] dadaptation v3.2 is already installed.
Installed version of diffusers: 0.25.0
[Dreambooth] diffusers v0.25.0 is already installed.
Installed version of discord-webhook: 1.3.0
[Dreambooth] discord-webhook v1.3.0 is already installed.
Installed version of fastapi: 0.94.0
[Dreambooth] fastapi is already installed.
Installed version of gitpython: 3.1.32
[Dreambooth] gitpython v3.1.40 is not installed.
Successfully installed gitpython-3.1.40

Installed version of pytorch_optimizer: 2.12.0
[Dreambooth] pytorch_optimizer v2.12.0 is already installed.
Installed version of Pillow: 9.5.0
[Dreambooth] Pillow is already installed.
Installed version of tqdm: 4.64.0
[Dreambooth] tqdm is already installed.
Installed version of tomesd: 0.1.3
[Dreambooth] tomesd v0.1.2 is already installed.
Installed version of tensorboard: 2.13.0
[Dreambooth] tensorboard v2.13.0 is already installed.
[+] torch version 2.0.1+cu118 installed.
[+] torchvision version 0.15.2+cu118 installed.
[+] accelerate version 0.21.0 installed.
[+] diffusers version 0.25.0 installed.
[+] bitsandbytes version 0.41.2.post2 installed.
[!] xformers version 0.0.20 installed.
Launching Web UI with arguments: --xformers --lowvram --gradio-img2img-tool color-sketch
bin D:\AI_github_projects\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118_nocublaslt.dll
Style database not found: D:\AI_github_projects\stable-diffusion-webui\styles.csv
[-] ADetailer initialized. version: 24.1.0, num models: 10
CivitAI Browser+: Aria2 RPC started
2024-01-07 14:29:15,289 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2024-01-07 14:29:15,300 - modelscope - INFO - TensorFlow version 2.15.0 Found.
2024-01-07 14:29:15,300 - modelscope - INFO - Loading ast index from C:\Users\phata\.cache\modelscope\ast_indexer
2024-01-07 14:29:16,050 - modelscope - INFO - Loading done! Current index file version is 1.9.3, with md5 d4b1c9a6e3e6e802578f7f49edafbe7d and a total number of 943 components indexed
ControlNet preprocessor location: D:\AI_github_projects\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-07 14:29:20,585 - ControlNet - INFO - ControlNet v1.1.427
2024-01-07 14:29:20,928 - ControlNet - INFO - ControlNet v1.1.427
sd-webui-prompt-all-in-one background API service started successfully.
Civitai: API loaded
Loading weights [338b85bc4f] from D:\AI_github_projects\stable-diffusion-webui\models\Stable-diffusion\juggernaut_reborn.safetensors
AnimateDiffScript init
Creating model from config: D:\AI_github_projects\stable-diffusion-webui\configs\v1-inference.yaml
AnimateDiffScript init
[['D:\\AI_github_projects\\stable-diffusion-webui\\extensions\\facechain/resources/inpaint_template\\1.jpg'], ['D:\\AI_github_projects\\stable-diffusion-webui\\extensions\\facechain/resources/inpaint_template\\2.jpg'], ['D:\\AI_github_projects\\stable-diffusion-webui\\extensions\\facechain/resources/inpaint_template\\3.jpg'], ['D:\\AI_github_projects\\stable-diffusion-webui\\extensions\\facechain/resources/inpaint_template\\4.jpg'], ['D:\\AI_github_projects\\stable-diffusion-webui\\extensions\\facechain/resources/inpaint_template\\5.jpg']]
[]
Loading VAE weights specified in settings: D:\AI_github_projects\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.safetensors
Applying attention optimization: xformers... done.
Model loaded in 3.5s (load weights from disk: 0.4s, create model: 1.4s, apply weights to model: 1.1s, load VAE: 0.2s, calculate empty prompt: 0.3s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai: Check resources for missing info files
Civitai Link: Connecting to Civitai Link Server
Civitai: Found 11 resources missing info files
Civitai Link: Connected to Civitai Link Server
Civitai: Check resources for missing preview images
Startup time: 191.6s (initial startup: 0.1s, prepare environment: 128.4s, import torch: 9.9s, import gradio: 3.3s, setup paths: 9.4s, initialize shared: 0.4s, other imports: 1.1s, setup codeformer: 0.3s, load scripts: 21.8s, create ui: 7.2s, gradio launch: 3.8s, app_started_callback: 5.5s).
Civitai: No info found on Civitai
Civitai: Found 54 resources missing preview images
Civitai Link: Joined room e5cb0d39101c382e9caa57f1b2b27550d1c674cd2164cb3272e1aa38ee83fcfe465382aae86cb1ae06488f681aecccd791178e4a4627236156f747df9c47db8a
Civitai Link: Presence update: SD: 1, Clients: 0
Civitai: Found 29 hash matches
Civitai: Updated 0 preview images
[-] ADetailer: img2img inpainting detected. adetailer disabled.
2024-01-07 14:33:27,780 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:33:28,242 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 14:33:28,976 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 14:33:28,976 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:33:31,780 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 14:33:31,948 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 14:33:31,950 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 14:33:31,951 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:33:32,395 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:33:33,112 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 14:33:33,113 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:33:35,978 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 14:33:36,099 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:33:36,100 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:33:36,462 - ControlNet - INFO - ControlNet Hooked - Time = 8.687172651290894
 14%|███████████▌                                                                       | 7/50 [01:00<06:09,  8.59s/it]
Total progress:  14%|█████████▍                                                         | 7/50 [00:55<05:40,  7.92s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.                         | 7/50 [00:55<05:51,  8.17s/it]
2024-01-07 14:36:07,954 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:36:08,449 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 14:36:09,245 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 14:36:09,253 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:36:12,082 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 14:36:12,245 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 14:36:12,247 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 14:36:12,247 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:36:12,684 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:36:13,413 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 14:36:13,414 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:36:16,261 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 14:36:16,384 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:36:16,384 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:36:16,448 - ControlNet - INFO - ControlNet Hooked - Time = 8.498108625411987
100%|██████████████████████████████████████████████████████████████████████████████████| 50/50 [07:02<00:00,  8.45s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [06:58<00:00,  8.37s/it]
2024-01-07 14:43:52,449 - ControlNet - INFO - Preview Resolution = 720█████████████████| 50/50 [06:58<00:00,  8.46s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.
2024-01-07 14:45:06,903 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:45:07,405 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 14:45:08,097 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 14:45:08,098 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:45:10,886 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 14:45:11,052 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 14:45:11,054 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 14:45:11,054 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:45:11,497 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:45:12,239 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 14:45:12,239 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:45:15,079 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 14:45:15,201 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:45:15,201 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:45:15,269 - ControlNet - INFO - ControlNet Hooked - Time = 8.369181394577026
  6%|████▉                                                                              | 3/50 [00:25<06:36,  8.43s/it]
Total progress:   6%|████                                                               | 3/50 [00:20<05:26,  6.96s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.                         | 3/50 [00:20<04:42,  6.00s/it]
2024-01-07 14:47:32,565 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:47:32,566 - ControlNet - INFO - Loading model from cache: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:47:32,568 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:47:32,569 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:47:33,034 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 14:47:33,761 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 14:47:33,761 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:47:36,694 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 14:47:36,860 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 14:47:36,861 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 14:47:36,862 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:47:36,950 - ControlNet - INFO - ControlNet Hooked - Time = 4.3894548416137695
  4%|███▎                                                                               | 2/50 [00:16<06:43,  8.41s/it]
Total progress:   4%|██▋                                                                | 2/50 [00:12<04:57,  6.19s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.                         | 2/50 [00:12<03:19,  4.16s/it]
2024-01-07 14:48:16,562 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:48:17,065 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:48:17,788 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 14:48:17,788 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:48:20,616 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 14:48:20,735 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:48:20,735 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:48:21,152 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 14:48:21,909 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 14:48:21,909 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:48:24,708 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 14:48:24,878 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 14:48:24,880 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 14:48:24,880 - ControlNet - INFO - preprocessor resolution = -1
2024-01-07 14:48:24,967 - ControlNet - INFO - ControlNet Hooked - Time = 8.409158945083618
 14%|███████████▌                                                                       | 7/50 [00:59<06:06,  8.52s/it]
Total progress:  14%|█████████▍                                                         | 7/50 [00:55<05:38,  7.88s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.                         | 7/50 [00:55<05:47,  8.08s/it]
2024-01-07 14:49:57,291 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:49:57,784 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:49:58,551 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 14:49:58,552 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:50:01,350 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 14:50:01,469 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:50:01,469 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:50:01,533 - ControlNet - INFO - ControlNet Hooked - Time = 4.245555400848389
100%|██████████████████████████████████████████████████████████████████████████████████| 41/41 [04:25<00:00,  6.48s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 41/41 [04:23<00:00,  6.43s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.████████████████████████| 41/41 [04:23<00:00,  6.63s/it]
2024-01-07 14:55:00,122 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:55:00,123 - ControlNet - INFO - Loading model from cache: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:55:00,211 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:55:00,211 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:55:00,281 - ControlNet - INFO - ControlNet Hooked - Time = 0.1628737449645996
 17%|██████████████▏                                                                    | 7/41 [00:46<03:46,  6.65s/it]
Total progress:  17%|███████████▍                                                       | 7/41 [00:43<03:32,  6.24s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.                         | 7/41 [00:43<03:34,  6.32s/it]
2024-01-07 14:56:24,221 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 14:56:24,222 - ControlNet - INFO - Loading model from cache: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 14:56:24,309 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 14:56:24,310 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 14:56:24,753 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 14:56:25,461 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 14:56:25,461 - ControlNet - INFO - controlnet_default_config
2024-01-07 14:56:28,281 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 14:56:28,444 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 14:56:28,446 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 14:56:28,446 - ControlNet - INFO - preprocessor resolution = -1
2024-01-07 14:56:28,535 - ControlNet - INFO - ControlNet Hooked - Time = 4.31812310218811
100%|██████████████████████████████████████████████████████████████████████████████████| 50/50 [07:06<00:00,  8.53s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [07:02<00:00,  8.44s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.████████████████████████| 50/50 [07:02<00:00,  8.28s/it]
2024-01-07 15:06:32,591 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 15:06:33,128 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 15:06:34,416 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 15:06:34,416 - ControlNet - INFO - controlnet_default_config
2024-01-07 15:06:37,593 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 15:06:37,713 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 15:06:37,714 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 15:06:38,143 - ControlNet - INFO - Loading model: control_v11p_sd15_inpaint [ebff9138]
2024-01-07 15:06:38,881 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_inpaint.pth]
2024-01-07 15:06:38,881 - ControlNet - INFO - controlnet_default_config
2024-01-07 15:06:41,743 - ControlNet - INFO - ControlNet model control_v11p_sd15_inpaint [ebff9138] loaded.
2024-01-07 15:06:41,908 - ControlNet - WARNING - A1111 inpaint and ControlNet inpaint duplicated. ControlNet support enabled.
2024-01-07 15:06:41,910 - ControlNet - INFO - Loading preprocessor: inpaint
2024-01-07 15:06:41,910 - ControlNet - INFO - preprocessor resolution = -1
2024-01-07 15:06:41,997 - ControlNet - INFO - ControlNet Hooked - Time = 9.41075873374939
  4%|███▎                                                                               | 2/50 [00:16<06:46,  8.47s/it]
Total progress:   4%|██▋                                                                | 2/50 [00:12<05:04,  6.34s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.                         | 2/50 [00:12<03:22,  4.21s/it]
2024-01-07 15:07:17,888 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 15:07:18,383 - ControlNet - INFO - Loading model: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 15:07:19,112 - ControlNet - INFO - Loaded state_dict from [D:\AI_github_projects\stable-diffusion-webui\models\ControlNet\control_v11p_sd15_lineart.pth]
2024-01-07 15:07:19,113 - ControlNet - INFO - controlnet_default_config
2024-01-07 15:07:22,013 - ControlNet - INFO - ControlNet model control_v11p_sd15_lineart [43d4be0d] loaded.
2024-01-07 15:07:22,138 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 15:07:22,138 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 15:07:22,208 - ControlNet - INFO - ControlNet Hooked - Time = 4.325132608413696
100%|██████████████████████████████████████████████████████████████████████████████████| 36/36 [04:01<00:00,  6.69s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 36/36 [03:58<00:00,  6.63s/it]
[-] ADetailer: img2img inpainting detected. adetailer disabled.████████████████████████| 36/36 [03:58<00:00,  6.56s/it]
2024-01-07 15:17:59,365 - ControlNet - INFO - unit_separate = False, style_align = False
2024-01-07 15:17:59,366 - ControlNet - INFO - Loading model from cache: control_v11p_sd15_lineart [43d4be0d]
2024-01-07 15:17:59,453 - ControlNet - INFO - Loading preprocessor: none
2024-01-07 15:17:59,453 - ControlNet - INFO - preprocessor resolution = 720
2024-01-07 15:17:59,531 - ControlNet - INFO - ControlNet Hooked - Time = 0.17087316513061523
100%|██████████████████████████████████████████████████████████████████████████████████| 36/36 [04:05<00:00,  6.83s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 36/36 [04:03<00:00,  6.76s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 36/36 [04:03<00:00,  6.86s/it]

Additional information

Image for inpainting and image that I uploaded for lineart model: inpaint_lineart.zip

huchenlei commented 10 months ago

This is the expected result if you don't check crop checkbox. Some users requested to have an option to bypass crop here: https://github.com/Mikubill/sd-webui-controlnet/issues/2148.