import{s as Tt,o as Ut,n as wt}from"../chunks/scheduler.8c3d61f6.js";import{S as xt,i as It,g as l,s as n,r as u,A as $t,h as a,f as o,c as s,j as k,u as h,x as p,k as P,y as i,a as r,v as _,d as b,t as v,w as M}from"../chunks/index.da70eac4.js";import{T as Mt}from"../chunks/Tip.1d9b8c37.js";import{D as ge}from"../chunks/Docstring.6b390b9a.js";import{C as yt}from"../chunks/CodeBlock.00a903b3.js";import{H as ue,E as Jt}from"../chunks/EditOnGithub.1e64e623.js";function Ct(ee){let d,w='Using an IP Adapter with Kolors requires more than 24GB of VRAM. To use it, we recommend using <a href="/docs/diffusers/pr_10065/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_model_cpu_offload">enable_model_cpu_offload()</a> on consumer GPUs.';return{c(){d=l("p"),d.innerHTML=w},l(g){d=a(g,"P",{"data-svelte-h":!0}),p(d)!=="svelte-1da6xie"&&(d.innerHTML=w)},m(g,T){r(g,d,T)},p:wt,d(g){g&&o(d)}}}function kt(ee){let d,w="While Kolors is integrated in Diffusers, you need to load the image encoder from a revision to use the safetensor files. You can still use the main branch of the original repository if you’re comfortable loading pickle checkpoints.";return{c(){d=l("p"),d.textContent=w},l(g){d=a(g,"P",{"data-svelte-h":!0}),p(d)!=="svelte-lkmklu"&&(d.textContent=w)},m(g,T){r(g,d,T)},p:wt,d(g){g&&o(d)}}}function Pt(ee){let d,w,g,T,K,he,j,tt='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/kolors/kolors_header_collage.png"/>',_e,L,ot='Kolors is a large-scale text-to-image generation model based on latent diffusion, developed by <a href="https://github.com/Kwai-Kolors/Kolors" rel="nofollow">the Kuaishou Kolors team</a>. Trained on billions of text-image pairs, Kolors exhibits significant advantages over both open-source and closed-source models in visual quality, complex semantic accuracy, and text rendering for both Chinese and English characters. Furthermore, Kolors supports both Chinese and English inputs, demonstrating strong performance in understanding and generating Chinese-specific content. For more details, please refer to this <a href="https://github.com/Kwai-Kolors/Kolors/blob/master/imgs/Kolors_paper.pdf" rel="nofollow">technical report</a>.',be,Z,nt="The abstract from the technical report is:",ve,E,st='<em>We present Kolors, a latent diffusion model for text-to-image synthesis, characterized by its profound understanding of both English and Chinese, as well as an impressive degree of photorealism. There are three key insights contributing to the development of Kolors. Firstly, unlike large language model T5 used in Imagen and Stable Diffusion 3, Kolors is built upon the General Language Model (GLM), which enhances its comprehension capabilities in both English and Chinese. Moreover, we employ a multimodal large language model to recaption the extensive training dataset for fine-grained text understanding. These strategies significantly improve Kolors’ ability to comprehend intricate semantics, particularly those involving multiple entities, and enable its advanced text rendering capabilities. Secondly, we divide the training of Kolors into two phases: the concept learning phase with broad knowledge and the quality improvement phase with specifically curated high-aesthetic data. Furthermore, we investigate the critical role of the noise schedule and introduce a novel schedule to optimize high-resolution image generation. These strategies collectively enhance the visual appeal of the generated high-resolution images. Lastly, we propose a category-balanced benchmark KolorsPrompts, which serves as a guide for the training and evaluation of Kolors. Consequently, even when employing the commonly used U-Net backbone, Kolors has demonstrated remarkable performance in human evaluations, surpassing the existing open-source models and achieving Midjourney-v6 level performance, especially in terms of visual appeal. We will release the code and weights of Kolors at <a href="https://github.com/Kwai-Kolors/Kolors" rel="nofollow">https://github.com/Kwai-Kolors/Kolors</a>, and hope that it will benefit future research and applications in the visual generation community.</em>',Me,Q,ye,D,we,R,Te,S,rt='Kolors needs a different IP Adapter to work, and it uses <a href="https://huggingface.co/openai/clip-vit-large-patch14-336" rel="nofollow">Openai-CLIP-336</a> as an image encoder.',Ue,U,xe,x,Ie,W,$e,G,Je,m,V,Re,te,it="Pipeline for text-to-image generation using Kolors.",Se,oe,lt=`This model inherits from <a href="/docs/diffusers/pr_10065/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`,We,ne,at="The pipeline also inherits the following loading methods:",Ge,se,dt='<li><a href="/docs/diffusers/pr_10065/en/api/loaders/lora#diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/pr_10065/en/api/loaders/lora#diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/pr_10065/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',Ve,I,z,ze,re,pt="Encodes the prompt into text encoder hidden states.",Ne,$,N,qe,ie,mt='See <a href="https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298" rel="nofollow">https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298</a>',Ce,q,ct="<li>all</li> <li><strong>call</strong></li>",ke,Y,Pe,c,F,Ye,le,gt="Pipeline for text-to-image generation using Kolors.",Fe,ae,ft=`This model inherits from <a href="/docs/diffusers/pr_10065/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`,Xe,de,ut="The pipeline also inherits the following loading methods:",He,pe,ht='<li><a href="/docs/diffusers/pr_10065/en/api/loaders/lora#diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/pr_10065/en/api/loaders/lora#diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/pr_10065/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',Be,J,X,Ae,me,_t="Encodes the prompt into text encoder hidden states.",Oe,C,H,et,ce,bt='See <a href="https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298" rel="nofollow">https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298</a>',Ke,B,vt="<li>all</li> <li><strong>call</strong></li>",je,A,Le,fe,Ze;return K=new ue({props:{title:"Kolors: Effective Training of Diffusion Model for Photorealistic Text-to-Image Synthesis",local:"kolors-effective-training-of-diffusion-model-for-photorealistic-text-to-image-synthesis",headingTag:"h1"}}),Q=new ue({props:{title:"Usage Example",local:"usage-example",headingTag:"h2"}}),D=new yt({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyJTJDJTIwS29sb3JzUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwS29sb3JzUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMkt3YWktS29sb3JzJTJGS29sb3JzLWRpZmZ1c2VycyUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHZhcmlhbnQlM0QlMjJmcDE2JTIyKSUwQXBpcGUudG8oJTIyY3VkYSUyMiklMEFwaXBlLnNjaGVkdWxlciUyMCUzRCUyMERQTVNvbHZlck11bHRpc3RlcFNjaGVkdWxlci5mcm9tX2NvbmZpZyhwaXBlLnNjaGVkdWxlci5jb25maWclMkMlMjB1c2Vfa2FycmFzX3NpZ21hcyUzRFRydWUpJTBBJTBBaW1hZ2UlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRCclRTQlQjglODAlRTUlQkMlQTAlRTclOTMlQTIlRTglOTklQUIlRTclOUElODQlRTclODUlQTclRTclODklODclRUYlQkMlOEMlRTUlQkUlQUUlRTglQjclOUQlRUYlQkMlOEMlRTUlOEYlOTglRTclODQlQTYlRUYlQkMlOEMlRTklQUIlOTglRTglQjQlQTglRTklODclOEYlRUYlQkMlOEMlRTclOTQlQjUlRTUlQkQlQjElRUYlQkMlOEMlRTYlOEIlQkYlRTclOUQlODAlRTQlQjglODAlRTQlQjglQUElRTclODklOEMlRTUlQUQlOTAlRUYlQkMlOEMlRTUlODYlOTklRTclOUQlODAlMjIlRTUlOEYlQUYlRTUlOUIlQkUlMjInJTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEJTIyJTIyJTJDJTBBJTIwJTIwJTIwJTIwZ3VpZGFuY2Vfc2NhbGUlM0Q2LjUlMkMlMEElMjAlMjAlMjAlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEMjUlMkMlMEEpLmltYWdlcyU1QjAlNUQlMEElMEFpbWFnZS5zYXZlKCUyMmtvbG9yc19zYW1wbGUucG5nJTIyKQ==",highlighted:`<span class="hljs-keyword">import</span> torch

<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DPMSolverMultistepScheduler, KolorsPipeline

pipe = KolorsPipeline.from_pretrained(<span class="hljs-string">&quot;Kwai-Kolors/Kolors-diffusers&quot;</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=<span class="hljs-literal">True</span>)

image = pipe(
    prompt=<span class="hljs-string">&#x27;一张瓢虫的照片，微距，变焦，高质量，电影，拿着一个牌子，写着&quot;可图&quot;&#x27;</span>,
    negative_prompt=<span class="hljs-string">&quot;&quot;</span>,
    guidance_scale=<span class="hljs-number">6.5</span>,
    num_inference_steps=<span class="hljs-number">25</span>,
).images[<span class="hljs-number">0</span>]

image.save(<span class="hljs-string">&quot;kolors_sample.png&quot;</span>)`,wrap:!1}}),R=new ue({props:{title:"IP Adapter",local:"ip-adapter",headingTag:"h3"}}),U=new Mt({props:{$$slots:{default:[Ct]},$$scope:{ctx:ee}}}),x=new Mt({props:{$$slots:{default:[kt]},$$scope:{ctx:ee}}}),W=new yt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQ0xJUFZpc2lvbk1vZGVsV2l0aFByb2plY3Rpb24lMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyJTJDJTIwS29sb3JzUGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwbG9hZF9pbWFnZSUwQSUwQWltYWdlX2VuY29kZXIlMjAlM0QlMjBDTElQVmlzaW9uTW9kZWxXaXRoUHJvamVjdGlvbi5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyS3dhaS1Lb2xvcnMlMkZLb2xvcnMtSVAtQWRhcHRlci1QbHVzJTIyJTJDJTBBJTIwJTIwJTIwJTIwc3ViZm9sZGVyJTNEJTIyaW1hZ2VfZW5jb2RlciUyMiUyQyUwQSUyMCUyMCUyMCUyMGxvd19jcHVfbWVtX3VzYWdlJTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUwQSUyMCUyMCUyMCUyMHJldmlzaW9uJTNEJTIycmVmcyUyRnByJTJGNCUyMiUyQyUwQSklMEElMEFwaXBlJTIwJTNEJTIwS29sb3JzUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMkt3YWktS29sb3JzJTJGS29sb3JzLWRpZmZ1c2VycyUyMiUyQyUyMGltYWdlX2VuY29kZXIlM0RpbWFnZV9lbmNvZGVyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMEEpJTBBcGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIuZnJvbV9jb25maWcocGlwZS5zY2hlZHVsZXIuY29uZmlnJTJDJTIwdXNlX2thcnJhc19zaWdtYXMlM0RUcnVlKSUwQSUwQXBpcGUubG9hZF9pcF9hZGFwdGVyKCUwQSUyMCUyMCUyMCUyMCUyMkt3YWktS29sb3JzJTJGS29sb3JzLUlQLUFkYXB0ZXItUGx1cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHN1YmZvbGRlciUzRCUyMiUyMiUyQyUwQSUyMCUyMCUyMCUyMHdlaWdodF9uYW1lJTNEJTIyaXBfYWRhcHRlcl9wbHVzX2dlbmVyYWwuc2FmZXRlbnNvcnMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXZpc2lvbiUzRCUyMnJlZnMlMkZwciUyRjQlMjIlMkMlMEElMjAlMjAlMjAlMjBpbWFnZV9lbmNvZGVyX2ZvbGRlciUzRE5vbmUlMkMlMEEpJTBBcGlwZS5lbmFibGVfbW9kZWxfY3B1X29mZmxvYWQoKSUwQSUwQWlwYV9pbWFnZSUyMCUzRCUyMGxvYWRfaW1hZ2UoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGaHVnZ2luZ2ZhY2UlMkZkb2N1bWVudGF0aW9uLWltYWdlcyUyRnJlc29sdmUlMkZtYWluJTJGa29sb3JzJTJGY2F0X3NxdWFyZS5wbmclMjIpJTBBJTBBaW1hZ2UlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRCUyMmJlc3QlMjBxdWFsaXR5JTJDJTIwaGlnaCUyMHF1YWxpdHklMjIlMkMlMEElMjAlMjAlMjAlMjBuZWdhdGl2ZV9wcm9tcHQlM0QlMjIlMjIlMkMlMEElMjAlMjAlMjAlMjBndWlkYW5jZV9zY2FsZSUzRDYuNSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QyNSUyQyUwQSUyMCUyMCUyMCUyMGlwX2FkYXB0ZXJfaW1hZ2UlM0RpcGFfaW1hZ2UlMkMlMEEpLmltYWdlcyU1QjAlNUQlMEElMEFpbWFnZS5zYXZlKCUyMmtvbG9yc19pcGFfc2FtcGxlLnBuZyUyMik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPVisionModelWithProjection

<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DPMSolverMultistepScheduler, KolorsPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image

image_encoder = CLIPVisionModelWithProjection.from_pretrained(
    <span class="hljs-string">&quot;Kwai-Kolors/Kolors-IP-Adapter-Plus&quot;</span>,
    subfolder=<span class="hljs-string">&quot;image_encoder&quot;</span>,
    low_cpu_mem_usage=<span class="hljs-literal">True</span>,
    torch_dtype=torch.float16,
    revision=<span class="hljs-string">&quot;refs/pr/4&quot;</span>,
)

pipe = KolorsPipeline.from_pretrained(
    <span class="hljs-string">&quot;Kwai-Kolors/Kolors-diffusers&quot;</span>, image_encoder=image_encoder, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>
)
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=<span class="hljs-literal">True</span>)

pipe.load_ip_adapter(
    <span class="hljs-string">&quot;Kwai-Kolors/Kolors-IP-Adapter-Plus&quot;</span>,
    subfolder=<span class="hljs-string">&quot;&quot;</span>,
    weight_name=<span class="hljs-string">&quot;ip_adapter_plus_general.safetensors&quot;</span>,
    revision=<span class="hljs-string">&quot;refs/pr/4&quot;</span>,
    image_encoder_folder=<span class="hljs-literal">None</span>,
)
pipe.enable_model_cpu_offload()

ipa_image = load_image(<span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/kolors/cat_square.png&quot;</span>)

image = pipe(
    prompt=<span class="hljs-string">&quot;best quality, high quality&quot;</span>,
    negative_prompt=<span class="hljs-string">&quot;&quot;</span>,
    guidance_scale=<span class="hljs-number">6.5</span>,
    num_inference_steps=<span class="hljs-number">25</span>,
    ip_adapter_image=ipa_image,
).images[<span class="hljs-number">0</span>]

image.save(<span class="hljs-string">&quot;kolors_ipa_sample.png&quot;</span>)`,wrap:!1}}),G=new ue({props:{title:"KolorsPipeline",local:"diffusers.KolorsPipeline",headingTag:"h2"}}),V=new ge({props:{name:"class diffusers.KolorsPipeline",anchor:"diffusers.KolorsPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": ChatGLMModel"},{name:"tokenizer",val:": ChatGLMTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"image_encoder",val:": CLIPVisionModelWithProjection = None"},{name:"feature_extractor",val:": CLIPImageProcessor = None"},{name:"force_zeros_for_empty_prompt",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.KolorsPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_10065/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.KolorsPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>ChatGLMModel</code>) &#x2014;
Frozen text-encoder. Kolors uses <a href="https://huggingface.co/THUDM/chatglm3-6b" rel="nofollow">ChatGLM3-6B</a>.`,name:"text_encoder"},{anchor:"diffusers.KolorsPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>ChatGLMTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/THUDM/chatglm3-6b/blob/main/tokenization_chatglm.py" rel="nofollow">ChatGLMTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.KolorsPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/pr_10065/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.KolorsPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_10065/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/pr_10065/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/pr_10065/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/pr_10065/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.KolorsPipeline.force_zeros_for_empty_prompt",description:`<strong>force_zeros_for_empty_prompt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>&quot;False&quot;</code>) &#x2014;
Whether the negative prompt embeddings shall be forced to always be set to 0. Also see the config of
<code>Kwai-Kolors/Kolors-diffusers</code>.`,name:"force_zeros_for_empty_prompt"}],source:"https://github.com/huggingface/diffusers/blob/vr_10065/src/diffusers/pipelines/kolors/pipeline_kolors.py#L124"}}),z=new ge({props:{name:"encode_prompt",anchor:"diffusers.KolorsPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"num_images_per_prompt",val:": int = 1"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"pooled_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_pooled_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"max_sequence_length",val:": int = 256"}],parametersDescription:[{anchor:"diffusers.KolorsPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.KolorsPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>):
torch device`,name:"device"},{anchor:"diffusers.KolorsPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) &#x2014;
number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.KolorsPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>) &#x2014;
whether to use classifier free guidance or not`,name:"do_classifier_free_guidance"},{anchor:"diffusers.KolorsPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.KolorsPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.KolorsPipeline.encode_prompt.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting.
If not provided, pooled text embeddings will be generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"diffusers.KolorsPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.KolorsPipeline.encode_prompt.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, pooled negative_prompt_embeds will be generated from <code>negative_prompt</code>
input argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"diffusers.KolorsPipeline.encode_prompt.max_sequence_length",description:"<strong>max_sequence_length</strong> (<code>int</code> defaults to 256) &#x2014; Maximum sequence length to use with the <code>prompt</code>.",name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_10065/src/diffusers/pipelines/kolors/pipeline_kolors.py#L198"}}),N=new ge({props:{name:"get_guidance_scale_embedding",anchor:"diffusers.KolorsPipeline.get_guidance_scale_embedding",parameters:[{name:"w",val:": Tensor"},{name:"embedding_dim",val:": int = 512"},{name:"dtype",val:": dtype = torch.float32"}],parametersDescription:[{anchor:"diffusers.KolorsPipeline.get_guidance_scale_embedding.w",description:`<strong>w</strong> (<code>torch.Tensor</code>) &#x2014;
Generate embedding vectors with a specified guidance scale to subsequently enrich timestep embeddings.`,name:"w"},{anchor:"diffusers.KolorsPipeline.get_guidance_scale_embedding.embedding_dim",description:`<strong>embedding_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimension of the embeddings to generate.`,name:"embedding_dim"},{anchor:"diffusers.KolorsPipeline.get_guidance_scale_embedding.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>, defaults to <code>torch.float32</code>) &#x2014;
Data type of the generated embeddings.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_10065/src/diffusers/pipelines/kolors/pipeline_kolors.py#L599",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Embedding vectors with shape <code>(len(w), embedding_dim)</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),Y=new ue({props:{title:"KolorsImg2ImgPipeline",local:"diffusers.KolorsImg2ImgPipeline",headingTag:"h2"}}),F=new ge({props:{name:"class diffusers.KolorsImg2ImgPipeline",anchor:"diffusers.KolorsImg2ImgPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": ChatGLMModel"},{name:"tokenizer",val:": ChatGLMTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"image_encoder",val:": CLIPVisionModelWithProjection = None"},{name:"feature_extractor",val:": CLIPImageProcessor = None"},{name:"force_zeros_for_empty_prompt",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.KolorsImg2ImgPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_10065/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.KolorsImg2ImgPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>ChatGLMModel</code>) &#x2014;
Frozen text-encoder. Kolors uses <a href="https://huggingface.co/THUDM/chatglm3-6b" rel="nofollow">ChatGLM3-6B</a>.`,name:"text_encoder"},{anchor:"diffusers.KolorsImg2ImgPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>ChatGLMTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/THUDM/chatglm3-6b/blob/main/tokenization_chatglm.py" rel="nofollow">ChatGLMTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.KolorsImg2ImgPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/pr_10065/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.KolorsImg2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_10065/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/pr_10065/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/pr_10065/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/pr_10065/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.KolorsImg2ImgPipeline.force_zeros_for_empty_prompt",description:`<strong>force_zeros_for_empty_prompt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>&quot;False&quot;</code>) &#x2014;
Whether the negative prompt embeddings shall be forced to always be set to 0. Also see the config of
<code>Kwai-Kolors/Kolors-diffusers</code>.`,name:"force_zeros_for_empty_prompt"}],source:"https://github.com/huggingface/diffusers/blob/vr_10065/src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py#L143"}}),X=new ge({props:{name:"encode_prompt",anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"num_images_per_prompt",val:": int = 1"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"pooled_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_pooled_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"max_sequence_length",val:": int = 256"}],parametersDescription:[{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>):
torch device`,name:"device"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) &#x2014;
number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>) &#x2014;
whether to use classifier free guidance or not`,name:"do_classifier_free_guidance"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting.
If not provided, pooled text embeddings will be generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, pooled negative_prompt_embeds will be generated from <code>negative_prompt</code>
input argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"diffusers.KolorsImg2ImgPipeline.encode_prompt.max_sequence_length",description:"<strong>max_sequence_length</strong> (<code>int</code> defaults to 256) &#x2014; Maximum sequence length to use with the <code>prompt</code>.",name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_10065/src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py#L218"}}),H=new ge({props:{name:"get_guidance_scale_embedding",anchor:"diffusers.KolorsImg2ImgPipeline.get_guidance_scale_embedding",parameters:[{name:"w",val:": Tensor"},{name:"embedding_dim",val:": int = 512"},{name:"dtype",val:": dtype = torch.float32"}],parametersDescription:[{anchor:"diffusers.KolorsImg2ImgPipeline.get_guidance_scale_embedding.w",description:`<strong>w</strong> (<code>torch.Tensor</code>) &#x2014;
Generate embedding vectors with a specified guidance scale to subsequently enrich timestep embeddings.`,name:"w"},{anchor:"diffusers.KolorsImg2ImgPipeline.get_guidance_scale_embedding.embedding_dim",description:`<strong>embedding_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimension of the embeddings to generate.`,name:"embedding_dim"},{anchor:"diffusers.KolorsImg2ImgPipeline.get_guidance_scale_embedding.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>, defaults to <code>torch.float32</code>) &#x2014;
Data type of the generated embeddings.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_10065/src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py#L727",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Embedding vectors with shape <code>(len(w), embedding_dim)</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),A=new Jt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/kolors.md"}}),{c(){d=l("meta"),w=n(),g=l("p"),T=n(),u(K.$$.fragment),he=n(),j=l("p"),j.innerHTML=tt,_e=n(),L=l("p"),L.innerHTML=ot,be=n(),Z=l("p"),Z.textContent=nt,ve=n(),E=l("p"),E.innerHTML=st,Me=n(),u(Q.$$.fragment),ye=n(),u(D.$$.fragment),we=n(),u(R.$$.fragment),Te=n(),S=l("p"),S.innerHTML=rt,Ue=n(),u(U.$$.fragment),xe=n(),u(x.$$.fragment),Ie=n(),u(W.$$.fragment),$e=n(),u(G.$$.fragment),Je=n(),m=l("div"),u(V.$$.fragment),Re=n(),te=l("p"),te.textContent=it,Se=n(),oe=l("p"),oe.innerHTML=lt,We=n(),ne=l("p"),ne.textContent=at,Ge=n(),se=l("ul"),se.innerHTML=dt,Ve=n(),I=l("div"),u(z.$$.fragment),ze=n(),re=l("p"),re.textContent=pt,Ne=n(),$=l("div"),u(N.$$.fragment),qe=n(),ie=l("p"),ie.innerHTML=mt,Ce=n(),q=l("ul"),q.innerHTML=ct,ke=n(),u(Y.$$.fragment),Pe=n(),c=l("div"),u(F.$$.fragment),Ye=n(),le=l("p"),le.textContent=gt,Fe=n(),ae=l("p"),ae.innerHTML=ft,Xe=n(),de=l("p"),de.textContent=ut,He=n(),pe=l("ul"),pe.innerHTML=ht,Be=n(),J=l("div"),u(X.$$.fragment),Ae=n(),me=l("p"),me.textContent=_t,Oe=n(),C=l("div"),u(H.$$.fragment),et=n(),ce=l("p"),ce.innerHTML=bt,Ke=n(),B=l("ul"),B.innerHTML=vt,je=n(),u(A.$$.fragment),Le=n(),fe=l("p"),this.h()},l(e){const t=$t("svelte-u9bgzb",document.head);d=a(t,"META",{name:!0,content:!0}),t.forEach(o),w=s(e),g=a(e,"P",{}),k(g).forEach(o),T=s(e),h(K.$$.fragment,e),he=s(e),j=a(e,"P",{"data-svelte-h":!0}),p(j)!=="svelte-1hwlqdw"&&(j.innerHTML=tt),_e=s(e),L=a(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-11v9m6n"&&(L.innerHTML=ot),be=s(e),Z=a(e,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-nj72pd"&&(Z.textContent=nt),ve=s(e),E=a(e,"P",{"data-svelte-h":!0}),p(E)!=="svelte-vvt3t7"&&(E.innerHTML=st),Me=s(e),h(Q.$$.fragment,e),ye=s(e),h(D.$$.fragment,e),we=s(e),h(R.$$.fragment,e),Te=s(e),S=a(e,"P",{"data-svelte-h":!0}),p(S)!=="svelte-1a6xano"&&(S.innerHTML=rt),Ue=s(e),h(U.$$.fragment,e),xe=s(e),h(x.$$.fragment,e),Ie=s(e),h(W.$$.fragment,e),$e=s(e),h(G.$$.fragment,e),Je=s(e),m=a(e,"DIV",{class:!0});var f=k(m);h(V.$$.fragment,f),Re=s(f),te=a(f,"P",{"data-svelte-h":!0}),p(te)!=="svelte-d2bqje"&&(te.textContent=it),Se=s(f),oe=a(f,"P",{"data-svelte-h":!0}),p(oe)!=="svelte-1wh1cpn"&&(oe.innerHTML=lt),We=s(f),ne=a(f,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-14s6m4u"&&(ne.textContent=at),Ge=s(f),se=a(f,"UL",{"data-svelte-h":!0}),p(se)!=="svelte-13asre2"&&(se.innerHTML=dt),Ve=s(f),I=a(f,"DIV",{class:!0});var O=k(I);h(z.$$.fragment,O),ze=s(O),re=a(O,"P",{"data-svelte-h":!0}),p(re)!=="svelte-16q0ax1"&&(re.textContent=pt),O.forEach(o),Ne=s(f),$=a(f,"DIV",{class:!0});var Ee=k($);h(N.$$.fragment,Ee),qe=s(Ee),ie=a(Ee,"P",{"data-svelte-h":!0}),p(ie)!=="svelte-vo59ec"&&(ie.innerHTML=mt),Ee.forEach(o),f.forEach(o),Ce=s(e),q=a(e,"UL",{"data-svelte-h":!0}),p(q)!=="svelte-1p6h59i"&&(q.innerHTML=ct),ke=s(e),h(Y.$$.fragment,e),Pe=s(e),c=a(e,"DIV",{class:!0});var y=k(c);h(F.$$.fragment,y),Ye=s(y),le=a(y,"P",{"data-svelte-h":!0}),p(le)!=="svelte-d2bqje"&&(le.textContent=gt),Fe=s(y),ae=a(y,"P",{"data-svelte-h":!0}),p(ae)!=="svelte-1wh1cpn"&&(ae.innerHTML=ft),Xe=s(y),de=a(y,"P",{"data-svelte-h":!0}),p(de)!=="svelte-14s6m4u"&&(de.textContent=ut),He=s(y),pe=a(y,"UL",{"data-svelte-h":!0}),p(pe)!=="svelte-13asre2"&&(pe.innerHTML=ht),Be=s(y),J=a(y,"DIV",{class:!0});var Qe=k(J);h(X.$$.fragment,Qe),Ae=s(Qe),me=a(Qe,"P",{"data-svelte-h":!0}),p(me)!=="svelte-16q0ax1"&&(me.textContent=_t),Qe.forEach(o),Oe=s(y),C=a(y,"DIV",{class:!0});var De=k(C);h(H.$$.fragment,De),et=s(De),ce=a(De,"P",{"data-svelte-h":!0}),p(ce)!=="svelte-vo59ec"&&(ce.innerHTML=bt),De.forEach(o),y.forEach(o),Ke=s(e),B=a(e,"UL",{"data-svelte-h":!0}),p(B)!=="svelte-1p6h59i"&&(B.innerHTML=vt),je=s(e),h(A.$$.fragment,e),Le=s(e),fe=a(e,"P",{}),k(fe).forEach(o),this.h()},h(){P(d,"name","hf:doc:metadata"),P(d,"content",Kt),P(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){i(document.head,d),r(e,w,t),r(e,g,t),r(e,T,t),_(K,e,t),r(e,he,t),r(e,j,t),r(e,_e,t),r(e,L,t),r(e,be,t),r(e,Z,t),r(e,ve,t),r(e,E,t),r(e,Me,t),_(Q,e,t),r(e,ye,t),_(D,e,t),r(e,we,t),_(R,e,t),r(e,Te,t),r(e,S,t),r(e,Ue,t),_(U,e,t),r(e,xe,t),_(x,e,t),r(e,Ie,t),_(W,e,t),r(e,$e,t),_(G,e,t),r(e,Je,t),r(e,m,t),_(V,m,null),i(m,Re),i(m,te),i(m,Se),i(m,oe),i(m,We),i(m,ne),i(m,Ge),i(m,se),i(m,Ve),i(m,I),_(z,I,null),i(I,ze),i(I,re),i(m,Ne),i(m,$),_(N,$,null),i($,qe),i($,ie),r(e,Ce,t),r(e,q,t),r(e,ke,t),_(Y,e,t),r(e,Pe,t),r(e,c,t),_(F,c,null),i(c,Ye),i(c,le),i(c,Fe),i(c,ae),i(c,Xe),i(c,de),i(c,He),i(c,pe),i(c,Be),i(c,J),_(X,J,null),i(J,Ae),i(J,me),i(c,Oe),i(c,C),_(H,C,null),i(C,et),i(C,ce),r(e,Ke,t),r(e,B,t),r(e,je,t),_(A,e,t),r(e,Le,t),r(e,fe,t),Ze=!0},p(e,[t]){const f={};t&2&&(f.$$scope={dirty:t,ctx:e}),U.$set(f);const O={};t&2&&(O.$$scope={dirty:t,ctx:e}),x.$set(O)},i(e){Ze||(b(K.$$.fragment,e),b(Q.$$.fragment,e),b(D.$$.fragment,e),b(R.$$.fragment,e),b(U.$$.fragment,e),b(x.$$.fragment,e),b(W.$$.fragment,e),b(G.$$.fragment,e),b(V.$$.fragment,e),b(z.$$.fragment,e),b(N.$$.fragment,e),b(Y.$$.fragment,e),b(F.$$.fragment,e),b(X.$$.fragment,e),b(H.$$.fragment,e),b(A.$$.fragment,e),Ze=!0)},o(e){v(K.$$.fragment,e),v(Q.$$.fragment,e),v(D.$$.fragment,e),v(R.$$.fragment,e),v(U.$$.fragment,e),v(x.$$.fragment,e),v(W.$$.fragment,e),v(G.$$.fragment,e),v(V.$$.fragment,e),v(z.$$.fragment,e),v(N.$$.fragment,e),v(Y.$$.fragment,e),v(F.$$.fragment,e),v(X.$$.fragment,e),v(H.$$.fragment,e),v(A.$$.fragment,e),Ze=!1},d(e){e&&(o(w),o(g),o(T),o(he),o(j),o(_e),o(L),o(be),o(Z),o(ve),o(E),o(Me),o(ye),o(we),o(Te),o(S),o(Ue),o(xe),o(Ie),o($e),o(Je),o(m),o(Ce),o(q),o(ke),o(Pe),o(c),o(Ke),o(B),o(je),o(Le),o(fe)),o(d),M(K,e),M(Q,e),M(D,e),M(R,e),M(U,e),M(x,e),M(W,e),M(G,e),M(V),M(z),M(N),M(Y,e),M(F),M(X),M(H),M(A,e)}}}const Kt='{"title":"Kolors: Effective Training of Diffusion Model for Photorealistic Text-to-Image Synthesis","local":"kolors-effective-training-of-diffusion-model-for-photorealistic-text-to-image-synthesis","sections":[{"title":"Usage Example","local":"usage-example","sections":[{"title":"IP Adapter","local":"ip-adapter","sections":[],"depth":3}],"depth":2},{"title":"KolorsPipeline","local":"diffusers.KolorsPipeline","sections":[],"depth":2},{"title":"KolorsImg2ImgPipeline","local":"diffusers.KolorsImg2ImgPipeline","sections":[],"depth":2}],"depth":1}';function jt(ee){return Ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class St extends xt{constructor(d){super(),It(this,d,jt,Pt,Tt,{})}}export{St as component};
