-
First of all, thank you for the latest update of controlnet integration! I've converted all 8 controlnet pretrained model to ONNX, with script conv_sdcnet_to_onnx.py, and I converted chilloutmix model to ONNX model with script conv_sd_to_onnx.py, adding the --controlnet_path "lllyasviel/sd-controlnet-canny", then I tested them both on console and UI. Another issue is some of the schedulers doesn't work with controlnet, DPMS_ms & DDIM work fine, but EulerA and Euler show an error message "TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'Tensor'" I don't have any idea about how to fix them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ah, sorry about that, I guess I forgot to test those schedulers, since I mainly use DPMS, DEIS, or UniPC. I'll have a look at it. |
Beta Was this translation helpful? Give feedback.
Ah, sorry about that, I guess I forgot to test those schedulers, since I mainly use DPMS, DEIS, or UniPC. I'll have a look at it.
For the the error message about cnet_image, you can work around that by checking the Don't preprocess image checkbox, but you'll have to get the preprocessed images yourself. It currently only supports Canny, Openpose, Scribble and Depth by default, but I'll see about getting the others in too. Should be an easy fix.
Edit:
Okay, here's a fix for the scheduler bug if you want to patch it locally. Open up pipeline_onnx_stable_diffusion_controlnet.py under the modules subdir and edit line 175 so it looks like this:
latents = latents * np.float64(self.scheduler.in…