make_image_grid([original_image, canny_image], rows=1, cols=2)  original image  canny image Load a SDXL ControlNet model conditioned on canny edge detection and pass it to the StableDiffusionXLControlNetPipeline. You can also enable model offloading to reduce memory usage.   Copied controlnet = ControlNetModel.from_pretrained(