Buckets:

rtrm's picture
download
raw
25.7 kB
import{s as it,o as at,n as nt}from"../chunks/scheduler.8c3d61f6.js";import{S as dt,i as ct,g as d,s as o,r as m,A as lt,h as c,f as s,c as r,j as $,u as _,x as v,k as C,y as t,a as p,v as g,d as h,t as A,w as b}from"../chunks/index.da70eac4.js";import{T as ft}from"../chunks/Tip.1d9b8c37.js";import{D as E}from"../chunks/Docstring.6b390b9a.js";import{C as pt}from"../chunks/CodeBlock.00a903b3.js";import{E as ut}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as rt,E as mt}from"../chunks/EditOnGithub.1e64e623.js";function _t(q){let l,D="Inference is only supported for 2 iterations as of now.";return{c(){l=d("p"),l.textContent=D},l(u){l=c(u,"P",{"data-svelte-h":!0}),v(l)!=="svelte-oxwnyv"&&(l.textContent=D)},m(u,P){p(u,l,P)},p:nt,d(u){u&&s(l)}}}function gt(q){let l,D="Examples:",u,P,y;return P=new pt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMkMlMjBDb25zaXN0ZW5jeURlY29kZXJWQUUlMEElMEF2YWUlMjAlM0QlMjBDb25zaXN0ZW5jeURlY29kZXJWQUUuZnJvbV9wcmV0cmFpbmVkKCUyMm9wZW5haSUyRmNvbnNpc3RlbmN5LWRlY29kZXIlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHZhZSUzRHZhZSUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUwQSkudG8oJTIyY3VkYSUyMiklMEElMEFpbWFnZSUyMCUzRCUyMHBpcGUoJTIyaG9yc2UlMjIlMkMlMjBnZW5lcmF0b3IlM0R0b3JjaC5tYW51YWxfc2VlZCgwKSkuaW1hZ2VzJTVCMCU1RCUwQWltYWdl",highlighted:`<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">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline, ConsistencyDecoderVAE
<span class="hljs-meta">&gt;&gt;&gt; </span>vae = ConsistencyDecoderVAE.from_pretrained(<span class="hljs-string">&quot;openai/consistency-decoder&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span> <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, vae=vae, torch_dtype=torch.float16
<span class="hljs-meta">... </span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(<span class="hljs-string">&quot;horse&quot;</span>, generator=torch.manual_seed(<span class="hljs-number">0</span>)).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image`,wrap:!1}}),{c(){l=d("p"),l.textContent=D,u=o(),m(P.$$.fragment)},l(f){l=c(f,"P",{"data-svelte-h":!0}),v(l)!=="svelte-kvfsh7"&&(l.textContent=D),u=r(f),_(P.$$.fragment,f)},m(f,w){p(f,l,w),p(f,u,w),g(P,f,w),y=!0},p:nt,i(f){y||(h(P.$$.fragment,f),y=!0)},o(f){A(P.$$.fragment,f),y=!1},d(f){f&&(s(l),s(u)),b(P,f)}}}function ht(q){let l,D,u,P,y,f,w,Xe='Consistency decoder can be used to decode the latents from the denoising UNet in the <a href="/docs/diffusers/pr_10312/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline">StableDiffusionPipeline</a>. This decoder was introduced in the <a href="https://openai.com/dall-e-3" rel="nofollow">DALL-E 3 technical report</a>.',pe,I,Be='The original codebase can be found at <a href="https://github.com/openai/consistencydecoder" rel="nofollow">openai/consistencydecoder</a>.',ue,V,me,G,Ne='The pipeline could not have been contributed without the help of <a href="https://github.com/madebyollin" rel="nofollow">madebyollin</a> and <a href="https://github.com/mrsteyk" rel="nofollow">mrsteyk</a> from <a href="https://github.com/openai/consistencydecoder/issues/1" rel="nofollow">this issue</a>.',_e,j,ge,n,R,De,O,Ye="The consistency decoder used with DALL-E 3.",xe,M,Ee,Q,J,Ve,F,Z,Me,ee,ze=`Disable sliced VAE decoding. If <code>enable_slicing</code> was previously enabled, this method will go back to computing
decoding in one step.`,Fe,T,W,Te,te,Ke=`Disable tiled VAE decoding. If <code>enable_tiling</code> was previously enabled, this method will go back to computing
decoding in one step.`,ke,k,H,Le,se,qe=`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.`,Ue,L,X,Se,oe,Oe=`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.`,Ie,re,B,Ge,U,N,je,ne,Qe="Sets the attention processor to use to compute attention.",Re,S,Y,Je,ie,et="Disables custom attention processors and sets the default attention implementation.",Ze,x,z,We,ae,tt="Encode a batch of images using a tiled encoder.",He,de,st=`When this option is enabled, the VAE will split the input tensor into tiles to compute encoding in several
steps. This is useful to keep memory use constant regardless of image size. The end result of tiled encoding is
different from non-tiled encoding because each tile uses a different encoder. To avoid tiling artifacts, the
tiles overlap and are blended together to form a smooth output. You may still see tile-sized changes in the
output, but they should be much less noticeable.`,he,K,Ae,le,be;return y=new rt({props:{title:"Consistency Decoder",local:"consistency-decoder",headingTag:"h1"}}),V=new ft({props:{warning:!0,$$slots:{default:[_t]},$$scope:{ctx:q}}}),j=new rt({props:{title:"ConsistencyDecoderVAE",local:"diffusers.ConsistencyDecoderVAE",headingTag:"h2"}}),R=new E({props:{name:"class diffusers.ConsistencyDecoderVAE",anchor:"diffusers.ConsistencyDecoderVAE",parameters:[{name:"scaling_factor",val:": float = 0.18215"},{name:"latent_channels",val:": int = 4"},{name:"sample_size",val:": int = 32"},{name:"encoder_act_fn",val:": str = 'silu'"},{name:"encoder_block_out_channels",val:": typing.Tuple[int, ...] = (128, 256, 512, 512)"},{name:"encoder_double_z",val:": bool = True"},{name:"encoder_down_block_types",val:": typing.Tuple[str, ...] = ('DownEncoderBlock2D', 'DownEncoderBlock2D', 'DownEncoderBlock2D', 'DownEncoderBlock2D')"},{name:"encoder_in_channels",val:": int = 3"},{name:"encoder_layers_per_block",val:": int = 2"},{name:"encoder_norm_num_groups",val:": int = 32"},{name:"encoder_out_channels",val:": int = 4"},{name:"decoder_add_attention",val:": bool = False"},{name:"decoder_block_out_channels",val:": typing.Tuple[int, ...] = (320, 640, 1024, 1024)"},{name:"decoder_down_block_types",val:": typing.Tuple[str, ...] = ('ResnetDownsampleBlock2D', 'ResnetDownsampleBlock2D', 'ResnetDownsampleBlock2D', 'ResnetDownsampleBlock2D')"},{name:"decoder_downsample_padding",val:": int = 1"},{name:"decoder_in_channels",val:": int = 7"},{name:"decoder_layers_per_block",val:": int = 3"},{name:"decoder_norm_eps",val:": float = 1e-05"},{name:"decoder_norm_num_groups",val:": int = 32"},{name:"decoder_num_train_timesteps",val:": int = 1024"},{name:"decoder_out_channels",val:": int = 6"},{name:"decoder_resnet_time_scale_shift",val:": str = 'scale_shift'"},{name:"decoder_time_embedding_type",val:": str = 'learned'"},{name:"decoder_up_block_types",val:": typing.Tuple[str, ...] = ('ResnetUpsampleBlock2D', 'ResnetUpsampleBlock2D', 'ResnetUpsampleBlock2D', 'ResnetUpsampleBlock2D')"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L52"}}),M=new ut({props:{anchor:"diffusers.ConsistencyDecoderVAE.example",$$slots:{default:[gt]},$$scope:{ctx:q}}}),J=new E({props:{name:"wrapper",anchor:"diffusers.ConsistencyDecoderVAE.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/utils/accelerate_utils.py#L43"}}),Z=new E({props:{name:"disable_slicing",anchor:"diffusers.ConsistencyDecoderVAE.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L194"}}),W=new E({props:{name:"disable_tiling",anchor:"diffusers.ConsistencyDecoderVAE.disable_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L178"}}),H=new E({props:{name:"enable_slicing",anchor:"diffusers.ConsistencyDecoderVAE.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L186"}}),X=new E({props:{name:"enable_tiling",anchor:"diffusers.ConsistencyDecoderVAE.enable_tiling",parameters:[{name:"use_tiling",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L169"}}),B=new E({props:{name:"forward",anchor:"diffusers.ConsistencyDecoderVAE.forward",parameters:[{name:"sample",val:": Tensor"},{name:"sample_posterior",val:": bool = False"},{name:"return_dict",val:": bool = True"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"}],parametersDescription:[{anchor:"diffusers.ConsistencyDecoderVAE.forward.sample",description:"<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014; Input sample.",name:"sample"},{anchor:"diffusers.ConsistencyDecoderVAE.forward.sample_posterior",description:`<strong>sample_posterior</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to sample from the posterior.`,name:"sample_posterior"},{anchor:"diffusers.ConsistencyDecoderVAE.forward.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 <code>DecoderOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.ConsistencyDecoderVAE.forward.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Generator to use for sampling.`,name:"generator"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L428",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If return_dict is True, a <code>DecoderOutput</code> is returned, otherwise a plain <code>tuple</code> is returned.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>DecoderOutput</code> or <code>tuple</code></p>
`}}),N=new E({props:{name:"set_attn_processor",anchor:"diffusers.ConsistencyDecoderVAE.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor]]]"}],parametersDescription:[{anchor:"diffusers.ConsistencyDecoderVAE.set_attn_processor.processor",description:`<strong>processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or only <code>AttentionProcessor</code>) &#x2014;
The instantiated processor class or a dictionary of processor classes that will be set as the processor
for <strong>all</strong> <code>Attention</code> layers.</p>
<p>If <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention
processor. This is strongly recommended when setting trainable attention processors.`,name:"processor"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L227"}}),Y=new E({props:{name:"set_default_attn_processor",anchor:"diffusers.ConsistencyDecoderVAE.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L262"}}),z=new E({props:{name:"tiled_encode",anchor:"diffusers.ConsistencyDecoderVAE.tiled_encode",parameters:[{name:"x",val:": Tensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.ConsistencyDecoderVAE.tiled_encode.x",description:"<strong>x</strong> (<code>torch.Tensor</code>) &#x2014; Input batch of images.",name:"x"},{anchor:"diffusers.ConsistencyDecoderVAE.tiled_encode.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 <code>ConsistencyDecoderVAEOutput</code>
instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L373",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If return_dict is True, a <code>ConsistencyDecoderVAEOutput</code>
is returned, otherwise a plain <code>tuple</code> is returned.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>ConsistencyDecoderVAEOutput</code> or <code>tuple</code></p>
`}}),K=new mt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/consistency_decoder_vae.md"}}),{c(){l=d("meta"),D=o(),u=d("p"),P=o(),m(y.$$.fragment),f=o(),w=d("p"),w.innerHTML=Xe,pe=o(),I=d("p"),I.innerHTML=Be,ue=o(),m(V.$$.fragment),me=o(),G=d("p"),G.innerHTML=Ne,_e=o(),m(j.$$.fragment),ge=o(),n=d("div"),m(R.$$.fragment),De=o(),O=d("p"),O.textContent=Ye,xe=o(),m(M.$$.fragment),Ee=o(),Q=d("div"),m(J.$$.fragment),Ve=o(),F=d("div"),m(Z.$$.fragment),Me=o(),ee=d("p"),ee.innerHTML=ze,Fe=o(),T=d("div"),m(W.$$.fragment),Te=o(),te=d("p"),te.innerHTML=Ke,ke=o(),k=d("div"),m(H.$$.fragment),Le=o(),se=d("p"),se.textContent=qe,Ue=o(),L=d("div"),m(X.$$.fragment),Se=o(),oe=d("p"),oe.textContent=Oe,Ie=o(),re=d("div"),m(B.$$.fragment),Ge=o(),U=d("div"),m(N.$$.fragment),je=o(),ne=d("p"),ne.textContent=Qe,Re=o(),S=d("div"),m(Y.$$.fragment),Je=o(),ie=d("p"),ie.textContent=et,Ze=o(),x=d("div"),m(z.$$.fragment),We=o(),ae=d("p"),ae.textContent=tt,He=o(),de=d("p"),de.textContent=st,he=o(),m(K.$$.fragment),Ae=o(),le=d("p"),this.h()},l(e){const i=lt("svelte-u9bgzb",document.head);l=c(i,"META",{name:!0,content:!0}),i.forEach(s),D=r(e),u=c(e,"P",{}),$(u).forEach(s),P=r(e),_(y.$$.fragment,e),f=r(e),w=c(e,"P",{"data-svelte-h":!0}),v(w)!=="svelte-4dmw6k"&&(w.innerHTML=Xe),pe=r(e),I=c(e,"P",{"data-svelte-h":!0}),v(I)!=="svelte-uyyo7l"&&(I.innerHTML=Be),ue=r(e),_(V.$$.fragment,e),me=r(e),G=c(e,"P",{"data-svelte-h":!0}),v(G)!=="svelte-1ln42ze"&&(G.innerHTML=Ne),_e=r(e),_(j.$$.fragment,e),ge=r(e),n=c(e,"DIV",{class:!0});var a=$(n);_(R.$$.fragment,a),De=r(a),O=c(a,"P",{"data-svelte-h":!0}),v(O)!=="svelte-1fvfwaa"&&(O.textContent=Ye),xe=r(a),_(M.$$.fragment,a),Ee=r(a),Q=c(a,"DIV",{class:!0});var fe=$(Q);_(J.$$.fragment,fe),fe.forEach(s),Ve=r(a),F=c(a,"DIV",{class:!0});var Pe=$(F);_(Z.$$.fragment,Pe),Me=r(Pe),ee=c(Pe,"P",{"data-svelte-h":!0}),v(ee)!=="svelte-189cc7b"&&(ee.innerHTML=ze),Pe.forEach(s),Fe=r(a),T=c(a,"DIV",{class:!0});var ve=$(T);_(W.$$.fragment,ve),Te=r(ve),te=c(ve,"P",{"data-svelte-h":!0}),v(te)!=="svelte-1f366pl"&&(te.innerHTML=Ke),ve.forEach(s),ke=r(a),k=c(a,"DIV",{class:!0});var ye=$(k);_(H.$$.fragment,ye),Le=r(ye),se=c(ye,"P",{"data-svelte-h":!0}),v(se)!=="svelte-14bnrb6"&&(se.textContent=qe),ye.forEach(s),Ue=r(a),L=c(a,"DIV",{class:!0});var $e=$(L);_(X.$$.fragment,$e),Se=r($e),oe=c($e,"P",{"data-svelte-h":!0}),v(oe)!=="svelte-1xwrf7t"&&(oe.textContent=Oe),$e.forEach(s),Ie=r(a),re=c(a,"DIV",{class:!0});var ot=$(re);_(B.$$.fragment,ot),ot.forEach(s),Ge=r(a),U=c(a,"DIV",{class:!0});var Ce=$(U);_(N.$$.fragment,Ce),je=r(Ce),ne=c(Ce,"P",{"data-svelte-h":!0}),v(ne)!=="svelte-1o77hl2"&&(ne.textContent=Qe),Ce.forEach(s),Re=r(a),S=c(a,"DIV",{class:!0});var we=$(S);_(Y.$$.fragment,we),Je=r(we),ie=c(we,"P",{"data-svelte-h":!0}),v(ie)!=="svelte-1lxcwhv"&&(ie.textContent=et),we.forEach(s),Ze=r(a),x=c(a,"DIV",{class:!0});var ce=$(x);_(z.$$.fragment,ce),We=r(ce),ae=c(ce,"P",{"data-svelte-h":!0}),v(ae)!=="svelte-1un5fcn"&&(ae.textContent=tt),He=r(ce),de=c(ce,"P",{"data-svelte-h":!0}),v(de)!=="svelte-lbfkqr"&&(de.textContent=st),ce.forEach(s),a.forEach(s),he=r(e),_(K.$$.fragment,e),Ae=r(e),le=c(e,"P",{}),$(le).forEach(s),this.h()},h(){C(l,"name","hf:doc:metadata"),C(l,"content",At),C(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(n,"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,i){t(document.head,l),p(e,D,i),p(e,u,i),p(e,P,i),g(y,e,i),p(e,f,i),p(e,w,i),p(e,pe,i),p(e,I,i),p(e,ue,i),g(V,e,i),p(e,me,i),p(e,G,i),p(e,_e,i),g(j,e,i),p(e,ge,i),p(e,n,i),g(R,n,null),t(n,De),t(n,O),t(n,xe),g(M,n,null),t(n,Ee),t(n,Q),g(J,Q,null),t(n,Ve),t(n,F),g(Z,F,null),t(F,Me),t(F,ee),t(n,Fe),t(n,T),g(W,T,null),t(T,Te),t(T,te),t(n,ke),t(n,k),g(H,k,null),t(k,Le),t(k,se),t(n,Ue),t(n,L),g(X,L,null),t(L,Se),t(L,oe),t(n,Ie),t(n,re),g(B,re,null),t(n,Ge),t(n,U),g(N,U,null),t(U,je),t(U,ne),t(n,Re),t(n,S),g(Y,S,null),t(S,Je),t(S,ie),t(n,Ze),t(n,x),g(z,x,null),t(x,We),t(x,ae),t(x,He),t(x,de),p(e,he,i),g(K,e,i),p(e,Ae,i),p(e,le,i),be=!0},p(e,[i]){const a={};i&2&&(a.$$scope={dirty:i,ctx:e}),V.$set(a);const fe={};i&2&&(fe.$$scope={dirty:i,ctx:e}),M.$set(fe)},i(e){be||(h(y.$$.fragment,e),h(V.$$.fragment,e),h(j.$$.fragment,e),h(R.$$.fragment,e),h(M.$$.fragment,e),h(J.$$.fragment,e),h(Z.$$.fragment,e),h(W.$$.fragment,e),h(H.$$.fragment,e),h(X.$$.fragment,e),h(B.$$.fragment,e),h(N.$$.fragment,e),h(Y.$$.fragment,e),h(z.$$.fragment,e),h(K.$$.fragment,e),be=!0)},o(e){A(y.$$.fragment,e),A(V.$$.fragment,e),A(j.$$.fragment,e),A(R.$$.fragment,e),A(M.$$.fragment,e),A(J.$$.fragment,e),A(Z.$$.fragment,e),A(W.$$.fragment,e),A(H.$$.fragment,e),A(X.$$.fragment,e),A(B.$$.fragment,e),A(N.$$.fragment,e),A(Y.$$.fragment,e),A(z.$$.fragment,e),A(K.$$.fragment,e),be=!1},d(e){e&&(s(D),s(u),s(P),s(f),s(w),s(pe),s(I),s(ue),s(me),s(G),s(_e),s(ge),s(n),s(he),s(Ae),s(le)),s(l),b(y,e),b(V,e),b(j,e),b(R),b(M),b(J),b(Z),b(W),b(H),b(X),b(B),b(N),b(Y),b(z),b(K,e)}}}const At='{"title":"Consistency Decoder","local":"consistency-decoder","sections":[{"title":"ConsistencyDecoderVAE","local":"diffusers.ConsistencyDecoderVAE","sections":[],"depth":2}],"depth":1}';function bt(q){return at(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class xt extends dt{constructor(l){super(),ct(this,l,bt,ht,it,{})}}export{xt as component};

Xet Storage Details

Size:
25.7 kB
·
Xet hash:
f12495806199014801b9ab3e903dfbc0de1dabf6e7f6ebce1f775219d19e73a1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.