import{S as Va,i as Ca,s as Na,e as s,k as f,w,t as l,M as Sa,c as a,d as o,m,a as r,x as $,h as d,b as h,G as e,g as Z,y as M,q as x,o as j,B as U,v as Ra,L as yo}from"../../../chunks/vendor-hf-doc-builder.js";import{T as ct}from"../../../chunks/Tip-hf-doc-builder.js";import{D as F}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as vo}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as Os}from"../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as _o}from"../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Xa(E){let i,b,c,p,g,t,u,k,P,T,W,I;return{c(){i=s("p"),b=l("Pipelines do not offer any training functionality. You\u2019ll notice PyTorch\u2019s autograd is disabled by decorating the "),c=s("code"),p=l("__call__()"),g=l(" method with a "),t=s("a"),u=s("code"),k=l("torch.no_grad"),P=l(" decorator because pipelines should not be used for training. If you\u2019re interested in training, please take a look at the "),T=s("a"),W=l("Training"),I=l(" guides instead!"),this.h()},l(G){i=a(G,"P",{});var J=r(i);b=d(J,"Pipelines do not offer any training functionality. You\u2019ll notice PyTorch\u2019s autograd is disabled by decorating the "),c=a(J,"CODE",{});var A=r(c);p=d(A,"__call__()"),A.forEach(o),g=d(J," method with a "),t=a(J,"A",{href:!0,rel:!0});var N=r(t);u=a(N,"CODE",{});var ao=r(u);k=d(ao,"torch.no_grad"),ao.forEach(o),N.forEach(o),P=d(J," decorator because pipelines should not be used for training. If you\u2019re interested in training, please take a look at the "),T=a(J,"A",{href:!0});var io=r(T);W=d(io,"Training"),io.forEach(o),I=d(J," guides instead!"),J.forEach(o),this.h()},h(){h(t,"href","https://pytorch.org/docs/stable/generated/torch.no_grad.html"),h(t,"rel","nofollow"),h(T,"href","../traininig/overview")},m(G,J){Z(G,i,J),e(i,b),e(i,c),e(c,p),e(i,g),e(i,t),e(t,u),e(u,k),e(i,P),e(i,T),e(T,W),e(i,I)},d(G){G&&o(i)}}}function Ya(E){let i,b,c,p,g;return p=new vo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMCglMEElMjAlMjAlMjAlMjBTdGFibGVEaWZmdXNpb25QaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMFN0YWJsZURpZmZ1c2lvbkltZzJJbWdQaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMFN0YWJsZURpZmZ1c2lvbklucGFpbnRQaXBlbGluZSUyQyUwQSklMEElMEF0ZXh0MmltZyUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEFpbWcyaW1nJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uSW1nMkltZ1BpcGVsaW5lKCoqdGV4dDJpbWcuY29tcG9uZW50cyklMEFpbnBhaW50JTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uSW5wYWludFBpcGVsaW5lKCoqdGV4dDJpbWcuY29tcG9uZW50cyk=",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;runwayml/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)`}}),{c(){i=s("p"),b=l("Examples:"),c=f(),w(p.$$.fragment)},l(t){i=a(t,"P",{});var u=r(i);b=d(u,"Examples:"),u.forEach(o),c=m(t),$(p.$$.fragment,t)},m(t,u){Z(t,i,u),e(i,b),Z(t,c,u),M(p,t,u),g=!0},p:yo,i(t){g||(x(p.$$.fragment,t),g=!0)},o(t){j(p.$$.fragment,t),g=!1},d(t){t&&o(i),t&&o(c),U(p,t)}}}function za(E){let i,b,c,p,g,t,u,k;return{c(){i=s("p"),b=l("To use private or "),c=s("a"),p=l("gated models"),g=l(`, log-in with
`),t=s("code"),u=l("huggingface-cli login"),k=l("."),this.h()},l(P){i=a(P,"P",{});var T=r(i);b=d(T,"To use private or "),c=a(T,"A",{href:!0,rel:!0});var W=r(c);p=d(W,"gated models"),W.forEach(o),g=d(T,`, log-in with
`),t=a(T,"CODE",{});var I=r(t);u=d(I,"huggingface-cli login"),I.forEach(o),k=d(T,"."),T.forEach(o),this.h()},h(){h(c,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),h(c,"rel","nofollow")},m(P,T){Z(P,i,T),e(i,b),e(i,c),e(c,p),e(i,g),e(i,t),e(t,u),e(i,k)},d(P){P&&o(i)}}}function Aa(E){let i,b;return{c(){i=s("p"),b=l(`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`)},l(c){i=a(c,"P",{});var p=r(i);b=d(p,`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`),p.forEach(o)},m(c,p){Z(c,i,p),e(i,b)},d(c){c&&o(i)}}}function Ha(E){let i,b,c,p,g;return p=new vo({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>)`}}),{c(){i=s("p"),b=l("Examples:"),c=f(),w(p.$$.fragment)},l(t){i=a(t,"P",{});var u=r(i);b=d(u,"Examples:"),u.forEach(o),c=m(t),$(p.$$.fragment,t)},m(t,u){Z(t,i,u),e(i,b),Z(t,c,u),M(p,t,u),g=!0},p:yo,i(t){g||(x(p.$$.fragment,t),g=!0)},o(t){j(p.$$.fragment,t),g=!1},d(t){t&&o(i),t&&o(c),U(p,t)}}}function Qa(E){let i,b,c,p,g;return p=new vo({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`<span class="hljs-comment">Some</span> <span class="hljs-comment">weights</span> <span class="hljs-comment">of</span> <span class="hljs-comment">UNet2DConditionModel were not initialized from the model checkpoint at</span> <span class="hljs-comment">runwayml/stable</span><span class="hljs-literal">-</span><span class="hljs-comment">diffusion</span><span class="hljs-literal">-</span><span class="hljs-comment">v1</span><span class="hljs-literal">-</span><span class="hljs-comment">5 and are newly initialized because the shapes did</span> <span class="hljs-comment">not</span> <span class="hljs-comment">match:</span>
<span class="hljs-literal">-</span> <span class="hljs-comment">conv_in</span><span class="hljs-string">.</span><span class="hljs-comment">weight:</span> <span class="hljs-comment">found</span> <span class="hljs-comment">shape</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">4</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the checkpoint and</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">9</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the model instantiated</span>
<span class="hljs-comment">You</span> <span class="hljs-comment">should</span> <span class="hljs-comment">probably</span> <span class="hljs-comment">TRAIN this model on a down-stream task to be able to use it for predictions and inference</span><span class="hljs-string">.</span>`}}),{c(){i=s("p"),b=l("If you get the error message below, you need to finetune the weights for your downstream task:"),c=f(),w(p.$$.fragment)},l(t){i=a(t,"P",{});var u=r(i);b=d(u,"If you get the error message below, you need to finetune the weights for your downstream task:"),u.forEach(o),c=m(t),$(p.$$.fragment,t)},m(t,u){Z(t,i,u),e(i,b),Z(t,c,u),M(p,t,u),g=!0},p:yo,i(t){g||(x(p.$$.fragment,t),g=!0)},o(t){j(p.$$.fragment,t),g=!1},d(t){t&&o(i),t&&o(c),U(p,t)}}}function La(E){let i,b,c,p,g,t,u,k;return{c(){i=s("p"),b=l("To use private or "),c=s("a"),p=l("gated"),g=l(` models, log-in with
`),t=s("code"),u=l("huggingface-cli login"),k=l("."),this.h()},l(P){i=a(P,"P",{});var T=r(i);b=d(T,"To use private or "),c=a(T,"A",{href:!0,rel:!0});var W=r(c);p=d(W,"gated"),W.forEach(o),g=d(T,` models, log-in with
`),t=a(T,"CODE",{});var I=r(t);u=d(I,"huggingface-cli login"),I.forEach(o),k=d(T,"."),T.forEach(o),this.h()},h(){h(c,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),h(c,"rel","nofollow")},m(P,T){Z(P,i,T),e(i,b),e(i,c),e(c,p),e(i,g),e(i,t),e(t,u),e(i,k)},d(P){P&&o(i)}}}function qa(E){let i,b,c,p,g;return p=new vo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQXBpcGVsaW5lJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMkNvbXBWaXMlMkZsZG0tdGV4dDJpbS1sYXJnZS0yNTYlMjIpJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMHRoYXQlMjByZXF1aXJlcyUyMGFuJTIwYXV0aG9yaXphdGlvbiUyMHRva2VuJTBBJTIzJTIwRm9yJTIwbW9yZSUyMGluZm9ybWF0aW9uJTIwb24lMjBhY2Nlc3MlMjB0b2tlbnMlMkMlMjBwbGVhc2UlMjByZWZlciUyMHRvJTIwdGhpcyUyMHNlY3Rpb24lMEElMjMlMjBvZiUyMHRoZSUyMGRvY3VtZW50YXRpb24lNUQoaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRvY3MlMkZodWIlMkZzZWN1cml0eS10b2tlbnMpJTBBcGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIpJTBBJTBBJTIzJTIwVXNlJTIwYSUyMGRpZmZlcmVudCUyMHNjaGVkdWxlciUwQWZyb20lMjBkaWZmdXNlcnMlMjBpbXBvcnQlMjBMTVNEaXNjcmV0ZVNjaGVkdWxlciUwQSUwQXNjaGVkdWxlciUyMCUzRCUyMExNU0Rpc2NyZXRlU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGVsaW5lLnNjaGVkdWxlci5jb25maWcpJTBBcGlwZWxpbmUuc2NoZWR1bGVyJTIwJTNEJTIwc2NoZWR1bGVy",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;runwayml/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`}}),{c(){i=s("p"),b=l("Examples:"),c=f(),w(p.$$.fragment)},l(t){i=a(t,"P",{});var u=r(i);b=d(u,"Examples:"),u.forEach(o),c=m(t),$(p.$$.fragment,t)},m(t,u){Z(t,i,u),e(i,b),Z(t,c,u),M(p,t,u),g=!0},p:yo,i(t){g||(x(p.$$.fragment,t),g=!0)},o(t){j(p.$$.fragment,t),g=!1},d(t){t&&o(i),t&&o(c),U(p,t)}}}function Oa(E){let i,b,c,p,g;return p=new vo({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUyMHdlcmUlMjBub3QlMjBpbml0aWFsaXplZCUyMGZyb20lMjB0aGUlMjBtb2RlbCUyMGNoZWNrcG9pbnQlMjBhdCUyMHJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIwYW5kJTIwYXJlJTIwbmV3bHklMjBpbml0aWFsaXplZCUyMGJlY2F1c2UlMjB0aGUlMjBzaGFwZXMlMjBkaWQlMjBub3QlMjBtYXRjaCUzQQ==",highlighted:'<span class="hljs-comment">Some</span> <span class="hljs-comment">weights</span> <span class="hljs-comment">of</span> <span class="hljs-comment">FlaxUNet2DConditionModel were not initialized from the model checkpoint at</span> <span class="hljs-comment">runwayml/stable</span><span class="hljs-literal">-</span><span class="hljs-comment">diffusion</span><span class="hljs-literal">-</span><span class="hljs-comment">v1</span><span class="hljs-literal">-</span><span class="hljs-comment">5 and are newly initialized because the shapes did</span> <span class="hljs-comment">not</span> <span class="hljs-comment">match:</span>'}}),{c(){i=s("p"),b=l("If you get the error message below, you need to finetune the weights for your downstream task:"),c=f(),w(p.$$.fragment)},l(t){i=a(t,"P",{});var u=r(i);b=d(u,"If you get the error message below, you need to finetune the weights for your downstream task:"),u.forEach(o),c=m(t),$(p.$$.fragment,t)},m(t,u){Z(t,i,u),e(i,b),Z(t,c,u),M(p,t,u),g=!0},p:yo,i(t){g||(x(p.$$.fragment,t),g=!0)},o(t){j(p.$$.fragment,t),g=!1},d(t){t&&o(i),t&&o(c),U(p,t)}}}function Ka(E){let i,b,c,p,g,t,u,k,P,T,W;return{c(){i=s("p"),b=l("To use private or "),c=s("a"),p=l("gated models"),g=l(`, log-in with
`),t=s("code"),u=l("huggingface-cli login"),k=l(`. You can also activate the special
`),P=s("a"),T=l("\u201Coffline-mode\u201D"),W=l(` to use this method in a
firewalled environment.`),this.h()},l(I){i=a(I,"P",{});var G=r(i);b=d(G,"To use private or "),c=a(G,"A",{href:!0,rel:!0});var J=r(c);p=d(J,"gated models"),J.forEach(o),g=d(G,`, log-in with
`),t=a(G,"CODE",{});var A=r(t);u=d(A,"huggingface-cli login"),A.forEach(o),k=d(G,`. You can also activate the special
`),P=a(G,"A",{href:!0,rel:!0});var N=r(P);T=d(N,"\u201Coffline-mode\u201D"),N.forEach(o),W=d(G,` to use this method in a
firewalled environment.`),G.forEach(o),this.h()},h(){h(c,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),h(c,"rel","nofollow"),h(P,"href","https://huggingface.co/diffusers/installation.html#offline-mode"),h(P,"rel","nofollow")},m(I,G){Z(I,i,G),e(i,b),e(i,c),e(c,p),e(i,g),e(i,t),e(t,u),e(i,k),e(i,P),e(P,T),e(i,W)},d(I){I&&o(i)}}}function ei(E){let i,b,c,p,g;return p=new vo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhEaWZmdXNpb25QaXBlbGluZSUwQSUwQSUyMyUyMERvd25sb2FkJTIwcGlwZWxpbmUlMjBmcm9tJTIwaHVnZ2luZ2ZhY2UuY28lMjBhbmQlMjBjYWNoZS4lMEElMjMlMjBSZXF1aXJlcyUyMHRvJTIwYmUlMjBsb2dnZWQlMjBpbiUyMHRvJTIwSHVnZ2luZyUyMEZhY2UlMjBodWIlMkMlMEElMjMlMjBzZWUlMjBtb3JlJTIwaW4lMjAlNUJ0aGUlMjBkb2N1bWVudGF0aW9uJTVEKGh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkb2NzJTJGaHViJTJGc2VjdXJpdHktdG9rZW5zKSUwQXBpcGVsaW5lJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHJldmlzaW9uJTNEJTIyYmYxNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGR0eXBlJTNEam5wLmJmbG9hdDE2JTJDJTBBKSUwQSUwQSUyMyUyMERvd25sb2FkJTIwcGlwZWxpbmUlMkMlMjBidXQlMjB1c2UlMjBhJTIwZGlmZmVyZW50JTIwc2NoZWR1bGVyJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTBBZHBtcHAlMkMlMjBkcG1wcF9zdGF0ZSUyMCUzRCUyMEZsYXhEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lkJTJDJTBBJTIwJTIwJTIwJTIwc3ViZm9sZGVyJTNEJTIyc2NoZWR1bGVyJTIyJTJDJTBBKSUwQSUwQWRwbV9waXBlJTJDJTIwZHBtX3BhcmFtcyUyMCUzRCUyMEZsYXhTdGFibGVEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlMkMlMjByZXZpc2lvbiUzRCUyMmJmMTYlMjIlMkMlMjBkdHlwZSUzRGpucC5iZmxvYXQxNiUyQyUyMHNjaGVkdWxlciUzRGRwbXBwJTBBKSUwQWRwbV9wYXJhbXMlNUIlMjJzY2hlZHVsZXIlMjIlNUQlMjAlM0QlMjBkcG1wcF9zdGF0ZQ==",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;runwayml/stable-diffusion-v1-5&quot;</span>,
<span class="hljs-meta">... </span>    revision=<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;runwayml/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, revision=<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`}}),{c(){i=s("p"),b=l("Examples:"),c=f(),w(p.$$.fragment)},l(t){i=a(t,"P",{});var u=r(i);b=d(u,"Examples:"),u.forEach(o),c=m(t),$(p.$$.fragment,t)},m(t,u){Z(t,i,u),e(i,b),Z(t,c,u),M(p,t,u),g=!0},p:yo,i(t){g||(x(p.$$.fragment,t),g=!0)},o(t){j(p.$$.fragment,t),g=!1},d(t){t&&o(i),t&&o(c),U(p,t)}}}function oi(E){let i,b,c,p,g,t,u,k,P,T,W,I,G,J,A,N,ao,io,ft,q,mt,H,O,wo,xe,Ft,$o,Vt,ut,_,je,Ct,Mo,Nt,St,ro,lo,Rt,Xt,Yt,Ue,xo,zt,At,jo,Ht,Qt,Uo,Lt,qt,Te,K,To,Ot,Kt,Zo,en,on,tn,ee,Po,nn,sn,Eo,an,rn,ln,oe,Ze,dn,Do,pn,cn,po,Pe,fn,co,Ee,mn,S,De,un,Je,hn,Jo,gn,bn,_n,ke,yn,ko,vn,wn,$n,te,Mn,ne,Ge,xn,We,jn,Go,Un,Tn,Zn,se,Ie,Pn,Be,En,Fe,Dn,Jn,kn,z,Ve,Gn,Wo,Wn,In,ae,Bn,ie,Ce,Fn,Io,Vn,Cn,re,Ne,Nn,Q,Sn,Bo,Rn,Xn,Fo,Yn,zn,An,R,Se,Hn,Re,Qn,Xe,Ln,qn,On,le,Kn,de,es,V,Ye,os,Vo,ts,ns,ze,ss,Co,as,is,rs,pe,ls,ce,ds,fe,ps,me,Ae,cs,No,fs,ms,ue,He,us,Qe,hs,fo,gs,bs,ht,L,he,So,Le,_s,Ro,ys,gt,D,qe,vs,Xo,ws,$s,mo,uo,Ms,xs,js,Yo,zo,Us,Ts,Ao,Zs,Ps,Ho,ge,Qo,Es,Ds,Lo,Js,ks,Gs,C,Oe,Ws,qo,Is,Bs,Oo,Fs,Vs,be,Cs,_e,Ns,ye,Ss,ve,Ke,Rs,Ko,Xs,Ys,we,eo,zs,oo,As,ho,Hs,Qs,bt;return t=new Os({}),q=new ct({props:{warning:!0,$$slots:{default:[Xa]},$$scope:{ctx:E}}}),xe=new Os({}),je=new F({props:{name:"class diffusers.DiffusionPipeline",anchor:"diffusers.DiffusionPipeline",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L476"}}),Ze=new F({props:{name:"__call__",anchor:"diffusers.DiffusionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}]}}),Pe=new F({props:{name:"device",anchor:"diffusers.DiffusionPipeline.device",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L719",returnDescription:`
<p>The torch device on which the pipeline is located.</p>
`,returnType:`
<p><code>torch.device</code></p>
`}}),Ee=new F({props:{name:"to",anchor:"diffusers.DiffusionPipeline.to",parameters:[{name:"torch_device",val:": typing.Union[str, torch.device, NoneType] = None"},{name:"torch_dtype",val:": typing.Optional[torch.dtype] = None"},{name:"silence_dtype_warnings",val:": bool = False"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L644"}}),De=new F({props:{name:"components",anchor:"diffusers.DiffusionPipeline.components",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1509"}}),te=new _o({props:{anchor:"diffusers.DiffusionPipeline.components.example",$$slots:{default:[Ya]},$$scope:{ctx:E}}}),Ge=new F({props:{name:"disable_attention_slicing",anchor:"diffusers.DiffusionPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1646"}}),Ie=new F({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.DiffusionPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1605"}}),Ve=new F({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.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_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.use_auth_token",description:`<strong>use_auth_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:"use_auth_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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1206",returnDescription:`
<p>A path to the downloaded pipeline.</p>
`,returnType:`
<p><code>os.PathLike</code></p>
`}}),ae=new ct({props:{$$slots:{default:[za]},$$scope:{ctx:E}}}),Ce=new F({props:{name:"enable_attention_slicing",anchor:"diffusers.DiffusionPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, 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/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1631"}}),Ne=new F({props:{name:"enable_sequential_cpu_offload",anchor:"diffusers.DiffusionPipeline.enable_sequential_cpu_offload",parameters:[{name:"gpu_id",val:": int = 0"},{name:"device",val:": typing.Union[torch.device, str] = 'cuda'"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1172"}}),Se=new F({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/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1570"}}),le=new ct({props:{warning:!0,$$slots:{default:[Aa]},$$scope:{ctx:E}}}),de=new _o({props:{anchor:"diffusers.DiffusionPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[Ha]},$$scope:{ctx:E}}}),Ye=new F({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/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</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.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{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.use_auth_token",description:`<strong>use_auth_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:"use_auth_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>, 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.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.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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L734"}}),pe=new _o({props:{anchor:"diffusers.DiffusionPipeline.from_pretrained.example",$$slots:{default:[Qa]},$$scope:{ctx:E}}}),ce=new ct({props:{$$slots:{default:[La]},$$scope:{ctx:E}}}),fe=new _o({props:{anchor:"diffusers.DiffusionPipeline.from_pretrained.example-2",$$slots:{default:[qa]},$$scope:{ctx:E}}}),Ae=new F({props:{name:"numpy_to_pil",anchor:"diffusers.DiffusionPipeline.numpy_to_pil",parameters:[{name:"images",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1545"}}),He=new F({props:{name:"save_pretrained",anchor:"diffusers.DiffusionPipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"safe_serialization",val:": bool = False"},{name:"variant",val:": typing.Optional[str] = None"}],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>False</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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L556"}}),Le=new Os({}),qe=new F({props:{name:"class diffusers.FlaxDiffusionPipeline",anchor:"diffusers.FlaxDiffusionPipeline",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_flax_utils.py#L93"}}),Oe=new F({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>runwayml/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/v0.19.0/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.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_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.use_auth_token",description:`<strong>use_auth_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:"use_auth_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/v0.19.0/src/diffusers/pipelines/pipeline_flax_utils.py#L191"}}),be=new _o({props:{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.example",$$slots:{default:[Oa]},$$scope:{ctx:E}}}),_e=new ct({props:{$$slots:{default:[Ka]},$$scope:{ctx:E}}}),ye=new _o({props:{anchor:"diffusers.FlaxDiffusionPipeline.from_pretrained.example-2",$$slots:{default:[ei]},$$scope:{ctx:E}}}),Ke=new F({props:{name:"numpy_to_pil",anchor:"diffusers.FlaxDiffusionPipeline.numpy_to_pil",parameters:[{name:"images",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_flax_utils.py#L529"}}),eo=new F({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]"}],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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_flax_utils.py#L142"}}),{c(){i=s("meta"),b=f(),c=s("h1"),p=s("a"),g=s("span"),w(t.$$.fragment),u=f(),k=s("span"),P=l("Pipelines"),T=f(),W=s("p"),I=l("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 scheduler or even model components."),G=f(),J=s("p"),A=l("All pipelines are built from the base "),N=s("a"),ao=l("DiffusionPipeline"),io=l(" class which provides basic functionality for loading, downloading, and saving all the components."),ft=f(),w(q.$$.fragment),mt=f(),H=s("h2"),O=s("a"),wo=s("span"),w(xe.$$.fragment),Ft=f(),$o=s("span"),Vt=l("DiffusionPipeline"),ut=f(),_=s("div"),w(je.$$.fragment),Ct=f(),Mo=s("p"),Nt=l("Base class for all pipelines."),St=f(),ro=s("p"),lo=s("a"),Rt=l("DiffusionPipeline"),Xt=l(` stores all components (models, schedulers, and processors) for diffusion pipelines and
provides methods for loading, downloading and saving models. It also includes methods to:`),Yt=f(),Ue=s("ul"),xo=s("li"),zt=l("move all PyTorch modules to the device of your choice"),At=f(),jo=s("li"),Ht=l("enable/disable the progress bar for the denoising iteration"),Qt=f(),Uo=s("p"),Lt=l("Class attributes:"),qt=f(),Te=s("ul"),K=s("li"),To=s("strong"),Ot=l("config_name"),Kt=l(" ("),Zo=s("code"),en=l("str"),on=l(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),tn=f(),ee=s("li"),Po=s("strong"),nn=l("_optional_components"),sn=l(" ("),Eo=s("code"),an=l("List[str]"),rn=l(`) \u2014 List of all optional components that don\u2019t have to be passed to the
pipeline to function (should be overridden by subclasses).`),ln=f(),oe=s("div"),w(Ze.$$.fragment),dn=f(),Do=s("p"),pn=l("Call self as a function."),cn=f(),po=s("div"),w(Pe.$$.fragment),fn=f(),co=s("div"),w(Ee.$$.fragment),mn=f(),S=s("div"),w(De.$$.fragment),un=f(),Je=s("p"),hn=l("The "),Jo=s("code"),gn=l("self.components"),bn=l(` property can be useful to run different pipelines with the same weights and
configurations without reallocating additional memory.`),_n=f(),ke=s("p"),yn=l("Returns ("),ko=s("code"),vn=l("dict"),wn=l(`):
A dictionary containing all the modules needed to initialize the pipeline.`),$n=f(),w(te.$$.fragment),Mn=f(),ne=s("div"),w(Ge.$$.fragment),xn=f(),We=s("p"),jn=l("Disable sliced attention computation. If "),Go=s("code"),Un=l("enable_attention_slicing"),Tn=l(` was previously called, attention is
computed in one step.`),Zn=f(),se=s("div"),w(Ie.$$.fragment),Pn=f(),Be=s("p"),En=l("Disable memory efficient attention from "),Fe=s("a"),Dn=l("xFormers"),Jn=l("."),kn=f(),z=s("div"),w(Ve.$$.fragment),Gn=f(),Wo=s("p"),Wn=l("Download and cache a PyTorch diffusion pipeline from pretrained pipeline weights."),In=f(),w(ae.$$.fragment),Bn=f(),ie=s("div"),w(Ce.$$.fragment),Fn=f(),Io=s("p"),Vn=l(`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. This is useful to save some memory in exchange for a small
speed decrease.`),Cn=f(),re=s("div"),w(Ne.$$.fragment),Nn=f(),Q=s("p"),Sn=l(`Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and safety checker have their state dicts saved to CPU and then are moved to a
`),Bo=s("code"),Rn=l("torch.device('meta') and loaded to GPU only when their specific submodule has its "),Xn=l("forward"),Fo=s("code"),Yn=l("method called. Note that offloading happens on a submodule basis. Memory savings are higher than with"),zn=l("enable_model_cpu_offload`, but performance is lower."),An=f(),R=s("div"),w(Se.$$.fragment),Hn=f(),Re=s("p"),Qn=l("Enable memory efficient attention from "),Xe=s("a"),Ln=l("xFormers"),qn=l(`. 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.`),On=f(),w(le.$$.fragment),Kn=f(),w(de.$$.fragment),es=f(),V=s("div"),w(Ye.$$.fragment),os=f(),Vo=s("p"),ts=l("Instantiate a PyTorch diffusion pipeline from pretrained pipeline weights."),ns=f(),ze=s("p"),ss=l("The pipeline is set in evaluation mode ("),Co=s("code"),as=l("model.eval()"),is=l(") by default."),rs=f(),w(pe.$$.fragment),ls=f(),w(ce.$$.fragment),ds=f(),w(fe.$$.fragment),ps=f(),me=s("div"),w(Ae.$$.fragment),cs=f(),No=s("p"),fs=l("Convert a NumPy image or a batch of images to a PIL image."),ms=f(),ue=s("div"),w(He.$$.fragment),us=f(),Qe=s("p"),hs=l(`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
`),fo=s("a"),gs=l("from_pretrained()"),bs=l(" class method."),ht=f(),L=s("h2"),he=s("a"),So=s("span"),w(Le.$$.fragment),_s=f(),Ro=s("span"),ys=l("FlaxDiffusionPipeline"),gt=f(),D=s("div"),w(qe.$$.fragment),vs=f(),Xo=s("p"),ws=l("Base class for Flax-based pipelines."),$s=f(),mo=s("p"),uo=s("a"),Ms=l("FlaxDiffusionPipeline"),xs=l(` stores all components (models, schedulers, and processors) for diffusion pipelines and
provides methods for loading, downloading and saving models. It also includes methods to:`),js=f(),Yo=s("ul"),zo=s("li"),Us=l("enable/disable the progress bar for the denoising iteration"),Ts=f(),Ao=s("p"),Zs=l("Class attributes:"),Ps=f(),Ho=s("ul"),ge=s("li"),Qo=s("strong"),Es=l("config_name"),Ds=l(" ("),Lo=s("code"),Js=l("str"),ks=l(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Gs=f(),C=s("div"),w(Oe.$$.fragment),Ws=f(),qo=s("p"),Is=l("Instantiate a Flax-based diffusion pipeline from pretrained pipeline weights."),Bs=f(),Oo=s("p"),Fs=l("The pipeline is set in evaluation mode (`model.eval()) by default and dropout modules are deactivated."),Vs=f(),w(be.$$.fragment),Cs=f(),w(_e.$$.fragment),Ns=f(),w(ye.$$.fragment),Ss=f(),ve=s("div"),w(Ke.$$.fragment),Rs=f(),Ko=s("p"),Xs=l("Convert a NumPy image or a batch of images to a PIL image."),Ys=f(),we=s("div"),w(eo.$$.fragment),zs=f(),oo=s("p"),As=l(`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
`),ho=s("a"),Hs=l("from_pretrained()"),Qs=l(" class method."),this.h()},l(n){const y=Sa('[data-svelte="svelte-1phssyn"]',document.head);i=a(y,"META",{name:!0,content:!0}),y.forEach(o),b=m(n),c=a(n,"H1",{class:!0});var to=r(c);p=a(to,"A",{id:!0,class:!0,href:!0});var et=r(p);g=a(et,"SPAN",{});var ot=r(g);$(t.$$.fragment,ot),ot.forEach(o),et.forEach(o),u=m(to),k=a(to,"SPAN",{});var tt=r(k);P=d(tt,"Pipelines"),tt.forEach(o),to.forEach(o),T=m(n),W=a(n,"P",{});var nt=r(W);I=d(nt,"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 scheduler or even model components."),nt.forEach(o),G=m(n),J=a(n,"P",{});var no=r(J);A=d(no,"All pipelines are built from the base "),N=a(no,"A",{href:!0});var st=r(N);ao=d(st,"DiffusionPipeline"),st.forEach(o),io=d(no," class which provides basic functionality for loading, downloading, and saving all the components."),no.forEach(o),ft=m(n),$(q.$$.fragment,n),mt=m(n),H=a(n,"H2",{class:!0});var so=r(H);O=a(so,"A",{id:!0,class:!0,href:!0});var at=r(O);wo=a(at,"SPAN",{});var it=r(wo);$(xe.$$.fragment,it),it.forEach(o),at.forEach(o),Ft=m(so),$o=a(so,"SPAN",{});var rt=r($o);Vt=d(rt,"DiffusionPipeline"),rt.forEach(o),so.forEach(o),ut=m(n),_=a(n,"DIV",{class:!0});var v=r(_);$(je.$$.fragment,v),Ct=m(v),Mo=a(v,"P",{});var Ks=r(Mo);Nt=d(Ks,"Base class for all pipelines."),Ks.forEach(o),St=m(v),ro=a(v,"P",{});var Ls=r(ro);lo=a(Ls,"A",{href:!0});var ea=r(lo);Rt=d(ea,"DiffusionPipeline"),ea.forEach(o),Xt=d(Ls,` stores all components (models, schedulers, and processors) for diffusion pipelines and
provides methods for loading, downloading and saving models. It also includes methods to:`),Ls.forEach(o),Yt=m(v),Ue=a(v,"UL",{});var _t=r(Ue);xo=a(_t,"LI",{});var oa=r(xo);zt=d(oa,"move all PyTorch modules to the device of your choice"),oa.forEach(o),At=m(_t),jo=a(_t,"LI",{});var ta=r(jo);Ht=d(ta,"enable/disable the progress bar for the denoising iteration"),ta.forEach(o),_t.forEach(o),Qt=m(v),Uo=a(v,"P",{});var na=r(Uo);Lt=d(na,"Class attributes:"),na.forEach(o),qt=m(v),Te=a(v,"UL",{});var yt=r(Te);K=a(yt,"LI",{});var lt=r(K);To=a(lt,"STRONG",{});var sa=r(To);Ot=d(sa,"config_name"),sa.forEach(o),Kt=d(lt," ("),Zo=a(lt,"CODE",{});var aa=r(Zo);en=d(aa,"str"),aa.forEach(o),on=d(lt,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),lt.forEach(o),tn=m(yt),ee=a(yt,"LI",{});var dt=r(ee);Po=a(dt,"STRONG",{});var ia=r(Po);nn=d(ia,"_optional_components"),ia.forEach(o),sn=d(dt," ("),Eo=a(dt,"CODE",{});var ra=r(Eo);an=d(ra,"List[str]"),ra.forEach(o),rn=d(dt,`) \u2014 List of all optional components that don\u2019t have to be passed to the
pipeline to function (should be overridden by subclasses).`),dt.forEach(o),yt.forEach(o),ln=m(v),oe=a(v,"DIV",{class:!0});var vt=r(oe);$(Ze.$$.fragment,vt),dn=m(vt),Do=a(vt,"P",{});var la=r(Do);pn=d(la,"Call self as a function."),la.forEach(o),vt.forEach(o),cn=m(v),po=a(v,"DIV",{class:!0});var da=r(po);$(Pe.$$.fragment,da),da.forEach(o),fn=m(v),co=a(v,"DIV",{class:!0});var pa=r(co);$(Ee.$$.fragment,pa),pa.forEach(o),mn=m(v),S=a(v,"DIV",{class:!0});var $e=r(S);$(De.$$.fragment,$e),un=m($e),Je=a($e,"P",{});var wt=r(Je);hn=d(wt,"The "),Jo=a(wt,"CODE",{});var ca=r(Jo);gn=d(ca,"self.components"),ca.forEach(o),bn=d(wt,` property can be useful to run different pipelines with the same weights and
configurations without reallocating additional memory.`),wt.forEach(o),_n=m($e),ke=a($e,"P",{});var $t=r(ke);yn=d($t,"Returns ("),ko=a($t,"CODE",{});var fa=r(ko);vn=d(fa,"dict"),fa.forEach(o),wn=d($t,`):
A dictionary containing all the modules needed to initialize the pipeline.`),$t.forEach(o),$n=m($e),$(te.$$.fragment,$e),$e.forEach(o),Mn=m(v),ne=a(v,"DIV",{class:!0});var Mt=r(ne);$(Ge.$$.fragment,Mt),xn=m(Mt),We=a(Mt,"P",{});var xt=r(We);jn=d(xt,"Disable sliced attention computation. If "),Go=a(xt,"CODE",{});var ma=r(Go);Un=d(ma,"enable_attention_slicing"),ma.forEach(o),Tn=d(xt,` was previously called, attention is
computed in one step.`),xt.forEach(o),Mt.forEach(o),Zn=m(v),se=a(v,"DIV",{class:!0});var jt=r(se);$(Ie.$$.fragment,jt),Pn=m(jt),Be=a(jt,"P",{});var Ut=r(Be);En=d(Ut,"Disable memory efficient attention from "),Fe=a(Ut,"A",{href:!0,rel:!0});var ua=r(Fe);Dn=d(ua,"xFormers"),ua.forEach(o),Jn=d(Ut,"."),Ut.forEach(o),jt.forEach(o),kn=m(v),z=a(v,"DIV",{class:!0});var go=r(z);$(Ve.$$.fragment,go),Gn=m(go),Wo=a(go,"P",{});var ha=r(Wo);Wn=d(ha,"Download and cache a PyTorch diffusion pipeline from pretrained pipeline weights."),ha.forEach(o),In=m(go),$(ae.$$.fragment,go),go.forEach(o),Bn=m(v),ie=a(v,"DIV",{class:!0});var Tt=r(ie);$(Ce.$$.fragment,Tt),Fn=m(Tt),Io=a(Tt,"P",{});var ga=r(Io);Vn=d(ga,`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. This is useful to save some memory in exchange for a small
speed decrease.`),ga.forEach(o),Tt.forEach(o),Cn=m(v),re=a(v,"DIV",{class:!0});var Zt=r(re);$(Ne.$$.fragment,Zt),Nn=m(Zt),Q=a(Zt,"P",{});var bo=r(Q);Sn=d(bo,`Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and safety checker have their state dicts saved to CPU and then are moved to a
`),Bo=a(bo,"CODE",{});var ba=r(Bo);Rn=d(ba,"torch.device('meta') and loaded to GPU only when their specific submodule has its "),ba.forEach(o),Xn=d(bo,"forward"),Fo=a(bo,"CODE",{});var _a=r(Fo);Yn=d(_a,"method called. Note that offloading happens on a submodule basis. Memory savings are higher than with"),_a.forEach(o),zn=d(bo,"enable_model_cpu_offload`, but performance is lower."),bo.forEach(o),Zt.forEach(o),An=m(v),R=a(v,"DIV",{class:!0});var Me=r(R);$(Se.$$.fragment,Me),Hn=m(Me),Re=a(Me,"P",{});var Pt=r(Re);Qn=d(Pt,"Enable memory efficient attention from "),Xe=a(Pt,"A",{href:!0,rel:!0});var ya=r(Xe);Ln=d(ya,"xFormers"),ya.forEach(o),qn=d(Pt,`. 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.`),Pt.forEach(o),On=m(Me),$(le.$$.fragment,Me),Kn=m(Me),$(de.$$.fragment,Me),Me.forEach(o),es=m(v),V=a(v,"DIV",{class:!0});var X=r(V);$(Ye.$$.fragment,X),os=m(X),Vo=a(X,"P",{});var va=r(Vo);ts=d(va,"Instantiate a PyTorch diffusion pipeline from pretrained pipeline weights."),va.forEach(o),ns=m(X),ze=a(X,"P",{});var Et=r(ze);ss=d(Et,"The pipeline is set in evaluation mode ("),Co=a(Et,"CODE",{});var wa=r(Co);as=d(wa,"model.eval()"),wa.forEach(o),is=d(Et,") by default."),Et.forEach(o),rs=m(X),$(pe.$$.fragment,X),ls=m(X),$(ce.$$.fragment,X),ds=m(X),$(fe.$$.fragment,X),X.forEach(o),ps=m(v),me=a(v,"DIV",{class:!0});var Dt=r(me);$(Ae.$$.fragment,Dt),cs=m(Dt),No=a(Dt,"P",{});var $a=r(No);fs=d($a,"Convert a NumPy image or a batch of images to a PIL image."),$a.forEach(o),Dt.forEach(o),ms=m(v),ue=a(v,"DIV",{class:!0});var Jt=r(ue);$(He.$$.fragment,Jt),us=m(Jt),Qe=a(Jt,"P",{});var kt=r(Qe);hs=d(kt,`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
`),fo=a(kt,"A",{href:!0});var Ma=r(fo);gs=d(Ma,"from_pretrained()"),Ma.forEach(o),bs=d(kt," class method."),kt.forEach(o),Jt.forEach(o),v.forEach(o),ht=m(n),L=a(n,"H2",{class:!0});var Gt=r(L);he=a(Gt,"A",{id:!0,class:!0,href:!0});var xa=r(he);So=a(xa,"SPAN",{});var ja=r(So);$(Le.$$.fragment,ja),ja.forEach(o),xa.forEach(o),_s=m(Gt),Ro=a(Gt,"SPAN",{});var Ua=r(Ro);ys=d(Ua,"FlaxDiffusionPipeline"),Ua.forEach(o),Gt.forEach(o),gt=m(n),D=a(n,"DIV",{class:!0});var B=r(D);$(qe.$$.fragment,B),vs=m(B),Xo=a(B,"P",{});var Ta=r(Xo);ws=d(Ta,"Base class for Flax-based pipelines."),Ta.forEach(o),$s=m(B),mo=a(B,"P",{});var qs=r(mo);uo=a(qs,"A",{href:!0});var Za=r(uo);Ms=d(Za,"FlaxDiffusionPipeline"),Za.forEach(o),xs=d(qs,` stores all components (models, schedulers, and processors) for diffusion pipelines and
provides methods for loading, downloading and saving models. It also includes methods to:`),qs.forEach(o),js=m(B),Yo=a(B,"UL",{});var Pa=r(Yo);zo=a(Pa,"LI",{});var Ea=r(zo);Us=d(Ea,"enable/disable the progress bar for the denoising iteration"),Ea.forEach(o),Pa.forEach(o),Ts=m(B),Ao=a(B,"P",{});var Da=r(Ao);Zs=d(Da,"Class attributes:"),Da.forEach(o),Ps=m(B),Ho=a(B,"UL",{});var Ja=r(Ho);ge=a(Ja,"LI",{});var pt=r(ge);Qo=a(pt,"STRONG",{});var ka=r(Qo);Es=d(ka,"config_name"),ka.forEach(o),Ds=d(pt," ("),Lo=a(pt,"CODE",{});var Ga=r(Lo);Js=d(Ga,"str"),Ga.forEach(o),ks=d(pt,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),pt.forEach(o),Ja.forEach(o),Gs=m(B),C=a(B,"DIV",{class:!0});var Y=r(C);$(Oe.$$.fragment,Y),Ws=m(Y),qo=a(Y,"P",{});var Wa=r(qo);Is=d(Wa,"Instantiate a Flax-based diffusion pipeline from pretrained pipeline weights."),Wa.forEach(o),Bs=m(Y),Oo=a(Y,"P",{});var Ia=r(Oo);Fs=d(Ia,"The pipeline is set in evaluation mode (`model.eval()) by default and dropout modules are deactivated."),Ia.forEach(o),Vs=m(Y),$(be.$$.fragment,Y),Cs=m(Y),$(_e.$$.fragment,Y),Ns=m(Y),$(ye.$$.fragment,Y),Y.forEach(o),Ss=m(B),ve=a(B,"DIV",{class:!0});var Wt=r(ve);$(Ke.$$.fragment,Wt),Rs=m(Wt),Ko=a(Wt,"P",{});var Ba=r(Ko);Xs=d(Ba,"Convert a NumPy image or a batch of images to a PIL image."),Ba.forEach(o),Wt.forEach(o),Ys=m(B),we=a(B,"DIV",{class:!0});var It=r(we);$(eo.$$.fragment,It),zs=m(It),oo=a(It,"P",{});var Bt=r(oo);As=d(Bt,`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
`),ho=a(Bt,"A",{href:!0});var Fa=r(ho);Hs=d(Fa,"from_pretrained()"),Fa.forEach(o),Qs=d(Bt," class method."),Bt.forEach(o),It.forEach(o),B.forEach(o),this.h()},h(){h(i,"name","hf:doc:metadata"),h(i,"content",JSON.stringify(ti)),h(p,"id","pipelines"),h(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(p,"href","#pipelines"),h(c,"class","relative group"),h(N,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline"),h(O,"id","diffusers.DiffusionPipeline"),h(O,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(O,"href","#diffusers.DiffusionPipeline"),h(H,"class","relative group"),h(lo,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline"),h(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(po,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(co,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Fe,"href","https://facebookresearch.github.io/xformers/"),h(Fe,"rel","nofollow"),h(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Xe,"href","https://facebookresearch.github.io/xformers/"),h(Xe,"rel","nofollow"),h(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(fo,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline.from_pretrained"),h(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(he,"id","diffusers.FlaxDiffusionPipeline"),h(he,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(he,"href","#diffusers.FlaxDiffusionPipeline"),h(L,"class","relative group"),h(uo,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.FlaxDiffusionPipeline"),h(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ho,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.FlaxDiffusionPipeline.from_pretrained"),h(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(n,y){e(document.head,i),Z(n,b,y),Z(n,c,y),e(c,p),e(p,g),M(t,g,null),e(c,u),e(c,k),e(k,P),Z(n,T,y),Z(n,W,y),e(W,I),Z(n,G,y),Z(n,J,y),e(J,A),e(J,N),e(N,ao),e(J,io),Z(n,ft,y),M(q,n,y),Z(n,mt,y),Z(n,H,y),e(H,O),e(O,wo),M(xe,wo,null),e(H,Ft),e(H,$o),e($o,Vt),Z(n,ut,y),Z(n,_,y),M(je,_,null),e(_,Ct),e(_,Mo),e(Mo,Nt),e(_,St),e(_,ro),e(ro,lo),e(lo,Rt),e(ro,Xt),e(_,Yt),e(_,Ue),e(Ue,xo),e(xo,zt),e(Ue,At),e(Ue,jo),e(jo,Ht),e(_,Qt),e(_,Uo),e(Uo,Lt),e(_,qt),e(_,Te),e(Te,K),e(K,To),e(To,Ot),e(K,Kt),e(K,Zo),e(Zo,en),e(K,on),e(Te,tn),e(Te,ee),e(ee,Po),e(Po,nn),e(ee,sn),e(ee,Eo),e(Eo,an),e(ee,rn),e(_,ln),e(_,oe),M(Ze,oe,null),e(oe,dn),e(oe,Do),e(Do,pn),e(_,cn),e(_,po),M(Pe,po,null),e(_,fn),e(_,co),M(Ee,co,null),e(_,mn),e(_,S),M(De,S,null),e(S,un),e(S,Je),e(Je,hn),e(Je,Jo),e(Jo,gn),e(Je,bn),e(S,_n),e(S,ke),e(ke,yn),e(ke,ko),e(ko,vn),e(ke,wn),e(S,$n),M(te,S,null),e(_,Mn),e(_,ne),M(Ge,ne,null),e(ne,xn),e(ne,We),e(We,jn),e(We,Go),e(Go,Un),e(We,Tn),e(_,Zn),e(_,se),M(Ie,se,null),e(se,Pn),e(se,Be),e(Be,En),e(Be,Fe),e(Fe,Dn),e(Be,Jn),e(_,kn),e(_,z),M(Ve,z,null),e(z,Gn),e(z,Wo),e(Wo,Wn),e(z,In),M(ae,z,null),e(_,Bn),e(_,ie),M(Ce,ie,null),e(ie,Fn),e(ie,Io),e(Io,Vn),e(_,Cn),e(_,re),M(Ne,re,null),e(re,Nn),e(re,Q),e(Q,Sn),e(Q,Bo),e(Bo,Rn),e(Q,Xn),e(Q,Fo),e(Fo,Yn),e(Q,zn),e(_,An),e(_,R),M(Se,R,null),e(R,Hn),e(R,Re),e(Re,Qn),e(Re,Xe),e(Xe,Ln),e(Re,qn),e(R,On),M(le,R,null),e(R,Kn),M(de,R,null),e(_,es),e(_,V),M(Ye,V,null),e(V,os),e(V,Vo),e(Vo,ts),e(V,ns),e(V,ze),e(ze,ss),e(ze,Co),e(Co,as),e(ze,is),e(V,rs),M(pe,V,null),e(V,ls),M(ce,V,null),e(V,ds),M(fe,V,null),e(_,ps),e(_,me),M(Ae,me,null),e(me,cs),e(me,No),e(No,fs),e(_,ms),e(_,ue),M(He,ue,null),e(ue,us),e(ue,Qe),e(Qe,hs),e(Qe,fo),e(fo,gs),e(Qe,bs),Z(n,ht,y),Z(n,L,y),e(L,he),e(he,So),M(Le,So,null),e(L,_s),e(L,Ro),e(Ro,ys),Z(n,gt,y),Z(n,D,y),M(qe,D,null),e(D,vs),e(D,Xo),e(Xo,ws),e(D,$s),e(D,mo),e(mo,uo),e(uo,Ms),e(mo,xs),e(D,js),e(D,Yo),e(Yo,zo),e(zo,Us),e(D,Ts),e(D,Ao),e(Ao,Zs),e(D,Ps),e(D,Ho),e(Ho,ge),e(ge,Qo),e(Qo,Es),e(ge,Ds),e(ge,Lo),e(Lo,Js),e(ge,ks),e(D,Gs),e(D,C),M(Oe,C,null),e(C,Ws),e(C,qo),e(qo,Is),e(C,Bs),e(C,Oo),e(Oo,Fs),e(C,Vs),M(be,C,null),e(C,Cs),M(_e,C,null),e(C,Ns),M(ye,C,null),e(D,Ss),e(D,ve),M(Ke,ve,null),e(ve,Rs),e(ve,Ko),e(Ko,Xs),e(D,Ys),e(D,we),M(eo,we,null),e(we,zs),e(we,oo),e(oo,As),e(oo,ho),e(ho,Hs),e(oo,Qs),bt=!0},p(n,[y]){const to={};y&2&&(to.$$scope={dirty:y,ctx:n}),q.$set(to);const et={};y&2&&(et.$$scope={dirty:y,ctx:n}),te.$set(et);const ot={};y&2&&(ot.$$scope={dirty:y,ctx:n}),ae.$set(ot);const tt={};y&2&&(tt.$$scope={dirty:y,ctx:n}),le.$set(tt);const nt={};y&2&&(nt.$$scope={dirty:y,ctx:n}),de.$set(nt);const no={};y&2&&(no.$$scope={dirty:y,ctx:n}),pe.$set(no);const st={};y&2&&(st.$$scope={dirty:y,ctx:n}),ce.$set(st);const so={};y&2&&(so.$$scope={dirty:y,ctx:n}),fe.$set(so);const at={};y&2&&(at.$$scope={dirty:y,ctx:n}),be.$set(at);const it={};y&2&&(it.$$scope={dirty:y,ctx:n}),_e.$set(it);const rt={};y&2&&(rt.$$scope={dirty:y,ctx:n}),ye.$set(rt)},i(n){bt||(x(t.$$.fragment,n),x(q.$$.fragment,n),x(xe.$$.fragment,n),x(je.$$.fragment,n),x(Ze.$$.fragment,n),x(Pe.$$.fragment,n),x(Ee.$$.fragment,n),x(De.$$.fragment,n),x(te.$$.fragment,n),x(Ge.$$.fragment,n),x(Ie.$$.fragment,n),x(Ve.$$.fragment,n),x(ae.$$.fragment,n),x(Ce.$$.fragment,n),x(Ne.$$.fragment,n),x(Se.$$.fragment,n),x(le.$$.fragment,n),x(de.$$.fragment,n),x(Ye.$$.fragment,n),x(pe.$$.fragment,n),x(ce.$$.fragment,n),x(fe.$$.fragment,n),x(Ae.$$.fragment,n),x(He.$$.fragment,n),x(Le.$$.fragment,n),x(qe.$$.fragment,n),x(Oe.$$.fragment,n),x(be.$$.fragment,n),x(_e.$$.fragment,n),x(ye.$$.fragment,n),x(Ke.$$.fragment,n),x(eo.$$.fragment,n),bt=!0)},o(n){j(t.$$.fragment,n),j(q.$$.fragment,n),j(xe.$$.fragment,n),j(je.$$.fragment,n),j(Ze.$$.fragment,n),j(Pe.$$.fragment,n),j(Ee.$$.fragment,n),j(De.$$.fragment,n),j(te.$$.fragment,n),j(Ge.$$.fragment,n),j(Ie.$$.fragment,n),j(Ve.$$.fragment,n),j(ae.$$.fragment,n),j(Ce.$$.fragment,n),j(Ne.$$.fragment,n),j(Se.$$.fragment,n),j(le.$$.fragment,n),j(de.$$.fragment,n),j(Ye.$$.fragment,n),j(pe.$$.fragment,n),j(ce.$$.fragment,n),j(fe.$$.fragment,n),j(Ae.$$.fragment,n),j(He.$$.fragment,n),j(Le.$$.fragment,n),j(qe.$$.fragment,n),j(Oe.$$.fragment,n),j(be.$$.fragment,n),j(_e.$$.fragment,n),j(ye.$$.fragment,n),j(Ke.$$.fragment,n),j(eo.$$.fragment,n),bt=!1},d(n){o(i),n&&o(b),n&&o(c),U(t),n&&o(T),n&&o(W),n&&o(G),n&&o(J),n&&o(ft),U(q,n),n&&o(mt),n&&o(H),U(xe),n&&o(ut),n&&o(_),U(je),U(Ze),U(Pe),U(Ee),U(De),U(te),U(Ge),U(Ie),U(Ve),U(ae),U(Ce),U(Ne),U(Se),U(le),U(de),U(Ye),U(pe),U(ce),U(fe),U(Ae),U(He),n&&o(ht),n&&o(L),U(Le),n&&o(gt),n&&o(D),U(qe),U(Oe),U(be),U(_e),U(ye),U(Ke),U(eo)}}}const ti={local:"pipelines",sections:[{local:"diffusers.DiffusionPipeline",title:"DiffusionPipeline"},{local:"diffusers.FlaxDiffusionPipeline",title:"FlaxDiffusionPipeline"}],title:"Pipelines"};function ni(E){return Ra(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pi extends Va{constructor(i){super();Ca(this,i,ni,oi,Na,{})}}export{pi as default,ti as metadata};
