Buckets:
| import{s as Co,o as Io,n as xo}from"../chunks/scheduler.8c3d61f6.js";import{S as Po,i as $o,g as s,s as n,r as g,A as To,h as i,f as a,c as o,j as x,u,x as l,k as w,y as t,a as f,v as _,d as h,t as b,w as y}from"../chunks/index.da70eac4.js";import{D as L}from"../chunks/Docstring.c021b19a.js";import{C as Lo}from"../chunks/CodeBlock.a9c4becf.js";import{E as wo}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as At,E as ko}from"../chunks/getInferenceSnippets.725ed3d4.js";function Do(ke){let M,D="Examples:",$,C,I;return C=new Lo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMlNpbWlhbkx1byUyRkxDTV9EcmVhbXNoYXBlcl92NyUyMiklMEElMjMlMjBUbyUyMHNhdmUlMjBHUFUlMjBtZW1vcnklMkMlMjB0b3JjaC5mbG9hdDE2JTIwY2FuJTIwYmUlMjB1c2VkJTJDJTIwYnV0JTIwaXQlMjBtYXklMjBjb21wcm9taXNlJTIwaW1hZ2UlMjBxdWFsaXR5LiUwQXBpcGUudG8odG9yY2hfZGV2aWNlJTNEJTIyY3VkYSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQzMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJTZWxmLXBvcnRyYWl0JTIwb2lsJTIwcGFpbnRpbmclMkMlMjBhJTIwYmVhdXRpZnVsJTIwY3lib3JnJTIwd2l0aCUyMGdvbGRlbiUyMGhhaXIlMkMlMjA4ayUyMiUwQSUwQSUyMyUyMENhbiUyMGJlJTIwc2V0JTIwdG8lMjAxfjUwJTIwc3RlcHMuJTIwTENNJTIwc3VwcG9ydCUyMGZhc3QlMjBpbmZlcmVuY2UlMjBldmVuJTIwJTNDJTNEJTIwNCUyMHN0ZXBzLiUyMFJlY29tbWVuZCUzQSUyMDF+OCUyMHN0ZXBzLiUwQW51bV9pbmZlcmVuY2Vfc3RlcHMlMjAlM0QlMjA0JTBBaW1hZ2VzJTIwJTNEJTIwcGlwZShwcm9tcHQlM0Rwcm9tcHQlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEbnVtX2luZmVyZW5jZV9zdGVwcyUyQyUyMGd1aWRhbmNlX3NjYWxlJTNEOC4wKS5pbWFnZXMlMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyaW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span>pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">"SimianLuo/LCM_Dreamshaper_v7"</span>) | |
| <span class="hljs-meta">>>> </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">>>> </span>pipe.to(torch_device=<span class="hljs-string">"cuda"</span>, torch_dtype=torch.float32) | |
| <span class="hljs-meta">>>> </span>prompt = <span class="hljs-string">"Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Can be set to 1~50 steps. LCM support fast inference even <= 4 steps. Recommend: 1~8 steps.</span> | |
| <span class="hljs-meta">>>> </span>num_inference_steps = <span class="hljs-number">4</span> | |
| <span class="hljs-meta">>>> </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">>>> </span>images[<span class="hljs-number">0</span>].save(<span class="hljs-string">"image.png"</span>)`,wrap:!1}}),{c(){M=s("p"),M.textContent=D,$=n(),g(C.$$.fragment)},l(d){M=i(d,"P",{"data-svelte-h":!0}),l(M)!=="svelte-kvfsh7"&&(M.textContent=D),$=o(d),u(C.$$.fragment,d)},m(d,P){f(d,M,P),f(d,$,P),_(C,d,P),I=!0},p:xo,i(d){I||(h(C.$$.fragment,d),I=!0)},o(d){b(C.$$.fragment,d),I=!1},d(d){d&&(a(M),a($)),y(C,d)}}}function jo(ke){let M,D="Examples:",$,C,I;return C=new Lo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvckltYWdlMkltYWdlJTBBaW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjBQSUwlMEElMEFwaXBlJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2UySW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUyMlNpbWlhbkx1byUyRkxDTV9EcmVhbXNoYXBlcl92NyUyMiklMEElMjMlMjBUbyUyMHNhdmUlMjBHUFUlMjBtZW1vcnklMkMlMjB0b3JjaC5mbG9hdDE2JTIwY2FuJTIwYmUlMjB1c2VkJTJDJTIwYnV0JTIwaXQlMjBtYXklMjBjb21wcm9taXNlJTIwaW1hZ2UlMjBxdWFsaXR5LiUwQXBpcGUudG8odG9yY2hfZGV2aWNlJTNEJTIyY3VkYSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQzMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJIaWdoJTIwYWx0aXR1ZGUlMjBzbm93eSUyMG1vdW50YWlucyUyMiUwQWltYWdlJTIwJTNEJTIwUElMLkltYWdlLm9wZW4oJTIyLiUyRnNub3d5X21vdW50YWlucy5wbmclMjIpJTBBJTBBJTIzJTIwQ2FuJTIwYmUlMjBzZXQlMjB0byUyMDF+NTAlMjBzdGVwcy4lMjBMQ00lMjBzdXBwb3J0JTIwZmFzdCUyMGluZmVyZW5jZSUyMGV2ZW4lMjAlM0MlM0QlMjA0JTIwc3RlcHMuJTIwUmVjb21tZW5kJTNBJTIwMX44JTIwc3RlcHMuJTBBbnVtX2luZmVyZW5jZV9zdGVwcyUyMCUzRCUyMDQlMEFpbWFnZXMlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRHByb21wdCUyQyUyMGltYWdlJTNEaW1hZ2UlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEbnVtX2luZmVyZW5jZV9zdGVwcyUyQyUyMGd1aWRhbmNlX3NjYWxlJTNEOC4wJTBBKS5pbWFnZXMlMEElMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyaW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForImage2Image | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> PIL | |
| <span class="hljs-meta">>>> </span>pipe = AutoPipelineForImage2Image.from_pretrained(<span class="hljs-string">"SimianLuo/LCM_Dreamshaper_v7"</span>) | |
| <span class="hljs-meta">>>> </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">>>> </span>pipe.to(torch_device=<span class="hljs-string">"cuda"</span>, torch_dtype=torch.float32) | |
| <span class="hljs-meta">>>> </span>prompt = <span class="hljs-string">"High altitude snowy mountains"</span> | |
| <span class="hljs-meta">>>> </span>image = PIL.Image.<span class="hljs-built_in">open</span>(<span class="hljs-string">"./snowy_mountains.png"</span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Can be set to 1~50 steps. LCM support fast inference even <= 4 steps. Recommend: 1~8 steps.</span> | |
| <span class="hljs-meta">>>> </span>num_inference_steps = <span class="hljs-number">4</span> | |
| <span class="hljs-meta">>>> </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">>>> </span>images[<span class="hljs-number">0</span>].save(<span class="hljs-string">"image.png"</span>)`,wrap:!1}}),{c(){M=s("p"),M.textContent=D,$=n(),g(C.$$.fragment)},l(d){M=i(d,"P",{"data-svelte-h":!0}),l(M)!=="svelte-kvfsh7"&&(M.textContent=D),$=o(d),u(C.$$.fragment,d)},m(d,P){f(d,M,P),f(d,$,P),_(C,d,P),I=!0},p:xo,i(d){I||(h(C.$$.fragment,d),I=!0)},o(d){b(C.$$.fragment,d),I=!1},d(d){d&&(a(M),a($)),y(C,d)}}}function Uo(ke){let M,D,$,C,I,d,P,Vn='<img alt="LoRA" src="https://img.shields.io/badge/LoRA-d8b4fe?style=flat"/>',ct,ee,An='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.',pt,te,Gn="The abstract of the paper is as follows:",mt,ne,Bn='<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>',ft,oe,Wn='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>.',gt,se,Zn='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>.',ut,ie,_t,c,ae,Gt,De,Hn="Pipeline for text-to-image generation using a latent consistency model.",Bt,je,On=`This model inherits from <a href="/docs/diffusers/pr_12036/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.).`,Wt,Ue,zn="The pipeline also inherits the following loading methods:",Zt,Ee,Xn='<li><a href="/docs/diffusers/pr_12036/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/pr_12036/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/pr_12036/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/pr_12036/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/pr_12036/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',Ht,j,re,Ot,Ne,Fn="The call function to the pipeline for generation.",zt,S,Xt,T,le,Ft,Se,qn='Enables the FreeU mechanism as in <a href="https://huggingface.co/papers/2309.11497" rel="nofollow">https://huggingface.co/papers/2309.11497</a>.',qt,Je,Rn="The suffixes after the scaling factors represent the stages where they are being applied.",Rt,Ve,Yn=`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.`,Yt,J,de,Qt,Ae,Qn="Disables the FreeU mechanism if enabled.",Kt,V,ce,en,Ge,Kn=`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.`,tn,A,pe,nn,Be,eo=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to | |
| computing decoding in one step.`,on,G,me,sn,We,to=`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.`,an,B,fe,rn,Ze,no=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to | |
| computing decoding in one step.`,ln,W,ge,dn,He,oo="Encodes the prompt into text encoder hidden states.",cn,Z,ue,pn,Oe,so='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,_e,bt,p,he,mn,ze,io="Pipeline for image-to-image generation using a latent consistency model.",fn,Xe,ao=`This model inherits from <a href="/docs/diffusers/pr_12036/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.).`,gn,Fe,ro="The pipeline also inherits the following loading methods:",un,qe,lo='<li><a href="/docs/diffusers/pr_12036/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/pr_12036/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for loading LoRA weights</li> <li><a href="/docs/diffusers/pr_12036/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for saving LoRA weights</li> <li><a href="/docs/diffusers/pr_12036/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/pr_12036/en/api/loaders/ip_adapter#diffusers.loaders.IPAdapterMixin.load_ip_adapter">load_ip_adapter()</a> for loading IP Adapters</li>',_n,U,be,hn,Re,co="The call function to the pipeline for generation.",bn,H,yn,k,ye,vn,Ye,po='Enables the FreeU mechanism as in <a href="https://huggingface.co/papers/2309.11497" rel="nofollow">https://huggingface.co/papers/2309.11497</a>.',Mn,Qe,mo="The suffixes after the scaling factors represent the stages where they are being applied.",wn,Ke,fo=`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.`,xn,O,ve,Ln,et,go="Disables the FreeU mechanism if enabled.",Cn,z,Me,In,tt,uo=`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.`,Pn,X,we,$n,nt,_o=`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,F,xe,kn,ot,ho=`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.`,Dn,q,Le,jn,st,bo=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to | |
| computing decoding in one step.`,Un,R,Ce,En,it,yo="Encodes the prompt into text encoder hidden states.",Nn,Y,Ie,Sn,at,vo='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>',yt,Pe,vt,E,$e,Jn,rt,Mo="Output class for Stable Diffusion pipelines.",Mt,Te,wt,dt,xt;return I=new At({props:{title:"Latent Consistency Models",local:"latent-consistency-models",headingTag:"h1"}}),ie=new At({props:{title:"LatentConsistencyModelPipeline",local:"diffusers.LatentConsistencyModelPipeline",headingTag:"h2"}}),ae=new L({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:": typing.Optional[transformers.models.clip.modeling_clip.CLIPVisionModelWithProjection] = None"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_12036/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) — | |
| 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>) — | |
| 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>) — | |
| A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.LatentConsistencyModelPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/pr_12036/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) — | |
| A <code>UNet2DConditionModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.LatentConsistencyModelPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12036/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) — | |
| A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Currently only | |
| supports <a href="/docs/diffusers/pr_12036/en/api/schedulers/lcm#diffusers.LCMScheduler">LCMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.LatentConsistencyModelPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) — | |
| 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’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>) — | |
| 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>) — | |
| Whether the pipeline requires a safety checker component.`,name:"requires_safety_checker"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L133"}}),re=new L({props:{name:"__call__",anchor:"diffusers.LatentConsistencyModelPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 4"},{name:"original_inference_steps",val:": int = None"},{name:"timesteps",val:": typing.List[int] = None"},{name:"guidance_scale",val:": float = 8.5"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"ip_adapter_image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], NoneType] = None"},{name:"ip_adapter_image_embeds",val:": typing.Optional[typing.List[torch.Tensor]] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| 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>) — | |
| 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>) — | |
| 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) — | |
| 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>) — | |
| 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’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>) — | |
| 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) — | |
| 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 > 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 > 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) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not | |
| provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.ip_adapter_image",description:`<strong>ip_adapter_image</strong> — (<code>PipelineImageInput</code>, <em>optional</em>): | |
| Optional image input to work with IP Adapters.`,name:"ip_adapter_image"},{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.ip_adapter_image_embeds",description:`<strong>ip_adapter_image_embeds</strong> (<code>List[torch.Tensor]</code>, <em>optional</em>) — | |
| 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>"pil"</code>) — | |
| 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>) — | |
| Whether or not to return a <a href="/docs/diffusers/pr_12036/en/api/pipelines/stable_diffusion/inpaint#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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L640",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>If <code>return_dict</code> is <code>True</code>, <a | |
| href="/docs/diffusers/pr_12036/en/api/pipelines/stable_diffusion/inpaint#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/pr_12036/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput" | |
| >StableDiffusionPipelineOutput</a> or <code>tuple</code></p> | |
| `}}),S=new wo({props:{anchor:"diffusers.LatentConsistencyModelPipeline.__call__.example",$$slots:{default:[Do]},$$scope:{ctx:ke}}}),le=new L({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>) — | |
| Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to | |
| mitigate “oversmoothing effect” in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) — | |
| Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to | |
| mitigate “oversmoothing effect” in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.LatentConsistencyModelPipeline.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) — 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>) — Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2068"}}),de=new L({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2090"}}),ce=new L({props:{name:"enable_vae_slicing",anchor:"diffusers.LatentConsistencyModelPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2039"}}),pe=new L({props:{name:"disable_vae_slicing",anchor:"diffusers.LatentConsistencyModelPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2046"}}),me=new L({props:{name:"enable_vae_tiling",anchor:"diffusers.LatentConsistencyModelPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2053"}}),fe=new L({props:{name:"disable_vae_tiling",anchor:"diffusers.LatentConsistencyModelPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2061"}}),ge=new L({props:{name:"encode_prompt",anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:""},{name:"num_images_per_prompt",val:""},{name:"do_classifier_free_guidance",val:""},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| prompt to be encoded`,name:"prompt"},{anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt.device",description:`<strong>device</strong> — (<code>torch.device</code>): | |
| torch device`,name:"device"},{anchor:"diffusers.LatentConsistencyModelPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L226"}}),ue=new L({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>) — | |
| 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) — | |
| 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>) — | |
| Data type of the generated embeddings.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py#L517",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> | |
| `}}),_e=new At({props:{title:"LatentConsistencyModelImg2ImgPipeline",local:"diffusers.LatentConsistencyModelImg2ImgPipeline",headingTag:"h2"}}),he=new L({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:": typing.Optional[transformers.models.clip.modeling_clip.CLIPVisionModelWithProjection] = None"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_12036/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) — | |
| 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>) — | |
| 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>) — | |
| A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/pr_12036/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) — | |
| A <code>UNet2DConditionModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12036/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) — | |
| A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Currently only | |
| supports <a href="/docs/diffusers/pr_12036/en/api/schedulers/lcm#diffusers.LCMScheduler">LCMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) — | |
| 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’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>) — | |
| 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>) — | |
| Whether the pipeline requires a safety checker component.`,name:"requires_safety_checker"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L154"}}),be=new L({props:{name:"__call__",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]] = None"},{name:"num_inference_steps",val:": int = 4"},{name:"strength",val:": float = 0.8"},{name:"original_inference_steps",val:": int = None"},{name:"timesteps",val:": typing.List[int] = None"},{name:"guidance_scale",val:": float = 8.5"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"ip_adapter_image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], NoneType] = None"},{name:"ip_adapter_image_embeds",val:": typing.Optional[typing.List[torch.Tensor]] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| 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>) — | |
| 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>) — | |
| 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) — | |
| 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>) — | |
| 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’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>) — | |
| 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) — | |
| 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 > 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 > 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) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not | |
| provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.ip_adapter_image",description:`<strong>ip_adapter_image</strong> — (<code>PipelineImageInput</code>, <em>optional</em>): | |
| Optional image input to work with IP Adapters.`,name:"ip_adapter_image"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.ip_adapter_image_embeds",description:`<strong>ip_adapter_image_embeds</strong> (<code>List[torch.Tensor]</code>, <em>optional</em>) — | |
| 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>"pil"</code>) — | |
| 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>) — | |
| Whether or not to return a <a href="/docs/diffusers/pr_12036/en/api/pipelines/stable_diffusion/inpaint#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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L709",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>If <code>return_dict</code> is <code>True</code>, <a | |
| href="/docs/diffusers/pr_12036/en/api/pipelines/stable_diffusion/inpaint#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/pr_12036/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput" | |
| >StableDiffusionPipelineOutput</a> or <code>tuple</code></p> | |
| `}}),H=new wo({props:{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.__call__.example",$$slots:{default:[jo]},$$scope:{ctx:ke}}}),ye=new L({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>) — | |
| Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to | |
| mitigate “oversmoothing effect” in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) — | |
| Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to | |
| mitigate “oversmoothing effect” in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) — 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>) — Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2068"}}),ve=new L({props:{name:"disable_freeu",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2090"}}),Me=new L({props:{name:"enable_vae_slicing",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2039"}}),we=new L({props:{name:"disable_vae_slicing",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2046"}}),xe=new L({props:{name:"enable_vae_tiling",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2053"}}),Le=new L({props:{name:"disable_vae_tiling",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/pipeline_utils.py#L2061"}}),Ce=new L({props:{name:"encode_prompt",anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:""},{name:"num_images_per_prompt",val:""},{name:"do_classifier_free_guidance",val:""},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| prompt to be encoded`,name:"prompt"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt.device",description:`<strong>device</strong> — (<code>torch.device</code>): | |
| torch device`,name:"device"},{anchor:"diffusers.LatentConsistencyModelImg2ImgPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L241"}}),Ie=new L({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>) — | |
| 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) — | |
| 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>) — | |
| Data type of the generated embeddings.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py#L576",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> | |
| `}}),Pe=new At({props:{title:"StableDiffusionPipelineOutput",local:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",headingTag:"h2"}}),$e=new L({props:{name:"class diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"},{name:"nsfw_content_detected",val:": typing.Optional[typing.List[bool]]"}],parametersDescription:[{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) — | |
| 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>) — | |
| List indicating whether the corresponding generated image contains “not-safe-for-work” (nsfw) content or | |
| <code>None</code> if safety checking could not be performed.`,name:"nsfw_content_detected"}],source:"https://github.com/huggingface/diffusers/blob/vr_12036/src/diffusers/pipelines/stable_diffusion/pipeline_output.py#L10"}}),Te=new ko({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/latent_consistency_models.md"}}),{c(){M=s("meta"),D=n(),$=s("p"),C=n(),g(I.$$.fragment),d=n(),P=s("div"),P.innerHTML=Vn,ct=n(),ee=s("p"),ee.innerHTML=An,pt=n(),te=s("p"),te.textContent=Gn,mt=n(),ne=s("p"),ne.innerHTML=Bn,ft=n(),oe=s("p"),oe.innerHTML=Wn,gt=n(),se=s("p"),se.innerHTML=Zn,ut=n(),g(ie.$$.fragment),_t=n(),c=s("div"),g(ae.$$.fragment),Gt=n(),De=s("p"),De.textContent=Hn,Bt=n(),je=s("p"),je.innerHTML=On,Wt=n(),Ue=s("p"),Ue.textContent=zn,Zt=n(),Ee=s("ul"),Ee.innerHTML=Xn,Ht=n(),j=s("div"),g(re.$$.fragment),Ot=n(),Ne=s("p"),Ne.textContent=Fn,zt=n(),g(S.$$.fragment),Xt=n(),T=s("div"),g(le.$$.fragment),Ft=n(),Se=s("p"),Se.innerHTML=qn,qt=n(),Je=s("p"),Je.textContent=Rn,Rt=n(),Ve=s("p"),Ve.innerHTML=Yn,Yt=n(),J=s("div"),g(de.$$.fragment),Qt=n(),Ae=s("p"),Ae.textContent=Qn,Kt=n(),V=s("div"),g(ce.$$.fragment),en=n(),Ge=s("p"),Ge.textContent=Kn,tn=n(),A=s("div"),g(pe.$$.fragment),nn=n(),Be=s("p"),Be.innerHTML=eo,on=n(),G=s("div"),g(me.$$.fragment),sn=n(),We=s("p"),We.textContent=to,an=n(),B=s("div"),g(fe.$$.fragment),rn=n(),Ze=s("p"),Ze.innerHTML=no,ln=n(),W=s("div"),g(ge.$$.fragment),dn=n(),He=s("p"),He.textContent=oo,cn=n(),Z=s("div"),g(ue.$$.fragment),pn=n(),Oe=s("p"),Oe.innerHTML=so,ht=n(),g(_e.$$.fragment),bt=n(),p=s("div"),g(he.$$.fragment),mn=n(),ze=s("p"),ze.textContent=io,fn=n(),Xe=s("p"),Xe.innerHTML=ao,gn=n(),Fe=s("p"),Fe.textContent=ro,un=n(),qe=s("ul"),qe.innerHTML=lo,_n=n(),U=s("div"),g(be.$$.fragment),hn=n(),Re=s("p"),Re.textContent=co,bn=n(),g(H.$$.fragment),yn=n(),k=s("div"),g(ye.$$.fragment),vn=n(),Ye=s("p"),Ye.innerHTML=po,Mn=n(),Qe=s("p"),Qe.textContent=mo,wn=n(),Ke=s("p"),Ke.innerHTML=fo,xn=n(),O=s("div"),g(ve.$$.fragment),Ln=n(),et=s("p"),et.textContent=go,Cn=n(),z=s("div"),g(Me.$$.fragment),In=n(),tt=s("p"),tt.textContent=uo,Pn=n(),X=s("div"),g(we.$$.fragment),$n=n(),nt=s("p"),nt.innerHTML=_o,Tn=n(),F=s("div"),g(xe.$$.fragment),kn=n(),ot=s("p"),ot.textContent=ho,Dn=n(),q=s("div"),g(Le.$$.fragment),jn=n(),st=s("p"),st.innerHTML=bo,Un=n(),R=s("div"),g(Ce.$$.fragment),En=n(),it=s("p"),it.textContent=yo,Nn=n(),Y=s("div"),g(Ie.$$.fragment),Sn=n(),at=s("p"),at.innerHTML=vo,yt=n(),g(Pe.$$.fragment),vt=n(),E=s("div"),g($e.$$.fragment),Jn=n(),rt=s("p"),rt.textContent=Mo,Mt=n(),g(Te.$$.fragment),wt=n(),dt=s("p"),this.h()},l(e){const r=To("svelte-u9bgzb",document.head);M=i(r,"META",{name:!0,content:!0}),r.forEach(a),D=o(e),$=i(e,"P",{}),x($).forEach(a),C=o(e),u(I.$$.fragment,e),d=o(e),P=i(e,"DIV",{class:!0,"data-svelte-h":!0}),l(P)!=="svelte-si9ct8"&&(P.innerHTML=Vn),ct=o(e),ee=i(e,"P",{"data-svelte-h":!0}),l(ee)!=="svelte-k0b3me"&&(ee.innerHTML=An),pt=o(e),te=i(e,"P",{"data-svelte-h":!0}),l(te)!=="svelte-1kb0761"&&(te.textContent=Gn),mt=o(e),ne=i(e,"P",{"data-svelte-h":!0}),l(ne)!=="svelte-18qrl49"&&(ne.innerHTML=Bn),ft=o(e),oe=i(e,"P",{"data-svelte-h":!0}),l(oe)!=="svelte-rm0fla"&&(oe.innerHTML=Wn),gt=o(e),se=i(e,"P",{"data-svelte-h":!0}),l(se)!=="svelte-1x9hhp2"&&(se.innerHTML=Zn),ut=o(e),u(ie.$$.fragment,e),_t=o(e),c=i(e,"DIV",{class:!0});var m=x(c);u(ae.$$.fragment,m),Gt=o(m),De=i(m,"P",{"data-svelte-h":!0}),l(De)!=="svelte-2lu56s"&&(De.textContent=Hn),Bt=o(m),je=i(m,"P",{"data-svelte-h":!0}),l(je)!=="svelte-2zm4fs"&&(je.innerHTML=On),Wt=o(m),Ue=i(m,"P",{"data-svelte-h":!0}),l(Ue)!=="svelte-14s6m4u"&&(Ue.textContent=zn),Zt=o(m),Ee=i(m,"UL",{"data-svelte-h":!0}),l(Ee)!=="svelte-eueb3f"&&(Ee.innerHTML=Xn),Ht=o(m),j=i(m,"DIV",{class:!0});var N=x(j);u(re.$$.fragment,N),Ot=o(N),Ne=i(N,"P",{"data-svelte-h":!0}),l(Ne)!=="svelte-50j04k"&&(Ne.textContent=Fn),zt=o(N),u(S.$$.fragment,N),N.forEach(a),Xt=o(m),T=i(m,"DIV",{class:!0});var Q=x(T);u(le.$$.fragment,Q),Ft=o(Q),Se=i(Q,"P",{"data-svelte-h":!0}),l(Se)!=="svelte-192jnkh"&&(Se.innerHTML=qn),qt=o(Q),Je=i(Q,"P",{"data-svelte-h":!0}),l(Je)!=="svelte-xjijlp"&&(Je.textContent=Rn),Rt=o(Q),Ve=i(Q,"P",{"data-svelte-h":!0}),l(Ve)!=="svelte-hy0nzs"&&(Ve.innerHTML=Yn),Q.forEach(a),Yt=o(m),J=i(m,"DIV",{class:!0});var Lt=x(J);u(de.$$.fragment,Lt),Qt=o(Lt),Ae=i(Lt,"P",{"data-svelte-h":!0}),l(Ae)!=="svelte-psupw6"&&(Ae.textContent=Qn),Lt.forEach(a),Kt=o(m),V=i(m,"DIV",{class:!0});var Ct=x(V);u(ce.$$.fragment,Ct),en=o(Ct),Ge=i(Ct,"P",{"data-svelte-h":!0}),l(Ge)!=="svelte-14bnrb6"&&(Ge.textContent=Kn),Ct.forEach(a),tn=o(m),A=i(m,"DIV",{class:!0});var It=x(A);u(pe.$$.fragment,It),nn=o(It),Be=i(It,"P",{"data-svelte-h":!0}),l(Be)!=="svelte-1s3c06i"&&(Be.innerHTML=eo),It.forEach(a),on=o(m),G=i(m,"DIV",{class:!0});var Pt=x(G);u(me.$$.fragment,Pt),sn=o(Pt),We=i(Pt,"P",{"data-svelte-h":!0}),l(We)!=="svelte-1xwrf7t"&&(We.textContent=to),Pt.forEach(a),an=o(m),B=i(m,"DIV",{class:!0});var $t=x(B);u(fe.$$.fragment,$t),rn=o($t),Ze=i($t,"P",{"data-svelte-h":!0}),l(Ze)!=="svelte-pkn4ui"&&(Ze.innerHTML=no),$t.forEach(a),ln=o(m),W=i(m,"DIV",{class:!0});var Tt=x(W);u(ge.$$.fragment,Tt),dn=o(Tt),He=i(Tt,"P",{"data-svelte-h":!0}),l(He)!=="svelte-16q0ax1"&&(He.textContent=oo),Tt.forEach(a),cn=o(m),Z=i(m,"DIV",{class:!0});var kt=x(Z);u(ue.$$.fragment,kt),pn=o(kt),Oe=i(kt,"P",{"data-svelte-h":!0}),l(Oe)!=="svelte-vo59ec"&&(Oe.innerHTML=so),kt.forEach(a),m.forEach(a),ht=o(e),u(_e.$$.fragment,e),bt=o(e),p=i(e,"DIV",{class:!0});var v=x(p);u(he.$$.fragment,v),mn=o(v),ze=i(v,"P",{"data-svelte-h":!0}),l(ze)!=="svelte-1ddt9wk"&&(ze.textContent=io),fn=o(v),Xe=i(v,"P",{"data-svelte-h":!0}),l(Xe)!=="svelte-2zm4fs"&&(Xe.innerHTML=ao),gn=o(v),Fe=i(v,"P",{"data-svelte-h":!0}),l(Fe)!=="svelte-14s6m4u"&&(Fe.textContent=ro),un=o(v),qe=i(v,"UL",{"data-svelte-h":!0}),l(qe)!=="svelte-eueb3f"&&(qe.innerHTML=lo),_n=o(v),U=i(v,"DIV",{class:!0});var lt=x(U);u(be.$$.fragment,lt),hn=o(lt),Re=i(lt,"P",{"data-svelte-h":!0}),l(Re)!=="svelte-50j04k"&&(Re.textContent=co),bn=o(lt),u(H.$$.fragment,lt),lt.forEach(a),yn=o(v),k=i(v,"DIV",{class:!0});var K=x(k);u(ye.$$.fragment,K),vn=o(K),Ye=i(K,"P",{"data-svelte-h":!0}),l(Ye)!=="svelte-192jnkh"&&(Ye.innerHTML=po),Mn=o(K),Qe=i(K,"P",{"data-svelte-h":!0}),l(Qe)!=="svelte-xjijlp"&&(Qe.textContent=mo),wn=o(K),Ke=i(K,"P",{"data-svelte-h":!0}),l(Ke)!=="svelte-hy0nzs"&&(Ke.innerHTML=fo),K.forEach(a),xn=o(v),O=i(v,"DIV",{class:!0});var Dt=x(O);u(ve.$$.fragment,Dt),Ln=o(Dt),et=i(Dt,"P",{"data-svelte-h":!0}),l(et)!=="svelte-psupw6"&&(et.textContent=go),Dt.forEach(a),Cn=o(v),z=i(v,"DIV",{class:!0});var jt=x(z);u(Me.$$.fragment,jt),In=o(jt),tt=i(jt,"P",{"data-svelte-h":!0}),l(tt)!=="svelte-14bnrb6"&&(tt.textContent=uo),jt.forEach(a),Pn=o(v),X=i(v,"DIV",{class:!0});var Ut=x(X);u(we.$$.fragment,Ut),$n=o(Ut),nt=i(Ut,"P",{"data-svelte-h":!0}),l(nt)!=="svelte-1s3c06i"&&(nt.innerHTML=_o),Ut.forEach(a),Tn=o(v),F=i(v,"DIV",{class:!0});var Et=x(F);u(xe.$$.fragment,Et),kn=o(Et),ot=i(Et,"P",{"data-svelte-h":!0}),l(ot)!=="svelte-1xwrf7t"&&(ot.textContent=ho),Et.forEach(a),Dn=o(v),q=i(v,"DIV",{class:!0});var Nt=x(q);u(Le.$$.fragment,Nt),jn=o(Nt),st=i(Nt,"P",{"data-svelte-h":!0}),l(st)!=="svelte-pkn4ui"&&(st.innerHTML=bo),Nt.forEach(a),Un=o(v),R=i(v,"DIV",{class:!0});var St=x(R);u(Ce.$$.fragment,St),En=o(St),it=i(St,"P",{"data-svelte-h":!0}),l(it)!=="svelte-16q0ax1"&&(it.textContent=yo),St.forEach(a),Nn=o(v),Y=i(v,"DIV",{class:!0});var Jt=x(Y);u(Ie.$$.fragment,Jt),Sn=o(Jt),at=i(Jt,"P",{"data-svelte-h":!0}),l(at)!=="svelte-vo59ec"&&(at.innerHTML=vo),Jt.forEach(a),v.forEach(a),yt=o(e),u(Pe.$$.fragment,e),vt=o(e),E=i(e,"DIV",{class:!0});var Vt=x(E);u($e.$$.fragment,Vt),Jn=o(Vt),rt=i(Vt,"P",{"data-svelte-h":!0}),l(rt)!=="svelte-1qpjiuf"&&(rt.textContent=Mo),Vt.forEach(a),Mt=o(e),u(Te.$$.fragment,e),wt=o(e),dt=i(e,"P",{}),x(dt).forEach(a),this.h()},h(){w(M,"name","hf:doc:metadata"),w(M,"content",Eo),w(P,"class","flex flex-wrap space-x-1"),w(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){t(document.head,M),f(e,D,r),f(e,$,r),f(e,C,r),_(I,e,r),f(e,d,r),f(e,P,r),f(e,ct,r),f(e,ee,r),f(e,pt,r),f(e,te,r),f(e,mt,r),f(e,ne,r),f(e,ft,r),f(e,oe,r),f(e,gt,r),f(e,se,r),f(e,ut,r),_(ie,e,r),f(e,_t,r),f(e,c,r),_(ae,c,null),t(c,Gt),t(c,De),t(c,Bt),t(c,je),t(c,Wt),t(c,Ue),t(c,Zt),t(c,Ee),t(c,Ht),t(c,j),_(re,j,null),t(j,Ot),t(j,Ne),t(j,zt),_(S,j,null),t(c,Xt),t(c,T),_(le,T,null),t(T,Ft),t(T,Se),t(T,qt),t(T,Je),t(T,Rt),t(T,Ve),t(c,Yt),t(c,J),_(de,J,null),t(J,Qt),t(J,Ae),t(c,Kt),t(c,V),_(ce,V,null),t(V,en),t(V,Ge),t(c,tn),t(c,A),_(pe,A,null),t(A,nn),t(A,Be),t(c,on),t(c,G),_(me,G,null),t(G,sn),t(G,We),t(c,an),t(c,B),_(fe,B,null),t(B,rn),t(B,Ze),t(c,ln),t(c,W),_(ge,W,null),t(W,dn),t(W,He),t(c,cn),t(c,Z),_(ue,Z,null),t(Z,pn),t(Z,Oe),f(e,ht,r),_(_e,e,r),f(e,bt,r),f(e,p,r),_(he,p,null),t(p,mn),t(p,ze),t(p,fn),t(p,Xe),t(p,gn),t(p,Fe),t(p,un),t(p,qe),t(p,_n),t(p,U),_(be,U,null),t(U,hn),t(U,Re),t(U,bn),_(H,U,null),t(p,yn),t(p,k),_(ye,k,null),t(k,vn),t(k,Ye),t(k,Mn),t(k,Qe),t(k,wn),t(k,Ke),t(p,xn),t(p,O),_(ve,O,null),t(O,Ln),t(O,et),t(p,Cn),t(p,z),_(Me,z,null),t(z,In),t(z,tt),t(p,Pn),t(p,X),_(we,X,null),t(X,$n),t(X,nt),t(p,Tn),t(p,F),_(xe,F,null),t(F,kn),t(F,ot),t(p,Dn),t(p,q),_(Le,q,null),t(q,jn),t(q,st),t(p,Un),t(p,R),_(Ce,R,null),t(R,En),t(R,it),t(p,Nn),t(p,Y),_(Ie,Y,null),t(Y,Sn),t(Y,at),f(e,yt,r),_(Pe,e,r),f(e,vt,r),f(e,E,r),_($e,E,null),t(E,Jn),t(E,rt),f(e,Mt,r),_(Te,e,r),f(e,wt,r),f(e,dt,r),xt=!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){xt||(h(I.$$.fragment,e),h(ie.$$.fragment,e),h(ae.$$.fragment,e),h(re.$$.fragment,e),h(S.$$.fragment,e),h(le.$$.fragment,e),h(de.$$.fragment,e),h(ce.$$.fragment,e),h(pe.$$.fragment,e),h(me.$$.fragment,e),h(fe.$$.fragment,e),h(ge.$$.fragment,e),h(ue.$$.fragment,e),h(_e.$$.fragment,e),h(he.$$.fragment,e),h(be.$$.fragment,e),h(H.$$.fragment,e),h(ye.$$.fragment,e),h(ve.$$.fragment,e),h(Me.$$.fragment,e),h(we.$$.fragment,e),h(xe.$$.fragment,e),h(Le.$$.fragment,e),h(Ce.$$.fragment,e),h(Ie.$$.fragment,e),h(Pe.$$.fragment,e),h($e.$$.fragment,e),h(Te.$$.fragment,e),xt=!0)},o(e){b(I.$$.fragment,e),b(ie.$$.fragment,e),b(ae.$$.fragment,e),b(re.$$.fragment,e),b(S.$$.fragment,e),b(le.$$.fragment,e),b(de.$$.fragment,e),b(ce.$$.fragment,e),b(pe.$$.fragment,e),b(me.$$.fragment,e),b(fe.$$.fragment,e),b(ge.$$.fragment,e),b(ue.$$.fragment,e),b(_e.$$.fragment,e),b(he.$$.fragment,e),b(be.$$.fragment,e),b(H.$$.fragment,e),b(ye.$$.fragment,e),b(ve.$$.fragment,e),b(Me.$$.fragment,e),b(we.$$.fragment,e),b(xe.$$.fragment,e),b(Le.$$.fragment,e),b(Ce.$$.fragment,e),b(Ie.$$.fragment,e),b(Pe.$$.fragment,e),b($e.$$.fragment,e),b(Te.$$.fragment,e),xt=!1},d(e){e&&(a(D),a($),a(C),a(d),a(P),a(ct),a(ee),a(pt),a(te),a(mt),a(ne),a(ft),a(oe),a(gt),a(se),a(ut),a(_t),a(c),a(ht),a(bt),a(p),a(yt),a(vt),a(E),a(Mt),a(wt),a(dt)),a(M),y(I,e),y(ie,e),y(ae),y(re),y(S),y(le),y(de),y(ce),y(pe),y(me),y(fe),y(ge),y(ue),y(_e,e),y(he),y(be),y(H),y(ye),y(ve),y(Me),y(we),y(xe),y(Le),y(Ce),y(Ie),y(Pe,e),y($e),y(Te,e)}}}const Eo='{"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 No(ke){return Io(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wo extends Po{constructor(M){super(),$o(this,M,No,Uo,Co,{})}}export{Wo as component}; | |
Xet Storage Details
- Size:
- 76 kB
- Xet hash:
- a8680682873d6c838edf0daa3d6ef719d74c7aee99fec5808c22ee69cbafa322
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.