e KandinskyV22ControlnetImg2ImgPipeline to generate an image from the initial image and the image embeddings:   Copied image = pipeline(image=img, strength=0.5, image_embeds=img_emb.image_embeds, negative_image_embeds=negative_emb.image_embeds, hint=hint, num_inference_steps=50, generator=generator, height=768, width=768).images[0]
make_image_grid([img.resize((512, 512)), image.resize((512, 512))], rows=1, cols=2)   Optimizations Kandinsky is u