see https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/11569 and https://github.com/Mikubill/sd-webui-controlnet/issues/1719