Buckets:
| import{s as Be,o as Ze,n as Ce}from"../chunks/scheduler.8c3d61f6.js";import{S as Ge,i as Ue,g as p,s as a,r as g,A as $e,h as c,f as s,c as l,j as H,u as h,x as J,k as S,y as w,a as n,v as b,d as M,t as y,w as _}from"../chunks/index.da70eac4.js";import{D as he}from"../chunks/Docstring.634d8861.js";import{C as ve}from"../chunks/CodeBlock.a9c4becf.js";import{E as We}from"../chunks/ExampleCodeBlock.f879b663.js";import{H as re,E as xe}from"../chunks/getInferenceSnippets.ea1775db.js";function Ne(L){let o,B="Examples:",T,d,m;return d=new ve({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lJTBBJTBBZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUwQSUyMyUyMExvYWQlMjB0aGUlMjBjZF9pbWFnZW5ldDY0X2wyJTIwY2hlY2twb2ludC4lMEFtb2RlbF9pZF9vcl9wYXRoJTIwJTNEJTIwJTIyb3BlbmFpJTJGZGlmZnVzZXJzLWNkX2ltYWdlbmV0NjRfbDIlMjIlMEFwaXBlJTIwJTNEJTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZF9vcl9wYXRoJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUudG8oZGV2aWNlKSUwQSUwQSUyMyUyME9uZXN0ZXAlMjBTYW1wbGluZyUwQWltYWdlJTIwJTNEJTIwcGlwZShudW1faW5mZXJlbmNlX3N0ZXBzJTNEMSkuaW1hZ2VzJTVCMCU1RCUwQWltYWdlLnNhdmUoJTIyY2RfaW1hZ2VuZXQ2NF9sMl9vbmVzdGVwX3NhbXBsZS5wbmclMjIpJTBBJTBBJTIzJTIwT25lc3RlcCUyMHNhbXBsaW5nJTJDJTIwY2xhc3MtY29uZGl0aW9uYWwlMjBpbWFnZSUyMGdlbmVyYXRpb24lMEElMjMlMjBJbWFnZU5ldC02NCUyMGNsYXNzJTIwbGFiZWwlMjAxNDUlMjBjb3JyZXNwb25kcyUyMHRvJTIwa2luZyUyMHBlbmd1aW5zJTBBaW1hZ2UlMjAlM0QlMjBwaXBlKG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QxJTJDJTIwY2xhc3NfbGFiZWxzJTNEMTQ1KS5pbWFnZXMlNUIwJTVEJTBBaW1hZ2Uuc2F2ZSglMjJjZF9pbWFnZW5ldDY0X2wyX29uZXN0ZXBfc2FtcGxlX3Blbmd1aW4ucG5nJTIyKSUwQSUwQSUyMyUyME11bHRpc3RlcCUyMHNhbXBsaW5nJTJDJTIwY2xhc3MtY29uZGl0aW9uYWwlMjBpbWFnZSUyMGdlbmVyYXRpb24lMEElMjMlMjBUaW1lc3RlcHMlMjBjYW4lMjBiZSUyMGV4cGxpY2l0bHklMjBzcGVjaWZpZWQlM0IlMjB0aGUlMjBwYXJ0aWN1bGFyJTIwdGltZXN0ZXBzJTIwYmVsb3clMjBhcmUlMjBmcm9tJTIwdGhlJTIwb3JpZ2luYWwlMjBHaXRIdWIlMjByZXBvJTNBJTBBJTIzJTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGb3BlbmFpJTJGY29uc2lzdGVuY3lfbW9kZWxzJTJGYmxvYiUyRm1haW4lMkZzY3JpcHRzJTJGbGF1bmNoLnNoJTIzTDc3JTBBaW1hZ2UlMjAlM0QlMjBwaXBlKG51bV9pbmZlcmVuY2Vfc3RlcHMlM0ROb25lJTJDJTIwdGltZXN0ZXBzJTNEJTVCMjIlMkMlMjAwJTVEJTJDJTIwY2xhc3NfbGFiZWxzJTNEMTQ1KS5pbWFnZXMlNUIwJTVEJTBBaW1hZ2Uuc2F2ZSglMjJjZF9pbWFnZW5ldDY0X2wyX211bHRpc3RlcF9zYW1wbGVfcGVuZ3Vpbi5wbmclMjIp",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> ConsistencyModelPipeline | |
| <span class="hljs-meta">>>> </span>device = <span class="hljs-string">"cuda"</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Load the cd_imagenet64_l2 checkpoint.</span> | |
| <span class="hljs-meta">>>> </span>model_id_or_path = <span class="hljs-string">"openai/diffusers-cd_imagenet64_l2"</span> | |
| <span class="hljs-meta">>>> </span>pipe = ConsistencyModelPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16) | |
| <span class="hljs-meta">>>> </span>pipe.to(device) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Onestep Sampling</span> | |
| <span class="hljs-meta">>>> </span>image = pipe(num_inference_steps=<span class="hljs-number">1</span>).images[<span class="hljs-number">0</span>] | |
| <span class="hljs-meta">>>> </span>image.save(<span class="hljs-string">"cd_imagenet64_l2_onestep_sample.png"</span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Onestep sampling, class-conditional image generation</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># ImageNet-64 class label 145 corresponds to king penguins</span> | |
| <span class="hljs-meta">>>> </span>image = pipe(num_inference_steps=<span class="hljs-number">1</span>, class_labels=<span class="hljs-number">145</span>).images[<span class="hljs-number">0</span>] | |
| <span class="hljs-meta">>>> </span>image.save(<span class="hljs-string">"cd_imagenet64_l2_onestep_sample_penguin.png"</span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Multistep sampling, class-conditional image generation</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Timesteps can be explicitly specified; the particular timesteps below are from the original GitHub repo:</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># https://github.com/openai/consistency_models/blob/main/scripts/launch.sh#L77</span> | |
| <span class="hljs-meta">>>> </span>image = pipe(num_inference_steps=<span class="hljs-literal">None</span>, timesteps=[<span class="hljs-number">22</span>, <span class="hljs-number">0</span>], class_labels=<span class="hljs-number">145</span>).images[<span class="hljs-number">0</span>] | |
| <span class="hljs-meta">>>> </span>image.save(<span class="hljs-string">"cd_imagenet64_l2_multistep_sample_penguin.png"</span>)`,wrap:!1}}),{c(){o=p("p"),o.textContent=B,T=a(),g(d.$$.fragment)},l(i){o=c(i,"P",{"data-svelte-h":!0}),J(o)!=="svelte-kvfsh7"&&(o.textContent=B),T=l(i),h(d.$$.fragment,i)},m(i,u){n(i,o,u),n(i,T,u),b(d,i,u),m=!0},p:Ce,i(i){m||(M(d.$$.fragment,i),m=!0)},o(i){y(d.$$.fragment,i),m=!1},d(i){i&&(s(o),s(T)),_(d,i)}}}function Ye(L){let o,B,T,d,m,i,u,be='Consistency Models were proposed in <a href="https://huggingface.co/papers/2303.01469" rel="nofollow">Consistency Models</a> by Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever.',D,Z,Me="The abstract from the paper is:",Q,C,ye="<em>Diffusion models have significantly advanced the fields of image, audio, and video generation, but they depend on an iterative sampling process that causes slow generation. To overcome this limitation, we propose consistency models, a new family of models that generate high quality samples by directly mapping noise to data. They support fast one-step generation by design, while still allowing multistep sampling to trade compute for sample quality. They also support zero-shot data editing, such as image inpainting, colorization, and super-resolution, without requiring explicit training on these tasks. Consistency models can be trained either by distilling pre-trained diffusion models, or as standalone generative models altogether. Through extensive experiments, we demonstrate that they outperform existing distillation techniques for diffusion models in one- and few-step sampling, achieving the new state-of-the-art FID of 3.55 on CIFAR-10 and 6.20 on ImageNet 64x64 for one-step generation. When trained in isolation, consistency models become a new family of generative models that can outperform existing one-step, non-adversarial generative models on standard benchmarks such as CIFAR-10, ImageNet 64x64 and LSUN 256x256.</em>",q,G,_e='The original codebase can be found at <a href="https://github.com/openai/consistency_models" rel="nofollow">openai/consistency_models</a>, and additional checkpoints are available at <a href="https://huggingface.co/openai" rel="nofollow">openai</a>.',O,U,Te='The pipeline was contributed by <a href="https://github.com/dg845" rel="nofollow">dg845</a> and <a href="https://huggingface.co/ayushtues" rel="nofollow">ayushtues</a>. ❤️',A,$,K,W,we="For an additional speed-up, use <code>torch.compile</code> to generate multiple images in <1 second:",ee,x,te,N,se,r,Y,de,R,Je="Pipeline for unconditional or class-conditional image generation.",me,k,Ie=`This model inherits from <a href="/docs/diffusers/pr_12403/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.).`,ue,j,P,fe,v,ne,V,ae,I,X,ge,E,je="Output class for image pipelines.",le,z,ie,F,oe;return m=new re({props:{title:"Consistency Models",local:"consistency-models",headingTag:"h1"}}),$=new re({props:{title:"Tips",local:"tips",headingTag:"h2"}}),x=new ve({props:{code:"JTIwJTIwaW1wb3J0JTIwdG9yY2glMEElMjAlMjBmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lJTBBJTBBJTIwJTIwZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUwQSUyMCUyMCUyMyUyMExvYWQlMjB0aGUlMjBjZF9iZWRyb29tMjU2X2xwaXBzJTIwY2hlY2twb2ludC4lMEElMjAlMjBtb2RlbF9pZF9vcl9wYXRoJTIwJTNEJTIwJTIyb3BlbmFpJTJGZGlmZnVzZXJzLWNkX2JlZHJvb20yNTZfbHBpcHMlMjIlMEElMjAlMjBwaXBlJTIwJTNEJTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZF9vcl9wYXRoJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQSUyMCUyMHBpcGUudG8oZGV2aWNlKSUwQSUwQSUyQiUyMHBpcGUudW5ldCUyMCUzRCUyMHRvcmNoLmNvbXBpbGUocGlwZS51bmV0JTJDJTIwbW9kZSUzRCUyMnJlZHVjZS1vdmVyaGVhZCUyMiUyQyUyMGZ1bGxncmFwaCUzRFRydWUpJTBBJTBBJTIwJTIwJTIzJTIwTXVsdGlzdGVwJTIwc2FtcGxpbmclMEElMjAlMjAlMjMlMjBUaW1lc3RlcHMlMjBjYW4lMjBiZSUyMGV4cGxpY2l0bHklMjBzcGVjaWZpZWQlM0IlMjB0aGUlMjBwYXJ0aWN1bGFyJTIwdGltZXN0ZXBzJTIwYmVsb3clMjBhcmUlMjBmcm9tJTIwdGhlJTIwb3JpZ2luYWwlMjBHaXRIdWIlMjByZXBvJTNBJTBBJTIwJTIwJTIzJTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGb3BlbmFpJTJGY29uc2lzdGVuY3lfbW9kZWxzJTJGYmxvYiUyRm1haW4lMkZzY3JpcHRzJTJGbGF1bmNoLnNoJTIzTDgzJTBBJTIwJTIwZm9yJTIwXyUyMGluJTIwcmFuZ2UoMTApJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwaW1hZ2UlMjAlM0QlMjBwaXBlKHRpbWVzdGVwcyUzRCU1QjE3JTJDJTIwMCU1RCkuaW1hZ2VzJTVCMCU1RCUwQSUyMCUyMCUyMCUyMCUyMCUyMGltYWdlLnNob3coKQ==",highlighted:` import torch | |
| from diffusers import ConsistencyModelPipeline | |
| device = "cuda" | |
| # Load the cd_bedroom256_lpips checkpoint. | |
| model_id_or_path = "openai/diffusers-cd_bedroom256_lpips" | |
| pipe = ConsistencyModelPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16) | |
| pipe.to(device) | |
| <span class="hljs-addition">+ pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)</span> | |
| # Multistep sampling | |
| # Timesteps can be explicitly specified; the particular timesteps below are from the original GitHub repo: | |
| # https://github.com/openai/consistency_models/blob/main/scripts/launch.sh#L83 | |
| for _ in range(10): | |
| image = pipe(timesteps=[17, 0]).images[0] | |
| image.show()`,wrap:!1}}),N=new re({props:{title:"ConsistencyModelPipeline",local:"diffusers.ConsistencyModelPipeline",headingTag:"h2"}}),Y=new he({props:{name:"class diffusers.ConsistencyModelPipeline",anchor:"diffusers.ConsistencyModelPipeline",parameters:[{name:"unet",val:": UNet2DModel"},{name:"scheduler",val:": CMStochasticIterativeScheduler"}],parametersDescription:[{anchor:"diffusers.ConsistencyModelPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/pr_12403/en/api/models/unet2d#diffusers.UNet2DModel">UNet2DModel</a>) — | |
| A <code>UNet2DModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.ConsistencyModelPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12403/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 | |
| compatible with <a href="/docs/diffusers/pr_12403/en/api/schedulers/cm_stochastic_iterative#diffusers.CMStochasticIterativeScheduler">CMStochasticIterativeScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/vr_12403/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py#L67"}}),P=new he({props:{name:"__call__",anchor:"diffusers.ConsistencyModelPipeline.__call__",parameters:[{name:"batch_size",val:": int = 1"},{name:"class_labels",val:": typing.Union[torch.Tensor, typing.List[int], int, NoneType] = None"},{name:"num_inference_steps",val:": int = 1"},{name:"timesteps",val:": typing.List[int] = None"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": int = 1"}],parametersDescription:[{anchor:"diffusers.ConsistencyModelPipeline.__call__.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| The number of images to generate.`,name:"batch_size"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.class_labels",description:`<strong>class_labels</strong> (<code>torch.Tensor</code> or <code>List[int]</code> or <code>int</code>, <em>optional</em>) — | |
| Optional class labels for conditioning class-conditional consistency models. Not used if the model is | |
| not class-conditional.`,name:"class_labels"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| 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.ConsistencyModelPipeline.__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 are used. Must be in descending order.`,name:"timesteps"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.generator",description:`<strong>generator</strong> (<code>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.ConsistencyModelPipeline.__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.ConsistencyModelPipeline.__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.ConsistencyModelPipeline.__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_12403/en/api/pipelines/dit#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) — | |
| A function that calls every <code>callback_steps</code> steps during inference. The function is called with the | |
| following arguments: <code>callback(step: int, timestep: int, latents: torch.Tensor)</code>.`,name:"callback"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| The frequency at which the <code>callback</code> function is called. If not specified, the callback is called at | |
| every step.`,name:"callback_steps"}],source:"https://github.com/huggingface/diffusers/blob/vr_12403/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py#L171",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>If <code>return_dict</code> is <code>True</code>, <a | |
| href="/docs/diffusers/pr_12403/en/api/pipelines/dit#diffusers.ImagePipelineOutput" | |
| >ImagePipelineOutput</a> is returned, otherwise a <code>tuple</code> is | |
| returned where the first element is a list with the generated images.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/diffusers/pr_12403/en/api/pipelines/dit#diffusers.ImagePipelineOutput" | |
| >ImagePipelineOutput</a> or <code>tuple</code></p> | |
| `}}),v=new We({props:{anchor:"diffusers.ConsistencyModelPipeline.__call__.example",$$slots:{default:[Ne]},$$scope:{ctx:L}}}),V=new re({props:{title:"ImagePipelineOutput",local:"diffusers.ImagePipelineOutput",headingTag:"h2"}}),X=new he({props:{name:"class diffusers.ImagePipelineOutput",anchor:"diffusers.ImagePipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"}],parametersDescription:[{anchor:"diffusers.ImagePipelineOutput.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"}],source:"https://github.com/huggingface/diffusers/blob/vr_12403/src/diffusers/pipelines/pipeline_utils.py#L118"}}),z=new xe({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/consistency_models.md"}}),{c(){o=p("meta"),B=a(),T=p("p"),d=a(),g(m.$$.fragment),i=a(),u=p("p"),u.innerHTML=be,D=a(),Z=p("p"),Z.textContent=Me,Q=a(),C=p("p"),C.innerHTML=ye,q=a(),G=p("p"),G.innerHTML=_e,O=a(),U=p("p"),U.innerHTML=Te,A=a(),g($.$$.fragment),K=a(),W=p("p"),W.innerHTML=we,ee=a(),g(x.$$.fragment),te=a(),g(N.$$.fragment),se=a(),r=p("div"),g(Y.$$.fragment),de=a(),R=p("p"),R.textContent=Je,me=a(),k=p("p"),k.innerHTML=Ie,ue=a(),j=p("div"),g(P.$$.fragment),fe=a(),g(v.$$.fragment),ne=a(),g(V.$$.fragment),ae=a(),I=p("div"),g(X.$$.fragment),ge=a(),E=p("p"),E.textContent=je,le=a(),g(z.$$.fragment),ie=a(),F=p("p"),this.h()},l(e){const t=$e("svelte-u9bgzb",document.head);o=c(t,"META",{name:!0,content:!0}),t.forEach(s),B=l(e),T=c(e,"P",{}),H(T).forEach(s),d=l(e),h(m.$$.fragment,e),i=l(e),u=c(e,"P",{"data-svelte-h":!0}),J(u)!=="svelte-u72wa"&&(u.innerHTML=be),D=l(e),Z=c(e,"P",{"data-svelte-h":!0}),J(Z)!=="svelte-1cwsb16"&&(Z.textContent=Me),Q=l(e),C=c(e,"P",{"data-svelte-h":!0}),J(C)!=="svelte-1s9qdye"&&(C.innerHTML=ye),q=l(e),G=c(e,"P",{"data-svelte-h":!0}),J(G)!=="svelte-hagm33"&&(G.innerHTML=_e),O=l(e),U=c(e,"P",{"data-svelte-h":!0}),J(U)!=="svelte-a255m4"&&(U.innerHTML=Te),A=l(e),h($.$$.fragment,e),K=l(e),W=c(e,"P",{"data-svelte-h":!0}),J(W)!=="svelte-2wb3ud"&&(W.innerHTML=we),ee=l(e),h(x.$$.fragment,e),te=l(e),h(N.$$.fragment,e),se=l(e),r=c(e,"DIV",{class:!0});var f=H(r);h(Y.$$.fragment,f),de=l(f),R=c(f,"P",{"data-svelte-h":!0}),J(R)!=="svelte-1ka7pyd"&&(R.textContent=Je),me=l(f),k=c(f,"P",{"data-svelte-h":!0}),J(k)!=="svelte-1yt3ip0"&&(k.innerHTML=Ie),ue=l(f),j=c(f,"DIV",{class:!0});var pe=H(j);h(P.$$.fragment,pe),fe=l(pe),h(v.$$.fragment,pe),pe.forEach(s),f.forEach(s),ne=l(e),h(V.$$.fragment,e),ae=l(e),I=c(e,"DIV",{class:!0});var ce=H(I);h(X.$$.fragment,ce),ge=l(ce),E=c(ce,"P",{"data-svelte-h":!0}),J(E)!=="svelte-19wetgi"&&(E.textContent=je),ce.forEach(s),le=l(e),h(z.$$.fragment,e),ie=l(e),F=c(e,"P",{}),H(F).forEach(s),this.h()},h(){S(o,"name","hf:doc:metadata"),S(o,"content",Pe),S(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),S(r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),S(I,"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,t){w(document.head,o),n(e,B,t),n(e,T,t),n(e,d,t),b(m,e,t),n(e,i,t),n(e,u,t),n(e,D,t),n(e,Z,t),n(e,Q,t),n(e,C,t),n(e,q,t),n(e,G,t),n(e,O,t),n(e,U,t),n(e,A,t),b($,e,t),n(e,K,t),n(e,W,t),n(e,ee,t),b(x,e,t),n(e,te,t),b(N,e,t),n(e,se,t),n(e,r,t),b(Y,r,null),w(r,de),w(r,R),w(r,me),w(r,k),w(r,ue),w(r,j),b(P,j,null),w(j,fe),b(v,j,null),n(e,ne,t),b(V,e,t),n(e,ae,t),n(e,I,t),b(X,I,null),w(I,ge),w(I,E),n(e,le,t),b(z,e,t),n(e,ie,t),n(e,F,t),oe=!0},p(e,[t]){const f={};t&2&&(f.$$scope={dirty:t,ctx:e}),v.$set(f)},i(e){oe||(M(m.$$.fragment,e),M($.$$.fragment,e),M(x.$$.fragment,e),M(N.$$.fragment,e),M(Y.$$.fragment,e),M(P.$$.fragment,e),M(v.$$.fragment,e),M(V.$$.fragment,e),M(X.$$.fragment,e),M(z.$$.fragment,e),oe=!0)},o(e){y(m.$$.fragment,e),y($.$$.fragment,e),y(x.$$.fragment,e),y(N.$$.fragment,e),y(Y.$$.fragment,e),y(P.$$.fragment,e),y(v.$$.fragment,e),y(V.$$.fragment,e),y(X.$$.fragment,e),y(z.$$.fragment,e),oe=!1},d(e){e&&(s(B),s(T),s(d),s(i),s(u),s(D),s(Z),s(Q),s(C),s(q),s(G),s(O),s(U),s(A),s(K),s(W),s(ee),s(te),s(se),s(r),s(ne),s(ae),s(I),s(le),s(ie),s(F)),s(o),_(m,e),_($,e),_(x,e),_(N,e),_(Y),_(P),_(v),_(V,e),_(X),_(z,e)}}}const Pe='{"title":"Consistency Models","local":"consistency-models","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"ConsistencyModelPipeline","local":"diffusers.ConsistencyModelPipeline","sections":[],"depth":2},{"title":"ImagePipelineOutput","local":"diffusers.ImagePipelineOutput","sections":[],"depth":2}],"depth":1}';function Ve(L){return Ze(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class He extends Ge{constructor(o){super(),Ue(this,o,Ve,Ye,Be,{})}}export{He as component}; | |
Xet Storage Details
- Size:
- 21.4 kB
- Xet hash:
- a86751b8fd4dca989462477b1189642f581e3ca567421c1cec7b754f5ab87ffb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.