mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.35k stars 181 forks source link

Bugfix in ControlNetUnit, webuiapi.py #150

Closed davidmartinrius closed 6 months ago

davidmartinrius commented 7 months ago

The function ControlNetUnit was passing an unexpected keyword argument, that was making crash the image generation. So, I removed that paramter to make it work again.

The error was: RuntimeError: (500, '{"error":"TypeError","detail":"","body":"","errors":"ControlNetUnit.init() got an unexpected keyword argument \'hr_option\'"}')

davidmartinrius commented 6 months ago

Please check it out? Thank you!

mix1009 commented 6 months ago

What version are you using?

I tested with latest version of webui and controlnet and webuiapi works without modification.

version: v1.7.0  •  python: 3.10.6  •  torch: 1.13.1+cu117  •  xformers: 0.0.16rc425  •  gradio: 3.41.2  •  checkpoint: 6ce0161689. (on Windows 10 with Nvidia 3090)

sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet.git main 9a5f2883 2024-02-13 03:27:44 latest

davidmartinrius commented 6 months ago

The latest version is working. I am closing this PR.Thanks @mix1009