"CompVis/stable-diffusion-v1-4",
    adapter=adapter,
    torch_dtype=torch.float16,
)
pipe.to("cuda") Finally, pass the prompt and control image to the pipeline   Copied # fix the random seed, so you will get the same result as the example
generator = torch.Generator("cuda").manual_seed(7)

out_image = pipe(
    "At night, glowing cubes in front of the beach",
    image=color_palette,
    generator=generator,
).images[0]
make_image_grid([image