Buckets:

rtrm's picture
download
raw
101 kB
import{s as Yi,o as Qi,n as G}from"../chunks/scheduler.8c3d61f6.js";import{S as qi,i as Ai,g as r,s as i,r as u,A as Oi,h as l,f as p,c as s,j as U,u as h,x as c,k as Z,y as n,a as v,v as g,d as b,t as _,w as y}from"../chunks/index.da70eac4.js";import{T as _t}from"../chunks/Tip.1d9b8c37.js";import{D as P}from"../chunks/Docstring.6b390b9a.js";import{C as te}from"../chunks/CodeBlock.00a903b3.js";import{E as ee}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as Cn,E as Ki}from"../chunks/EditOnGithub.1e64e623.js";function es(T){let o,w='You shouldn’t use the <a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a> class for training. Individual components (for example, <a href="/docs/diffusers/pr_10567/en/api/models/unet2d#diffusers.UNet2DModel">UNet2DModel</a> and <a href="/docs/diffusers/pr_10567/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) of diffusion pipelines are usually trained individually, so we suggest directly working with them instead.',d,a,m,t,M='Pipelines do not offer any training functionality. You’ll notice PyTorch’s autograd is disabled by decorating the <code>__call__()</code> method with a <a href="https://pytorch.org/docs/stable/generated/torch.no_grad.html" rel="nofollow"><code>torch.no_grad</code></a> decorator because pipelines should not be used for training. If you’re interested in training, please take a look at the <a href="../../training/overview">Training</a> guides instead!';return{c(){o=r("p"),o.innerHTML=w,d=i(),a=r("br"),m=i(),t=r("p"),t.innerHTML=M},l(k){o=l(k,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kig290"&&(o.innerHTML=w),d=s(k),a=l(k,"BR",{}),m=s(k),t=l(k,"P",{"data-svelte-h":!0}),c(t)!=="svelte-1a94ctl"&&(t.innerHTML=M)},m(k,z){v(k,o,z),v(k,d,z),v(k,a,z),v(k,m,z),v(k,t,z)},p:G,d(k){k&&(p(o),p(d),p(a),p(m),p(t))}}}function ts(T){let o,w=`If the pipeline already has the correct torch.dtype and torch.device, then it is returned as is. Otherwise,
the returned pipeline is a copy of self with the desired torch.dtype and torch.device.`;return{c(){o=r("p"),o.textContent=w},l(d){o=l(d,"P",{"data-svelte-h":!0}),c(o)!=="svelte-18gkv0g"&&(o.textContent=w)},m(d,a){v(d,o,a)},p:G,d(d){d&&p(o)}}}function ns(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMCglMEElMjAlMjAlMjAlMjBTdGFibGVEaWZmdXNpb25QaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMFN0YWJsZURpZmZ1c2lvbkltZzJJbWdQaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMFN0YWJsZURpZmZ1c2lvbklucGFpbnRQaXBlbGluZSUyQyUwQSklMEElMEF0ZXh0MmltZyUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIpJTBBaW1nMmltZyUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvbkltZzJJbWdQaXBlbGluZSgqKnRleHQyaW1nLmNvbXBvbmVudHMpJTBBaW5wYWludCUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvbklucGFpbnRQaXBlbGluZSgqKnRleHQyaW1nLmNvbXBvbmVudHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> (
<span class="hljs-meta">... </span> StableDiffusionPipeline,
<span class="hljs-meta">... </span> StableDiffusionImg2ImgPipeline,
<span class="hljs-meta">... </span> StableDiffusionInpaintPipeline,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>text2img = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
<span class="hljs-meta">&gt;&gt;&gt; </span>inpaint = StableDiffusionInpaintPipeline(**text2img.components)`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function os(T){let o,w=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated models</a>, log-in with
<code>huggingface-cli login</code>.`;return{c(){o=r("p"),o.innerHTML=w},l(d){o=l(d,"P",{"data-svelte-h":!0}),c(o)!=="svelte-6jnfc0"&&(o.innerHTML=w)},m(d,a){v(d,o,a)},p:G,d(d){d&&p(o)}}}function is(T){let o,w=`⚠️ Don’t enable attention slicing if you’re already using <code>scaled_dot_product_attention</code> (SDPA) from PyTorch
2.0 or xFormers. These attention computations are already very memory efficient so you won’t need to enable
this function. If you enable attention slicing with SDPA or xFormers, it can lead to serious slow downs!`;return{c(){o=r("p"),o.innerHTML=w},l(d){o=l(d,"P",{"data-svelte-h":!0}),c(o)!=="svelte-ackzsn"&&(o.innerHTML=w)},m(d,a){v(d,o,a)},p:G,d(d){d&&p(o)}}}function ss(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUwQSUyMCUyMCUyMCUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUlMkMlMEEpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyYSUyMHBob3RvJTIwb2YlMjBhbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwbWFycyUyMiUwQXBpcGUuZW5hYmxlX2F0dGVudGlvbl9zbGljaW5nKCklMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0KS5pbWFnZXMlNUIwJTVE",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
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span> <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>,
<span class="hljs-meta">... </span> torch_dtype=torch.float16,
<span class="hljs-meta">... </span> use_safetensors=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;a photo of an astronaut riding a horse on mars&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_attention_slicing()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function as(T){let o,w=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){o=r("p"),o.textContent=w},l(d){o=l(d,"P",{"data-svelte-h":!0}),c(o)!=="svelte-17p1lpg"&&(o.textContent=w)},m(d,a){v(d,o,a)},p:G,d(d){d&&p(o)}}}function rs(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEFmcm9tJTIweGZvcm1lcnMub3BzJTIwaW1wb3J0JTIwTWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCUwQSUwQXBpcGUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTItMSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQXBpcGUuZW5hYmxlX3hmb3JtZXJzX21lbW9yeV9lZmZpY2llbnRfYXR0ZW50aW9uKGF0dGVudGlvbl9vcCUzRE1lbW9yeUVmZmljaWVudEF0dGVudGlvbkZsYXNoQXR0ZW50aW9uT3ApJTBBJTIzJTIwV29ya2Fyb3VuZCUyMGZvciUyMG5vdCUyMGFjY2VwdGluZyUyMGF0dGVudGlvbiUyMHNoYXBlJTIwdXNpbmclMjBWQUUlMjBmb3IlMjBGbGFzaCUyMEF0dGVudGlvbiUwQXBpcGUudmFlLmVuYWJsZV94Zm9ybWVyc19tZW1vcnlfZWZmaWNpZW50X2F0dGVudGlvbihhdHRlbnRpb25fb3AlM0ROb25lKQ==",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> DiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> xformers.ops <span class="hljs-keyword">import</span> MemoryEfficientAttentionFlashAttentionOp
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_xformers_memory_efficient_attention(attention_op=MemoryEfficientAttentionFlashAttentionOp)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Workaround for not accepting attention shape using VAE for Flash Attention</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.vae.enable_xformers_memory_efficient_attention(attention_op=<span class="hljs-literal">None</span>)`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function ls(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTJDJTIwU3RhYmxlRGlmZnVzaW9uU0FHUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEFuZXdfcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblNBR1BpcGVsaW5lLmZyb21fcGlwZShwaXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline, StableDiffusionSAGPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>new_pipe = StableDiffusionSAGPipeline.from_pipe(pipe)`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function ds(T){let o,w="If you get the error message below, you need to finetune the weights for your downstream task:",d,a,m;return a=new te({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIwYW5kJTIwYXJlJTIwbmV3bHklMjBpbml0aWFsaXplZCUyMGJlY2F1c2UlMjB0aGUlMjBzaGFwZXMlMjBkaWQlMjBub3QlMjBtYXRjaCUzQSUwQS0lMjBjb252X2luLndlaWdodCUzQSUyMGZvdW5kJTIwc2hhcGUlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDQlMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMGNoZWNrcG9pbnQlMjBhbmQlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDklMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMG1vZGVsJTIwaW5zdGFudGlhdGVkJTBBWW91JTIwc2hvdWxkJTIwcHJvYmFibHklMjBUUkFJTiUyMHRoaXMlMjBtb2RlbCUyMG9uJTIwYSUyMGRvd24tc3RyZWFtJTIwdGFzayUyMHRvJTIwYmUlMjBhYmxlJTIwdG8lMjB1c2UlMjBpdCUyMGZvciUyMHByZWRpY3Rpb25zJTIwYW5kJTIwaW5mZXJlbmNlLg==",highlighted:`Some weights of UNet2DConditionModel were not initialized from the model checkpoint <span class="hljs-built_in">at</span> stable-<span class="hljs-keyword">diffusion-v1-5/stable-diffusion-v1-5 </span><span class="hljs-keyword">and </span>are newly initialized <span class="hljs-keyword">because </span>the <span class="hljs-keyword">shapes </span><span class="hljs-keyword">did </span>not match:
- conv_in.weight: found <span class="hljs-keyword">shape </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the checkpoint <span class="hljs-keyword">and </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the model <span class="hljs-keyword">instantiated
</span>You <span class="hljs-keyword">should </span>probably TRAIN this model on a down-stream task to <span class="hljs-keyword">be </span>able to use it for predictions <span class="hljs-keyword">and </span>inference.`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-xueb0m"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function ps(T){let o,w=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in with
<code>huggingface-cli login</code>.`;return{c(){o=r("p"),o.innerHTML=w},l(d){o=l(d,"P",{"data-svelte-h":!0}),c(o)!=="svelte-x73rgs"&&(o.innerHTML=w)},m(d,a){v(d,o,a)},p:G,d(d){d&&p(o)}}}function fs(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQXBpcGVsaW5lJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMkNvbXBWaXMlMkZsZG0tdGV4dDJpbS1sYXJnZS0yNTYlMjIpJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMHRoYXQlMjByZXF1aXJlcyUyMGFuJTIwYXV0aG9yaXphdGlvbiUyMHRva2VuJTBBJTIzJTIwRm9yJTIwbW9yZSUyMGluZm9ybWF0aW9uJTIwb24lMjBhY2Nlc3MlMjB0b2tlbnMlMkMlMjBwbGVhc2UlMjByZWZlciUyMHRvJTIwdGhpcyUyMHNlY3Rpb24lMEElMjMlMjBvZiUyMHRoZSUyMGRvY3VtZW50YXRpb24lNUQoaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRvY3MlMkZodWIlMkZzZWN1cml0eS10b2tlbnMpJTBBcGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQSUwQSUyMyUyMFVzZSUyMGElMjBkaWZmZXJlbnQlMjBzY2hlZHVsZXIlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTE1TRGlzY3JldGVTY2hlZHVsZXIlMEElMEFzY2hlZHVsZXIlMjAlM0QlMjBMTVNEaXNjcmV0ZVNjaGVkdWxlci5mcm9tX2NvbmZpZyhwaXBlbGluZS5zY2hlZHVsZXIuY29uZmlnKSUwQXBpcGVsaW5lLnNjaGVkdWxlciUyMCUzRCUyMHNjaGVkdWxlcg==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download pipeline from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/ldm-text2im-large-256&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download pipeline that requires an authorization token</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For more information on access tokens, please refer to this section</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># of the documentation](https://huggingface.co/docs/hub/security-tokens)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Use a different scheduler</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LMSDiscreteScheduler
<span class="hljs-meta">&gt;&gt;&gt; </span>scheduler = LMSDiscreteScheduler.from_config(pipeline.scheduler.config)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.scheduler = scheduler`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function cs(T){let o,w="If you get the error message below, you need to finetune the weights for your downstream task:",d,a,m;return a=new te({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUyMHdlcmUlMjBub3QlMjBpbml0aWFsaXplZCUyMGZyb20lMjB0aGUlMjBtb2RlbCUyMGNoZWNrcG9pbnQlMjBhdCUyMHN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMGFuZCUyMGFyZSUyMG5ld2x5JTIwaW5pdGlhbGl6ZWQlMjBiZWNhdXNlJTIwdGhlJTIwc2hhcGVzJTIwZGlkJTIwbm90JTIwbWF0Y2glM0E=",highlighted:'Some weights of FlaxUNet2DConditionModel were not initialized from the model checkpoint <span class="hljs-built_in">at</span> stable-<span class="hljs-keyword">diffusion-v1-5/stable-diffusion-v1-5 </span><span class="hljs-keyword">and </span>are newly initialized <span class="hljs-keyword">because </span>the <span class="hljs-keyword">shapes </span><span class="hljs-keyword">did </span>not match:',wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-xueb0m"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function ms(T){let o,w=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated models</a>, log-in with
<code>huggingface-cli login</code>.`;return{c(){o=r("p"),o.innerHTML=w},l(d){o=l(d,"P",{"data-svelte-h":!0}),c(o)!=="svelte-6jnfc0"&&(o.innerHTML=w)},m(d,a){v(d,o,a)},p:G,d(d){d&&p(o)}}}function us(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhEaWZmdXNpb25QaXBlbGluZSUwQSUwQSUyMyUyMERvd25sb2FkJTIwcGlwZWxpbmUlMjBmcm9tJTIwaHVnZ2luZ2ZhY2UuY28lMjBhbmQlMjBjYWNoZS4lMEElMjMlMjBSZXF1aXJlcyUyMHRvJTIwYmUlMjBsb2dnZWQlMjBpbiUyMHRvJTIwSHVnZ2luZyUyMEZhY2UlMjBodWIlMkMlMEElMjMlMjBzZWUlMjBtb3JlJTIwaW4lMjAlNUJ0aGUlMjBkb2N1bWVudGF0aW9uJTVEKGh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkb2NzJTJGaHViJTJGc2VjdXJpdHktdG9rZW5zKSUwQXBpcGVsaW5lJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMEElMjAlMjAlMjAlMjB2YXJpYW50JTNEJTIyYmYxNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGR0eXBlJTNEam5wLmJmbG9hdDE2JTJDJTBBKSUwQSUwQSUyMyUyMERvd25sb2FkJTIwcGlwZWxpbmUlMkMlMjBidXQlMjB1c2UlMjBhJTIwZGlmZmVyZW50JTIwc2NoZWR1bGVyJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUwQWRwbXBwJTJDJTIwZHBtcHBfc3RhdGUlMjAlM0QlMjBGbGF4RFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZCUyQyUwQSUyMCUyMCUyMCUyMHN1YmZvbGRlciUzRCUyMnNjaGVkdWxlciUyMiUyQyUwQSklMEElMEFkcG1fcGlwZSUyQyUyMGRwbV9wYXJhbXMlMjAlM0QlMjBGbGF4U3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lkJTJDJTIwdmFyaWFudCUzRCUyMmJmMTYlMjIlMkMlMjBkdHlwZSUzRGpucC5iZmxvYXQxNiUyQyUyMHNjaGVkdWxlciUzRGRwbXBwJTBBKSUwQWRwbV9wYXJhbXMlNUIlMjJzY2hlZHVsZXIlMjIlNUQlMjAlM0QlMjBkcG1wcF9zdGF0ZQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxDiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download pipeline from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Requires to be logged in to Hugging Face hub,</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># see more in [the documentation](https://huggingface.co/docs/hub/security-tokens)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline, params = FlaxDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span> <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>,
<span class="hljs-meta">... </span> variant=<span class="hljs-string">&quot;bf16&quot;</span>,
<span class="hljs-meta">... </span> dtype=jnp.bfloat16,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download pipeline, but use a different scheduler</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxDPMSolverMultistepScheduler
<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dpmpp, dpmpp_state = FlaxDPMSolverMultistepScheduler.from_pretrained(
<span class="hljs-meta">... </span> model_id,
<span class="hljs-meta">... </span> subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dpm_pipe, dpm_params = FlaxStableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span> model_id, variant=<span class="hljs-string">&quot;bf16&quot;</span>, dtype=jnp.bfloat16, scheduler=dpmpp
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dpm_params[<span class="hljs-string">&quot;scheduler&quot;</span>] = dpmpp_state`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function hs(T){let o,w="Examples:",d,a,m;return a=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMiUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnVuZXQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU2MHVuZXQlNjAlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC11bmV0JTIyLiUwQXVuZXQucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLXVuZXQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU2MHVuZXQlNjAlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtdW5ldCUyMi4lMEF1bmV0LnB1c2hfdG9faHViKCUyMnlvdXItb3JnJTJGbXktZmluZXR1bmVkLXVuZXQlMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel
unet = UNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>)
<span class="hljs-comment"># Push the \`unet\` to your namespace with the name &quot;my-finetuned-unet&quot;.</span>
unet.push_to_hub(<span class="hljs-string">&quot;my-finetuned-unet&quot;</span>)
<span class="hljs-comment"># Push the \`unet\` to an organization with the name &quot;my-finetuned-unet&quot;.</span>
unet.push_to_hub(<span class="hljs-string">&quot;your-org/my-finetuned-unet&quot;</span>)`,wrap:!1}}),{c(){o=r("p"),o.textContent=w,d=i(),u(a.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=w),d=s(t),h(a.$$.fragment,t)},m(t,M){v(t,o,M),v(t,d,M),g(a,t,M),m=!0},p:G,i(t){m||(b(a.$$.fragment,t),m=!0)},o(t){_(a.$$.fragment,t),m=!1},d(t){t&&(p(o),p(d)),y(a,t)}}}function gs(T){let o,w,d,a,m,t,M,k="Pipelines provide a simple way to run state-of-the-art diffusion models in inference by bundling all of the necessary components (multiple independently-trained models, schedulers, and processors) into a single end-to-end class. Pipelines are flexible and they can be adapted to use different schedulers or even model components.",z,ke,ii='All pipelines are built from the base <a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a> class which provides basic functionality for loading, downloading, and saving all the components. Specific pipeline types (for example <a href="/docs/diffusers/pr_10567/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline">StableDiffusionPipeline</a>) loaded with <a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline.from_pretrained">from_pretrained()</a> are automatically detected and the pipeline components are loaded and passed to the <code>__init__</code> function of the pipeline.',cn,ne,mn,Ce,si="The table below lists all the pipelines currently available in 🤗 Diffusers and the tasks they support. Click on a pipeline to view its abstract and published paper.",un,Je,ai='<thead><tr><th>Pipeline</th> <th>Tasks</th></tr></thead> <tbody><tr><td><a href="amused">aMUSEd</a></td> <td>text2image</td></tr> <tr><td><a href="animatediff">AnimateDiff</a></td> <td>text2video</td></tr> <tr><td><a href="attend_and_excite">Attend-and-Excite</a></td> <td>text2image</td></tr> <tr><td><a href="audioldm">AudioLDM</a></td> <td>text2audio</td></tr> <tr><td><a href="audioldm2">AudioLDM2</a></td> <td>text2audio</td></tr> <tr><td><a href="auraflow">AuraFlow</a></td> <td>text2image</td></tr> <tr><td><a href="blip_diffusion">BLIP Diffusion</a></td> <td>text2image</td></tr> <tr><td><a href="cogvideox">CogVideoX</a></td> <td>text2video</td></tr> <tr><td><a href="consistency_models">Consistency Models</a></td> <td>unconditional image generation</td></tr> <tr><td><a href="controlnet">ControlNet</a></td> <td>text2image, image2image, inpainting</td></tr> <tr><td><a href="controlnet_flux">ControlNet with Flux.1</a></td> <td>text2image</td></tr> <tr><td><a href="controlnet_hunyuandit">ControlNet with Hunyuan-DiT</a></td> <td>text2image</td></tr> <tr><td><a href="controlnet_sd3">ControlNet with Stable Diffusion 3</a></td> <td>text2image</td></tr> <tr><td><a href="controlnet_sdxl">ControlNet with Stable Diffusion XL</a></td> <td>text2image</td></tr> <tr><td><a href="controlnetxs">ControlNet-XS</a></td> <td>text2image</td></tr> <tr><td><a href="controlnetxs_sdxl">ControlNet-XS with Stable Diffusion XL</a></td> <td>text2image</td></tr> <tr><td><a href="dance_diffusion">Dance Diffusion</a></td> <td>unconditional audio generation</td></tr> <tr><td><a href="ddim">DDIM</a></td> <td>unconditional image generation</td></tr> <tr><td><a href="ddpm">DDPM</a></td> <td>unconditional image generation</td></tr> <tr><td><a href="deepfloyd_if">DeepFloyd IF</a></td> <td>text2image, image2image, inpainting, super-resolution</td></tr> <tr><td><a href="diffedit">DiffEdit</a></td> <td>inpainting</td></tr> <tr><td><a href="dit">DiT</a></td> <td>text2image</td></tr> <tr><td><a href="flux">Flux</a></td> <td>text2image</td></tr> <tr><td><a href="hunyuandit">Hunyuan-DiT</a></td> <td>text2image</td></tr> <tr><td><a href="i2vgenxl">I2VGen-XL</a></td> <td>text2video</td></tr> <tr><td><a href="pix2pix">InstructPix2Pix</a></td> <td>image editing</td></tr> <tr><td><a href="kandinsky">Kandinsky 2.1</a></td> <td>text2image, image2image, inpainting, interpolation</td></tr> <tr><td><a href="kandinsky_v22">Kandinsky 2.2</a></td> <td>text2image, image2image, inpainting</td></tr> <tr><td><a href="kandinsky3">Kandinsky 3</a></td> <td>text2image, image2image</td></tr> <tr><td><a href="kolors">Kolors</a></td> <td>text2image</td></tr> <tr><td><a href="latent_consistency_models">Latent Consistency Models</a></td> <td>text2image</td></tr> <tr><td><a href="latent_diffusion">Latent Diffusion</a></td> <td>text2image, super-resolution</td></tr> <tr><td><a href="latte">Latte</a></td> <td>text2image</td></tr> <tr><td><a href="ledits_pp">LEDITS++</a></td> <td>image editing</td></tr> <tr><td><a href="lumina">Lumina-T2X</a></td> <td>text2image</td></tr> <tr><td><a href="marigold">Marigold</a></td> <td>depth</td></tr> <tr><td><a href="panorama">MultiDiffusion</a></td> <td>text2image</td></tr> <tr><td><a href="musicldm">MusicLDM</a></td> <td>text2audio</td></tr> <tr><td><a href="pag">PAG</a></td> <td>text2image</td></tr> <tr><td><a href="paint_by_example">Paint by Example</a></td> <td>inpainting</td></tr> <tr><td><a href="pia">PIA</a></td> <td>image2video</td></tr> <tr><td><a href="pixart">PixArt-α</a></td> <td>text2image</td></tr> <tr><td><a href="pixart_sigma">PixArt-Σ</a></td> <td>text2image</td></tr> <tr><td><a href="self_attention_guidance">Self-Attention Guidance</a></td> <td>text2image</td></tr> <tr><td><a href="semantic_stable_diffusion">Semantic Guidance</a></td> <td>text2image</td></tr> <tr><td><a href="shap_e">Shap-E</a></td> <td>text-to-3D, image-to-3D</td></tr> <tr><td><a href="stable_audio">Stable Audio</a></td> <td>text2audio</td></tr> <tr><td><a href="stable_cascade">Stable Cascade</a></td> <td>text2image</td></tr> <tr><td><a href="stable_diffusion/overview">Stable Diffusion</a></td> <td>text2image, image2image, depth2image, inpainting, image variation, latent upscaler, super-resolution</td></tr> <tr><td><a href="stable_diffusion/stable_diffusion_xl">Stable Diffusion XL</a></td> <td>text2image, image2image, inpainting</td></tr> <tr><td><a href="stable_diffusion/sdxl_turbo">Stable Diffusion XL Turbo</a></td> <td>text2image, image2image, inpainting</td></tr> <tr><td><a href="stable_unclip">Stable unCLIP</a></td> <td>text2image, image variation</td></tr> <tr><td><a href="stable_diffusion/adapter">T2I-Adapter</a></td> <td>text2image</td></tr> <tr><td><a href="text_to_video">Text2Video</a></td> <td>text2video, video2video</td></tr> <tr><td><a href="text_to_video_zero">Text2Video-Zero</a></td> <td>text2video</td></tr> <tr><td><a href="unclip">unCLIP</a></td> <td>text2image, image variation</td></tr> <tr><td><a href="unidiffuser">UniDiffuser</a></td> <td>text2image, image2text, image variation, text variation, unconditional image generation, unconditional audio generation</td></tr> <tr><td><a href="value_guided_sampling">Value-guided planning</a></td> <td>value guided sampling</td></tr> <tr><td><a href="wuerstchen">Wuerstchen</a></td> <td>text2image</td></tr></tbody>',hn,Ge,gn,x,Ie,Jn,yt,ri="Base class for all pipelines.",Gn,vt,li=`<a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a> stores all components (models, schedulers, and processors) for diffusion pipelines and
provides methods for loading, downloading and saving models. It also includes methods to:`,In,xt,di="<li>move all PyTorch modules to the device of your choice</li> <li>enable/disable the progress bar for the denoising iteration</li>",Wn,wt,pi="Class attributes:",Hn,$t,fi=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the
diffusion pipeline’s components.</li> <li><strong>_optional_components</strong> (<code>List[str]</code>) — List of all optional components that don’t have to be passed to the
pipeline to function (should be overridden by subclasses).</li>`,Fn,oe,We,Bn,Mt,ci="Call self as a function.",Sn,Tt,He,Vn,W,Fe,Nn,Ut,mi=`Performs Pipeline dtype and/or device conversion. A torch.dtype and torch.device are inferred from the
arguments of <code>self.to(*args, **kwargs).</code>`,Ln,ie,Xn,Zt,ui="Here are the ways to call <code>to</code>:",Rn,Pt,hi=`<li><code>to(dtype, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li> <li><code>to(device, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a></li> <li><code>to(device=None, dtype=None, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the
specified <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a> and
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li>`,En,B,Be,zn,Dt,gi=`The <code>self.components</code> property can be useful to run different pipelines with the same weights and
configurations without reallocating additional memory.`,Yn,jt,bi=`Returns (<code>dict</code>):
A dictionary containing all the modules needed to initialize the pipeline.`,Qn,se,qn,ae,Se,An,kt,_i=`Disable sliced attention computation. If <code>enable_attention_slicing</code> was previously called, attention is
computed in one step.`,On,re,Ve,Kn,Ct,yi='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',eo,Y,Ne,to,Jt,vi="Download and cache a PyTorch diffusion pipeline from pretrained pipeline weights.",no,le,oo,S,Le,io,Gt,xi=`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. For more than one attention head, the computation is performed
sequentially over each head. This is useful to save some memory in exchange for a small speed decrease.`,so,de,ao,pe,ro,fe,Xe,lo,It,wi=`Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
to <code>enable_sequential_cpu_offload</code>, this method moves one whole model at a time to the GPU when its <code>forward</code>
method is called, and the model remains in GPU until the next model runs. Memory savings are lower than with
<code>enable_sequential_cpu_offload</code>, but performance is much better due to the iterative execution of the <code>unet</code>.`,po,ce,Re,fo,Wt,$i=`Offloads all models to CPU using 🤗 Accelerate, significantly reducing memory usage. When called, the state
dicts of all <code>torch.nn.Module</code> components (except those in <code>self._exclude_from_cpu_offload</code>) are saved to CPU
and then moved to <code>torch.device(&#39;meta&#39;)</code> and loaded to GPU only when their specific submodule has its <code>forward</code>
method called. Offloading happens on a submodule basis. Memory savings are higher than with
<code>enable_model_cpu_offload</code>, but performance is lower.`,co,V,Ee,mo,Ht,Mi=`Enable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>. When this
option is enabled, you should observe lower GPU memory usage and a potential speed up during inference. Speed
up during training is not guaranteed.`,uo,me,ho,ue,go,Q,ze,bo,Ft,Ti=`Create a new pipeline from a given pipeline. This method is useful to create a new pipeline from the existing
pipeline components without reallocating additional memory.`,_o,he,yo,C,Ye,vo,Bt,Ui="Instantiate a PyTorch diffusion pipeline from pretrained pipeline weights.",xo,St,Zi="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",wo,ge,$o,be,Mo,_e,To,ye,Qe,Uo,Vt,Pi=`Function that offloads all components, removes all model hooks that were added when using
<code>enable_model_cpu_offload</code> and then applies them again. In case the model has not been offloaded this function
is a no-op. Make sure to add this function to the end of the <code>__call__</code> function of your pipeline so that it
functions correctly when applying enable_model_cpu_offload.`,Zo,ve,qe,Po,Nt,Di="Convert a NumPy image or a batch of images to a PIL image.",Do,xe,Ae,jo,Lt,ji="Removes all hooks that were added when using <code>enable_sequential_cpu_offload</code> or <code>enable_model_cpu_offload</code>.",ko,we,Oe,Co,Xt,ki="Resets the device maps (if any) to None.",Jo,$e,Ke,Go,Rt,Ci=`Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its
class implements both a save and loading method. The pipeline is easily reloaded using the
<a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline.from_pretrained">from_pretrained()</a> class method.`,bn,H,et,Io,Et,Ji='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',Wo,zt,Gi="The suffixes after the scaling factors represent the stages where they are being applied.",Ho,Yt,Ii=`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.`,_n,A,tt,Fo,Qt,Wi="Disables the FreeU mechanism if enabled.",yn,nt,vn,D,ot,Bo,qt,Hi="Base class for Flax-based pipelines.",So,At,Fi=`<a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.FlaxDiffusionPipeline">FlaxDiffusionPipeline</a> stores all components (models, schedulers, and processors) for diffusion pipelines and
provides methods for loading, downloading and saving models. It also includes methods to:`,Vo,Ot,Bi="<li>enable/disable the progress bar for the denoising iteration</li>",No,Kt,Si="Class attributes:",Lo,en,Vi=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the
diffusion pipeline’s components.</li>`,Xo,J,it,Ro,tn,Ni="Instantiate a Flax-based diffusion pipeline from pretrained pipeline weights.",Eo,nn,Li="The pipeline is set in evaluation mode (`model.eval()) by default and dropout modules are deactivated.",zo,Me,Yo,Te,Qo,Ue,qo,Ze,st,Ao,on,Xi="Convert a NumPy image or a batch of images to a PIL image.",Oo,Pe,at,Ko,sn,Ri=`Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its
class implements both a save and loading method. The pipeline is easily reloaded using the
<a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.FlaxDiffusionPipeline.from_pretrained">from_pretrained()</a> class method.`,xn,rt,wn,L,lt,ei,an,Ei="A Mixin to push a model, scheduler, or pipeline to the Hugging Face Hub.",ti,q,dt,ni,rn,zi="Upload model, scheduler, or pipeline files to the 🤗 Hugging Face Hub.",oi,De,$n,pt,Mn,pn,Tn;return m=new Cn({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),ne=new _t({props:{warning:!0,$$slots:{default:[es]},$$scope:{ctx:T}}}),Ge=new Cn({props:{title:"DiffusionPipeline",local:"diffusers.DiffusionPipeline",headingTag:"h2"}}),Ie=new P({props:{name:"class diffusers.DiffusionPipeline",anchor:"diffusers.DiffusionPipeline",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L137"}}),We=new P({props:{name:"__call__",anchor:"diffusers.DiffusionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}]}}),He=new P({props:{name:"device",anchor:"diffusers.DiffusionPipeline.device",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L484",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The torch device on which the pipeline is located.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>torch.device</code></p>
`}}),Fe=new P({props:{name:"to",anchor:"diffusers.DiffusionPipeline.to",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.to.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) &#x2014;
Returns a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a>`,name:"dtype"},{anchor:"diffusers.DiffusionPipeline.to.device",description:`<strong>device</strong> (<code>torch.Device</code>, <em>optional</em>) &#x2014;
Returns a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a>`,name:"device"},{anchor:"diffusers.DiffusionPipeline.to.silence_dtype_warnings",description:`<strong>silence_dtype_warnings</strong> (<code>str</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to omit warnings if the target <code>dtype</code> is not compatible with the target <code>device</code>.`,name:"silence_dtype_warnings"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L326",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The pipeline converted to specified <code>dtype</code> and/or <code>dtype</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><a
href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline"
>DiffusionPipeline</a></p>
`}}),ie=new _t({props:{$$slots:{default:[ts]},$$scope:{ctx:T}}}),Be=new P({props:{name:"components",anchor:"diffusers.DiffusionPipeline.components",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1585"}}),se=new ee({props:{anchor:"diffusers.DiffusionPipeline.components.example",$$slots:{default:[ns]},$$scope:{ctx:T}}}),Se=new P({props:{name:"disable_attention_slicing",anchor:"diffusers.DiffusionPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1748"}}),Ve=new P({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.DiffusionPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1682"}}),Ne=new P({props:{name:"download",anchor:"diffusers.DiffusionPipeline.download",parameters:[{name:"pretrained_model_name",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.download.pretrained_model_name",description:`<strong>pretrained_model_name</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
A string, the <em>repository id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.`,name:"pretrained_model_name"},{anchor:"diffusers.DiffusionPipeline.download.custom_pipeline",description:`<strong>custom_pipeline</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>
<p>A string, the <em>repository id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained
pipeline hosted on the Hub. The repository must contain a file called <code>pipeline.py</code> that defines
the custom pipeline.</p>
</li>
<li>
<p>A string, the <em>file name</em> of a community pipeline hosted on GitHub under
<a href="https://github.com/huggingface/diffusers/tree/main/examples/community" rel="nofollow">Community</a>. Valid file
names must match the file name and not the pipeline script (<code>clip_guided_stable_diffusion</code>
instead of <code>clip_guided_stable_diffusion.py</code>). Community pipelines are always loaded from the
current <code>main</code> branch of GitHub.</p>
</li>
<li>
<p>A path to a <em>directory</em> (<code>./my_pipeline_directory/</code>) containing a custom pipeline. The directory
must contain a file called <code>pipeline.py</code> that defines the custom pipeline.</p>
</li>
</ul>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
<p>&#x1F9EA; This is an experimental feature and may change in the future.</p>
</div>
<p>For more information on how to load and create custom pipelines, take a look at <a href="https://huggingface.co/docs/diffusers/main/en/using-diffusers/contribute_pipeline" rel="nofollow">How to contribute a
community pipeline</a>.`,name:"custom_pipeline"},{anchor:"diffusers.DiffusionPipeline.download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.DiffusionPipeline.download.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.DiffusionPipeline.download.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.DiffusionPipeline.download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.DiffusionPipeline.download.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.DiffusionPipeline.download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.DiffusionPipeline.download.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.DiffusionPipeline.download.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.DiffusionPipeline.download.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"},{anchor:"diffusers.DiffusionPipeline.download.dduf_file(str,",description:`<strong>dduf_file(<code>str</code>,</strong> <em>optional</em>) &#x2014;
Load weights from the specified DDUF file.`,name:"dduf_file(str,"},{anchor:"diffusers.DiffusionPipeline.download.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.DiffusionPipeline.download.use_onnx",description:`<strong>use_onnx</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If set to <code>True</code>, ONNX weights will always be downloaded if present. If set to <code>False</code>, ONNX weights
will never be downloaded. By default <code>use_onnx</code> defaults to the <code>_is_onnx</code> class attribute which is
<code>False</code> for non-ONNX pipelines and <code>True</code> for ONNX pipelines. ONNX weights include both files ending
with <code>.onnx</code> and <code>.pb</code>.`,name:"use_onnx"},{anchor:"diffusers.DiffusionPipeline.download.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to allow for custom pipelines and components defined on the Hub in their own files. This
option should only be set to <code>True</code> for repositories you trust and in which you have read the code, as
it will execute code present on the Hub on your local machine.`,name:"trust_remote_code"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1222",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A path to the downloaded pipeline.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>os.PathLike</code></p>
`}}),le=new _t({props:{$$slots:{default:[os]},$$scope:{ctx:T}}}),Le=new P({props:{name:"enable_attention_slicing",anchor:"diffusers.DiffusionPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[int, str, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.enable_attention_slicing.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, halves the input to the attention heads, so attention will be computed in two steps. If
<code>&quot;max&quot;</code>, maximum amount of memory will be saved by running only one slice at a time. If a number is
provided, uses as many slices as <code>attention_head_dim // slice_size</code>. In this case, <code>attention_head_dim</code>
must be a multiple of <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1708"}}),de=new _t({props:{warning:!0,$$slots:{default:[is]},$$scope:{ctx:T}}}),pe=new ee({props:{anchor:"diffusers.DiffusionPipeline.enable_attention_slicing.example",$$slots:{default:[ss]},$$scope:{ctx:T}}}),Xe=new P({props:{name:"enable_model_cpu_offload",anchor:"diffusers.DiffusionPipeline.enable_model_cpu_offload",parameters:[{name:"gpu_id",val:": typing.Optional[int] = None"},{name:"device",val:": typing.Union[torch.device, str] = 'cuda'"}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.enable_model_cpu_offload.gpu_id",description:`<strong>gpu_id</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The ID of the accelerator that shall be used in inference. If not specified, it will default to 0.`,name:"gpu_id"},{anchor:"diffusers.DiffusionPipeline.enable_model_cpu_offload.device",description:`<strong>device</strong> (<code>torch.Device</code> or <code>str</code>, <em>optional</em>, defaults to &#x201C;cuda&#x201D;) &#x2014;
The PyTorch device type of the accelerator that shall be used in inference. If not specified, it will
default to &#x201C;cuda&#x201D;.`,name:"device"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1047"}}),Re=new P({props:{name:"enable_sequential_cpu_offload",anchor:"diffusers.DiffusionPipeline.enable_sequential_cpu_offload",parameters:[{name:"gpu_id",val:": typing.Optional[int] = None"},{name:"device",val:": typing.Union[torch.device, str] = 'cuda'"}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.enable_sequential_cpu_offload.gpu_id",description:`<strong>gpu_id</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The ID of the accelerator that shall be used in inference. If not specified, it will default to 0.`,name:"gpu_id"},{anchor:"diffusers.DiffusionPipeline.enable_sequential_cpu_offload.device",description:`<strong>device</strong> (<code>torch.Device</code> or <code>str</code>, <em>optional</em>, defaults to &#x201C;cuda&#x201D;) &#x2014;
The PyTorch device type of the accelerator that shall be used in inference. If not specified, it will
default to &#x201C;cuda&#x201D;.`,name:"device"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1148"}}),Ee=new P({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.DiffusionPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.enable_xformers_memory_efficient_attention.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
Override the default <code>None</code> operator for use as <code>op</code> argument to the
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.memory_efficient_attention" rel="nofollow"><code>memory_efficient_attention()</code></a>
function of xFormers.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1647"}}),me=new _t({props:{warning:!0,$$slots:{default:[as]},$$scope:{ctx:T}}}),ue=new ee({props:{anchor:"diffusers.DiffusionPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[rs]},$$scope:{ctx:T}}}),ze=new P({props:{name:"from_pipe",anchor:"diffusers.DiffusionPipeline.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
The pipeline from which to create a new pipeline.`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1764",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A new pipeline with the same weights and configurations as <code>pipeline</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>DiffusionPipeline</code></p>
`}}),he=new ee({props:{anchor:"diffusers.DiffusionPipeline.from_pipe.example",$$slots:{default:[ls]},$$scope:{ctx:T}}}),Ye=new P({props:{name:"from_pretrained",anchor:"diffusers.DiffusionPipeline.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing a dduf file</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.custom_pipeline",description:`<strong>custom_pipeline</strong> (<code>str</code>, <em>optional</em>) &#x2014;</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
<p>&#x1F9EA; This is an experimental feature and may change in the future.</p>
</div>
<p>Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>hf-internal-testing/diffusers-dummy-pipeline</code>) of a custom
pipeline hosted on the Hub. The repository must contain a file called pipeline.py that defines
the custom pipeline.</li>
<li>A string, the <em>file name</em> of a community pipeline hosted on GitHub under
<a href="https://github.com/huggingface/diffusers/tree/main/examples/community" rel="nofollow">Community</a>. Valid file
names must match the file name and not the pipeline script (<code>clip_guided_stable_diffusion</code>
instead of <code>clip_guided_stable_diffusion.py</code>). Community pipelines are always loaded from the
current main branch of GitHub.</li>
<li>A path to a directory (<code>./my_pipeline_directory/</code>) containing a custom pipeline. The directory
must contain a file called <code>pipeline.py</code> that defines the custom pipeline.</li>
</ul>
<p>For more information on how to load and create custom pipelines, please have a look at <a href="https://huggingface.co/docs/diffusers/using-diffusers/custom_pipeline_overview" rel="nofollow">Loading and
Adding Custom
Pipelines</a>`,name:"custom_pipeline"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. Defaults to the latest stable &#x1F917; Diffusers
version.`,name:"custom_revision"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.use_onnx",description:`<strong>use_onnx</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>True</code>, ONNX weights will always be downloaded if present. If set to <code>False</code>, ONNX weights
will never be downloaded. By default <code>use_onnx</code> defaults to the <code>_is_onnx</code> class attribute which is
<code>False</code> for non-ONNX pipelines and <code>True</code> for ONNX pipelines. ONNX weights include both files ending
with <code>.onnx</code> and <code>.pb</code>.`,name:"use_onnx"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"},{anchor:"diffusers.DiffusionPipeline.from_pretrained.dduf_file(str,",description:`<strong>dduf_file(<code>str</code>,</strong> <em>optional</em>) &#x2014;
Load weights from the specified dduf file.`,name:"dduf_file(str,"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L514"}}),ge=new ee({props:{anchor:"diffusers.DiffusionPipeline.from_pretrained.example",$$slots:{default:[ds]},$$scope:{ctx:T}}}),be=new _t({props:{$$slots:{default:[ps]},$$scope:{ctx:T}}}),_e=new ee({props:{anchor:"diffusers.DiffusionPipeline.from_pretrained.example-2",$$slots:{default:[fs]},$$scope:{ctx:T}}}),Qe=new P({props:{name:"maybe_free_model_hooks",anchor:"diffusers.DiffusionPipeline.maybe_free_model_hooks",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1134"}}),qe=new P({props:{name:"numpy_to_pil",anchor:"diffusers.DiffusionPipeline.numpy_to_pil",parameters:[{name:"images",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1621"}}),Ae=new P({props:{name:"remove_all_hooks",anchor:"diffusers.DiffusionPipeline.remove_all_hooks",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1038"}}),Oe=new P({props:{name:"reset_device_map",anchor:"diffusers.DiffusionPipeline.reset_device_map",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1209"}}),Ke=new P({props:{name:"save_pretrained",anchor:"diffusers.DiffusionPipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": typing.Optional[str] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = None"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusionPipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save a pipeline to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.DiffusionPipeline.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.DiffusionPipeline.save_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format <code>pytorch_model.&lt;variant&gt;.bin</code>.`,name:"variant"},{anchor:"diffusers.DiffusionPipeline.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, defaults to <code>None</code>) &#x2014;
The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size
lower than this size. If expressed as a string, needs to be digits followed by a unit (like <code>&quot;5GB&quot;</code>).
If expressed as an integer, the unit is bytes. Note that this limit will be decreased after a certain
period of time (starting from Oct 2024) to allow users to upgrade to the latest version of <code>diffusers</code>.
This is to establish a common default size for this argument across different libraries in the Hugging
Face ecosystem (<code>transformers</code>, and <code>accelerate</code>, for example).`,name:"max_shard_size"},{anchor:"diffusers.DiffusionPipeline.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"diffusers.DiffusionPipeline.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L193"}}),et=new P({props:{name:"diffusers.StableDiffusionMixin.enable_freeu",anchor:"diffusers.StableDiffusionMixin.enable_freeu",parameters:[{name:"s1",val:": float"},{name:"s2",val:": float"},{name:"b1",val:": float"},{name:"b2",val:": float"}],parametersDescription:[{anchor:"diffusers.StableDiffusionMixin.enable_freeu.s1",description:`<strong>s1</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.StableDiffusionMixin.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.StableDiffusionMixin.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) &#x2014; Scaling factor for stage 1 to amplify the contributions of backbone features.",name:"b1"},{anchor:"diffusers.StableDiffusionMixin.enable_freeu.b2",description:"<strong>b2</strong> (<code>float</code>) &#x2014; Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1922"}}),tt=new P({props:{name:"diffusers.StableDiffusionMixin.disable_freeu",anchor:"diffusers.StableDiffusionMixin.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_utils.py#L1944"}}),nt=new Cn({props:{title:"FlaxDiffusionPipeline",local:"diffusers.FlaxDiffusionPipeline",headingTag:"h2"}}),ot=new P({props:{name:"class diffusers.FlaxDiffusionPipeline",anchor:"diffusers.FlaxDiffusionPipeline",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_flax_utils.py#L101"}}),it=new P({props:{name:"from_pretrained",anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>stable-diffusion-v1-5/stable-diffusion-v1-5</code>) of a
pretrained pipeline hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved
using <a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.FlaxDiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.dtype",description:`<strong>dtype</strong> (<code>str</code> or <code>jnp.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>jnp.dtype</code> and load the model under this dtype. If <code>&quot;auto&quot;</code>, the dtype is
automatically derived from the model&#x2019;s weights.`,name:"dtype"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components) of the specific pipeline
class. The overwritten components are passed directly to the pipelines <code>__init__</code> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_flax_utils.py#L229"}}),Me=new ee({props:{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.example",$$slots:{default:[cs]},$$scope:{ctx:T}}}),Te=new _t({props:{$$slots:{default:[ms]},$$scope:{ctx:T}}}),Ue=new ee({props:{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.example-2",$$slots:{default:[us]},$$scope:{ctx:T}}}),st=new P({props:{name:"numpy_to_pil",anchor:"diffusers.FlaxDiffusionPipeline.numpy_to_pil",parameters:[{name:"images",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_flax_utils.py#L583"}}),at=new P({props:{name:"save_pretrained",anchor:"diffusers.FlaxDiffusionPipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.FlaxDiffusionPipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.FlaxDiffusionPipeline.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"diffusers.FlaxDiffusionPipeline.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <a href="/docs/diffusers/pr_10567/en/api/pipelines/overview#diffusers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/pipelines/pipeline_flax_utils.py#L151"}}),rt=new Cn({props:{title:"PushToHubMixin",local:"diffusers.utils.PushToHubMixin",headingTag:"h2"}}),lt=new P({props:{name:"class diffusers.utils.PushToHubMixin",anchor:"diffusers.utils.PushToHubMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/utils/hub_utils.py#L536"}}),dt=new P({props:{name:"push_to_hub",anchor:"diffusers.utils.PushToHubMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Optional[str] = None"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model, scheduler, or pipeline files to. It should
contain your organization name when pushing to an organization. <code>repo_id</code> can also be a path to a local
directory.`,name:"repo_id"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Default to <code>&quot;Upload {object}&quot;</code>.`,name:"commit_message"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the
organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. The token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights to the <code>safetensors</code> format.`,name:"safe_serialization"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format <code>pytorch_model.&lt;variant&gt;.bin</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/vr_10567/src/diffusers/utils/hub_utils.py#L565"}}),De=new ee({props:{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[hs]},$$scope:{ctx:T}}}),pt=new Ki({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/overview.md"}}),{c(){o=r("meta"),w=i(),d=r("p"),a=i(),u(m.$$.fragment),t=i(),M=r("p"),M.textContent=k,z=i(),ke=r("p"),ke.innerHTML=ii,cn=i(),u(ne.$$.fragment),mn=i(),Ce=r("p"),Ce.textContent=si,un=i(),Je=r("table"),Je.innerHTML=ai,hn=i(),u(Ge.$$.fragment),gn=i(),x=r("div"),u(Ie.$$.fragment),Jn=i(),yt=r("p"),yt.textContent=ri,Gn=i(),vt=r("p"),vt.innerHTML=li,In=i(),xt=r("ul"),xt.innerHTML=di,Wn=i(),wt=r("p"),wt.textContent=pi,Hn=i(),$t=r("ul"),$t.innerHTML=fi,Fn=i(),oe=r("div"),u(We.$$.fragment),Bn=i(),Mt=r("p"),Mt.textContent=ci,Sn=i(),Tt=r("div"),u(He.$$.fragment),Vn=i(),W=r("div"),u(Fe.$$.fragment),Nn=i(),Ut=r("p"),Ut.innerHTML=mi,Ln=i(),u(ie.$$.fragment),Xn=i(),Zt=r("p"),Zt.innerHTML=ui,Rn=i(),Pt=r("ul"),Pt.innerHTML=hi,En=i(),B=r("div"),u(Be.$$.fragment),zn=i(),Dt=r("p"),Dt.innerHTML=gi,Yn=i(),jt=r("p"),jt.innerHTML=bi,Qn=i(),u(se.$$.fragment),qn=i(),ae=r("div"),u(Se.$$.fragment),An=i(),kt=r("p"),kt.innerHTML=_i,On=i(),re=r("div"),u(Ve.$$.fragment),Kn=i(),Ct=r("p"),Ct.innerHTML=yi,eo=i(),Y=r("div"),u(Ne.$$.fragment),to=i(),Jt=r("p"),Jt.textContent=vi,no=i(),u(le.$$.fragment),oo=i(),S=r("div"),u(Le.$$.fragment),io=i(),Gt=r("p"),Gt.textContent=xi,so=i(),u(de.$$.fragment),ao=i(),u(pe.$$.fragment),ro=i(),fe=r("div"),u(Xe.$$.fragment),lo=i(),It=r("p"),It.innerHTML=wi,po=i(),ce=r("div"),u(Re.$$.fragment),fo=i(),Wt=r("p"),Wt.innerHTML=$i,co=i(),V=r("div"),u(Ee.$$.fragment),mo=i(),Ht=r("p"),Ht.innerHTML=Mi,uo=i(),u(me.$$.fragment),ho=i(),u(ue.$$.fragment),go=i(),Q=r("div"),u(ze.$$.fragment),bo=i(),Ft=r("p"),Ft.textContent=Ti,_o=i(),u(he.$$.fragment),yo=i(),C=r("div"),u(Ye.$$.fragment),vo=i(),Bt=r("p"),Bt.textContent=Ui,xo=i(),St=r("p"),St.innerHTML=Zi,wo=i(),u(ge.$$.fragment),$o=i(),u(be.$$.fragment),Mo=i(),u(_e.$$.fragment),To=i(),ye=r("div"),u(Qe.$$.fragment),Uo=i(),Vt=r("p"),Vt.innerHTML=Pi,Zo=i(),ve=r("div"),u(qe.$$.fragment),Po=i(),Nt=r("p"),Nt.textContent=Di,Do=i(),xe=r("div"),u(Ae.$$.fragment),jo=i(),Lt=r("p"),Lt.innerHTML=ji,ko=i(),we=r("div"),u(Oe.$$.fragment),Co=i(),Xt=r("p"),Xt.textContent=ki,Jo=i(),$e=r("div"),u(Ke.$$.fragment),Go=i(),Rt=r("p"),Rt.innerHTML=Ci,bn=i(),H=r("div"),u(et.$$.fragment),Io=i(),Et=r("p"),Et.innerHTML=Ji,Wo=i(),zt=r("p"),zt.textContent=Gi,Ho=i(),Yt=r("p"),Yt.innerHTML=Ii,_n=i(),A=r("div"),u(tt.$$.fragment),Fo=i(),Qt=r("p"),Qt.textContent=Wi,yn=i(),u(nt.$$.fragment),vn=i(),D=r("div"),u(ot.$$.fragment),Bo=i(),qt=r("p"),qt.textContent=Hi,So=i(),At=r("p"),At.innerHTML=Fi,Vo=i(),Ot=r("ul"),Ot.innerHTML=Bi,No=i(),Kt=r("p"),Kt.textContent=Si,Lo=i(),en=r("ul"),en.innerHTML=Vi,Xo=i(),J=r("div"),u(it.$$.fragment),Ro=i(),tn=r("p"),tn.textContent=Ni,Eo=i(),nn=r("p"),nn.textContent=Li,zo=i(),u(Me.$$.fragment),Yo=i(),u(Te.$$.fragment),Qo=i(),u(Ue.$$.fragment),qo=i(),Ze=r("div"),u(st.$$.fragment),Ao=i(),on=r("p"),on.textContent=Xi,Oo=i(),Pe=r("div"),u(at.$$.fragment),Ko=i(),sn=r("p"),sn.innerHTML=Ri,xn=i(),u(rt.$$.fragment),wn=i(),L=r("div"),u(lt.$$.fragment),ei=i(),an=r("p"),an.textContent=Ei,ti=i(),q=r("div"),u(dt.$$.fragment),ni=i(),rn=r("p"),rn.textContent=zi,oi=i(),u(De.$$.fragment),$n=i(),u(pt.$$.fragment),Mn=i(),pn=r("p"),this.h()},l(e){const f=Oi("svelte-u9bgzb",document.head);o=l(f,"META",{name:!0,content:!0}),f.forEach(p),w=s(e),d=l(e,"P",{}),U(d).forEach(p),a=s(e),h(m.$$.fragment,e),t=s(e),M=l(e,"P",{"data-svelte-h":!0}),c(M)!=="svelte-eejdx6"&&(M.textContent=k),z=s(e),ke=l(e,"P",{"data-svelte-h":!0}),c(ke)!=="svelte-18dpd5s"&&(ke.innerHTML=ii),cn=s(e),h(ne.$$.fragment,e),mn=s(e),Ce=l(e,"P",{"data-svelte-h":!0}),c(Ce)!=="svelte-2xd39c"&&(Ce.textContent=si),un=s(e),Je=l(e,"TABLE",{"data-svelte-h":!0}),c(Je)!=="svelte-9blgdk"&&(Je.innerHTML=ai),hn=s(e),h(Ge.$$.fragment,e),gn=s(e),x=l(e,"DIV",{class:!0});var $=U(x);h(Ie.$$.fragment,$),Jn=s($),yt=l($,"P",{"data-svelte-h":!0}),c(yt)!=="svelte-1neg3rw"&&(yt.textContent=ri),Gn=s($),vt=l($,"P",{"data-svelte-h":!0}),c(vt)!=="svelte-1d4dkun"&&(vt.innerHTML=li),In=s($),xt=l($,"UL",{"data-svelte-h":!0}),c(xt)!=="svelte-2a5chx"&&(xt.innerHTML=di),Wn=s($),wt=l($,"P",{"data-svelte-h":!0}),c(wt)!=="svelte-wz8va1"&&(wt.textContent=pi),Hn=s($),$t=l($,"UL",{"data-svelte-h":!0}),c($t)!=="svelte-1ilr6sx"&&($t.innerHTML=fi),Fn=s($),oe=l($,"DIV",{class:!0});var ft=U(oe);h(We.$$.fragment,ft),Bn=s(ft),Mt=l(ft,"P",{"data-svelte-h":!0}),c(Mt)!=="svelte-1eed40t"&&(Mt.textContent=ci),ft.forEach(p),Sn=s($),Tt=l($,"DIV",{class:!0});var fn=U(Tt);h(He.$$.fragment,fn),fn.forEach(p),Vn=s($),W=l($,"DIV",{class:!0});var F=U(W);h(Fe.$$.fragment,F),Nn=s(F),Ut=l(F,"P",{"data-svelte-h":!0}),c(Ut)!=="svelte-1vbhnip"&&(Ut.innerHTML=mi),Ln=s(F),h(ie.$$.fragment,F),Xn=s(F),Zt=l(F,"P",{"data-svelte-h":!0}),c(Zt)!=="svelte-5ul9n2"&&(Zt.innerHTML=ui),Rn=s(F),Pt=l(F,"UL",{"data-svelte-h":!0}),c(Pt)!=="svelte-1icy6l9"&&(Pt.innerHTML=hi),F.forEach(p),En=s($),B=l($,"DIV",{class:!0});var X=U(B);h(Be.$$.fragment,X),zn=s(X),Dt=l(X,"P",{"data-svelte-h":!0}),c(Dt)!=="svelte-had4mb"&&(Dt.innerHTML=gi),Yn=s(X),jt=l(X,"P",{"data-svelte-h":!0}),c(jt)!=="svelte-19k67ce"&&(jt.innerHTML=bi),Qn=s(X),h(se.$$.fragment,X),X.forEach(p),qn=s($),ae=l($,"DIV",{class:!0});var ct=U(ae);h(Se.$$.fragment,ct),An=s(ct),kt=l(ct,"P",{"data-svelte-h":!0}),c(kt)!=="svelte-1lh0nh5"&&(kt.innerHTML=_i),ct.forEach(p),On=s($),re=l($,"DIV",{class:!0});var mt=U(re);h(Ve.$$.fragment,mt),Kn=s(mt),Ct=l(mt,"P",{"data-svelte-h":!0}),c(Ct)!=="svelte-1vfte1e"&&(Ct.innerHTML=yi),mt.forEach(p),eo=s($),Y=l($,"DIV",{class:!0});var O=U(Y);h(Ne.$$.fragment,O),to=s(O),Jt=l(O,"P",{"data-svelte-h":!0}),c(Jt)!=="svelte-1mfctah"&&(Jt.textContent=vi),no=s(O),h(le.$$.fragment,O),O.forEach(p),oo=s($),S=l($,"DIV",{class:!0});var R=U(S);h(Le.$$.fragment,R),io=s(R),Gt=l(R,"P",{"data-svelte-h":!0}),c(Gt)!=="svelte-10jaql7"&&(Gt.textContent=xi),so=s(R),h(de.$$.fragment,R),ao=s(R),h(pe.$$.fragment,R),R.forEach(p),ro=s($),fe=l($,"DIV",{class:!0});var ut=U(fe);h(Xe.$$.fragment,ut),lo=s(ut),It=l(ut,"P",{"data-svelte-h":!0}),c(It)!=="svelte-d7vywi"&&(It.innerHTML=wi),ut.forEach(p),po=s($),ce=l($,"DIV",{class:!0});var ht=U(ce);h(Re.$$.fragment,ht),fo=s(ht),Wt=l(ht,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-n1oyuv"&&(Wt.innerHTML=$i),ht.forEach(p),co=s($),V=l($,"DIV",{class:!0});var E=U(V);h(Ee.$$.fragment,E),mo=s(E),Ht=l(E,"P",{"data-svelte-h":!0}),c(Ht)!=="svelte-e03q3e"&&(Ht.innerHTML=Mi),uo=s(E),h(me.$$.fragment,E),ho=s(E),h(ue.$$.fragment,E),E.forEach(p),go=s($),Q=l($,"DIV",{class:!0});var K=U(Q);h(ze.$$.fragment,K),bo=s(K),Ft=l(K,"P",{"data-svelte-h":!0}),c(Ft)!=="svelte-1jx3icn"&&(Ft.textContent=Ti),_o=s(K),h(he.$$.fragment,K),K.forEach(p),yo=s($),C=l($,"DIV",{class:!0});var I=U(C);h(Ye.$$.fragment,I),vo=s(I),Bt=l(I,"P",{"data-svelte-h":!0}),c(Bt)!=="svelte-ccbjek"&&(Bt.textContent=Ui),xo=s(I),St=l(I,"P",{"data-svelte-h":!0}),c(St)!=="svelte-1p5vgmd"&&(St.innerHTML=Zi),wo=s(I),h(ge.$$.fragment,I),$o=s(I),h(be.$$.fragment,I),Mo=s(I),h(_e.$$.fragment,I),I.forEach(p),To=s($),ye=l($,"DIV",{class:!0});var gt=U(ye);h(Qe.$$.fragment,gt),Uo=s(gt),Vt=l(gt,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-zkab0b"&&(Vt.innerHTML=Pi),gt.forEach(p),Zo=s($),ve=l($,"DIV",{class:!0});var bt=U(ve);h(qe.$$.fragment,bt),Po=s(bt),Nt=l(bt,"P",{"data-svelte-h":!0}),c(Nt)!=="svelte-1gut907"&&(Nt.textContent=Di),bt.forEach(p),Do=s($),xe=l($,"DIV",{class:!0});var Un=U(xe);h(Ae.$$.fragment,Un),jo=s(Un),Lt=l(Un,"P",{"data-svelte-h":!0}),c(Lt)!=="svelte-8kophh"&&(Lt.innerHTML=ji),Un.forEach(p),ko=s($),we=l($,"DIV",{class:!0});var Zn=U(we);h(Oe.$$.fragment,Zn),Co=s(Zn),Xt=l(Zn,"P",{"data-svelte-h":!0}),c(Xt)!=="svelte-6tjysh"&&(Xt.textContent=ki),Zn.forEach(p),Jo=s($),$e=l($,"DIV",{class:!0});var Pn=U($e);h(Ke.$$.fragment,Pn),Go=s(Pn),Rt=l(Pn,"P",{"data-svelte-h":!0}),c(Rt)!=="svelte-1lrglxn"&&(Rt.innerHTML=Ci),Pn.forEach(p),$.forEach(p),bn=s(e),H=l(e,"DIV",{class:!0});var je=U(H);h(et.$$.fragment,je),Io=s(je),Et=l(je,"P",{"data-svelte-h":!0}),c(Et)!=="svelte-1f3tmq1"&&(Et.innerHTML=Ji),Wo=s(je),zt=l(je,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-xjijlp"&&(zt.textContent=Gi),Ho=s(je),Yt=l(je,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-hy0nzs"&&(Yt.innerHTML=Ii),je.forEach(p),_n=s(e),A=l(e,"DIV",{class:!0});var Dn=U(A);h(tt.$$.fragment,Dn),Fo=s(Dn),Qt=l(Dn,"P",{"data-svelte-h":!0}),c(Qt)!=="svelte-psupw6"&&(Qt.textContent=Wi),Dn.forEach(p),yn=s(e),h(nt.$$.fragment,e),vn=s(e),D=l(e,"DIV",{class:!0});var j=U(D);h(ot.$$.fragment,j),Bo=s(j),qt=l(j,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-1o1wti6"&&(qt.textContent=Hi),So=s(j),At=l(j,"P",{"data-svelte-h":!0}),c(At)!=="svelte-vw16l3"&&(At.innerHTML=Fi),Vo=s(j),Ot=l(j,"UL",{"data-svelte-h":!0}),c(Ot)!=="svelte-1kk3msp"&&(Ot.innerHTML=Bi),No=s(j),Kt=l(j,"P",{"data-svelte-h":!0}),c(Kt)!=="svelte-wz8va1"&&(Kt.textContent=Si),Lo=s(j),en=l(j,"UL",{"data-svelte-h":!0}),c(en)!=="svelte-56flce"&&(en.innerHTML=Vi),Xo=s(j),J=l(j,"DIV",{class:!0});var N=U(J);h(it.$$.fragment,N),Ro=s(N),tn=l(N,"P",{"data-svelte-h":!0}),c(tn)!=="svelte-7z61o"&&(tn.textContent=Ni),Eo=s(N),nn=l(N,"P",{"data-svelte-h":!0}),c(nn)!=="svelte-wyh2cr"&&(nn.textContent=Li),zo=s(N),h(Me.$$.fragment,N),Yo=s(N),h(Te.$$.fragment,N),Qo=s(N),h(Ue.$$.fragment,N),N.forEach(p),qo=s(j),Ze=l(j,"DIV",{class:!0});var jn=U(Ze);h(st.$$.fragment,jn),Ao=s(jn),on=l(jn,"P",{"data-svelte-h":!0}),c(on)!=="svelte-1gut907"&&(on.textContent=Xi),jn.forEach(p),Oo=s(j),Pe=l(j,"DIV",{class:!0});var kn=U(Pe);h(at.$$.fragment,kn),Ko=s(kn),sn=l(kn,"P",{"data-svelte-h":!0}),c(sn)!=="svelte-owicfm"&&(sn.innerHTML=Ri),kn.forEach(p),j.forEach(p),xn=s(e),h(rt.$$.fragment,e),wn=s(e),L=l(e,"DIV",{class:!0});var ln=U(L);h(lt.$$.fragment,ln),ei=s(ln),an=l(ln,"P",{"data-svelte-h":!0}),c(an)!=="svelte-7y8zei"&&(an.textContent=Ei),ti=s(ln),q=l(ln,"DIV",{class:!0});var dn=U(q);h(dt.$$.fragment,dn),ni=s(dn),rn=l(dn,"P",{"data-svelte-h":!0}),c(rn)!=="svelte-5nfhmh"&&(rn.textContent=zi),oi=s(dn),h(De.$$.fragment,dn),dn.forEach(p),ln.forEach(p),$n=s(e),h(pt.$$.fragment,e),Mn=s(e),pn=l(e,"P",{}),U(pn).forEach(p),this.h()},h(){Z(o,"name","hf:doc:metadata"),Z(o,"content",bs),Z(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Z(L,"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,f){n(document.head,o),v(e,w,f),v(e,d,f),v(e,a,f),g(m,e,f),v(e,t,f),v(e,M,f),v(e,z,f),v(e,ke,f),v(e,cn,f),g(ne,e,f),v(e,mn,f),v(e,Ce,f),v(e,un,f),v(e,Je,f),v(e,hn,f),g(Ge,e,f),v(e,gn,f),v(e,x,f),g(Ie,x,null),n(x,Jn),n(x,yt),n(x,Gn),n(x,vt),n(x,In),n(x,xt),n(x,Wn),n(x,wt),n(x,Hn),n(x,$t),n(x,Fn),n(x,oe),g(We,oe,null),n(oe,Bn),n(oe,Mt),n(x,Sn),n(x,Tt),g(He,Tt,null),n(x,Vn),n(x,W),g(Fe,W,null),n(W,Nn),n(W,Ut),n(W,Ln),g(ie,W,null),n(W,Xn),n(W,Zt),n(W,Rn),n(W,Pt),n(x,En),n(x,B),g(Be,B,null),n(B,zn),n(B,Dt),n(B,Yn),n(B,jt),n(B,Qn),g(se,B,null),n(x,qn),n(x,ae),g(Se,ae,null),n(ae,An),n(ae,kt),n(x,On),n(x,re),g(Ve,re,null),n(re,Kn),n(re,Ct),n(x,eo),n(x,Y),g(Ne,Y,null),n(Y,to),n(Y,Jt),n(Y,no),g(le,Y,null),n(x,oo),n(x,S),g(Le,S,null),n(S,io),n(S,Gt),n(S,so),g(de,S,null),n(S,ao),g(pe,S,null),n(x,ro),n(x,fe),g(Xe,fe,null),n(fe,lo),n(fe,It),n(x,po),n(x,ce),g(Re,ce,null),n(ce,fo),n(ce,Wt),n(x,co),n(x,V),g(Ee,V,null),n(V,mo),n(V,Ht),n(V,uo),g(me,V,null),n(V,ho),g(ue,V,null),n(x,go),n(x,Q),g(ze,Q,null),n(Q,bo),n(Q,Ft),n(Q,_o),g(he,Q,null),n(x,yo),n(x,C),g(Ye,C,null),n(C,vo),n(C,Bt),n(C,xo),n(C,St),n(C,wo),g(ge,C,null),n(C,$o),g(be,C,null),n(C,Mo),g(_e,C,null),n(x,To),n(x,ye),g(Qe,ye,null),n(ye,Uo),n(ye,Vt),n(x,Zo),n(x,ve),g(qe,ve,null),n(ve,Po),n(ve,Nt),n(x,Do),n(x,xe),g(Ae,xe,null),n(xe,jo),n(xe,Lt),n(x,ko),n(x,we),g(Oe,we,null),n(we,Co),n(we,Xt),n(x,Jo),n(x,$e),g(Ke,$e,null),n($e,Go),n($e,Rt),v(e,bn,f),v(e,H,f),g(et,H,null),n(H,Io),n(H,Et),n(H,Wo),n(H,zt),n(H,Ho),n(H,Yt),v(e,_n,f),v(e,A,f),g(tt,A,null),n(A,Fo),n(A,Qt),v(e,yn,f),g(nt,e,f),v(e,vn,f),v(e,D,f),g(ot,D,null),n(D,Bo),n(D,qt),n(D,So),n(D,At),n(D,Vo),n(D,Ot),n(D,No),n(D,Kt),n(D,Lo),n(D,en),n(D,Xo),n(D,J),g(it,J,null),n(J,Ro),n(J,tn),n(J,Eo),n(J,nn),n(J,zo),g(Me,J,null),n(J,Yo),g(Te,J,null),n(J,Qo),g(Ue,J,null),n(D,qo),n(D,Ze),g(st,Ze,null),n(Ze,Ao),n(Ze,on),n(D,Oo),n(D,Pe),g(at,Pe,null),n(Pe,Ko),n(Pe,sn),v(e,xn,f),g(rt,e,f),v(e,wn,f),v(e,L,f),g(lt,L,null),n(L,ei),n(L,an),n(L,ti),n(L,q),g(dt,q,null),n(q,ni),n(q,rn),n(q,oi),g(De,q,null),v(e,$n,f),g(pt,e,f),v(e,Mn,f),v(e,pn,f),Tn=!0},p(e,[f]){const $={};f&2&&($.$$scope={dirty:f,ctx:e}),ne.$set($);const ft={};f&2&&(ft.$$scope={dirty:f,ctx:e}),ie.$set(ft);const fn={};f&2&&(fn.$$scope={dirty:f,ctx:e}),se.$set(fn);const F={};f&2&&(F.$$scope={dirty:f,ctx:e}),le.$set(F);const X={};f&2&&(X.$$scope={dirty:f,ctx:e}),de.$set(X);const ct={};f&2&&(ct.$$scope={dirty:f,ctx:e}),pe.$set(ct);const mt={};f&2&&(mt.$$scope={dirty:f,ctx:e}),me.$set(mt);const O={};f&2&&(O.$$scope={dirty:f,ctx:e}),ue.$set(O);const R={};f&2&&(R.$$scope={dirty:f,ctx:e}),he.$set(R);const ut={};f&2&&(ut.$$scope={dirty:f,ctx:e}),ge.$set(ut);const ht={};f&2&&(ht.$$scope={dirty:f,ctx:e}),be.$set(ht);const E={};f&2&&(E.$$scope={dirty:f,ctx:e}),_e.$set(E);const K={};f&2&&(K.$$scope={dirty:f,ctx:e}),Me.$set(K);const I={};f&2&&(I.$$scope={dirty:f,ctx:e}),Te.$set(I);const gt={};f&2&&(gt.$$scope={dirty:f,ctx:e}),Ue.$set(gt);const bt={};f&2&&(bt.$$scope={dirty:f,ctx:e}),De.$set(bt)},i(e){Tn||(b(m.$$.fragment,e),b(ne.$$.fragment,e),b(Ge.$$.fragment,e),b(Ie.$$.fragment,e),b(We.$$.fragment,e),b(He.$$.fragment,e),b(Fe.$$.fragment,e),b(ie.$$.fragment,e),b(Be.$$.fragment,e),b(se.$$.fragment,e),b(Se.$$.fragment,e),b(Ve.$$.fragment,e),b(Ne.$$.fragment,e),b(le.$$.fragment,e),b(Le.$$.fragment,e),b(de.$$.fragment,e),b(pe.$$.fragment,e),b(Xe.$$.fragment,e),b(Re.$$.fragment,e),b(Ee.$$.fragment,e),b(me.$$.fragment,e),b(ue.$$.fragment,e),b(ze.$$.fragment,e),b(he.$$.fragment,e),b(Ye.$$.fragment,e),b(ge.$$.fragment,e),b(be.$$.fragment,e),b(_e.$$.fragment,e),b(Qe.$$.fragment,e),b(qe.$$.fragment,e),b(Ae.$$.fragment,e),b(Oe.$$.fragment,e),b(Ke.$$.fragment,e),b(et.$$.fragment,e),b(tt.$$.fragment,e),b(nt.$$.fragment,e),b(ot.$$.fragment,e),b(it.$$.fragment,e),b(Me.$$.fragment,e),b(Te.$$.fragment,e),b(Ue.$$.fragment,e),b(st.$$.fragment,e),b(at.$$.fragment,e),b(rt.$$.fragment,e),b(lt.$$.fragment,e),b(dt.$$.fragment,e),b(De.$$.fragment,e),b(pt.$$.fragment,e),Tn=!0)},o(e){_(m.$$.fragment,e),_(ne.$$.fragment,e),_(Ge.$$.fragment,e),_(Ie.$$.fragment,e),_(We.$$.fragment,e),_(He.$$.fragment,e),_(Fe.$$.fragment,e),_(ie.$$.fragment,e),_(Be.$$.fragment,e),_(se.$$.fragment,e),_(Se.$$.fragment,e),_(Ve.$$.fragment,e),_(Ne.$$.fragment,e),_(le.$$.fragment,e),_(Le.$$.fragment,e),_(de.$$.fragment,e),_(pe.$$.fragment,e),_(Xe.$$.fragment,e),_(Re.$$.fragment,e),_(Ee.$$.fragment,e),_(me.$$.fragment,e),_(ue.$$.fragment,e),_(ze.$$.fragment,e),_(he.$$.fragment,e),_(Ye.$$.fragment,e),_(ge.$$.fragment,e),_(be.$$.fragment,e),_(_e.$$.fragment,e),_(Qe.$$.fragment,e),_(qe.$$.fragment,e),_(Ae.$$.fragment,e),_(Oe.$$.fragment,e),_(Ke.$$.fragment,e),_(et.$$.fragment,e),_(tt.$$.fragment,e),_(nt.$$.fragment,e),_(ot.$$.fragment,e),_(it.$$.fragment,e),_(Me.$$.fragment,e),_(Te.$$.fragment,e),_(Ue.$$.fragment,e),_(st.$$.fragment,e),_(at.$$.fragment,e),_(rt.$$.fragment,e),_(lt.$$.fragment,e),_(dt.$$.fragment,e),_(De.$$.fragment,e),_(pt.$$.fragment,e),Tn=!1},d(e){e&&(p(w),p(d),p(a),p(t),p(M),p(z),p(ke),p(cn),p(mn),p(Ce),p(un),p(Je),p(hn),p(gn),p(x),p(bn),p(H),p(_n),p(A),p(yn),p(vn),p(D),p(xn),p(wn),p(L),p($n),p(Mn),p(pn)),p(o),y(m,e),y(ne,e),y(Ge,e),y(Ie),y(We),y(He),y(Fe),y(ie),y(Be),y(se),y(Se),y(Ve),y(Ne),y(le),y(Le),y(de),y(pe),y(Xe),y(Re),y(Ee),y(me),y(ue),y(ze),y(he),y(Ye),y(ge),y(be),y(_e),y(Qe),y(qe),y(Ae),y(Oe),y(Ke),y(et),y(tt),y(nt,e),y(ot),y(it),y(Me),y(Te),y(Ue),y(st),y(at),y(rt,e),y(lt),y(dt),y(De),y(pt,e)}}}const bs='{"title":"Pipelines","local":"pipelines","sections":[{"title":"DiffusionPipeline","local":"diffusers.DiffusionPipeline","sections":[],"depth":2},{"title":"FlaxDiffusionPipeline","local":"diffusers.FlaxDiffusionPipeline","sections":[],"depth":2},{"title":"PushToHubMixin","local":"diffusers.utils.PushToHubMixin","sections":[],"depth":2}],"depth":1}';function _s(T){return Qi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Us extends qi{constructor(o){super(),Ai(this,o,_s,gs,Yi,{})}}export{Us as component};

Xet Storage Details

Size:
101 kB
·
Xet hash:
4e9b6bff6c7c5970a8a70d67e4b06a86fc3908041704b17624fc6a533e57f924

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