--- license: apache-2.0 tags: - text-to-image - kandinsky inference: false --- # Kandinsky 3.0 IP Adapter ## Usage ```python pip install git+https://github.com/ai-forever/kandinsky3-diffusers.git ``` ### Image variations ```python from diffusers.models.attention_processor import Kandi3AttnProcessorIpAdapter, Kandi3AttnProcessor from diffusers.pipelines.kandinsky3.kandinsky3_pipeline_ip_adapter import KandinskyV3PipelineIpAdapter from PIL import Image import torch pipe = KandinskyV3PipelineIpAdapter.from_pretrained('ai-forever/kandinsky3_ip_adapter', torch_dtype=torch.float16, low_cpu_mem_usage=False, device_map=None) pipe = pipe.to('cuda') img = Image.open('path_to_img.jpg') out_img = pipe(caption, img=[img], weights=[1], negative_prompt='', height=1024, width=1024, guidance_scale=7.5, num_inference_steps=50, cut_context=1)[0][0] ```