import{s as ys,o as vs,n as hs}from"../chunks/scheduler.182ea377.js";import{S as xs,i as Ms,g as o,s as n,r as f,A as ws,h as i,f as a,c as s,j as M,u as g,x as r,k as w,y as t,a as v,v as u,d as _,t as h,w as b}from"../chunks/index.abf12888.js";import{D as C}from"../chunks/Docstring.93f6f462.js";import{C as bs}from"../chunks/CodeBlock.57fe6e13.js";import{E as _s}from"../chunks/ExampleCodeBlock.658f5cd6.js";import{H as Nt}from"../chunks/Heading.16916d63.js";function Cs($e){let x,U="Examples:",P,L,I;return L=new bs({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMlNpbWlhbkx1byUyRkxDTV9EcmVhbXNoYXBlcl92NyUyMiklMEElMjMlMjBUbyUyMHNhdmUlMjBHUFUlMjBtZW1vcnklMkMlMjB0b3JjaC5mbG9hdDE2JTIwY2FuJTIwYmUlMjB1c2VkJTJDJTIwYnV0JTIwaXQlMjBtYXklMjBjb21wcm9taXNlJTIwaW1hZ2UlMjBxdWFsaXR5LiUwQXBpcGUudG8odG9yY2hfZGV2aWNlJTNEJTIyY3VkYSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQzMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJTZWxmLXBvcnRyYWl0JTIwb2lsJTIwcGFpbnRpbmclMkMlMjBhJTIwYmVhdXRpZnVsJTIwY3lib3JnJTIwd2l0aCUyMGdvbGRlbiUyMGhhaXIlMkMlMjA4ayUyMiUwQSUwQSUyMyUyMENhbiUyMGJlJTIwc2V0JTIwdG8lMjAxfjUwJTIwc3RlcHMuJTIwTENNJTIwc3VwcG9ydCUyMGZhc3QlMjBpbmZlcmVuY2UlMjBldmVuJTIwJTNDJTNEJTIwNCUyMHN0ZXBzLiUyMFJlY29tbWVuZCUzQSUyMDF+OCUyMHN0ZXBzLiUwQW51bV9pbmZlcmVuY2Vfc3RlcHMlMjAlM0QlMjA0JTBBaW1hZ2VzJTIwJTNEJTIwcGlwZShwcm9tcHQlM0Rwcm9tcHQlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEbnVtX2luZmVyZW5jZV9zdGVwcyUyQyUyMGd1aWRhbmNlX3NjYWxlJTNEOC4wKS5pbWFnZXMlMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyaW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;SimianLuo/LCM_Dreamshaper_v7&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To save GPU memory, torch.float16 can be used, but it may compromise image quality.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(torch_device=<span class="hljs-string">&quot;cuda&quot;</span>, torch_dtype=torch.float32)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;Self-portrait oil painting, a beautiful cyborg with golden hair, 8k&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Can be set to 1~50 steps. LCM support fast inference even &lt;= 4 steps. Recommend: 1~8 steps.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_inference_steps = <span class="hljs-number">4</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>images = pipe(prompt=prompt, num_inference_steps=num_inference_steps, guidance_scale=<span class="hljs-number">8.0</span>).images
<span class="hljs-meta">&gt;&gt;&gt; </span>images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;image.png&quot;</span>)`,wrap:!1}}),{c(){x=o("p"),x.textContent=U,P=n(),f(L.$$.fragment)},l(d){x=i(d,"P",{"data-svelte-h":!0}),r(x)!=="svelte-kvfsh7"&&(x.textContent=U),P=s(d),g(L.$$.fragment,d)},m(d,$){v(d,x,$),v(d,P,$),u(L,d,$),I=!0},p:hs,i(d){I||(_(L.$$.fragment,d),I=!0)},o(d){h(L.$$.fragment,d),I=!1},d(d){d&&(a(x),a(P)),b(L,d)}}}function Ls($e){let x,U="Examples:",P,L,I;return L=new bs({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvckltYWdlMkltYWdlJTBBaW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjBQSUwlMEElMEFwaXBlJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2UySW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUyMlNpbWlhbkx1byUyRkxDTV9EcmVhbXNoYXBlcl92NyUyMiklMEElMjMlMjBUbyUyMHNhdmUlMjBHUFUlMjBtZW1vcnklMkMlMjB0b3JjaC5mbG9hdDE2JTIwY2FuJTIwYmUlMjB1c2VkJTJDJTIwYnV0JTIwaXQlMjBtYXklMjBjb21wcm9taXNlJTIwaW1hZ2UlMjBxdWFsaXR5LiUwQXBpcGUudG8odG9yY2hfZGV2aWNlJTNEJTIyY3VkYSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQzMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJIaWdoJTIwYWx0aXR1ZGUlMjBzbm93eSUyMG1vdW50YWlucyUyMiUwQWltYWdlJTIwJTNEJTIwUElMLkltYWdlLm9wZW4oJTIyLiUyRnNub3d5X21vdW50YWlucy5wbmclMjIpJTBBJTBBJTIzJTIwQ2FuJTIwYmUlMjBzZXQlMjB0byUyMDF+NTAlMjBzdGVwcy4lMjBMQ00lMjBzdXBwb3J0JTIwZmFzdCUyMGluZmVyZW5jZSUyMGV2ZW4lMjAlM0MlM0QlMjA0JTIwc3RlcHMuJTIwUmVjb21tZW5kJTNBJTIwMX44JTIwc3RlcHMuJTBBbnVtX2luZmVyZW5jZV9zdGVwcyUyMCUzRCUyMDQlMEFpbWFnZXMlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRHByb21wdCUyQyUyMGltYWdlJTNEaW1hZ2UlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEbnVtX2luZmVyZW5jZV9zdGVwcyUyQyUyMGd1aWRhbmNlX3NjYWxlJTNEOC4wJTBBKS5pbWFnZXMlMEElMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyaW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForImage2Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> PIL

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = AutoPipelineForImage2Image.from_pretrained(<span class="hljs-string">&quot;SimianLuo/LCM_Dreamshaper_v7&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To save GPU memory, torch.float16 can be used, but it may compromise image quality.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(torch_device=<span class="hljs-string">&quot;cuda&quot;</span>, torch_dtype=torch.float32)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;High altitude snowy mountains&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = PIL.Image.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;./snowy_mountains.png&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Can be set to 1~50 steps. LCM support fast inference even &lt;= 4 steps. Recommend: 1~8 steps.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_inference_steps = <span class="hljs-number">4</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>images = pipe(
<span class="hljs-meta">... </span>    prompt=prompt, image=image, num_inference_steps=num_inference_steps, guidance_scale=<span class="hljs-number">8.0</span>
<span class="hljs-meta">... </span>).images

<span class="hljs-meta">&gt;&gt;&gt; </span>images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;image.png&quot;</span>)`,wrap:!1}}),{c(){x=o("p"),x.textContent=U,P=n(),f(L.$$.fragment)},l(d){x=i(d,"P",{"data-svelte-h":!0}),r(x)!=="svelte-kvfsh7"&&(x.textContent=U),P=s(d),g(L.$$.fragment,d)},m(d,$){v(d,x,$),v(d,P,$),u(L,d,$),I=!0},p:hs,i(d){I||(_(L.$$.fragment,d),I=!0)},o(d){h(L.$$.fragment,d),I=!1},d(d){d&&(a(x),a(P)),b(L,d)}}}function Is($e){let x,U,P,L,I,d,$,En='Latent Consistency Models (LCMs) were proposed in <a href="https://huggingface.co/papers/2310.04378" rel="nofollow">Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference</a> by Simian Luo, Yiqin Tan, Longbo Huang, Jian Li, and Hang Zhao.',lt,ee,Nn="The abstract of the paper is as follows:",dt,te,Jn='<em>Latent Diffusion models (LDMs) have achieved remarkable results in synthesizing high-resolution images. However, the iterative sampling process is computationally intensive and leads to slow generation. Inspired by Consistency Models (song et al.), we propose Latent Consistency Models (LCMs), enabling swift inference with minimal steps on any pre-trained LDMs, including Stable Diffusion (rombach et al). Viewing the guided reverse diffusion process as solving an augmented probability flow ODE (PF-ODE), LCMs are designed to directly predict the solution of such ODE in latent space, mitigating the need for numerous iterations and allowing rapid, high-fidelity sampling. Efficiently distilled from pre-trained classifier-free guided diffusion models, a high-quality 768 x 768 2~4-step LCM takes only 32 A100 GPU hours for training. Furthermore, we introduce Latent Consistency Fine-tuning (LCF), a novel method that is tailored for fine-tuning LCMs on customized image datasets. Evaluation on the LAION-5B-Aesthetics dataset demonstrates that LCMs achieve state-of-the-art text-to-image generation performance with few-step inference. Project Page: <a href="https://latent-consistency-models.github.io/" rel="nofollow">this https URL</a>.</em>',ct,ne,Sn='A demo for the <a href="https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7" rel="nofollow">SimianLuo/LCM_Dreamshaper_v7</a> checkpoint can be found <a href="https://huggingface.co/spaces/SimianLuo/Latent_Consistency_Model" rel="nofollow">here</a>.',pt,se,Vn='The pipelines were contributed by <a href="https://luosiallen.github.io/" rel="nofollow">luosiallen</a>, <a href="https://github.com/nagolinc" rel="nofollow">nagolinc</a>, and <a href="https://github.com/dg845" rel="nofollow">dg845</a>.',mt,oe,ft,c,ie,Jt,ke,An="Pipeline for text-to-image generation using a latent consistency model.",St,Te,Bn=`This model inherits from <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,Vt,Ue,Gn="The pipeline also inherits the following loading methods:",At,je,Wn='<li><a href="/docs/diffusers/main/en/api/loaders/textual_inversion#diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion">load_textual_inversion()</a> for loading textual inversion embeddings</li> <li><a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.LoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.LoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/loaders/single_file#diffusers.loaders.FromSingleFileMixin.from_single_file">from_single_file()</a> for loading <code>.ckpt</code> files</li> <li><a href="/docs/diffusers/main/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',Bt,j,ae,Gt,De,Zn="The call function to the pipeline for generation.",Wt,J,Zt,k,re,Ft,Ee,Fn='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',Ht,Ne,Hn="The suffixes after the scaling factors represent the stages where they are being applied.",Ot,Je,On=`Please refer to the <a href="https://github.com/ChenyangSi/FreeU" rel="nofollow">official repository</a> for combinations of the values
that are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.`,zt,S,le,Xt,Se,zn="Disables the FreeU mechanism if enabled.",qt,V,de,Rt,Ve,Xn=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,Yt,A,ce,Qt,Ae,qn=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Kt,B,pe,en,Be,Rn=`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`,tn,G,me,nn,Ge,Yn=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,sn,W,fe,on,We,Qn="Encodes the prompt into text encoder hidden states.",an,Z,ge,rn,Ze,Kn='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>',gt,ue,ut,p,_e,ln,Fe,es="Pipeline for image-to-image generation using a latent consistency model.",dn,He,ts=`This model inherits from <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,cn,Oe,ns="The pipeline also inherits the following loading methods:",pn,ze,ss='<li><a href="/docs/diffusers/main/en/api/loaders/textual_inversion#diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion">load_textual_inversion()</a> for loading textual inversion embeddings</li> <li><a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.LoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.LoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/loaders/single_file#diffusers.loaders.FromSingleFileMixin.from_single_file">from_single_file()</a> for loading <code>.ckpt</code> files</li> <li><a href="/docs/diffusers/main/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',mn,D,he,fn,Xe,os="The call function to the pipeline for generation.",gn,F,un,T,be,_n,qe,is='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',hn,Re,as="The suffixes after the scaling factors represent the stages where they are being applied.",bn,Ye,rs=`Please refer to the <a href="https://github.com/ChenyangSi/FreeU" rel="nofollow">official repository</a> for combinations of the values
that are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.`,yn,H,ye,vn,Qe,ls="Disables the FreeU mechanism if enabled.",xn,O,ve,Mn,Ke,ds=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,wn,z,xe,Cn,et,cs=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Ln,X,Me,In,tt,ps=`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`,Pn,q,we,$n,nt,ms=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,kn,R,Ce,Tn,st,fs="Encodes the prompt into text encoder hidden states.",Un,Y,Le,jn,ot,gs='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>',_t,Ie,ht,E,Pe,Dn,it,us="Output class for Stable Diffusion pipelines.",bt,rt,yt;return I=new Nt({props:{title:"Latent Consistency Models",local:"latent-consistency-models",headingTag:"h1"}}),oe=new Nt({props:{title:"LatentConsistencyModelPipeline",local:"diffusers.LatentConsistencyModelPipeline",headingTag:"h2"}}),ie=new C({props:{name:"class diffusers.LatentConsistencyModelPipeline",anchor:"diffusers.LatentConsistencyModelPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": LCMScheduler"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPImageProcessor"},{name:"image_encoder",val:": Optional = None"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/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.LatentConsistencyModelPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIPTextModel</a>) &#x2014;
Frozen text-encoder (<a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a>).`,name:"text_encoder"},{anchor:"diffusers.LatentConsistencyModelPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>) &#x2014;
A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.LatentConsistencyModelPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <code>UNet2DConditionModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.LatentConsistencyModelPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/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. Currently only
supports <a href="/docs/diffusers/main/en/api/schedulers/lcm#diffusers.LCMScheduler">LCMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.LatentConsistencyModelPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for more details
about a model&#x2019;s potential harms.`,name:"safety_checker"},{anchor:"diffusers.LatentConsistencyModelPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPImageProcessor" rel="nofollow">CLIPImageProcessor</a>) &#x2014;
A <code>CLIPImageProcessor</code> to extract features from generated images; used as inputs to the <code>safety_checker</code>.`,name:"feature_extractor"},{anchor:"diffusers.LatentConsistencyModelPipeline.requires_safety_checker",description:`<strong>requires_safety_checker</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the pipeline requires a safety checker component.`,name:"requires_safety_checker"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L109"}}),ae=new C({props:{name:"__call__",anchor:"diffusers.LatentConsistencyModelPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": int = 4"},{name:"original_inference_steps",val:": int = None"},{name:"timesteps",val:": List = None"},{name:"guidance_scale",val:": float = 8.5"},{name:"num_images_per_prompt",val:": Optional = 1"},{name:"generator",val:": Union = None"},{name:"latents",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"ip_adapter_image",val:": Union = None"},{name:"output_type",val:": Optional = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": Optional = None"},{name:"clip_skip",val:": Optional = None"},{name:"callback_on_step_end",val:": Optional = None"},{name:"callback_on_step_end_tensor_inputs",val:": List = ['latents']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.original_inference_steps",description:`<strong>original_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The original number of inference steps use to generate a linearly-spaced timestep schedule, from which
we will draw <code>num_inference_steps</code> evenly spaced timesteps from as our final timestep schedule,
following the Skipping-Step method in the paper (see Section 4.3). If not set this will default to the
scheduler&#x2019;s <code>original_inference_steps</code> attribute.`,name:"original_inference_steps"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Custom timesteps to use for the denoising process. If not defined, equal spaced <code>num_inference_steps</code>
timesteps on the original LCM training/distillation timestep schedule are used. Must be in descending
order.`,name:"timesteps"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.
Note that the original latent consistency models paper uses a different CFG formulation where the
guidance scales are decreased by 1 (so in the paper formulation CFG is enabled when <code>guidance_scale &gt; 0</code>).`,name:"guidance_scale"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.
ip_adapter_image &#x2014; (<code>PipelineImageInput</code>, <em>optional</em>):
Optional image input to work with IP Adapters.`,name:"prompt_embeds"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L597",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> is returned,
otherwise a <code>tuple</code> is returned where the first element is a list with the generated images and the
second element is a list of <code>bool</code>s indicating whether the corresponding generated image contains
“not-safe-for-work” (nsfw) content.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),J=new _s({props:{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.example",$$slots:{default:[Cs]},$$scope:{ctx:$e}}}),re=new C({props:{name:"enable_freeu",anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu",parameters:[{name:"s1",val:": float"},{name:"s2",val:": float"},{name:"b1",val:": float"},{name:"b2",val:": float"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu.s1",description:`<strong>s1</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) &#x2014; Scaling factor for stage 1 to amplify the contributions of backbone features.",name:"b1"},{anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu.b2",description:"<strong>b2</strong> (<code>float</code>) &#x2014; Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L230"}}),le=new C({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L253"}}),de=new C({props:{name:"enable_vae_slicing",anchor:"diffusers.LatentConsistencyModelPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L197"}}),ce=new C({props:{name:"disable_vae_slicing",anchor:"diffusers.LatentConsistencyModelPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L205"}}),pe=new C({props:{name:"enable_vae_tiling",anchor:"diffusers.LatentConsistencyModelPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L213"}}),me=new C({props:{name:"disable_vae_tiling",anchor:"diffusers.LatentConsistencyModelPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L222"}}),fe=new C({props:{name:"encode_prompt",anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:""},{name:"num_images_per_prompt",val:""},{name:"do_classifier_free_guidance",val:""},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"lora_scale",val:": Optional = None"},{name:"clip_skip",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded
device &#x2014; (<code>torch.device</code>):
torch device`,name:"prompt"},{anchor:"diffusers.LatentConsistencyModelPipeline.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.LatentConsistencyModelPipeline.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.LatentConsistencyModelPipeline.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.LatentConsistencyModelPipeline.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.LatentConsistencyModelPipeline.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.LatentConsistencyModelPipeline.encode_prompt.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
A LoRA scale that will be applied to all LoRA layers of the text encoder if LoRA layers are loaded.`,name:"lora_scale"},{anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L258"}}),ge=new C({props:{name:"get_guidance_scale_embedding",anchor:"diffusers.LatentConsistencyModelPipeline.get_guidance_scale_embedding",parameters:[{name:"w",val:""},{name:"embedding_dim",val:" = 512"},{name:"dtype",val:" = torch.float32"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.get_guidance_scale_embedding.timesteps",description:`<strong>timesteps</strong> (<code>torch.Tensor</code>) &#x2014;
generate embedding vectors at these timesteps`,name:"timesteps"},{anchor:"diffusers.LatentConsistencyModelPipeline.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
dtype &#x2014;
data type of the generated embeddings`,name:"embedding_dim"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L497",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.FloatTensor</code></p>
`}}),ue=new Nt({props:{title:"LatentConsistencyModelImg2ImgPipeline",local:"diffusers.LatentConsistencyModelImg2ImgPipeline",headingTag:"h2"}}),_e=new C({props:{name:"class diffusers.LatentConsistencyModelImg2ImgPipeline",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": LCMScheduler"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPImageProcessor"},{name:"image_encoder",val:": Optional = None"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/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.LatentConsistencyModelImg2ImgPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIPTextModel</a>) &#x2014;
Frozen text-encoder (<a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a>).`,name:"text_encoder"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>) &#x2014;
A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <code>UNet2DConditionModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/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. Currently only
supports <a href="/docs/diffusers/main/en/api/schedulers/lcm#diffusers.LCMScheduler">LCMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for more details
about a model&#x2019;s potential harms.`,name:"safety_checker"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPImageProcessor" rel="nofollow">CLIPImageProcessor</a>) &#x2014;
A <code>CLIPImageProcessor</code> to extract features from generated images; used as inputs to the <code>safety_checker</code>.`,name:"feature_extractor"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.requires_safety_checker",description:`<strong>requires_safety_checker</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the pipeline requires a safety checker component.`,name:"requires_safety_checker"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L131"}}),he=new C({props:{name:"__call__",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"image",val:": Union = None"},{name:"num_inference_steps",val:": int = 4"},{name:"strength",val:": float = 0.8"},{name:"original_inference_steps",val:": int = None"},{name:"timesteps",val:": List = None"},{name:"guidance_scale",val:": float = 8.5"},{name:"num_images_per_prompt",val:": Optional = 1"},{name:"generator",val:": Union = None"},{name:"latents",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"ip_adapter_image",val:": Union = None"},{name:"output_type",val:": Optional = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": Optional = None"},{name:"clip_skip",val:": Optional = None"},{name:"callback_on_step_end",val:": Optional = None"},{name:"callback_on_step_end_tensor_inputs",val:": List = ['latents']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.original_inference_steps",description:`<strong>original_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The original number of inference steps use to generate a linearly-spaced timestep schedule, from which
we will draw <code>num_inference_steps</code> evenly spaced timesteps from as our final timestep schedule,
following the Skipping-Step method in the paper (see Section 4.3). If not set this will default to the
scheduler&#x2019;s <code>original_inference_steps</code> attribute.`,name:"original_inference_steps"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Custom timesteps to use for the denoising process. If not defined, equal spaced <code>num_inference_steps</code>
timesteps on the original LCM training/distillation timestep schedule are used. Must be in descending
order.`,name:"timesteps"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.
Note that the original latent consistency models paper uses a different CFG formulation where the
guidance scales are decreased by 1 (so in the paper formulation CFG is enabled when <code>guidance_scale &gt; 0</code>).`,name:"guidance_scale"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.
ip_adapter_image &#x2014; (<code>PipelineImageInput</code>, <em>optional</em>):
Optional image input to work with IP Adapters.`,name:"prompt_embeds"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L663",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> is returned,
otherwise a <code>tuple</code> is returned where the first element is a list with the generated images and the
second element is a list of <code>bool</code>s indicating whether the corresponding generated image contains
“not-safe-for-work” (nsfw) content.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),F=new _s({props:{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.example",$$slots:{default:[Ls]},$$scope:{ctx:$e}}}),be=new C({props:{name:"enable_freeu",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu",parameters:[{name:"s1",val:": float"},{name:"s2",val:": float"},{name:"b1",val:": float"},{name:"b2",val:": float"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu.s1",description:`<strong>s1</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) &#x2014; Scaling factor for stage 1 to amplify the contributions of backbone features.",name:"b1"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu.b2",description:"<strong>b2</strong> (<code>float</code>) &#x2014; Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L246"}}),ye=new C({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L269"}}),ve=new C({props:{name:"enable_vae_slicing",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L213"}}),xe=new C({props:{name:"disable_vae_slicing",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L221"}}),Me=new C({props:{name:"enable_vae_tiling",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L229"}}),we=new C({props:{name:"disable_vae_tiling",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L238"}}),Ce=new C({props:{name:"encode_prompt",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:""},{name:"num_images_per_prompt",val:""},{name:"do_classifier_free_guidance",val:""},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"lora_scale",val:": Optional = None"},{name:"clip_skip",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded
device &#x2014; (<code>torch.device</code>):
torch device`,name:"prompt"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.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.LatentConsistencyModelImg2ImgPipeline.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.LatentConsistencyModelImg2ImgPipeline.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.LatentConsistencyModelImg2ImgPipeline.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.LatentConsistencyModelImg2ImgPipeline.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.LatentConsistencyModelImg2ImgPipeline.encode_prompt.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
A LoRA scale that will be applied to all LoRA layers of the text encoder if LoRA layers are loaded.`,name:"lora_scale"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L274"}}),Le=new C({props:{name:"get_guidance_scale_embedding",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.get_guidance_scale_embedding",parameters:[{name:"w",val:""},{name:"embedding_dim",val:" = 512"},{name:"dtype",val:" = torch.float32"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.get_guidance_scale_embedding.timesteps",description:`<strong>timesteps</strong> (<code>torch.Tensor</code>) &#x2014;
generate embedding vectors at these timesteps`,name:"timesteps"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.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
dtype &#x2014;
data type of the generated embeddings`,name:"embedding_dim"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L555",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.FloatTensor</code></p>
`}}),Ie=new Nt({props:{title:"StableDiffusionPipelineOutput",local:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",headingTag:"h2"}}),Pe=new C({props:{name:"class diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",parameters:[{name:"images",val:": Union"},{name:"nsfw_content_detected",val:": Optional"}],parametersDescription:[{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or NumPy array of shape <code>(batch_size, height, width, num_channels)</code>.`,name:"images"},{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.nsfw_content_detected",description:`<strong>nsfw_content_detected</strong> (<code>List[bool]</code>) &#x2014;
List indicating whether the corresponding generated image contains &#x201C;not-safe-for-work&#x201D; (nsfw) content or
<code>None</code> if safety checking could not be performed.`,name:"nsfw_content_detected"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_output.py#L10"}}),{c(){x=o("meta"),U=n(),P=o("p"),L=n(),f(I.$$.fragment),d=n(),$=o("p"),$.innerHTML=En,lt=n(),ee=o("p"),ee.textContent=Nn,dt=n(),te=o("p"),te.innerHTML=Jn,ct=n(),ne=o("p"),ne.innerHTML=Sn,pt=n(),se=o("p"),se.innerHTML=Vn,mt=n(),f(oe.$$.fragment),ft=n(),c=o("div"),f(ie.$$.fragment),Jt=n(),ke=o("p"),ke.textContent=An,St=n(),Te=o("p"),Te.innerHTML=Bn,Vt=n(),Ue=o("p"),Ue.textContent=Gn,At=n(),je=o("ul"),je.innerHTML=Wn,Bt=n(),j=o("div"),f(ae.$$.fragment),Gt=n(),De=o("p"),De.textContent=Zn,Wt=n(),f(J.$$.fragment),Zt=n(),k=o("div"),f(re.$$.fragment),Ft=n(),Ee=o("p"),Ee.innerHTML=Fn,Ht=n(),Ne=o("p"),Ne.textContent=Hn,Ot=n(),Je=o("p"),Je.innerHTML=On,zt=n(),S=o("div"),f(le.$$.fragment),Xt=n(),Se=o("p"),Se.textContent=zn,qt=n(),V=o("div"),f(de.$$.fragment),Rt=n(),Ve=o("p"),Ve.textContent=Xn,Yt=n(),A=o("div"),f(ce.$$.fragment),Qt=n(),Ae=o("p"),Ae.innerHTML=qn,Kt=n(),B=o("div"),f(pe.$$.fragment),en=n(),Be=o("p"),Be.textContent=Rn,tn=n(),G=o("div"),f(me.$$.fragment),nn=n(),Ge=o("p"),Ge.innerHTML=Yn,sn=n(),W=o("div"),f(fe.$$.fragment),on=n(),We=o("p"),We.textContent=Qn,an=n(),Z=o("div"),f(ge.$$.fragment),rn=n(),Ze=o("p"),Ze.innerHTML=Kn,gt=n(),f(ue.$$.fragment),ut=n(),p=o("div"),f(_e.$$.fragment),ln=n(),Fe=o("p"),Fe.textContent=es,dn=n(),He=o("p"),He.innerHTML=ts,cn=n(),Oe=o("p"),Oe.textContent=ns,pn=n(),ze=o("ul"),ze.innerHTML=ss,mn=n(),D=o("div"),f(he.$$.fragment),fn=n(),Xe=o("p"),Xe.textContent=os,gn=n(),f(F.$$.fragment),un=n(),T=o("div"),f(be.$$.fragment),_n=n(),qe=o("p"),qe.innerHTML=is,hn=n(),Re=o("p"),Re.textContent=as,bn=n(),Ye=o("p"),Ye.innerHTML=rs,yn=n(),H=o("div"),f(ye.$$.fragment),vn=n(),Qe=o("p"),Qe.textContent=ls,xn=n(),O=o("div"),f(ve.$$.fragment),Mn=n(),Ke=o("p"),Ke.textContent=ds,wn=n(),z=o("div"),f(xe.$$.fragment),Cn=n(),et=o("p"),et.innerHTML=cs,Ln=n(),X=o("div"),f(Me.$$.fragment),In=n(),tt=o("p"),tt.textContent=ps,Pn=n(),q=o("div"),f(we.$$.fragment),$n=n(),nt=o("p"),nt.innerHTML=ms,kn=n(),R=o("div"),f(Ce.$$.fragment),Tn=n(),st=o("p"),st.textContent=fs,Un=n(),Y=o("div"),f(Le.$$.fragment),jn=n(),ot=o("p"),ot.innerHTML=gs,_t=n(),f(Ie.$$.fragment),ht=n(),E=o("div"),f(Pe.$$.fragment),Dn=n(),it=o("p"),it.textContent=us,bt=n(),rt=o("p"),this.h()},l(e){const l=ws("svelte-u9bgzb",document.head);x=i(l,"META",{name:!0,content:!0}),l.forEach(a),U=s(e),P=i(e,"P",{}),M(P).forEach(a),L=s(e),g(I.$$.fragment,e),d=s(e),$=i(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-k0b3me"&&($.innerHTML=En),lt=s(e),ee=i(e,"P",{"data-svelte-h":!0}),r(ee)!=="svelte-1kb0761"&&(ee.textContent=Nn),dt=s(e),te=i(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-18qrl49"&&(te.innerHTML=Jn),ct=s(e),ne=i(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-rm0fla"&&(ne.innerHTML=Sn),pt=s(e),se=i(e,"P",{"data-svelte-h":!0}),r(se)!=="svelte-1x9hhp2"&&(se.innerHTML=Vn),mt=s(e),g(oe.$$.fragment,e),ft=s(e),c=i(e,"DIV",{class:!0});var m=M(c);g(ie.$$.fragment,m),Jt=s(m),ke=i(m,"P",{"data-svelte-h":!0}),r(ke)!=="svelte-2lu56s"&&(ke.textContent=An),St=s(m),Te=i(m,"P",{"data-svelte-h":!0}),r(Te)!=="svelte-496sm0"&&(Te.innerHTML=Bn),Vt=s(m),Ue=i(m,"P",{"data-svelte-h":!0}),r(Ue)!=="svelte-14s6m4u"&&(Ue.textContent=Gn),At=s(m),je=i(m,"UL",{"data-svelte-h":!0}),r(je)!=="svelte-1ak2zof"&&(je.innerHTML=Wn),Bt=s(m),j=i(m,"DIV",{class:!0});var N=M(j);g(ae.$$.fragment,N),Gt=s(N),De=i(N,"P",{"data-svelte-h":!0}),r(De)!=="svelte-50j04k"&&(De.textContent=Zn),Wt=s(N),g(J.$$.fragment,N),N.forEach(a),Zt=s(m),k=i(m,"DIV",{class:!0});var Q=M(k);g(re.$$.fragment,Q),Ft=s(Q),Ee=i(Q,"P",{"data-svelte-h":!0}),r(Ee)!=="svelte-1f3tmq1"&&(Ee.innerHTML=Fn),Ht=s(Q),Ne=i(Q,"P",{"data-svelte-h":!0}),r(Ne)!=="svelte-xjijlp"&&(Ne.textContent=Hn),Ot=s(Q),Je=i(Q,"P",{"data-svelte-h":!0}),r(Je)!=="svelte-hy0nzs"&&(Je.innerHTML=On),Q.forEach(a),zt=s(m),S=i(m,"DIV",{class:!0});var vt=M(S);g(le.$$.fragment,vt),Xt=s(vt),Se=i(vt,"P",{"data-svelte-h":!0}),r(Se)!=="svelte-psupw6"&&(Se.textContent=zn),vt.forEach(a),qt=s(m),V=i(m,"DIV",{class:!0});var xt=M(V);g(de.$$.fragment,xt),Rt=s(xt),Ve=i(xt,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-14bnrb6"&&(Ve.textContent=Xn),xt.forEach(a),Yt=s(m),A=i(m,"DIV",{class:!0});var Mt=M(A);g(ce.$$.fragment,Mt),Qt=s(Mt),Ae=i(Mt,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-1s3c06i"&&(Ae.innerHTML=qn),Mt.forEach(a),Kt=s(m),B=i(m,"DIV",{class:!0});var wt=M(B);g(pe.$$.fragment,wt),en=s(wt),Be=i(wt,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-1xwrf7t"&&(Be.textContent=Rn),wt.forEach(a),tn=s(m),G=i(m,"DIV",{class:!0});var Ct=M(G);g(me.$$.fragment,Ct),nn=s(Ct),Ge=i(Ct,"P",{"data-svelte-h":!0}),r(Ge)!=="svelte-pkn4ui"&&(Ge.innerHTML=Yn),Ct.forEach(a),sn=s(m),W=i(m,"DIV",{class:!0});var Lt=M(W);g(fe.$$.fragment,Lt),on=s(Lt),We=i(Lt,"P",{"data-svelte-h":!0}),r(We)!=="svelte-16q0ax1"&&(We.textContent=Qn),Lt.forEach(a),an=s(m),Z=i(m,"DIV",{class:!0});var It=M(Z);g(ge.$$.fragment,It),rn=s(It),Ze=i(It,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-vo59ec"&&(Ze.innerHTML=Kn),It.forEach(a),m.forEach(a),gt=s(e),g(ue.$$.fragment,e),ut=s(e),p=i(e,"DIV",{class:!0});var y=M(p);g(_e.$$.fragment,y),ln=s(y),Fe=i(y,"P",{"data-svelte-h":!0}),r(Fe)!=="svelte-1ddt9wk"&&(Fe.textContent=es),dn=s(y),He=i(y,"P",{"data-svelte-h":!0}),r(He)!=="svelte-496sm0"&&(He.innerHTML=ts),cn=s(y),Oe=i(y,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-14s6m4u"&&(Oe.textContent=ns),pn=s(y),ze=i(y,"UL",{"data-svelte-h":!0}),r(ze)!=="svelte-1ak2zof"&&(ze.innerHTML=ss),mn=s(y),D=i(y,"DIV",{class:!0});var at=M(D);g(he.$$.fragment,at),fn=s(at),Xe=i(at,"P",{"data-svelte-h":!0}),r(Xe)!=="svelte-50j04k"&&(Xe.textContent=os),gn=s(at),g(F.$$.fragment,at),at.forEach(a),un=s(y),T=i(y,"DIV",{class:!0});var K=M(T);g(be.$$.fragment,K),_n=s(K),qe=i(K,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-1f3tmq1"&&(qe.innerHTML=is),hn=s(K),Re=i(K,"P",{"data-svelte-h":!0}),r(Re)!=="svelte-xjijlp"&&(Re.textContent=as),bn=s(K),Ye=i(K,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-hy0nzs"&&(Ye.innerHTML=rs),K.forEach(a),yn=s(y),H=i(y,"DIV",{class:!0});var Pt=M(H);g(ye.$$.fragment,Pt),vn=s(Pt),Qe=i(Pt,"P",{"data-svelte-h":!0}),r(Qe)!=="svelte-psupw6"&&(Qe.textContent=ls),Pt.forEach(a),xn=s(y),O=i(y,"DIV",{class:!0});var $t=M(O);g(ve.$$.fragment,$t),Mn=s($t),Ke=i($t,"P",{"data-svelte-h":!0}),r(Ke)!=="svelte-14bnrb6"&&(Ke.textContent=ds),$t.forEach(a),wn=s(y),z=i(y,"DIV",{class:!0});var kt=M(z);g(xe.$$.fragment,kt),Cn=s(kt),et=i(kt,"P",{"data-svelte-h":!0}),r(et)!=="svelte-1s3c06i"&&(et.innerHTML=cs),kt.forEach(a),Ln=s(y),X=i(y,"DIV",{class:!0});var Tt=M(X);g(Me.$$.fragment,Tt),In=s(Tt),tt=i(Tt,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-1xwrf7t"&&(tt.textContent=ps),Tt.forEach(a),Pn=s(y),q=i(y,"DIV",{class:!0});var Ut=M(q);g(we.$$.fragment,Ut),$n=s(Ut),nt=i(Ut,"P",{"data-svelte-h":!0}),r(nt)!=="svelte-pkn4ui"&&(nt.innerHTML=ms),Ut.forEach(a),kn=s(y),R=i(y,"DIV",{class:!0});var jt=M(R);g(Ce.$$.fragment,jt),Tn=s(jt),st=i(jt,"P",{"data-svelte-h":!0}),r(st)!=="svelte-16q0ax1"&&(st.textContent=fs),jt.forEach(a),Un=s(y),Y=i(y,"DIV",{class:!0});var Dt=M(Y);g(Le.$$.fragment,Dt),jn=s(Dt),ot=i(Dt,"P",{"data-svelte-h":!0}),r(ot)!=="svelte-vo59ec"&&(ot.innerHTML=gs),Dt.forEach(a),y.forEach(a),_t=s(e),g(Ie.$$.fragment,e),ht=s(e),E=i(e,"DIV",{class:!0});var Et=M(E);g(Pe.$$.fragment,Et),Dn=s(Et),it=i(Et,"P",{"data-svelte-h":!0}),r(it)!=="svelte-1qpjiuf"&&(it.textContent=us),Et.forEach(a),bt=s(e),rt=i(e,"P",{}),M(rt).forEach(a),this.h()},h(){w(x,"name","hf:doc:metadata"),w(x,"content",Ps),w(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(E,"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,l){t(document.head,x),v(e,U,l),v(e,P,l),v(e,L,l),u(I,e,l),v(e,d,l),v(e,$,l),v(e,lt,l),v(e,ee,l),v(e,dt,l),v(e,te,l),v(e,ct,l),v(e,ne,l),v(e,pt,l),v(e,se,l),v(e,mt,l),u(oe,e,l),v(e,ft,l),v(e,c,l),u(ie,c,null),t(c,Jt),t(c,ke),t(c,St),t(c,Te),t(c,Vt),t(c,Ue),t(c,At),t(c,je),t(c,Bt),t(c,j),u(ae,j,null),t(j,Gt),t(j,De),t(j,Wt),u(J,j,null),t(c,Zt),t(c,k),u(re,k,null),t(k,Ft),t(k,Ee),t(k,Ht),t(k,Ne),t(k,Ot),t(k,Je),t(c,zt),t(c,S),u(le,S,null),t(S,Xt),t(S,Se),t(c,qt),t(c,V),u(de,V,null),t(V,Rt),t(V,Ve),t(c,Yt),t(c,A),u(ce,A,null),t(A,Qt),t(A,Ae),t(c,Kt),t(c,B),u(pe,B,null),t(B,en),t(B,Be),t(c,tn),t(c,G),u(me,G,null),t(G,nn),t(G,Ge),t(c,sn),t(c,W),u(fe,W,null),t(W,on),t(W,We),t(c,an),t(c,Z),u(ge,Z,null),t(Z,rn),t(Z,Ze),v(e,gt,l),u(ue,e,l),v(e,ut,l),v(e,p,l),u(_e,p,null),t(p,ln),t(p,Fe),t(p,dn),t(p,He),t(p,cn),t(p,Oe),t(p,pn),t(p,ze),t(p,mn),t(p,D),u(he,D,null),t(D,fn),t(D,Xe),t(D,gn),u(F,D,null),t(p,un),t(p,T),u(be,T,null),t(T,_n),t(T,qe),t(T,hn),t(T,Re),t(T,bn),t(T,Ye),t(p,yn),t(p,H),u(ye,H,null),t(H,vn),t(H,Qe),t(p,xn),t(p,O),u(ve,O,null),t(O,Mn),t(O,Ke),t(p,wn),t(p,z),u(xe,z,null),t(z,Cn),t(z,et),t(p,Ln),t(p,X),u(Me,X,null),t(X,In),t(X,tt),t(p,Pn),t(p,q),u(we,q,null),t(q,$n),t(q,nt),t(p,kn),t(p,R),u(Ce,R,null),t(R,Tn),t(R,st),t(p,Un),t(p,Y),u(Le,Y,null),t(Y,jn),t(Y,ot),v(e,_t,l),u(Ie,e,l),v(e,ht,l),v(e,E,l),u(Pe,E,null),t(E,Dn),t(E,it),v(e,bt,l),v(e,rt,l),yt=!0},p(e,[l]){const m={};l&2&&(m.$$scope={dirty:l,ctx:e}),J.$set(m);const N={};l&2&&(N.$$scope={dirty:l,ctx:e}),F.$set(N)},i(e){yt||(_(I.$$.fragment,e),_(oe.$$.fragment,e),_(ie.$$.fragment,e),_(ae.$$.fragment,e),_(J.$$.fragment,e),_(re.$$.fragment,e),_(le.$$.fragment,e),_(de.$$.fragment,e),_(ce.$$.fragment,e),_(pe.$$.fragment,e),_(me.$$.fragment,e),_(fe.$$.fragment,e),_(ge.$$.fragment,e),_(ue.$$.fragment,e),_(_e.$$.fragment,e),_(he.$$.fragment,e),_(F.$$.fragment,e),_(be.$$.fragment,e),_(ye.$$.fragment,e),_(ve.$$.fragment,e),_(xe.$$.fragment,e),_(Me.$$.fragment,e),_(we.$$.fragment,e),_(Ce.$$.fragment,e),_(Le.$$.fragment,e),_(Ie.$$.fragment,e),_(Pe.$$.fragment,e),yt=!0)},o(e){h(I.$$.fragment,e),h(oe.$$.fragment,e),h(ie.$$.fragment,e),h(ae.$$.fragment,e),h(J.$$.fragment,e),h(re.$$.fragment,e),h(le.$$.fragment,e),h(de.$$.fragment,e),h(ce.$$.fragment,e),h(pe.$$.fragment,e),h(me.$$.fragment,e),h(fe.$$.fragment,e),h(ge.$$.fragment,e),h(ue.$$.fragment,e),h(_e.$$.fragment,e),h(he.$$.fragment,e),h(F.$$.fragment,e),h(be.$$.fragment,e),h(ye.$$.fragment,e),h(ve.$$.fragment,e),h(xe.$$.fragment,e),h(Me.$$.fragment,e),h(we.$$.fragment,e),h(Ce.$$.fragment,e),h(Le.$$.fragment,e),h(Ie.$$.fragment,e),h(Pe.$$.fragment,e),yt=!1},d(e){e&&(a(U),a(P),a(L),a(d),a($),a(lt),a(ee),a(dt),a(te),a(ct),a(ne),a(pt),a(se),a(mt),a(ft),a(c),a(gt),a(ut),a(p),a(_t),a(ht),a(E),a(bt),a(rt)),a(x),b(I,e),b(oe,e),b(ie),b(ae),b(J),b(re),b(le),b(de),b(ce),b(pe),b(me),b(fe),b(ge),b(ue,e),b(_e),b(he),b(F),b(be),b(ye),b(ve),b(xe),b(Me),b(we),b(Ce),b(Le),b(Ie,e),b(Pe)}}}const Ps='{"title":"Latent Consistency Models","local":"latent-consistency-models","sections":[{"title":"LatentConsistencyModelPipeline","local":"diffusers.LatentConsistencyModelPipeline","sections":[],"depth":2},{"title":"LatentConsistencyModelImg2ImgPipeline","local":"diffusers.LatentConsistencyModelImg2ImgPipeline","sections":[],"depth":2},{"title":"StableDiffusionPipelineOutput","local":"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput","sections":[],"depth":2}],"depth":1}';function $s($e){return vs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ns extends xs{constructor(x){super(),Ms(this,x,$s,Is,ys,{})}}export{Ns as component};
