import{s as ys,o as vs,n as _s}from"../chunks/scheduler.182ea377.js";import{S as ws,i as xs,g as o,s as n,r as f,A as Ms,h as i,f as a,c as s,j as x,u as g,x as r,k as M,y as t,a as v,v as u,d as h,t as _,w as b}from"../chunks/index.1ea56653.js";import{H as Nt,g as Cs}from"../chunks/Heading.71ac6e9f.js";import{D as C}from"../chunks/Docstring.59aaf0cd.js";import{C as bs}from"../chunks/CodeBlock.82c2494b.js";import{E as hs}from"../chunks/ExampleCodeBlock.95ae1d71.js";function Ls($e){let w,D="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(){w=o("p"),w.textContent=D,P=n(),f(L.$$.fragment)},l(d){w=i(d,"P",{"data-svelte-h":!0}),r(w)!=="svelte-kvfsh7"&&(w.textContent=D),P=s(d),g(L.$$.fragment,d)},m(d,$){v(d,w,$),v(d,P,$),u(L,d,$),I=!0},p:_s,i(d){I||(h(L.$$.fragment,d),I=!0)},o(d){_(L.$$.fragment,d),I=!1},d(d){d&&(a(w),a(P)),b(L,d)}}}function Is($e){let w,D="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(){w=o("p"),w.textContent=D,P=n(),f(L.$$.fragment)},l(d){w=i(d,"P",{"data-svelte-h":!0}),r(w)!=="svelte-kvfsh7"&&(w.textContent=D),P=s(d),g(L.$$.fragment,d)},m(d,$){v(d,w,$),v(d,P,$),u(L,d,$),I=!0},p:_s,i(d){I||(h(L.$$.fragment,d),I=!0)},o(d){_(L.$$.fragment,d),I=!1},d(d){d&&(a(w),a(P)),b(L,d)}}}function Ps($e){let w,D,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,Sn='<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,Jn='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,St,Te,An="Pipeline for text-to-image generation using a latent consistency model.",Jt,ke,Gn=`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,De,Bn="The pipeline also inherits the following loading methods:",At,Ue,Fn='<li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.load_textual_inversion">load_textual_inversion()</a> for loading textual inversion embeddings</li> <li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline.from_single_file">from_single_file()</a> for loading <code>.ckpt</code> files</li>',Gt,U,ae,Bt,je,Wn="The call function to the pipeline for generation.",Ft,S,Wt,T,re,Zt,Ee,Zn='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.",zt,Se,zn=`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.`,Xt,J,le,Ot,Je,Xn="Disables the FreeU mechanism if enabled.",qt,V,de,Rt,Ve,On=`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,G,pe,en,Ge,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,B,me,nn,Be,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,F,fe,on,Fe,Qn="Encodes the prompt into text encoder hidden states.",an,W,ge,rn,We,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,he,ln,Ze,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,ze,ns="The pipeline also inherits the following loading methods:",pn,Xe,ss='<li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.load_textual_inversion">load_textual_inversion()</a> for loading textual inversion embeddings</li> <li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline.from_single_file">from_single_file()</a> for loading <code>.ckpt</code> files</li>',mn,j,_e,fn,Oe,os="The call function to the pipeline for generation.",gn,Z,un,k,be,hn,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>.',_n,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.",wn,z,ve,xn,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.`,Mn,X,we,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,O,xe,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,Me,$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.`,Tn,R,Ce,kn,st,fs="Encodes the prompt into text encoder hidden states.",Dn,Y,Le,Un,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>',ht,Ie,_t,E,Pe,jn,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:"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#L64"}}),ae=new C({props:{name:"__call__",anchor:"diffusers.LatentConsistencyModelPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 4"},{name:"original_inference_steps",val:": int = None"},{name:"guidance_scale",val:": float = 8.5"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"},{name:"callback_on_step_end",val:": typing.Union[typing.Callable[[int, int, typing.Dict], NoneType], NoneType] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['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__.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.`,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/image_variation#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#L523",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/image_variation#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/image_variation#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),S=new hs({props:{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.example",$$slots:{default:[Ls]},$$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#L181"}}),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#L204"}}),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#L148"}}),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#L156"}}),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#L164"}}),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#L173"}}),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:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"},{name:"clip_skip",val:": typing.Optional[int] = 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#L209"}}),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#L423",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"}}),he=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:"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#L82"}}),_e=new C({props:{name:"__call__",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.FloatTensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.FloatTensor]] = None"},{name:"num_inference_steps",val:": int = 4"},{name:"strength",val:": float = 0.8"},{name:"original_inference_steps",val:": int = None"},{name:"guidance_scale",val:": float = 8.5"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"},{name:"callback_on_step_end",val:": typing.Union[typing.Callable[[int, int, typing.Dict], NoneType], NoneType] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['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__.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.`,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/image_variation#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#L585",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/image_variation#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/image_variation#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),Z=new hs({props:{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.example",$$slots:{default:[Is]},$$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#L193"}}),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#L216"}}),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#L160"}}),we=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#L168"}}),xe=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#L176"}}),Me=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#L185"}}),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:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"},{name:"clip_skip",val:": typing.Optional[int] = 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#L221"}}),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#L477",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:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"},{name:"nsfw_content_detected",val:": typing.Optional[typing.List[bool]]"}],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#L11"}}),{c(){w=o("meta"),D=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=Sn,ct=n(),ne=o("p"),ne.innerHTML=Jn,pt=n(),se=o("p"),se.innerHTML=Vn,mt=n(),f(oe.$$.fragment),ft=n(),c=o("div"),f(ie.$$.fragment),St=n(),Te=o("p"),Te.textContent=An,Jt=n(),ke=o("p"),ke.innerHTML=Gn,Vt=n(),De=o("p"),De.textContent=Bn,At=n(),Ue=o("ul"),Ue.innerHTML=Fn,Gt=n(),U=o("div"),f(ae.$$.fragment),Bt=n(),je=o("p"),je.textContent=Wn,Ft=n(),f(S.$$.fragment),Wt=n(),T=o("div"),f(re.$$.fragment),Zt=n(),Ee=o("p"),Ee.innerHTML=Zn,Ht=n(),Ne=o("p"),Ne.textContent=Hn,zt=n(),Se=o("p"),Se.innerHTML=zn,Xt=n(),J=o("div"),f(le.$$.fragment),Ot=n(),Je=o("p"),Je.textContent=Xn,qt=n(),V=o("div"),f(de.$$.fragment),Rt=n(),Ve=o("p"),Ve.textContent=On,Yt=n(),A=o("div"),f(ce.$$.fragment),Qt=n(),Ae=o("p"),Ae.innerHTML=qn,Kt=n(),G=o("div"),f(pe.$$.fragment),en=n(),Ge=o("p"),Ge.textContent=Rn,tn=n(),B=o("div"),f(me.$$.fragment),nn=n(),Be=o("p"),Be.innerHTML=Yn,sn=n(),F=o("div"),f(fe.$$.fragment),on=n(),Fe=o("p"),Fe.textContent=Qn,an=n(),W=o("div"),f(ge.$$.fragment),rn=n(),We=o("p"),We.innerHTML=Kn,gt=n(),f(ue.$$.fragment),ut=n(),p=o("div"),f(he.$$.fragment),ln=n(),Ze=o("p"),Ze.textContent=es,dn=n(),He=o("p"),He.innerHTML=ts,cn=n(),ze=o("p"),ze.textContent=ns,pn=n(),Xe=o("ul"),Xe.innerHTML=ss,mn=n(),j=o("div"),f(_e.$$.fragment),fn=n(),Oe=o("p"),Oe.textContent=os,gn=n(),f(Z.$$.fragment),un=n(),k=o("div"),f(be.$$.fragment),hn=n(),qe=o("p"),qe.innerHTML=is,_n=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,wn=n(),z=o("div"),f(ve.$$.fragment),xn=n(),Ke=o("p"),Ke.textContent=ds,Mn=n(),X=o("div"),f(we.$$.fragment),Cn=n(),et=o("p"),et.innerHTML=cs,Ln=n(),O=o("div"),f(xe.$$.fragment),In=n(),tt=o("p"),tt.textContent=ps,Pn=n(),q=o("div"),f(Me.$$.fragment),$n=n(),nt=o("p"),nt.innerHTML=ms,Tn=n(),R=o("div"),f(Ce.$$.fragment),kn=n(),st=o("p"),st.textContent=fs,Dn=n(),Y=o("div"),f(Le.$$.fragment),Un=n(),ot=o("p"),ot.innerHTML=gs,ht=n(),f(Ie.$$.fragment),_t=n(),E=o("div"),f(Pe.$$.fragment),jn=n(),it=o("p"),it.textContent=us,bt=n(),rt=o("p"),this.h()},l(e){const l=Ms("svelte-u9bgzb",document.head);w=i(l,"META",{name:!0,content:!0}),l.forEach(a),D=s(e),P=i(e,"P",{}),x(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=Sn),ct=s(e),ne=i(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-rm0fla"&&(ne.innerHTML=Jn),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=x(c);g(ie.$$.fragment,m),St=s(m),Te=i(m,"P",{"data-svelte-h":!0}),r(Te)!=="svelte-2lu56s"&&(Te.textContent=An),Jt=s(m),ke=i(m,"P",{"data-svelte-h":!0}),r(ke)!=="svelte-496sm0"&&(ke.innerHTML=Gn),Vt=s(m),De=i(m,"P",{"data-svelte-h":!0}),r(De)!=="svelte-14s6m4u"&&(De.textContent=Bn),At=s(m),Ue=i(m,"UL",{"data-svelte-h":!0}),r(Ue)!=="svelte-ebpg7s"&&(Ue.innerHTML=Fn),Gt=s(m),U=i(m,"DIV",{class:!0});var N=x(U);g(ae.$$.fragment,N),Bt=s(N),je=i(N,"P",{"data-svelte-h":!0}),r(je)!=="svelte-50j04k"&&(je.textContent=Wn),Ft=s(N),g(S.$$.fragment,N),N.forEach(a),Wt=s(m),T=i(m,"DIV",{class:!0});var Q=x(T);g(re.$$.fragment,Q),Zt=s(Q),Ee=i(Q,"P",{"data-svelte-h":!0}),r(Ee)!=="svelte-1f3tmq1"&&(Ee.innerHTML=Zn),Ht=s(Q),Ne=i(Q,"P",{"data-svelte-h":!0}),r(Ne)!=="svelte-xjijlp"&&(Ne.textContent=Hn),zt=s(Q),Se=i(Q,"P",{"data-svelte-h":!0}),r(Se)!=="svelte-hy0nzs"&&(Se.innerHTML=zn),Q.forEach(a),Xt=s(m),J=i(m,"DIV",{class:!0});var vt=x(J);g(le.$$.fragment,vt),Ot=s(vt),Je=i(vt,"P",{"data-svelte-h":!0}),r(Je)!=="svelte-psupw6"&&(Je.textContent=Xn),vt.forEach(a),qt=s(m),V=i(m,"DIV",{class:!0});var wt=x(V);g(de.$$.fragment,wt),Rt=s(wt),Ve=i(wt,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-14bnrb6"&&(Ve.textContent=On),wt.forEach(a),Yt=s(m),A=i(m,"DIV",{class:!0});var xt=x(A);g(ce.$$.fragment,xt),Qt=s(xt),Ae=i(xt,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-1s3c06i"&&(Ae.innerHTML=qn),xt.forEach(a),Kt=s(m),G=i(m,"DIV",{class:!0});var Mt=x(G);g(pe.$$.fragment,Mt),en=s(Mt),Ge=i(Mt,"P",{"data-svelte-h":!0}),r(Ge)!=="svelte-1xwrf7t"&&(Ge.textContent=Rn),Mt.forEach(a),tn=s(m),B=i(m,"DIV",{class:!0});var Ct=x(B);g(me.$$.fragment,Ct),nn=s(Ct),Be=i(Ct,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-pkn4ui"&&(Be.innerHTML=Yn),Ct.forEach(a),sn=s(m),F=i(m,"DIV",{class:!0});var Lt=x(F);g(fe.$$.fragment,Lt),on=s(Lt),Fe=i(Lt,"P",{"data-svelte-h":!0}),r(Fe)!=="svelte-16q0ax1"&&(Fe.textContent=Qn),Lt.forEach(a),an=s(m),W=i(m,"DIV",{class:!0});var It=x(W);g(ge.$$.fragment,It),rn=s(It),We=i(It,"P",{"data-svelte-h":!0}),r(We)!=="svelte-vo59ec"&&(We.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=x(p);g(he.$$.fragment,y),ln=s(y),Ze=i(y,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-1ddt9wk"&&(Ze.textContent=es),dn=s(y),He=i(y,"P",{"data-svelte-h":!0}),r(He)!=="svelte-496sm0"&&(He.innerHTML=ts),cn=s(y),ze=i(y,"P",{"data-svelte-h":!0}),r(ze)!=="svelte-14s6m4u"&&(ze.textContent=ns),pn=s(y),Xe=i(y,"UL",{"data-svelte-h":!0}),r(Xe)!=="svelte-ebpg7s"&&(Xe.innerHTML=ss),mn=s(y),j=i(y,"DIV",{class:!0});var at=x(j);g(_e.$$.fragment,at),fn=s(at),Oe=i(at,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-50j04k"&&(Oe.textContent=os),gn=s(at),g(Z.$$.fragment,at),at.forEach(a),un=s(y),k=i(y,"DIV",{class:!0});var K=x(k);g(be.$$.fragment,K),hn=s(K),qe=i(K,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-1f3tmq1"&&(qe.innerHTML=is),_n=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=x(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),wn=s(y),z=i(y,"DIV",{class:!0});var $t=x(z);g(ve.$$.fragment,$t),xn=s($t),Ke=i($t,"P",{"data-svelte-h":!0}),r(Ke)!=="svelte-14bnrb6"&&(Ke.textContent=ds),$t.forEach(a),Mn=s(y),X=i(y,"DIV",{class:!0});var Tt=x(X);g(we.$$.fragment,Tt),Cn=s(Tt),et=i(Tt,"P",{"data-svelte-h":!0}),r(et)!=="svelte-1s3c06i"&&(et.innerHTML=cs),Tt.forEach(a),Ln=s(y),O=i(y,"DIV",{class:!0});var kt=x(O);g(xe.$$.fragment,kt),In=s(kt),tt=i(kt,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-1xwrf7t"&&(tt.textContent=ps),kt.forEach(a),Pn=s(y),q=i(y,"DIV",{class:!0});var Dt=x(q);g(Me.$$.fragment,Dt),$n=s(Dt),nt=i(Dt,"P",{"data-svelte-h":!0}),r(nt)!=="svelte-pkn4ui"&&(nt.innerHTML=ms),Dt.forEach(a),Tn=s(y),R=i(y,"DIV",{class:!0});var Ut=x(R);g(Ce.$$.fragment,Ut),kn=s(Ut),st=i(Ut,"P",{"data-svelte-h":!0}),r(st)!=="svelte-16q0ax1"&&(st.textContent=fs),Ut.forEach(a),Dn=s(y),Y=i(y,"DIV",{class:!0});var jt=x(Y);g(Le.$$.fragment,jt),Un=s(jt),ot=i(jt,"P",{"data-svelte-h":!0}),r(ot)!=="svelte-vo59ec"&&(ot.innerHTML=gs),jt.forEach(a),y.forEach(a),ht=s(e),g(Ie.$$.fragment,e),_t=s(e),E=i(e,"DIV",{class:!0});var Et=x(E);g(Pe.$$.fragment,Et),jn=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",{}),x(rt).forEach(a),this.h()},h(){M(w,"name","hf:doc:metadata"),M(w,"content",$s),M(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(p,"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,"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,w),v(e,D,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,St),t(c,Te),t(c,Jt),t(c,ke),t(c,Vt),t(c,De),t(c,At),t(c,Ue),t(c,Gt),t(c,U),u(ae,U,null),t(U,Bt),t(U,je),t(U,Ft),u(S,U,null),t(c,Wt),t(c,T),u(re,T,null),t(T,Zt),t(T,Ee),t(T,Ht),t(T,Ne),t(T,zt),t(T,Se),t(c,Xt),t(c,J),u(le,J,null),t(J,Ot),t(J,Je),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,G),u(pe,G,null),t(G,en),t(G,Ge),t(c,tn),t(c,B),u(me,B,null),t(B,nn),t(B,Be),t(c,sn),t(c,F),u(fe,F,null),t(F,on),t(F,Fe),t(c,an),t(c,W),u(ge,W,null),t(W,rn),t(W,We),v(e,gt,l),u(ue,e,l),v(e,ut,l),v(e,p,l),u(he,p,null),t(p,ln),t(p,Ze),t(p,dn),t(p,He),t(p,cn),t(p,ze),t(p,pn),t(p,Xe),t(p,mn),t(p,j),u(_e,j,null),t(j,fn),t(j,Oe),t(j,gn),u(Z,j,null),t(p,un),t(p,k),u(be,k,null),t(k,hn),t(k,qe),t(k,_n),t(k,Re),t(k,bn),t(k,Ye),t(p,yn),t(p,H),u(ye,H,null),t(H,vn),t(H,Qe),t(p,wn),t(p,z),u(ve,z,null),t(z,xn),t(z,Ke),t(p,Mn),t(p,X),u(we,X,null),t(X,Cn),t(X,et),t(p,Ln),t(p,O),u(xe,O,null),t(O,In),t(O,tt),t(p,Pn),t(p,q),u(Me,q,null),t(q,$n),t(q,nt),t(p,Tn),t(p,R),u(Ce,R,null),t(R,kn),t(R,st),t(p,Dn),t(p,Y),u(Le,Y,null),t(Y,Un),t(Y,ot),v(e,ht,l),u(Ie,e,l),v(e,_t,l),v(e,E,l),u(Pe,E,null),t(E,jn),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}),S.$set(m);const N={};l&2&&(N.$$scope={dirty:l,ctx:e}),Z.$set(N)},i(e){yt||(h(I.$$.fragment,e),h(oe.$$.fragment,e),h(ie.$$.fragment,e),h(ae.$$.fragment,e),h(S.$$.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(he.$$.fragment,e),h(_e.$$.fragment,e),h(Z.$$.fragment,e),h(be.$$.fragment,e),h(ye.$$.fragment,e),h(ve.$$.fragment,e),h(we.$$.fragment,e),h(xe.$$.fragment,e),h(Me.$$.fragment,e),h(Ce.$$.fragment,e),h(Le.$$.fragment,e),h(Ie.$$.fragment,e),h(Pe.$$.fragment,e),yt=!0)},o(e){_(I.$$.fragment,e),_(oe.$$.fragment,e),_(ie.$$.fragment,e),_(ae.$$.fragment,e),_(S.$$.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),_(he.$$.fragment,e),_(_e.$$.fragment,e),_(Z.$$.fragment,e),_(be.$$.fragment,e),_(ye.$$.fragment,e),_(ve.$$.fragment,e),_(we.$$.fragment,e),_(xe.$$.fragment,e),_(Me.$$.fragment,e),_(Ce.$$.fragment,e),_(Le.$$.fragment,e),_(Ie.$$.fragment,e),_(Pe.$$.fragment,e),yt=!1},d(e){e&&(a(D),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(ht),a(_t),a(E),a(bt),a(rt)),a(w),b(I,e),b(oe,e),b(ie),b(ae),b(S),b(re),b(le),b(de),b(ce),b(pe),b(me),b(fe),b(ge),b(ue,e),b(he),b(_e),b(Z),b(be),b(ye),b(ve),b(we),b(xe),b(Me),b(Ce),b(Le),b(Ie,e),b(Pe)}}}const $s='{"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 Ts($e){return vs(()=>{new URLSearchParams(window.location.search).get("fw"),window.hfDocGoto=Cs}),[]}class Ss extends ws{constructor(w){super(),xs(this,w,Ts,Ps,ys,{})}}export{Ss as component};
