import{s as yo,o as wo,n as bo}from"../chunks/scheduler.182ea377.js";import{S as xo,i as Mo,g as s,s as n,r as f,A as Co,h as i,f as a,c as o,j as x,u as g,x as r,k as M,y as t,a as y,v as u,d as h,t as _,w as b}from"../chunks/index.abf12888.js";import{D as C}from"../chunks/Docstring.93f6f462.js";import{C as vo}from"../chunks/CodeBlock.57fe6e13.js";import{E as _o}from"../chunks/ExampleCodeBlock.658f5cd6.js";import{H as Nt}from"../chunks/Heading.16916d63.js";function Lo($e){let w,D="Examples:",P,L,I;return L=new vo({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=s("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=o(d),g(L.$$.fragment,d)},m(d,$){y(d,w,$),y(d,P,$),u(L,d,$),I=!0},p:bo,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 Io($e){let w,D="Examples:",P,L,I;return L=new vo({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=s("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=o(d),g(L.$$.fragment,d)},m(d,$){y(d,w,$),y(d,P,$),u(L,d,$),I=!0},p:bo,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 Po($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,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,oe,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,se,ft,c,ie,Jt,Te,An="Pipeline for text-to-image generation using a latent consistency model.",St,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,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>',Gt,U,ae,Bt,je,Zn="The call function to the pipeline for generation.",Wt,J,Zt,T,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,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.`,on,W,fe,sn,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,he,ln,Fe,eo="Pipeline for image-to-image generation using a latent consistency model.",dn,He,to=`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,no="The pipeline also inherits the following loading methods:",pn,ze,oo='<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,j,_e,fn,Xe,so="The call function to the pipeline for generation.",gn,F,un,k,be,hn,qe,io='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,ao="The suffixes after the scaling factors represent the stages where they are being applied.",bn,Ye,ro=`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.`,vn,H,ve,yn,Qe,lo="Disables the FreeU mechanism if enabled.",wn,O,ye,xn,Ke,co=`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,z,we,Cn,et,po=`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,xe,In,tt,mo=`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,fo=`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,ot,go="Encodes the prompt into text encoder hidden states.",Dn,Y,Le,Un,st,uo='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,ho="Output class for Stable Diffusion pipelines.",bt,rt,vt;return I=new Nt({props:{title:"Latent Consistency Models",local:"latent-consistency-models",headingTag:"h1"}}),se=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:"ip_adapter_image_embeds",val:": Optional = 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__.ip_adapter_image_embeds",description:`<strong>ip_adapter_image_embeds</strong> (<code>List[torch.FloatTensor]</code>, <em>optional</em>) &#x2014;
Pre-generated image embeddings for IP-Adapter. It should be a list of length same as number of
IP-adapters. Each element should be a tensor of shape <code>(batch_size, num_images, emb_dim)</code>. It should
contain the negative image embedding if <code>do_classifier_free_guidance</code> is set to <code>True</code>. If not
provided, embeddings are computed from the <code>ip_adapter_image</code> input argument.`,name:"ip_adapter_image_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/text2img#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#L616",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/text2img#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/text2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),J=new _o({props:{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.example",$$slots:{default:[Lo]},$$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/pipeline_utils.py#L1914"}}),le=new C({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L1936"}}),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/pipeline_utils.py#L1885"}}),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/pipeline_utils.py#L1892"}}),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/pipeline_utils.py#L1899"}}),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/pipeline_utils.py#L1907"}}),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#L202"}}),ge=new C({props:{name:"get_guidance_scale_embedding",anchor:"diffusers.LatentConsistencyModelPipeline.get_guidance_scale_embedding",parameters:[{name:"w",val:": Tensor"},{name:"embedding_dim",val:": int = 512"},{name:"dtype",val:": dtype = torch.float32"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.get_guidance_scale_embedding.w",description:`<strong>w</strong> (<code>torch.Tensor</code>) &#x2014;
Generate embedding vectors with a specified guidance scale to subsequently enrich timestep embeddings.`,name:"w"},{anchor:"diffusers.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.`,name:"embedding_dim"},{anchor:"diffusers.LatentConsistencyModelPipeline.get_guidance_scale_embedding.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>, defaults to <code>torch.float32</code>) &#x2014;
Data type of the generated embeddings.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L493",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.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:"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"}}),_e=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:"ip_adapter_image_embeds",val:": Optional = 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__.ip_adapter_image_embeds",description:`<strong>ip_adapter_image_embeds</strong> (<code>List[torch.FloatTensor]</code>, <em>optional</em>) &#x2014;
Pre-generated image embeddings for IP-Adapter. It should be a list of length same as number of
IP-adapters. Each element should be a tensor of shape <code>(batch_size, num_images, emb_dim)</code>. It should
contain the negative image embedding if <code>do_classifier_free_guidance</code> is set to <code>True</code>. If not
provided, embeddings are computed from the <code>ip_adapter_image</code> input argument.`,name:"ip_adapter_image_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/text2img#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#L684",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/text2img#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/text2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),F=new _o({props:{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.example",$$slots:{default:[Io]},$$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/pipeline_utils.py#L1914"}}),ve=new C({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L1936"}}),ye=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/pipeline_utils.py#L1885"}}),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/pipeline_utils.py#L1892"}}),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/pipeline_utils.py#L1899"}}),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/pipeline_utils.py#L1907"}}),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#L218"}}),Le=new C({props:{name:"get_guidance_scale_embedding",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.get_guidance_scale_embedding",parameters:[{name:"w",val:": Tensor"},{name:"embedding_dim",val:": int = 512"},{name:"dtype",val:": dtype = torch.float32"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.get_guidance_scale_embedding.w",description:`<strong>w</strong> (<code>torch.Tensor</code>) &#x2014;
Generate embedding vectors with a specified guidance scale to subsequently enrich timestep embeddings.`,name:"w"},{anchor:"diffusers.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.`,name:"embedding_dim"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.get_guidance_scale_embedding.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>, defaults to <code>torch.float32</code>) &#x2014;
Data type of the generated embeddings.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L551",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.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(){w=s("meta"),D=n(),P=s("p"),L=n(),f(I.$$.fragment),d=n(),$=s("p"),$.innerHTML=En,lt=n(),ee=s("p"),ee.textContent=Nn,dt=n(),te=s("p"),te.innerHTML=Jn,ct=n(),ne=s("p"),ne.innerHTML=Sn,pt=n(),oe=s("p"),oe.innerHTML=Vn,mt=n(),f(se.$$.fragment),ft=n(),c=s("div"),f(ie.$$.fragment),Jt=n(),Te=s("p"),Te.textContent=An,St=n(),ke=s("p"),ke.innerHTML=Gn,Vt=n(),De=s("p"),De.textContent=Bn,At=n(),Ue=s("ul"),Ue.innerHTML=Wn,Gt=n(),U=s("div"),f(ae.$$.fragment),Bt=n(),je=s("p"),je.textContent=Zn,Wt=n(),f(J.$$.fragment),Zt=n(),T=s("div"),f(re.$$.fragment),Ft=n(),Ee=s("p"),Ee.innerHTML=Fn,Ht=n(),Ne=s("p"),Ne.textContent=Hn,Ot=n(),Je=s("p"),Je.innerHTML=On,zt=n(),S=s("div"),f(le.$$.fragment),Xt=n(),Se=s("p"),Se.textContent=zn,qt=n(),V=s("div"),f(de.$$.fragment),Rt=n(),Ve=s("p"),Ve.textContent=Xn,Yt=n(),A=s("div"),f(ce.$$.fragment),Qt=n(),Ae=s("p"),Ae.innerHTML=qn,Kt=n(),G=s("div"),f(pe.$$.fragment),en=n(),Ge=s("p"),Ge.textContent=Rn,tn=n(),B=s("div"),f(me.$$.fragment),nn=n(),Be=s("p"),Be.innerHTML=Yn,on=n(),W=s("div"),f(fe.$$.fragment),sn=n(),We=s("p"),We.textContent=Qn,an=n(),Z=s("div"),f(ge.$$.fragment),rn=n(),Ze=s("p"),Ze.innerHTML=Kn,gt=n(),f(ue.$$.fragment),ut=n(),p=s("div"),f(he.$$.fragment),ln=n(),Fe=s("p"),Fe.textContent=eo,dn=n(),He=s("p"),He.innerHTML=to,cn=n(),Oe=s("p"),Oe.textContent=no,pn=n(),ze=s("ul"),ze.innerHTML=oo,mn=n(),j=s("div"),f(_e.$$.fragment),fn=n(),Xe=s("p"),Xe.textContent=so,gn=n(),f(F.$$.fragment),un=n(),k=s("div"),f(be.$$.fragment),hn=n(),qe=s("p"),qe.innerHTML=io,_n=n(),Re=s("p"),Re.textContent=ao,bn=n(),Ye=s("p"),Ye.innerHTML=ro,vn=n(),H=s("div"),f(ve.$$.fragment),yn=n(),Qe=s("p"),Qe.textContent=lo,wn=n(),O=s("div"),f(ye.$$.fragment),xn=n(),Ke=s("p"),Ke.textContent=co,Mn=n(),z=s("div"),f(we.$$.fragment),Cn=n(),et=s("p"),et.innerHTML=po,Ln=n(),X=s("div"),f(xe.$$.fragment),In=n(),tt=s("p"),tt.textContent=mo,Pn=n(),q=s("div"),f(Me.$$.fragment),$n=n(),nt=s("p"),nt.innerHTML=fo,Tn=n(),R=s("div"),f(Ce.$$.fragment),kn=n(),ot=s("p"),ot.textContent=go,Dn=n(),Y=s("div"),f(Le.$$.fragment),Un=n(),st=s("p"),st.innerHTML=uo,ht=n(),f(Ie.$$.fragment),_t=n(),E=s("div"),f(Pe.$$.fragment),jn=n(),it=s("p"),it.textContent=ho,bt=n(),rt=s("p"),this.h()},l(e){const l=Co("svelte-u9bgzb",document.head);w=i(l,"META",{name:!0,content:!0}),l.forEach(a),D=o(e),P=i(e,"P",{}),x(P).forEach(a),L=o(e),g(I.$$.fragment,e),d=o(e),$=i(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-k0b3me"&&($.innerHTML=En),lt=o(e),ee=i(e,"P",{"data-svelte-h":!0}),r(ee)!=="svelte-1kb0761"&&(ee.textContent=Nn),dt=o(e),te=i(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-18qrl49"&&(te.innerHTML=Jn),ct=o(e),ne=i(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-rm0fla"&&(ne.innerHTML=Sn),pt=o(e),oe=i(e,"P",{"data-svelte-h":!0}),r(oe)!=="svelte-1x9hhp2"&&(oe.innerHTML=Vn),mt=o(e),g(se.$$.fragment,e),ft=o(e),c=i(e,"DIV",{class:!0});var m=x(c);g(ie.$$.fragment,m),Jt=o(m),Te=i(m,"P",{"data-svelte-h":!0}),r(Te)!=="svelte-2lu56s"&&(Te.textContent=An),St=o(m),ke=i(m,"P",{"data-svelte-h":!0}),r(ke)!=="svelte-496sm0"&&(ke.innerHTML=Gn),Vt=o(m),De=i(m,"P",{"data-svelte-h":!0}),r(De)!=="svelte-14s6m4u"&&(De.textContent=Bn),At=o(m),Ue=i(m,"UL",{"data-svelte-h":!0}),r(Ue)!=="svelte-1ak2zof"&&(Ue.innerHTML=Wn),Gt=o(m),U=i(m,"DIV",{class:!0});var N=x(U);g(ae.$$.fragment,N),Bt=o(N),je=i(N,"P",{"data-svelte-h":!0}),r(je)!=="svelte-50j04k"&&(je.textContent=Zn),Wt=o(N),g(J.$$.fragment,N),N.forEach(a),Zt=o(m),T=i(m,"DIV",{class:!0});var Q=x(T);g(re.$$.fragment,Q),Ft=o(Q),Ee=i(Q,"P",{"data-svelte-h":!0}),r(Ee)!=="svelte-1f3tmq1"&&(Ee.innerHTML=Fn),Ht=o(Q),Ne=i(Q,"P",{"data-svelte-h":!0}),r(Ne)!=="svelte-xjijlp"&&(Ne.textContent=Hn),Ot=o(Q),Je=i(Q,"P",{"data-svelte-h":!0}),r(Je)!=="svelte-hy0nzs"&&(Je.innerHTML=On),Q.forEach(a),zt=o(m),S=i(m,"DIV",{class:!0});var yt=x(S);g(le.$$.fragment,yt),Xt=o(yt),Se=i(yt,"P",{"data-svelte-h":!0}),r(Se)!=="svelte-psupw6"&&(Se.textContent=zn),yt.forEach(a),qt=o(m),V=i(m,"DIV",{class:!0});var wt=x(V);g(de.$$.fragment,wt),Rt=o(wt),Ve=i(wt,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-14bnrb6"&&(Ve.textContent=Xn),wt.forEach(a),Yt=o(m),A=i(m,"DIV",{class:!0});var xt=x(A);g(ce.$$.fragment,xt),Qt=o(xt),Ae=i(xt,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-1s3c06i"&&(Ae.innerHTML=qn),xt.forEach(a),Kt=o(m),G=i(m,"DIV",{class:!0});var Mt=x(G);g(pe.$$.fragment,Mt),en=o(Mt),Ge=i(Mt,"P",{"data-svelte-h":!0}),r(Ge)!=="svelte-1xwrf7t"&&(Ge.textContent=Rn),Mt.forEach(a),tn=o(m),B=i(m,"DIV",{class:!0});var Ct=x(B);g(me.$$.fragment,Ct),nn=o(Ct),Be=i(Ct,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-pkn4ui"&&(Be.innerHTML=Yn),Ct.forEach(a),on=o(m),W=i(m,"DIV",{class:!0});var Lt=x(W);g(fe.$$.fragment,Lt),sn=o(Lt),We=i(Lt,"P",{"data-svelte-h":!0}),r(We)!=="svelte-16q0ax1"&&(We.textContent=Qn),Lt.forEach(a),an=o(m),Z=i(m,"DIV",{class:!0});var It=x(Z);g(ge.$$.fragment,It),rn=o(It),Ze=i(It,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-vo59ec"&&(Ze.innerHTML=Kn),It.forEach(a),m.forEach(a),gt=o(e),g(ue.$$.fragment,e),ut=o(e),p=i(e,"DIV",{class:!0});var v=x(p);g(he.$$.fragment,v),ln=o(v),Fe=i(v,"P",{"data-svelte-h":!0}),r(Fe)!=="svelte-1ddt9wk"&&(Fe.textContent=eo),dn=o(v),He=i(v,"P",{"data-svelte-h":!0}),r(He)!=="svelte-496sm0"&&(He.innerHTML=to),cn=o(v),Oe=i(v,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-14s6m4u"&&(Oe.textContent=no),pn=o(v),ze=i(v,"UL",{"data-svelte-h":!0}),r(ze)!=="svelte-1ak2zof"&&(ze.innerHTML=oo),mn=o(v),j=i(v,"DIV",{class:!0});var at=x(j);g(_e.$$.fragment,at),fn=o(at),Xe=i(at,"P",{"data-svelte-h":!0}),r(Xe)!=="svelte-50j04k"&&(Xe.textContent=so),gn=o(at),g(F.$$.fragment,at),at.forEach(a),un=o(v),k=i(v,"DIV",{class:!0});var K=x(k);g(be.$$.fragment,K),hn=o(K),qe=i(K,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-1f3tmq1"&&(qe.innerHTML=io),_n=o(K),Re=i(K,"P",{"data-svelte-h":!0}),r(Re)!=="svelte-xjijlp"&&(Re.textContent=ao),bn=o(K),Ye=i(K,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-hy0nzs"&&(Ye.innerHTML=ro),K.forEach(a),vn=o(v),H=i(v,"DIV",{class:!0});var Pt=x(H);g(ve.$$.fragment,Pt),yn=o(Pt),Qe=i(Pt,"P",{"data-svelte-h":!0}),r(Qe)!=="svelte-psupw6"&&(Qe.textContent=lo),Pt.forEach(a),wn=o(v),O=i(v,"DIV",{class:!0});var $t=x(O);g(ye.$$.fragment,$t),xn=o($t),Ke=i($t,"P",{"data-svelte-h":!0}),r(Ke)!=="svelte-14bnrb6"&&(Ke.textContent=co),$t.forEach(a),Mn=o(v),z=i(v,"DIV",{class:!0});var Tt=x(z);g(we.$$.fragment,Tt),Cn=o(Tt),et=i(Tt,"P",{"data-svelte-h":!0}),r(et)!=="svelte-1s3c06i"&&(et.innerHTML=po),Tt.forEach(a),Ln=o(v),X=i(v,"DIV",{class:!0});var kt=x(X);g(xe.$$.fragment,kt),In=o(kt),tt=i(kt,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-1xwrf7t"&&(tt.textContent=mo),kt.forEach(a),Pn=o(v),q=i(v,"DIV",{class:!0});var Dt=x(q);g(Me.$$.fragment,Dt),$n=o(Dt),nt=i(Dt,"P",{"data-svelte-h":!0}),r(nt)!=="svelte-pkn4ui"&&(nt.innerHTML=fo),Dt.forEach(a),Tn=o(v),R=i(v,"DIV",{class:!0});var Ut=x(R);g(Ce.$$.fragment,Ut),kn=o(Ut),ot=i(Ut,"P",{"data-svelte-h":!0}),r(ot)!=="svelte-16q0ax1"&&(ot.textContent=go),Ut.forEach(a),Dn=o(v),Y=i(v,"DIV",{class:!0});var jt=x(Y);g(Le.$$.fragment,jt),Un=o(jt),st=i(jt,"P",{"data-svelte-h":!0}),r(st)!=="svelte-vo59ec"&&(st.innerHTML=uo),jt.forEach(a),v.forEach(a),ht=o(e),g(Ie.$$.fragment,e),_t=o(e),E=i(e,"DIV",{class:!0});var Et=x(E);g(Pe.$$.fragment,Et),jn=o(Et),it=i(Et,"P",{"data-svelte-h":!0}),r(it)!=="svelte-1qpjiuf"&&(it.textContent=ho),Et.forEach(a),bt=o(e),rt=i(e,"P",{}),x(rt).forEach(a),this.h()},h(){M(w,"name","hf:doc:metadata"),M(w,"content",$o),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(S,"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(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(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(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(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(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(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),y(e,D,l),y(e,P,l),y(e,L,l),u(I,e,l),y(e,d,l),y(e,$,l),y(e,lt,l),y(e,ee,l),y(e,dt,l),y(e,te,l),y(e,ct,l),y(e,ne,l),y(e,pt,l),y(e,oe,l),y(e,mt,l),u(se,e,l),y(e,ft,l),y(e,c,l),u(ie,c,null),t(c,Jt),t(c,Te),t(c,St),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,Wt),u(J,U,null),t(c,Zt),t(c,T),u(re,T,null),t(T,Ft),t(T,Ee),t(T,Ht),t(T,Ne),t(T,Ot),t(T,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,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,on),t(c,W),u(fe,W,null),t(W,sn),t(W,We),t(c,an),t(c,Z),u(ge,Z,null),t(Z,rn),t(Z,Ze),y(e,gt,l),u(ue,e,l),y(e,ut,l),y(e,p,l),u(he,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,j),u(_e,j,null),t(j,fn),t(j,Xe),t(j,gn),u(F,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,vn),t(p,H),u(ve,H,null),t(H,yn),t(H,Qe),t(p,wn),t(p,O),u(ye,O,null),t(O,xn),t(O,Ke),t(p,Mn),t(p,z),u(we,z,null),t(z,Cn),t(z,et),t(p,Ln),t(p,X),u(xe,X,null),t(X,In),t(X,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,ot),t(p,Dn),t(p,Y),u(Le,Y,null),t(Y,Un),t(Y,st),y(e,ht,l),u(Ie,e,l),y(e,_t,l),y(e,E,l),u(Pe,E,null),t(E,jn),t(E,it),y(e,bt,l),y(e,rt,l),vt=!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){vt||(h(I.$$.fragment,e),h(se.$$.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(he.$$.fragment,e),h(_e.$$.fragment,e),h(F.$$.fragment,e),h(be.$$.fragment,e),h(ve.$$.fragment,e),h(ye.$$.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),vt=!0)},o(e){_(I.$$.fragment,e),_(se.$$.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),_(he.$$.fragment,e),_(_e.$$.fragment,e),_(F.$$.fragment,e),_(be.$$.fragment,e),_(ve.$$.fragment,e),_(ye.$$.fragment,e),_(we.$$.fragment,e),_(xe.$$.fragment,e),_(Me.$$.fragment,e),_(Ce.$$.fragment,e),_(Le.$$.fragment,e),_(Ie.$$.fragment,e),_(Pe.$$.fragment,e),vt=!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(oe),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(se,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(he),b(_e),b(F),b(be),b(ve),b(ye),b(we),b(xe),b(Me),b(Ce),b(Le),b(Ie,e),b(Pe)}}}const $o='{"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 To($e){return wo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Jo extends xo{constructor(w){super(),Mo(this,w,To,Po,yo,{})}}export{Jo as component};
