pipeline = KandinskyV22ControlnetImg2ImgPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-controlnet-depth", torch_dtype=torch.float16
).to("cuda")
```  
Pass a text prompt and the initial image to the prior pipeline to generate the image embeddings:  
```py
prompt = "A robot, 4k photo"