[Extension]: Adetailer generates grey box on faces
Issue Description
Using @Bing-su's Adetailer on any image will generate a grey box in the place of detected faces. Using the latest version of Adetailer from the extension section of the webui. No errors or additional info is shown in the log when this occurs. As far as SDNext is concernet, the image was generated/processed successfully. Please note that using Adetailer with @lshqqytiger's SD fork does not cause this issue fork git link
Using the same prompt, checkpoint and VAE in both builds, only SDnext exhibits this effect.
My SDNext install is fresh (version 01804025), and I'm using the following launch parameters:
For SDNext: --use-directml --lowvram --debug (using sub-quadratic cross attention and disabled NaN check in settings) For @lshqqytiger's directml fork: --opt-sub-quad-attention --lowvram --disable-nan-check --no-half
The strange thing is i somehow got Adetailer working last night but today it no longer works again.
Here's a screenshot of a section of settings I'm thinking might have something to do with why the extension works for one fork works and the other doesn't. I wasn't able to find an equivalent to these settings in the SD directML build by @lshqqytiger
I'm fairly new to SD and its intricacies and any help would be greatly appreciated!
Version Platform Description
SDNext version 01804025 Windows 11 64bit Chrome/Edge Using a Ryzen 5 5600H APU 16GB DDR4 3200 RAM
Using VENV: E:\SD\automatic\venv 16:16:55-542300 INFO Starting SD.Next 16:16:55-545310 INFO Python 3.10.11 on Windows 16:16:55-581493 INFO Version: 01804025 Sun Jul 30 11:36:47 2023 +0300 16:16:55-848917 DEBUG Setting environment tuning 16:16:55-850879 DEBUG Torch overrides: cuda=False rocm=False ipex=False diml=True 16:16:55-853179 DEBUG Torch allowed: cuda=False rocm=False ipex=False diml=True 16:16:55-854707 INFO Using DirectML Backend 16:16:55-941869 WARNING Modified files: ['modules/lycoris'] 16:16:55-982571 DEBUG Repository update time: Sun Jul 30 11:36:47 2023 16:16:55-983568 DEBUG Previous setup time: Sun Jul 30 15:13:42 2023 16:16:55-984570 INFO Disabled extensions: [] 16:16:55-985568 INFO Enabled extensions-builtin: ['a1111-sd-webui-lycoris', 'clip-interrogator-ext', 'LDSR', 'Lora', 'multidiffusion-upscaler-for-automatic1111', 'ScuNET', 'sd-dynamic-thresholding', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg', 'SwinIR'] 16:16:55-990568 INFO Enabled extensions: ['a1111-sd-webui-tagcomplete', 'adetailer'] 16:16:55-991925 DEBUG Latest extensions time: Sun Jul 30 15:13:33 2023 16:16:55-992932 DEBUG Timestamps: version:1690706207 setup:1690719222 extension:1690719213 16:16:55-993959 INFO No changes detected: Quick launch active 16:16:55-993959 INFO Verifying requirements 16:16:56-006538 INFO Disabled extensions: [] 16:16:56-007539 INFO Enabled extensions-builtin: ['a1111-sd-webui-lycoris', 'clip-interrogator-ext', 'LDSR', 'Lora', 'multidiffusion-upscaler-for-automatic1111', 'ScuNET', 'sd-dynamic-thresholding', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg', 'SwinIR'] 16:16:56-012050 INFO Enabled extensions: ['a1111-sd-webui-tagcomplete', 'adetailer']
URL link of the extension
https://github.com/Bing-su/adetailer
URL link of the issue reported in the extension repository
https://github.com/Bing-su/adetailer/issues/250
Acknowledgements
- [X] I have read the above and searched for existing issues
Fixed by adding the --experimental launch parameter and then enabling use full precision model (--no-half)
Hope this helps others in the future when it comes to SDNext!