import{s as ws,o as Ms,n as vs}from"../chunks/scheduler.8c3d61f6.js";import{S as xs,i as Cs,g as o,s as n,r as f,A as Ls,h as i,f as a,c as s,j as M,u as g,x as l,k as x,y as t,a as v,v as u,d as h,t as _,w as b}from"../chunks/index.da70eac4.js";import{D as C}from"../chunks/Docstring.ee4b6913.js";import{C as ys}from"../chunks/CodeBlock.00a903b3.js";import{E as bs}from"../chunks/ExampleCodeBlock.f7bd2c1f.js";import{H as Jt,E as Is}from"../chunks/EditOnGithub.1e64e623.js";function Ps(Te){let w,D="Examples:",P,L,I;return L=new ys({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}),l(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:vs,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 $s(Te){let w,D="Examples:",P,L,I;return L=new ys({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}),l(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:vs,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 Ts(Te){let w,D,P,L,I,d,$,Sn='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.',dt,ee,Jn="The abstract of the paper is as follows:",ct,te,Vn='<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>',pt,ne,An='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>.',mt,se,Gn='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>.',ft,oe,gt,c,ie,Vt,ke,Bn="Pipeline for text-to-image generation using a latent consistency model.",At,De,Wn=`This model inherits from <a href="/docs/diffusers/v0.30.2/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.).`,Gt,Ue,Zn="The pipeline also inherits the following loading methods:",Bt,je,Hn='<li><a href="/docs/diffusers/v0.30.2/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/v0.30.2/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/v0.30.2/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/v0.30.2/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/v0.30.2/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',Wt,U,ae,Zt,Ee,On="The call function to the pipeline for generation.",Ht,S,Ot,T,re,zt,Ne,zn='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',Xt,Se,Xn="The suffixes after the scaling factors represent the stages where they are being applied.",qt,Je,qn=`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.`,Ft,J,le,Rt,Ve,Fn="Disables the FreeU mechanism if enabled.",Yt,V,de,Qt,Ae,Rn=`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.`,Kt,A,ce,en,Ge,Yn=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,tn,G,pe,nn,Be,Qn=`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.`,sn,B,me,on,We,Kn=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,an,W,fe,rn,Ze,es="Encodes the prompt into text encoder hidden states.",ln,Z,ge,dn,He,ts='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>',ut,ue,ht,p,he,cn,Oe,ns="Pipeline for image-to-image generation using a latent consistency model.",pn,ze,ss=`This model inherits from <a href="/docs/diffusers/v0.30.2/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.).`,mn,Xe,os="The pipeline also inherits the following loading methods:",fn,qe,is='<li><a href="/docs/diffusers/v0.30.2/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/v0.30.2/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/v0.30.2/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/v0.30.2/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/v0.30.2/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',gn,j,_e,un,Fe,as="The call function to the pipeline for generation.",hn,H,_n,k,be,bn,Re,rs='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',vn,Ye,ls="The suffixes after the scaling factors represent the stages where they are being applied.",yn,Qe,ds=`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.`,wn,O,ve,Mn,Ke,cs="Disables the FreeU mechanism if enabled.",xn,z,ye,Cn,et,ps=`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.`,Ln,X,we,In,tt,ms=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Pn,q,Me,$n,nt,fs=`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,F,xe,kn,st,gs=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,Dn,R,Ce,Un,ot,us="Encodes the prompt into text encoder hidden states.",jn,Y,Le,En,it,hs='See <a href="https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298" rel="nofollow">https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298</a>',_t,Ie,bt,E,Pe,Nn,at,_s="Output class for Stable Diffusion pipelines.",vt,$e,yt,lt,wt;return I=new Jt({props:{title:"Latent Consistency Models",local:"latent-consistency-models",headingTag:"h1"}}),oe=new Jt({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/v0.30.2/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/v4.44.2/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/v4.44.2/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/v0.30.2/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/v0.30.2/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/v0.30.2/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/v4.44.2/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/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L124"}}),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.Tensor</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.Tensor</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.Tensor]</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/v0.30.2/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L631",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/diffusers/v0.30.2/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),S=new bs({props:{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.example",$$slots:{default:[Ps]},$$scope:{ctx:Te}}}),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/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1905"}}),le=new C({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1927"}}),de=new C({props:{name:"enable_vae_slicing",anchor:"diffusers.LatentConsistencyModelPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1876"}}),ce=new C({props:{name:"disable_vae_slicing",anchor:"diffusers.LatentConsistencyModelPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1883"}}),pe=new C({props:{name:"enable_vae_tiling",anchor:"diffusers.LatentConsistencyModelPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1890"}}),me=new C({props:{name:"disable_vae_tiling",anchor:"diffusers.LatentConsistencyModelPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1898"}}),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.Tensor</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.Tensor</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/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L217"}}),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/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L508",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.Tensor</code></p>
`}}),ue=new Jt({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/v0.30.2/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/v4.44.2/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/v4.44.2/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/v0.30.2/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/v0.30.2/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/v0.30.2/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/v4.44.2/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/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L146"}}),_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.Tensor</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.Tensor</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.Tensor]</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/v0.30.2/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L701",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/diffusers/v0.30.2/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),H=new bs({props:{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.example",$$slots:{default:[$s]},$$scope:{ctx:Te}}}),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/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1905"}}),ve=new C({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1927"}}),ye=new C({props:{name:"enable_vae_slicing",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1876"}}),we=new C({props:{name:"disable_vae_slicing",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1883"}}),Me=new C({props:{name:"enable_vae_tiling",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1890"}}),xe=new C({props:{name:"disable_vae_tiling",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.30.2/src/diffusers/pipelines/pipeline_utils.py#L1898"}}),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.Tensor</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.Tensor</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/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L233"}}),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/v0.30.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L568",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.Tensor</code></p>
`}}),Ie=new Jt({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/v0.30.2/src/diffusers/pipelines/stable_diffusion/pipeline_output.py#L10"}}),$e=new Is({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/latent_consistency_models.md"}}),{c(){w=o("meta"),D=n(),P=o("p"),L=n(),f(I.$$.fragment),d=n(),$=o("p"),$.innerHTML=Sn,dt=n(),ee=o("p"),ee.textContent=Jn,ct=n(),te=o("p"),te.innerHTML=Vn,pt=n(),ne=o("p"),ne.innerHTML=An,mt=n(),se=o("p"),se.innerHTML=Gn,ft=n(),f(oe.$$.fragment),gt=n(),c=o("div"),f(ie.$$.fragment),Vt=n(),ke=o("p"),ke.textContent=Bn,At=n(),De=o("p"),De.innerHTML=Wn,Gt=n(),Ue=o("p"),Ue.textContent=Zn,Bt=n(),je=o("ul"),je.innerHTML=Hn,Wt=n(),U=o("div"),f(ae.$$.fragment),Zt=n(),Ee=o("p"),Ee.textContent=On,Ht=n(),f(S.$$.fragment),Ot=n(),T=o("div"),f(re.$$.fragment),zt=n(),Ne=o("p"),Ne.innerHTML=zn,Xt=n(),Se=o("p"),Se.textContent=Xn,qt=n(),Je=o("p"),Je.innerHTML=qn,Ft=n(),J=o("div"),f(le.$$.fragment),Rt=n(),Ve=o("p"),Ve.textContent=Fn,Yt=n(),V=o("div"),f(de.$$.fragment),Qt=n(),Ae=o("p"),Ae.textContent=Rn,Kt=n(),A=o("div"),f(ce.$$.fragment),en=n(),Ge=o("p"),Ge.innerHTML=Yn,tn=n(),G=o("div"),f(pe.$$.fragment),nn=n(),Be=o("p"),Be.textContent=Qn,sn=n(),B=o("div"),f(me.$$.fragment),on=n(),We=o("p"),We.innerHTML=Kn,an=n(),W=o("div"),f(fe.$$.fragment),rn=n(),Ze=o("p"),Ze.textContent=es,ln=n(),Z=o("div"),f(ge.$$.fragment),dn=n(),He=o("p"),He.innerHTML=ts,ut=n(),f(ue.$$.fragment),ht=n(),p=o("div"),f(he.$$.fragment),cn=n(),Oe=o("p"),Oe.textContent=ns,pn=n(),ze=o("p"),ze.innerHTML=ss,mn=n(),Xe=o("p"),Xe.textContent=os,fn=n(),qe=o("ul"),qe.innerHTML=is,gn=n(),j=o("div"),f(_e.$$.fragment),un=n(),Fe=o("p"),Fe.textContent=as,hn=n(),f(H.$$.fragment),_n=n(),k=o("div"),f(be.$$.fragment),bn=n(),Re=o("p"),Re.innerHTML=rs,vn=n(),Ye=o("p"),Ye.textContent=ls,yn=n(),Qe=o("p"),Qe.innerHTML=ds,wn=n(),O=o("div"),f(ve.$$.fragment),Mn=n(),Ke=o("p"),Ke.textContent=cs,xn=n(),z=o("div"),f(ye.$$.fragment),Cn=n(),et=o("p"),et.textContent=ps,Ln=n(),X=o("div"),f(we.$$.fragment),In=n(),tt=o("p"),tt.innerHTML=ms,Pn=n(),q=o("div"),f(Me.$$.fragment),$n=n(),nt=o("p"),nt.textContent=fs,Tn=n(),F=o("div"),f(xe.$$.fragment),kn=n(),st=o("p"),st.innerHTML=gs,Dn=n(),R=o("div"),f(Ce.$$.fragment),Un=n(),ot=o("p"),ot.textContent=us,jn=n(),Y=o("div"),f(Le.$$.fragment),En=n(),it=o("p"),it.innerHTML=hs,_t=n(),f(Ie.$$.fragment),bt=n(),E=o("div"),f(Pe.$$.fragment),Nn=n(),at=o("p"),at.textContent=_s,vt=n(),f($e.$$.fragment),yt=n(),lt=o("p"),this.h()},l(e){const r=Ls("svelte-u9bgzb",document.head);w=i(r,"META",{name:!0,content:!0}),r.forEach(a),D=s(e),P=i(e,"P",{}),M(P).forEach(a),L=s(e),g(I.$$.fragment,e),d=s(e),$=i(e,"P",{"data-svelte-h":!0}),l($)!=="svelte-k0b3me"&&($.innerHTML=Sn),dt=s(e),ee=i(e,"P",{"data-svelte-h":!0}),l(ee)!=="svelte-1kb0761"&&(ee.textContent=Jn),ct=s(e),te=i(e,"P",{"data-svelte-h":!0}),l(te)!=="svelte-18qrl49"&&(te.innerHTML=Vn),pt=s(e),ne=i(e,"P",{"data-svelte-h":!0}),l(ne)!=="svelte-rm0fla"&&(ne.innerHTML=An),mt=s(e),se=i(e,"P",{"data-svelte-h":!0}),l(se)!=="svelte-1x9hhp2"&&(se.innerHTML=Gn),ft=s(e),g(oe.$$.fragment,e),gt=s(e),c=i(e,"DIV",{class:!0});var m=M(c);g(ie.$$.fragment,m),Vt=s(m),ke=i(m,"P",{"data-svelte-h":!0}),l(ke)!=="svelte-2lu56s"&&(ke.textContent=Bn),At=s(m),De=i(m,"P",{"data-svelte-h":!0}),l(De)!=="svelte-120gv5s"&&(De.innerHTML=Wn),Gt=s(m),Ue=i(m,"P",{"data-svelte-h":!0}),l(Ue)!=="svelte-14s6m4u"&&(Ue.textContent=Zn),Bt=s(m),je=i(m,"UL",{"data-svelte-h":!0}),l(je)!=="svelte-17uxs59"&&(je.innerHTML=Hn),Wt=s(m),U=i(m,"DIV",{class:!0});var N=M(U);g(ae.$$.fragment,N),Zt=s(N),Ee=i(N,"P",{"data-svelte-h":!0}),l(Ee)!=="svelte-50j04k"&&(Ee.textContent=On),Ht=s(N),g(S.$$.fragment,N),N.forEach(a),Ot=s(m),T=i(m,"DIV",{class:!0});var Q=M(T);g(re.$$.fragment,Q),zt=s(Q),Ne=i(Q,"P",{"data-svelte-h":!0}),l(Ne)!=="svelte-1f3tmq1"&&(Ne.innerHTML=zn),Xt=s(Q),Se=i(Q,"P",{"data-svelte-h":!0}),l(Se)!=="svelte-xjijlp"&&(Se.textContent=Xn),qt=s(Q),Je=i(Q,"P",{"data-svelte-h":!0}),l(Je)!=="svelte-hy0nzs"&&(Je.innerHTML=qn),Q.forEach(a),Ft=s(m),J=i(m,"DIV",{class:!0});var Mt=M(J);g(le.$$.fragment,Mt),Rt=s(Mt),Ve=i(Mt,"P",{"data-svelte-h":!0}),l(Ve)!=="svelte-psupw6"&&(Ve.textContent=Fn),Mt.forEach(a),Yt=s(m),V=i(m,"DIV",{class:!0});var xt=M(V);g(de.$$.fragment,xt),Qt=s(xt),Ae=i(xt,"P",{"data-svelte-h":!0}),l(Ae)!=="svelte-14bnrb6"&&(Ae.textContent=Rn),xt.forEach(a),Kt=s(m),A=i(m,"DIV",{class:!0});var Ct=M(A);g(ce.$$.fragment,Ct),en=s(Ct),Ge=i(Ct,"P",{"data-svelte-h":!0}),l(Ge)!=="svelte-1s3c06i"&&(Ge.innerHTML=Yn),Ct.forEach(a),tn=s(m),G=i(m,"DIV",{class:!0});var Lt=M(G);g(pe.$$.fragment,Lt),nn=s(Lt),Be=i(Lt,"P",{"data-svelte-h":!0}),l(Be)!=="svelte-1xwrf7t"&&(Be.textContent=Qn),Lt.forEach(a),sn=s(m),B=i(m,"DIV",{class:!0});var It=M(B);g(me.$$.fragment,It),on=s(It),We=i(It,"P",{"data-svelte-h":!0}),l(We)!=="svelte-pkn4ui"&&(We.innerHTML=Kn),It.forEach(a),an=s(m),W=i(m,"DIV",{class:!0});var Pt=M(W);g(fe.$$.fragment,Pt),rn=s(Pt),Ze=i(Pt,"P",{"data-svelte-h":!0}),l(Ze)!=="svelte-16q0ax1"&&(Ze.textContent=es),Pt.forEach(a),ln=s(m),Z=i(m,"DIV",{class:!0});var $t=M(Z);g(ge.$$.fragment,$t),dn=s($t),He=i($t,"P",{"data-svelte-h":!0}),l(He)!=="svelte-vo59ec"&&(He.innerHTML=ts),$t.forEach(a),m.forEach(a),ut=s(e),g(ue.$$.fragment,e),ht=s(e),p=i(e,"DIV",{class:!0});var y=M(p);g(he.$$.fragment,y),cn=s(y),Oe=i(y,"P",{"data-svelte-h":!0}),l(Oe)!=="svelte-1ddt9wk"&&(Oe.textContent=ns),pn=s(y),ze=i(y,"P",{"data-svelte-h":!0}),l(ze)!=="svelte-120gv5s"&&(ze.innerHTML=ss),mn=s(y),Xe=i(y,"P",{"data-svelte-h":!0}),l(Xe)!=="svelte-14s6m4u"&&(Xe.textContent=os),fn=s(y),qe=i(y,"UL",{"data-svelte-h":!0}),l(qe)!=="svelte-17uxs59"&&(qe.innerHTML=is),gn=s(y),j=i(y,"DIV",{class:!0});var rt=M(j);g(_e.$$.fragment,rt),un=s(rt),Fe=i(rt,"P",{"data-svelte-h":!0}),l(Fe)!=="svelte-50j04k"&&(Fe.textContent=as),hn=s(rt),g(H.$$.fragment,rt),rt.forEach(a),_n=s(y),k=i(y,"DIV",{class:!0});var K=M(k);g(be.$$.fragment,K),bn=s(K),Re=i(K,"P",{"data-svelte-h":!0}),l(Re)!=="svelte-1f3tmq1"&&(Re.innerHTML=rs),vn=s(K),Ye=i(K,"P",{"data-svelte-h":!0}),l(Ye)!=="svelte-xjijlp"&&(Ye.textContent=ls),yn=s(K),Qe=i(K,"P",{"data-svelte-h":!0}),l(Qe)!=="svelte-hy0nzs"&&(Qe.innerHTML=ds),K.forEach(a),wn=s(y),O=i(y,"DIV",{class:!0});var Tt=M(O);g(ve.$$.fragment,Tt),Mn=s(Tt),Ke=i(Tt,"P",{"data-svelte-h":!0}),l(Ke)!=="svelte-psupw6"&&(Ke.textContent=cs),Tt.forEach(a),xn=s(y),z=i(y,"DIV",{class:!0});var kt=M(z);g(ye.$$.fragment,kt),Cn=s(kt),et=i(kt,"P",{"data-svelte-h":!0}),l(et)!=="svelte-14bnrb6"&&(et.textContent=ps),kt.forEach(a),Ln=s(y),X=i(y,"DIV",{class:!0});var Dt=M(X);g(we.$$.fragment,Dt),In=s(Dt),tt=i(Dt,"P",{"data-svelte-h":!0}),l(tt)!=="svelte-1s3c06i"&&(tt.innerHTML=ms),Dt.forEach(a),Pn=s(y),q=i(y,"DIV",{class:!0});var Ut=M(q);g(Me.$$.fragment,Ut),$n=s(Ut),nt=i(Ut,"P",{"data-svelte-h":!0}),l(nt)!=="svelte-1xwrf7t"&&(nt.textContent=fs),Ut.forEach(a),Tn=s(y),F=i(y,"DIV",{class:!0});var jt=M(F);g(xe.$$.fragment,jt),kn=s(jt),st=i(jt,"P",{"data-svelte-h":!0}),l(st)!=="svelte-pkn4ui"&&(st.innerHTML=gs),jt.forEach(a),Dn=s(y),R=i(y,"DIV",{class:!0});var Et=M(R);g(Ce.$$.fragment,Et),Un=s(Et),ot=i(Et,"P",{"data-svelte-h":!0}),l(ot)!=="svelte-16q0ax1"&&(ot.textContent=us),Et.forEach(a),jn=s(y),Y=i(y,"DIV",{class:!0});var Nt=M(Y);g(Le.$$.fragment,Nt),En=s(Nt),it=i(Nt,"P",{"data-svelte-h":!0}),l(it)!=="svelte-vo59ec"&&(it.innerHTML=hs),Nt.forEach(a),y.forEach(a),_t=s(e),g(Ie.$$.fragment,e),bt=s(e),E=i(e,"DIV",{class:!0});var St=M(E);g(Pe.$$.fragment,St),Nn=s(St),at=i(St,"P",{"data-svelte-h":!0}),l(at)!=="svelte-1qpjiuf"&&(at.textContent=_s),St.forEach(a),vt=s(e),g($e.$$.fragment,e),yt=s(e),lt=i(e,"P",{}),M(lt).forEach(a),this.h()},h(){x(w,"name","hf:doc:metadata"),x(w,"content",ks),x(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(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,r){t(document.head,w),v(e,D,r),v(e,P,r),v(e,L,r),u(I,e,r),v(e,d,r),v(e,$,r),v(e,dt,r),v(e,ee,r),v(e,ct,r),v(e,te,r),v(e,pt,r),v(e,ne,r),v(e,mt,r),v(e,se,r),v(e,ft,r),u(oe,e,r),v(e,gt,r),v(e,c,r),u(ie,c,null),t(c,Vt),t(c,ke),t(c,At),t(c,De),t(c,Gt),t(c,Ue),t(c,Bt),t(c,je),t(c,Wt),t(c,U),u(ae,U,null),t(U,Zt),t(U,Ee),t(U,Ht),u(S,U,null),t(c,Ot),t(c,T),u(re,T,null),t(T,zt),t(T,Ne),t(T,Xt),t(T,Se),t(T,qt),t(T,Je),t(c,Ft),t(c,J),u(le,J,null),t(J,Rt),t(J,Ve),t(c,Yt),t(c,V),u(de,V,null),t(V,Qt),t(V,Ae),t(c,Kt),t(c,A),u(ce,A,null),t(A,en),t(A,Ge),t(c,tn),t(c,G),u(pe,G,null),t(G,nn),t(G,Be),t(c,sn),t(c,B),u(me,B,null),t(B,on),t(B,We),t(c,an),t(c,W),u(fe,W,null),t(W,rn),t(W,Ze),t(c,ln),t(c,Z),u(ge,Z,null),t(Z,dn),t(Z,He),v(e,ut,r),u(ue,e,r),v(e,ht,r),v(e,p,r),u(he,p,null),t(p,cn),t(p,Oe),t(p,pn),t(p,ze),t(p,mn),t(p,Xe),t(p,fn),t(p,qe),t(p,gn),t(p,j),u(_e,j,null),t(j,un),t(j,Fe),t(j,hn),u(H,j,null),t(p,_n),t(p,k),u(be,k,null),t(k,bn),t(k,Re),t(k,vn),t(k,Ye),t(k,yn),t(k,Qe),t(p,wn),t(p,O),u(ve,O,null),t(O,Mn),t(O,Ke),t(p,xn),t(p,z),u(ye,z,null),t(z,Cn),t(z,et),t(p,Ln),t(p,X),u(we,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,F),u(xe,F,null),t(F,kn),t(F,st),t(p,Dn),t(p,R),u(Ce,R,null),t(R,Un),t(R,ot),t(p,jn),t(p,Y),u(Le,Y,null),t(Y,En),t(Y,it),v(e,_t,r),u(Ie,e,r),v(e,bt,r),v(e,E,r),u(Pe,E,null),t(E,Nn),t(E,at),v(e,vt,r),u($e,e,r),v(e,yt,r),v(e,lt,r),wt=!0},p(e,[r]){const m={};r&2&&(m.$$scope={dirty:r,ctx:e}),S.$set(m);const N={};r&2&&(N.$$scope={dirty:r,ctx:e}),H.$set(N)},i(e){wt||(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(H.$$.fragment,e),h(be.$$.fragment,e),h(ve.$$.fragment,e),h(ye.$$.fragment,e),h(we.$$.fragment,e),h(Me.$$.fragment,e),h(xe.$$.fragment,e),h(Ce.$$.fragment,e),h(Le.$$.fragment,e),h(Ie.$$.fragment,e),h(Pe.$$.fragment,e),h($e.$$.fragment,e),wt=!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),_(H.$$.fragment,e),_(be.$$.fragment,e),_(ve.$$.fragment,e),_(ye.$$.fragment,e),_(we.$$.fragment,e),_(Me.$$.fragment,e),_(xe.$$.fragment,e),_(Ce.$$.fragment,e),_(Le.$$.fragment,e),_(Ie.$$.fragment,e),_(Pe.$$.fragment,e),_($e.$$.fragment,e),wt=!1},d(e){e&&(a(D),a(P),a(L),a(d),a($),a(dt),a(ee),a(ct),a(te),a(pt),a(ne),a(mt),a(se),a(ft),a(gt),a(c),a(ut),a(ht),a(p),a(_t),a(bt),a(E),a(vt),a(yt),a(lt)),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(H),b(be),b(ve),b(ye),b(we),b(Me),b(xe),b(Ce),b(Le),b(Ie,e),b(Pe),b($e,e)}}}const ks='{"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 Ds(Te){return Ms(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Vs extends xs{constructor(w){super(),Cs(this,w,Ds,Ts,ws,{})}}export{Vs as component};
