n")
hint = make_hint(img, depth_estimator).unsqueeze(0).half().to("cuda")  Text-to-image Load the prior pipeline and the KandinskyV22ControlnetPipeline:   Copied from diffusers import KandinskyV22PriorPipeline, KandinskyV22ControlnetPipeline

prior_pipeline = KandinskyV22PriorPipeline.from_pretrained(
    "kandinsky-community/kandinsky-2-2-prior", torch_dtype=torch.float16, use_safetensors=True
).to("cuda")

pipeline = KandinskyV22ControlnetPip