import{S as qn,i as Kn,s as ef,e as a,k as f,w as ne,t as i,M as tf,c as l,d as t,m as d,a as r,x as fe,h as n,b as o,N as kt,G as e,g as u,y as de,L as af,q as ce,o as ue,B as he,v as lf}from"../../../../chunks/vendor-hf-doc-builder.js";import{D as rf}from"../../../../chunks/Docstring-hf-doc-builder.js";import{C as Yn}from"../../../../chunks/CodeBlock-hf-doc-builder.js";import{I as tl}from"../../../../chunks/IconCopyLink-hf-doc-builder.js";function sf(Jo){let k,al,R,L,Rt,pe,Nl,$t,jl,ll,b,Vl,Nt,Jl,Ll,me,Cl,Wl,ge,Bl,Ol,be,Xl,Hl,ve,Ql,zl,rl,P,Fl,_e,Yl,ql,Qe,Kl,er,sl,A,tr,Ee,ar,lr,De,rr,sr,ol,ye,jt,or,ir,il,ze,Fe,nr,we,Ye,Lo,nl,Se,Vt,fr,dr,fl,C,Jt,_,Lt,cr,ur,Ct,hr,pr,qe,mr,gr,Ke,br,vr,h,E,Wt,et,_r,Er,Bt,Ot,Dr,yr,tt,Te,at,Co,wr,lt,Me,Sr,Tr,D,Xt,rt,Mr,Ir,Ht,Qt,Gr,xr,st,Ie,ot,Wo,Zr,it,Ge,nt,Bo,Ur,y,zt,ft,Pr,Ar,Ft,Yt,kr,Rr,dt,xe,ct,Oo,$r,ut,Ze,Nr,jr,w,qt,ht,Vr,Jr,Ue,Kt,Lr,Cr,ea,Wr,Br,pt,Pe,mt,Xo,Or,ta,Xr,S,aa,gt,Hr,Qr,Ae,la,zr,Fr,ra,Yr,qr,sa,Kr,oa,es,T,ia,bt,ts,as,ke,na,ls,rs,fa,ss,os,da,is,vt,Re,ns,fs,M,ca,_t,ds,cs,$e,ua,us,hs,ha,ps,ms,pa,gs,ma,bs,I,ga,Et,vs,_s,Ne,ba,Es,Ds,va,ys,ws,_a,Ss,Ea,Ts,G,Da,Dt,Ms,Is,ya,wa,Gs,xs,Sa,Zs,Ta,Us,x,Ma,yt,Ps,As,Ia,Ga,ks,Rs,xa,$s,Za,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mZyb21fcHJldHJhaW5lZCglMjJDb21wVmlzJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS00JTIyJTJDJTIwc2NoZWR1bGVyJTNEZXVsZXJfc2NoZWR1bGVyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline, EulerDiscreteScheduler

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># or</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>euler_scheduler = EulerDiscreteScheduler.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>, scheduler=euler_scheduler)`}}),Le=new tl({}),Oe=new Yn({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMCglMEElMjAlMjAlMjAlMjBTdGFibGVEaWZmdXNpb25QaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMFN0YWJsZURpZmZ1c2lvbkltZzJJbWdQaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMFN0YWJsZURpZmZ1c2lvbklucGFpbnRQaXBlbGluZSUyQyUwQSklMEElMEF0ZXh0MmltZyUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJDb21wVmlzJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS00JTIyKSUwQWltZzJpbWclMjAlM0QlMjBTdGFibGVEaWZmdXNpb25JbWcySW1nUGlwZWxpbmUoKip0ZXh0MmltZy5jb21wb25lbnRzKSUwQWlucGFpbnQlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25JbnBhaW50UGlwZWxpbmUoKip0ZXh0MmltZy5jb21wb25lbnRzKSUwQSUwQSUyMyUyMG5vdyUyMHlvdSUyMGNhbiUyMHVzZSUyMHRleHQyaW1nKC4uLiklMkMlMjBpbWcyaW1nKC4uLiklMkMlMjBpbnBhaW50KC4uLiklMjBqdXN0JTIwbGlrZSUyMHRoZSUyMGNhbGwlMjBtZXRob2RzJTIwb2YlMjBlYWNoJTIwcmVzcGVjdGl2ZSUyMHBpcGVsaW5l",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;CompVis/stable-diffusion-v1-4&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)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># now you can use text2img(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline</span>`}}),Xe=new tl({}),He=new rf({props:{name:"class diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"},{name:"nsfw_content_detected",val:": typing.Optional[typing.List[bool]]"}],parametersDescription:[{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or numpy array of shape <code>(batch_size, height, width, num_channels)</code>. PIL images or numpy array present the denoised images of the diffusion pipeline.`,name:"images"},{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.nsfw_content_detected",description:`<strong>nsfw_content_detected</strong> (<code>List[bool]</code>) &#x2014;
List of flags denoting whether the corresponding generated image likely represents &#x201C;not-safe-for-work&#x201D;
(nsfw) content, or <code>None</code> if safety checking could not be performed.`,name:"nsfw_content_detected"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.0/src/diffusers/pipelines/stable_diffusion/__init__.py#L22"}}),{c(){k=a("meta"),al=f(),R=a("h1"),L=a("a"),Rt=a("span"),ne(pe.$$.fragment),Nl=f(),$t=a("span"),jl=i("Stable diffusion pipelines"),ll=f(),b=a("p"),Vl=i("Stable Diffusion is a text-to-image "),Nt=a("em"),Jl=i("latent diffusion"),Ll=i(" model created by the researchers and engineers from "),me=a("a"),Cl=i("CompVis"),Wl=i(", "),ge=a("a"),Bl=i("Stability AI"),Ol=i(" and "),be=a("a"),Xl=i("LAION"),Hl=i(". It\u2019s trained on 512x512 images from a subset of the "),ve=a("a"),Ql=i("LAION-5B"),zl=i(" dataset. This model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and can run on consumer GPUs."),rl=f(),P=a("p"),Fl=i("Latent diffusion is the research on top of which Stable Diffusion was built. It was proposed in "),_e=a("a"),Yl=i("High-Resolution Image Synthesis with Latent Diffusion Models"),ql=i(" by Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Bj\xF6rn Ommer. You can learn more details about it in the "),Qe=a("a"),Kl=i("specific pipeline for latent diffusion"),er=i(" that is part of \u{1F917} Diffusers."),sl=f(),A=a("p"),tr=i("For more details about how Stable Diffusion works and how it differs from the base latent diffusion model, please refer to the official "),Ee=a("a"),ar=i("launch announcement post"),lr=i(" and "),De=a("a"),rr=i("this section of our own blog post"),sr=i("."),ol=f(),ye=a("p"),jt=a("em"),or=i("Tips"),ir=i(":"),il=f(),ze=a("ul"),Fe=a("li"),nr=i("To tweak your prompts on a specific result you liked, you can generate your own latents, as demonstrated in the following notebook: "),we=a("a"),Ye=a("img"),nl=f(),Se=a("p"),Vt=a("em"),fr=i("Overview"),dr=i(":"),fl=f(),C=a("table"),Jt=a("thead"),_=a("tr"),Lt=a("th"),cr=i("Pipeline"),ur=f(),Ct=a("th"),hr=i("Tasks"),pr=f(),qe=a("th"),mr=i("Colab"),gr=f(),Ke=a("th"),br=i("Demo"),vr=f(),h=a("tbody"),E=a("tr"),Wt=a("td"),et=a("a"),_r=i("StableDiffusionPipeline"),Er=f(),Bt=a("td"),Ot=a("em"),Dr=i("Text-to-Image Generation"),yr=f(),tt=a("td"),Te=a("a"),at=a("img"),wr=f(),lt=a("td"),Me=a("a"),Sr=i("\u{1F917} Stable Diffusion"),Tr=f(),D=a("tr"),Xt=a("td"),rt=a("a"),Mr=i("StableDiffusionPipelineSafe"),Ir=f(),Ht=a("td"),Qt=a("em"),Gr=i("Text-to-Image Generation"),xr=f(),st=a("td"),Ie=a("a"),ot=a("img"),Zr=f(),it=a("td"),Ge=a("a"),nt=a("img"),Ur=f(),y=a("tr"),zt=a("td"),ft=a("a"),Pr=i("StableDiffusionImg2ImgPipeline"),Ar=f(),Ft=a("td"),Yt=a("em"),kr=i("Image-to-Image Text-Guided Generation"),Rr=f(),dt=a("td"),xe=a("a"),ct=a("img"),$r=f(),ut=a("td"),Ze=a("a"),Nr=i("\u{1F917} Diffuse the Rest"),jr=f(),w=a("tr"),qt=a("td"),ht=a("a"),Vr=i("StableDiffusionInpaintPipeline"),Jr=f(),Ue=a("td"),Kt=a("strong"),Lr=i("Experimental"),Cr=i(" \u2013 "),ea=a("em"),Wr=i("Text-Guided Image Inpainting"),Br=f(),pt=a("td"),Pe=a("a"),mt=a("img"),Or=f(),ta=a("td"),Xr=f(),S=a("tr"),aa=a("td"),gt=a("a"),Hr=i("StableDiffusionDepth2ImgPipeline"),Qr=f(),Ae=a("td"),la=a("strong"),zr=i("Experimental"),Fr=i(" \u2013 "),ra=a("em"),Yr=i("Depth-to-Image Text-Guided Generation"),qr=f(),sa=a("td"),Kr=f(),oa=a("td"),es=f(),T=a("tr"),ia=a("td"),bt=a("a"),ts=i("StableDiffusionImageVariationPipeline"),as=f(),ke=a("td"),na=a("strong"),ls=i("Experimental"),rs=i(" \u2013 "),fa=a("em"),ss=i("Image Variation Generation"),os=f(),da=a("td"),is=f(),vt=a("td"),Re=a("a"),ns=i("\u{1F917} Stable Diffusion Image Variations"),fs=f(),M=a("tr"),ca=a("td"),_t=a("a"),ds=i("StableDiffusionUpscalePipeline"),cs=f(),$e=a("td"),ua=a("strong"),us=i("Experimental"),hs=i(" \u2013 "),ha=a("em"),ps=i("Text-Guided Image Super-Resolution"),ms=f(),pa=a("td"),gs=f(),ma=a("td"),bs=f(),I=a("tr"),ga=a("td"),Et=a("a"),vs=i("StableDiffusionLatentUpscalePipeline"),_s=f(),Ne=a("td"),ba=a("strong"),Es=i("Experimental"),Ds=i(" \u2013 "),va=a("em"),ys=i("Text-Guided Image Super-Resolution"),ws=f(),_a=a("td"),Ss=f(),Ea=a("td"),Ts=f(),G=a("tr"),Da=a("td"),Dt=a("a"),Ms=i("Stable Diffusion 2"),Is=f(),ya=a("td"),wa=a("em"),Gs=i("Text-Guided Image Inpainting"),xs=f(),Sa=a("td"),Zs=f(),Ta=a("td"),Us=f(),x=a("tr"),Ma=a("td"),yt=a("a"),Ps=i("Stable Diffusion 2"),As=f(),Ia=a("td"),Ga=a("em"),ks=i("Depth-to-Image Text-Guided Generation"),Rs=f(),xa=a("td"),$s=f(),Za=a("td"),Ns=f(),Z=a("tr"),Ua=a("td"),wt=a("a"),js=i("Stable Diffusion 2"),Vs=f(),Pa=a("td"),Aa=a("em"),Js=i("Text-Guided Super Resolution Image-to-Image"),Ls=f(),ka=a("td"),Cs=f(),Ra=a("td"),Ws=f(),U=a("tr"),$a=a("td"),St=a("a"),Bs=i("StableDiffusionLDM3DPipeline"),Os=f(),Na=a("td"),ja=a("em"),Xs=i("Text-to-(RGB, Depth)"),Hs=f(),Va=a("td"),Qs=f(),Ja=a("td"),dl=f(),$=a("h2"),W=a("a"),La=a("span"),ne(je.$$.fragment),zs=f(),Ca=a("span"),Fs=i("Tips"),cl=f(),N=a("h3"),B=a("a"),Wa=a("span"),ne(Ve.$$.fragment),Ys=f(),Ba=a("span"),qs=i("How to load and use different schedulers."),ul=f(),p=a("p"),Ks=i("The stable diffusion pipeline uses "),Tt=a("a"),eo=i("PNDMScheduler"),to=i(" scheduler by default. But "),Oa=a("code"),ao=i("diffusers"),lo=i(" provides many other schedulers that can be used with the stable diffusion pipeline such as "),Mt=a("a"),ro=i("DDIMScheduler"),so=i(", "),It=a("a"),oo=i("LMSDiscreteScheduler"),io=i(", "),Gt=a("a"),no=i("EulerDiscreteScheduler"),fo=i(", "),xt=a("a"),co=i("EulerAncestralDiscreteScheduler"),uo=i(` etc.
To use a different scheduler, you can either change it via the `),Zt=a("a"),ho=i("ConfigMixin.from_config()"),po=i(" method or pass the "),Xa=a("code"),mo=i("scheduler"),go=i(" argument to the "),Ha=a("code"),bo=i("from_pretrained"),vo=i(" method of the pipeline. For example, to use the "),Ut=a("a"),_o=i("EulerDiscreteScheduler"),Eo=i(", you can do the following:"),hl=f(),ne(Je.$$.fragment),pl=f(),j=a("h3"),O=a("a"),Qa=a("span"),ne(Le.$$.fragment),Do=f(),za=a("span"),yo=i("How to convert all use cases with multiple or single pipeline"),ml=f(),X=a("p"),wo=i("If you want to use all possible use cases in a single "),Fa=a("code"),So=i("DiffusionPipeline"),To=i(" you can either:"),gl=f(),H=a("ul"),Ce=a("li"),Mo=i("Make use of the "),We=a("a"),Io=i("Stable Diffusion Mega Pipeline"),Go=i(" or"),xo=f(),Be=a("li"),Zo=i("Make use of the "),Ya=a("code"),Uo=i("components"),Po=i(" functionality to instantiate all components in the most memory-efficient way:"),bl=f(),ne(Oe.$$.fragment),vl=f(),V=a("h2"),Q=a("a"),qa=a("span"),ne(Xe.$$.fragment),Ao=f(),Ka=a("span"),ko=i("StableDiffusionPipelineOutput"),_l=f(),J=a("div"),ne(He.$$.fragment),Ro=f(),el=a("p"),$o=i("Output class for Stable Diffusion pipelines."),this.h()},l(s){const c=tf('[data-svelte="svelte-1phssyn"]',document.head);k=l(c,"META",{name:!0,content:!0}),c.forEach(t),al=d(s),R=l(s,"H1",{class:!0});var Dl=r(R);L=l(Dl,"A",{id:!0,class:!0,href:!0});var Ho=r(L);Rt=l(Ho,"SPAN",{});var Qo=r(Rt);fe(pe.$$.fragment,Qo),Qo.forEach(t),Ho.forEach(t),Nl=d(Dl),$t=l(Dl,"SPAN",{});var zo=r($t);jl=n(zo,"Stable diffusion pipelines"),zo.forEach(t),Dl.forEach(t),ll=d(s),b=l(s,"P",{});var v=r(b);Vl=n(v,"Stable Diffusion is a text-to-image "),Nt=l(v,"EM",{});var Fo=r(Nt);Jl=n(Fo,"latent diffusion"),Fo.forEach(t),Ll=n(v," model created by the researchers and engineers from "),me=l(v,"A",{href:!0,rel:!0});var Yo=r(me);Cl=n(Yo,"CompVis"),Yo.forEach(t),Wl=n(v,", "),ge=l(v,"A",{href:!0,rel:!0});var qo=r(ge);Bl=n(qo,"Stability AI"),qo.forEach(t),Ol=n(v," and "),be=l(v,"A",{href:!0,rel:!0});var Ko=r(be);Xl=n(Ko,"LAION"),Ko.forEach(t),Hl=n(v,". It\u2019s trained on 512x512 images from a subset of the "),ve=l(v,"A",{href:!0,rel:!0});var ei=r(ve);Ql=n(ei,"LAION-5B"),ei.forEach(t),zl=n(v," dataset. This model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and can run on consumer GPUs."),v.forEach(t),rl=d(s),P=l(s,"P",{});var Pt=r(P);Fl=n(Pt,"Latent diffusion is the research on top of which Stable Diffusion was built. It was proposed in "),_e=l(Pt,"A",{href:!0,rel:!0});var ti=r(_e);Yl=n(ti,"High-Resolution Image Synthesis with Latent Diffusion Models"),ti.forEach(t),ql=n(Pt," by Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Bj\xF6rn Ommer. You can learn more details about it in the "),Qe=l(Pt,"A",{href:!0});var ai=r(Qe);Kl=n(ai,"specific pipeline for latent diffusion"),ai.forEach(t),er=n(Pt," that is part of \u{1F917} Diffusers."),Pt.forEach(t),sl=d(s),A=l(s,"P",{});var At=r(A);tr=n(At,"For more details about how Stable Diffusion works and how it differs from the base latent diffusion model, please refer to the official "),Ee=l(At,"A",{href:!0,rel:!0});var li=r(Ee);ar=n(li,"launch announcement post"),li.forEach(t),lr=n(At," and "),De=l(At,"A",{href:!0,rel:!0});var ri=r(De);rr=n(ri,"this section of our own blog post"),ri.forEach(t),sr=n(At,"."),At.forEach(t),ol=d(s),ye=l(s,"P",{});var No=r(ye);jt=l(No,"EM",{});var si=r(jt);or=n(si,"Tips"),si.forEach(t),ir=n(No,":"),No.forEach(t),il=d(s),ze=l(s,"UL",{});var oi=r(ze);Fe=l(oi,"LI",{});var jo=r(Fe);nr=n(jo,"To tweak your prompts on a specific result you liked, you can generate your own latents, as demonstrated in the following notebook: "),we=l(jo,"A",{href:!0,rel:!0});var ii=r(we);Ye=l(ii,"IMG",{src:!0,alt:!0}),ii.forEach(t),jo.forEach(t),oi.forEach(t),nl=d(s),Se=l(s,"P",{});var Vo=r(Se);Vt=l(Vo,"EM",{});var ni=r(Vt);fr=n(ni,"Overview"),ni.forEach(t),dr=n(Vo,":"),Vo.forEach(t),fl=d(s),C=l(s,"TABLE",{});var yl=r(C);Jt=l(yl,"THEAD",{});var fi=r(Jt);_=l(fi,"TR",{});var z=r(_);Lt=l(z,"TH",{});var di=r(Lt);cr=n(di,"Pipeline"),di.forEach(t),ur=d(z),Ct=l(z,"TH",{});var ci=r(Ct);hr=n(ci,"Tasks"),ci.forEach(t),pr=d(z),qe=l(z,"TH",{align:!0});var ui=r(qe);mr=n(ui,"Colab"),ui.forEach(t),gr=d(z),Ke=l(z,"TH",{align:!0});var hi=r(Ke);br=n(hi,"Demo"),hi.forEach(t),z.forEach(t),fi.forEach(t),vr=d(yl),h=l(yl,"TBODY",{});var m=r(h);E=l(m,"TR",{});var F=r(E);Wt=l(F,"TD",{});var pi=r(Wt);et=l(pi,"A",{href:!0});var mi=r(et);_r=n(mi,"StableDiffusionPipeline"),mi.forEach(t),pi.forEach(t),Er=d(F),Bt=l(F,"TD",{});var gi=r(Bt);Ot=l(gi,"EM",{});var bi=r(Ot);Dr=n(bi,"Text-to-Image Generation"),bi.forEach(t),gi.forEach(t),yr=d(F),tt=l(F,"TD",{align:!0});var vi=r(tt);Te=l(vi,"A",{href:!0,rel:!0});var _i=r(Te);at=l(_i,"IMG",{src:!0,alt:!0}),_i.forEach(t),vi.forEach(t),wr=d(F),lt=l(F,"TD",{align:!0});var Ei=r(lt);Me=l(Ei,"A",{href:!0,rel:!0});var Di=r(Me);Sr=n(Di,"\u{1F917} Stable Diffusion"),Di.forEach(t),Ei.forEach(t),F.forEach(t),Tr=d(m),D=l(m,"TR",{});var Y=r(D);Xt=l(Y,"TD",{});var yi=r(Xt);rt=l(yi,"A",{href:!0});var wi=r(rt);Mr=n(wi,"StableDiffusionPipelineSafe"),wi.forEach(t),yi.forEach(t),Ir=d(Y),Ht=l(Y,"TD",{});var Si=r(Ht);Qt=l(Si,"EM",{});var Ti=r(Qt);Gr=n(Ti,"Text-to-Image Generation"),Ti.forEach(t),Si.forEach(t),xr=d(Y),st=l(Y,"TD",{align:!0});var Mi=r(st);Ie=l(Mi,"A",{href:!0,rel:!0});var Ii=r(Ie);ot=l(Ii,"IMG",{src:!0,alt:!0}),Ii.forEach(t),Mi.forEach(t),Zr=d(Y),it=l(Y,"TD",{align:!0});var Gi=r(it);Ge=l(Gi,"A",{href:!0,rel:!0});var xi=r(Ge);nt=l(xi,"IMG",{src:!0,alt:!0}),xi.forEach(t),Gi.forEach(t),Y.forEach(t),Ur=d(m),y=l(m,"TR",{});var q=r(y);zt=l(q,"TD",{});var Zi=r(zt);ft=l(Zi,"A",{href:!0});var Ui=r(ft);Pr=n(Ui,"StableDiffusionImg2ImgPipeline"),Ui.forEach(t),Zi.forEach(t),Ar=d(q),Ft=l(q,"TD",{});var Pi=r(Ft);Yt=l(Pi,"EM",{});var Ai=r(Yt);kr=n(Ai,"Image-to-Image Text-Guided Generation"),Ai.forEach(t),Pi.forEach(t),Rr=d(q),dt=l(q,"TD",{align:!0});var ki=r(dt);xe=l(ki,"A",{href:!0,rel:!0});var Ri=r(xe);ct=l(Ri,"IMG",{src:!0,alt:!0}),Ri.forEach(t),ki.forEach(t),$r=d(q),ut=l(q,"TD",{align:!0});var $i=r(ut);Ze=l($i,"A",{href:!0,rel:!0});var Ni=r(Ze);Nr=n(Ni,"\u{1F917} Diffuse the Rest"),Ni.forEach(t),$i.forEach(t),q.forEach(t),jr=d(m),w=l(m,"TR",{});var K=r(w);qt=l(K,"TD",{});var ji=r(qt);ht=l(ji,"A",{href:!0});var Vi=r(ht);Vr=n(Vi,"StableDiffusionInpaintPipeline"),Vi.forEach(t),ji.forEach(t),Jr=d(K),Ue=l(K,"TD",{});var wl=r(Ue);Kt=l(wl,"STRONG",{});var Ji=r(Kt);Lr=n(Ji,"Experimental"),Ji.forEach(t),Cr=n(wl," \u2013 "),ea=l(wl,"EM",{});var Li=r(ea);Wr=n(Li,"Text-Guided Image Inpainting"),Li.forEach(t),wl.forEach(t),Br=d(K),pt=l(K,"TD",{align:!0});var Ci=r(pt);Pe=l(Ci,"A",{href:!0,rel:!0});var Wi=r(Pe);mt=l(Wi,"IMG",{src:!0,alt:!0}),Wi.forEach(t),Ci.forEach(t),Or=d(K),ta=l(K,"TD",{align:!0}),r(ta).forEach(t),K.forEach(t),Xr=d(m),S=l(m,"TR",{});var ee=r(S);aa=l(ee,"TD",{});var Bi=r(aa);gt=l(Bi,"A",{href:!0});var Oi=r(gt);Hr=n(Oi,"StableDiffusionDepth2ImgPipeline"),Oi.forEach(t),Bi.forEach(t),Qr=d(ee),Ae=l(ee,"TD",{});var Sl=r(Ae);la=l(Sl,"STRONG",{});var Xi=r(la);zr=n(Xi,"Experimental"),Xi.forEach(t),Fr=n(Sl," \u2013 "),ra=l(Sl,"EM",{});var Hi=r(ra);Yr=n(Hi,"Depth-to-Image Text-Guided Generation"),Hi.forEach(t),Sl.forEach(t),qr=d(ee),sa=l(ee,"TD",{align:!0}),r(sa).forEach(t),Kr=d(ee),oa=l(ee,"TD",{align:!0}),r(oa).forEach(t),ee.forEach(t),es=d(m),T=l(m,"TR",{});var te=r(T);ia=l(te,"TD",{});var Qi=r(ia);bt=l(Qi,"A",{href:!0});var zi=r(bt);ts=n(zi,"StableDiffusionImageVariationPipeline"),zi.forEach(t),Qi.forEach(t),as=d(te),ke=l(te,"TD",{});var Tl=r(ke);na=l(Tl,"STRONG",{});var Fi=r(na);ls=n(Fi,"Experimental"),Fi.forEach(t),rs=n(Tl," \u2013 "),fa=l(Tl,"EM",{});var Yi=r(fa);ss=n(Yi,"Image Variation Generation"),Yi.forEach(t),Tl.forEach(t),os=d(te),da=l(te,"TD",{align:!0}),r(da).forEach(t),is=d(te),vt=l(te,"TD",{align:!0});var qi=r(vt);Re=l(qi,"A",{href:!0,rel:!0});var Ki=r(Re);ns=n(Ki,"\u{1F917} Stable Diffusion Image Variations"),Ki.forEach(t),qi.forEach(t),te.forEach(t),fs=d(m),M=l(m,"TR",{});var ae=r(M);ca=l(ae,"TD",{});var en=r(ca);_t=l(en,"A",{href:!0});var tn=r(_t);ds=n(tn,"StableDiffusionUpscalePipeline"),tn.forEach(t),en.forEach(t),cs=d(ae),$e=l(ae,"TD",{});var Ml=r($e);ua=l(Ml,"STRONG",{});var an=r(ua);us=n(an,"Experimental"),an.forEach(t),hs=n(Ml," \u2013 "),ha=l(Ml,"EM",{});var ln=r(ha);ps=n(ln,"Text-Guided Image Super-Resolution"),ln.forEach(t),Ml.forEach(t),ms=d(ae),pa=l(ae,"TD",{align:!0}),r(pa).forEach(t),gs=d(ae),ma=l(ae,"TD",{align:!0}),r(ma).forEach(t),ae.forEach(t),bs=d(m),I=l(m,"TR",{});var le=r(I);ga=l(le,"TD",{});var rn=r(ga);Et=l(rn,"A",{href:!0});var sn=r(Et);vs=n(sn,"StableDiffusionLatentUpscalePipeline"),sn.forEach(t),rn.forEach(t),_s=d(le),Ne=l(le,"TD",{});var Il=r(Ne);ba=l(Il,"STRONG",{});var on=r(ba);Es=n(on,"Experimental"),on.forEach(t),Ds=n(Il," \u2013 "),va=l(Il,"EM",{});var nn=r(va);ys=n(nn,"Text-Guided Image Super-Resolution"),nn.forEach(t),Il.forEach(t),ws=d(le),_a=l(le,"TD",{align:!0}),r(_a).forEach(t),Ss=d(le),Ea=l(le,"TD",{align:!0}),r(Ea).forEach(t),le.forEach(t),Ts=d(m),G=l(m,"TR",{});var re=r(G);Da=l(re,"TD",{});var fn=r(Da);Dt=l(fn,"A",{href:!0});var dn=r(Dt);Ms=n(dn,"Stable Diffusion 2"),dn.forEach(t),fn.forEach(t),Is=d(re),ya=l(re,"TD",{});var cn=r(ya);wa=l(cn,"EM",{});var un=r(wa);Gs=n(un,"Text-Guided Image Inpainting"),un.forEach(t),cn.forEach(t),xs=d(re),Sa=l(re,"TD",{align:!0}),r(Sa).forEach(t),Zs=d(re),Ta=l(re,"TD",{align:!0}),r(Ta).forEach(t),re.forEach(t),Us=d(m),x=l(m,"TR",{});var se=r(x);Ma=l(se,"TD",{});var hn=r(Ma);yt=l(hn,"A",{href:!0});var pn=r(yt);Ps=n(pn,"Stable Diffusion 2"),pn.forEach(t),hn.forEach(t),As=d(se),Ia=l(se,"TD",{});var mn=r(Ia);Ga=l(mn,"EM",{});var gn=r(Ga);ks=n(gn,"Depth-to-Image Text-Guided Generation"),gn.forEach(t),mn.forEach(t),Rs=d(se),xa=l(se,"TD",{align:!0}),r(xa).forEach(t),$s=d(se),Za=l(se,"TD",{align:!0}),r(Za).forEach(t),se.forEach(t),Ns=d(m),Z=l(m,"TR",{});var oe=r(Z);Ua=l(oe,"TD",{});var bn=r(Ua);wt=l(bn,"A",{href:!0});var vn=r(wt);js=n(vn,"Stable Diffusion 2"),vn.forEach(t),bn.forEach(t),Vs=d(oe),Pa=l(oe,"TD",{});var _n=r(Pa);Aa=l(_n,"EM",{});var En=r(Aa);Js=n(En,"Text-Guided Super Resolution Image-to-Image"),En.forEach(t),_n.forEach(t),Ls=d(oe),ka=l(oe,"TD",{align:!0}),r(ka).forEach(t),Cs=d(oe),Ra=l(oe,"TD",{align:!0}),r(Ra).forEach(t),oe.forEach(t),Ws=d(m),U=l(m,"TR",{});var ie=r(U);$a=l(ie,"TD",{});var Dn=r($a);St=l(Dn,"A",{href:!0});var yn=r(St);Bs=n(yn,"StableDiffusionLDM3DPipeline"),yn.forEach(t),Dn.forEach(t),Os=d(ie),Na=l(ie,"TD",{});var wn=r(Na);ja=l(wn,"EM",{});var Sn=r(ja);Xs=n(Sn,"Text-to-(RGB, Depth)"),Sn.forEach(t),wn.forEach(t),Hs=d(ie),Va=l(ie,"TD",{align:!0}),r(Va).forEach(t),Qs=d(ie),Ja=l(ie,"TD",{align:!0}),r(Ja).forEach(t),ie.forEach(t),m.forEach(t),yl.forEach(t),dl=d(s),$=l(s,"H2",{class:!0});var Gl=r($);W=l(Gl,"A",{id:!0,class:!0,href:!0});var Tn=r(W);La=l(Tn,"SPAN",{});var Mn=r(La);fe(je.$$.fragment,Mn),Mn.forEach(t),Tn.forEach(t),zs=d(Gl),Ca=l(Gl,"SPAN",{});var In=r(Ca);Fs=n(In,"Tips"),In.forEach(t),Gl.forEach(t),cl=d(s),N=l(s,"H3",{class:!0});var xl=r(N);B=l(xl,"A",{id:!0,class:!0,href:!0});var Gn=r(B);Wa=l(Gn,"SPAN",{});var xn=r(Wa);fe(Ve.$$.fragment,xn),xn.forEach(t),Gn.forEach(t),Ys=d(xl),Ba=l(xl,"SPAN",{});var Zn=r(Ba);qs=n(Zn,"How to load and use different schedulers."),Zn.forEach(t),xl.forEach(t),ul=d(s),p=l(s,"P",{});var g=r(p);Ks=n(g,"The stable diffusion pipeline uses "),Tt=l(g,"A",{href:!0});var Un=r(Tt);eo=n(Un,"PNDMScheduler"),Un.forEach(t),to=n(g," scheduler by default. But "),Oa=l(g,"CODE",{});var Pn=r(Oa);ao=n(Pn,"diffusers"),Pn.forEach(t),lo=n(g," provides many other schedulers that can be used with the stable diffusion pipeline such as "),Mt=l(g,"A",{href:!0});var An=r(Mt);ro=n(An,"DDIMScheduler"),An.forEach(t),so=n(g,", "),It=l(g,"A",{href:!0});var kn=r(It);oo=n(kn,"LMSDiscreteScheduler"),kn.forEach(t),io=n(g,", "),Gt=l(g,"A",{href:!0});var Rn=r(Gt);no=n(Rn,"EulerDiscreteScheduler"),Rn.forEach(t),fo=n(g,", "),xt=l(g,"A",{href:!0});var $n=r(xt);co=n($n,"EulerAncestralDiscreteScheduler"),$n.forEach(t),uo=n(g,` etc.
To use a different scheduler, you can either change it via the `),Zt=l(g,"A",{href:!0});var Nn=r(Zt);ho=n(Nn,"ConfigMixin.from_config()"),Nn.forEach(t),po=n(g," method or pass the "),Xa=l(g,"CODE",{});var jn=r(Xa);mo=n(jn,"scheduler"),jn.forEach(t),go=n(g," argument to the "),Ha=l(g,"CODE",{});var Vn=r(Ha);bo=n(Vn,"from_pretrained"),Vn.forEach(t),vo=n(g," method of the pipeline. For example, to use the "),Ut=l(g,"A",{href:!0});var Jn=r(Ut);_o=n(Jn,"EulerDiscreteScheduler"),Jn.forEach(t),Eo=n(g,", you can do the following:"),g.forEach(t),hl=d(s),fe(Je.$$.fragment,s),pl=d(s),j=l(s,"H3",{class:!0});var Zl=r(j);O=l(Zl,"A",{id:!0,class:!0,href:!0});var Ln=r(O);Qa=l(Ln,"SPAN",{});var Cn=r(Qa);fe(Le.$$.fragment,Cn),Cn.forEach(t),Ln.forEach(t),Do=d(Zl),za=l(Zl,"SPAN",{});var Wn=r(za);yo=n(Wn,"How to convert all use cases with multiple or single pipeline"),Wn.forEach(t),Zl.forEach(t),ml=d(s),X=l(s,"P",{});var Ul=r(X);wo=n(Ul,"If you want to use all possible use cases in a single "),Fa=l(Ul,"CODE",{});var Bn=r(Fa);So=n(Bn,"DiffusionPipeline"),Bn.forEach(t),To=n(Ul," you can either:"),Ul.forEach(t),gl=d(s),H=l(s,"UL",{});var Pl=r(H);Ce=l(Pl,"LI",{});var Al=r(Ce);Mo=n(Al,"Make use of the "),We=l(Al,"A",{href:!0,rel:!0});var On=r(We);Io=n(On,"Stable Diffusion Mega Pipeline"),On.forEach(t),Go=n(Al," or"),Al.forEach(t),xo=d(Pl),Be=l(Pl,"LI",{});var kl=r(Be);Zo=n(kl,"Make use of the "),Ya=l(kl,"CODE",{});var Xn=r(Ya);Uo=n(Xn,"components"),Xn.forEach(t),Po=n(kl," functionality to instantiate all components in the most memory-efficient way:"),kl.forEach(t),Pl.forEach(t),bl=d(s),fe(Oe.$$.fragment,s),vl=d(s),V=l(s,"H2",{class:!0});var Rl=r(V);Q=l(Rl,"A",{id:!0,class:!0,href:!0});var Hn=r(Q);qa=l(Hn,"SPAN",{});var Qn=r(qa);fe(Xe.$$.fragment,Qn),Qn.forEach(t),Hn.forEach(t),Ao=d(Rl),Ka=l(Rl,"SPAN",{});var zn=r(Ka);ko=n(zn,"StableDiffusionPipelineOutput"),zn.forEach(t),Rl.forEach(t),_l=d(s),J=l(s,"DIV",{class:!0});var $l=r(J);fe(He.$$.fragment,$l),Ro=d($l),el=l($l,"P",{});var Fn=r(el);$o=n(Fn,"Output class for Stable Diffusion pipelines."),Fn.forEach(t),$l.forEach(t),this.h()},h(){o(k,"name","hf:doc:metadata"),o(k,"content",JSON.stringify(of)),o(L,"id","stable-diffusion-pipelines"),o(L,"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"),o(L,"href","#stable-diffusion-pipelines"),o(R,"class","relative group"),o(me,"href","https://github.com/CompVis"),o(me,"rel","nofollow"),o(ge,"href","https://stability.ai/"),o(ge,"rel","nofollow"),o(be,"href","https://laion.ai/"),o(be,"rel","nofollow"),o(ve,"href","https://laion.ai/blog/laion-5b/"),o(ve,"rel","nofollow"),o(_e,"href","https://arxiv.org/abs/2112.10752"),o(_e,"rel","nofollow"),o(Qe,"href","pipelines/latent_diffusion"),o(Ee,"href","https://stability.ai/blog/stable-diffusion-announcement"),o(Ee,"rel","nofollow"),o(De,"href","https://huggingface.co/blog/stable_diffusion#how-does-stable-diffusion-work"),o(De,"rel","nofollow"),kt(Ye.src,Lo="https://colab.research.google.com/assets/colab-badge.svg")||o(Ye,"src",Lo),o(Ye,"alt","Open In Colab"),o(we,"href","https://colab.research.google.com/github/pcuenca/diffusers-examples/blob/main/notebooks/stable-diffusion-seeds.ipynb"),o(we,"rel","nofollow"),o(qe,"align","center"),o(Ke,"align","center"),o(et,"href","./text2img"),kt(at.src,Co="https://colab.research.google.com/assets/colab-badge.svg")||o(at,"src",Co),o(at,"alt","Open In Colab"),o(Te,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/stable_diffusion.ipynb"),o(Te,"rel","nofollow"),o(tt,"align","center"),o(Me,"href","https://huggingface.co/spaces/stabilityai/stable-diffusion"),o(Me,"rel","nofollow"),o(lt,"align","center"),o(rt,"href","./stable_diffusion_safe"),kt(ot.src,Wo="https://colab.research.google.com/assets/colab-badge.svg")||o(ot,"src",Wo),o(ot,"alt","Open In Colab"),o(Ie,"href","https://colab.research.google.com/github/ml-research/safe-latent-diffusion/blob/main/examples/Safe%20Latent%20Diffusion.ipynb"),o(Ie,"rel","nofollow"),o(st,"align","center"),kt(nt.src,Bo="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue")||o(nt,"src",Bo),o(nt,"alt","Huggingface Spaces"),o(Ge,"href","https://huggingface.co/spaces/AIML-TUDA/unsafe-vs-safe-stable-diffusion"),o(Ge,"rel","nofollow"),o(it,"align","center"),o(ft,"href","./img2img"),kt(ct.src,Oo="https://colab.research.google.com/assets/colab-badge.svg")||o(ct,"src",Oo),o(ct,"alt","Open In Colab"),o(xe,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/image_2_image_using_diffusers.ipynb"),o(xe,"rel","nofollow"),o(dt,"align","center"),o(Ze,"href","https://huggingface.co/spaces/huggingface/diffuse-the-rest"),o(Ze,"rel","nofollow"),o(ut,"align","center"),o(ht,"href","./inpaint"),kt(mt.src,Xo="https://colab.research.google.com/assets/colab-badge.svg")||o(mt,"src",Xo),o(mt,"alt","Open In Colab"),o(Pe,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/in_painting_with_stable_diffusion_using_diffusers.ipynb"),o(Pe,"rel","nofollow"),o(pt,"align","center"),o(ta,"align","center"),o(gt,"href","./depth2img"),o(sa,"align","center"),o(oa,"align","center"),o(bt,"href","./image_variation"),o(da,"align","center"),o(Re,"href","https://huggingface.co/spaces/lambdalabs/stable-diffusion-image-variations"),o(Re,"rel","nofollow"),o(vt,"align","center"),o(_t,"href","./upscale"),o(pa,"align","center"),o(ma,"align","center"),o(Et,"href","./latent_upscale"),o(_a,"align","center"),o(Ea,"align","center"),o(Dt,"href","./stable_diffusion_2"),o(Sa,"align","center"),o(Ta,"align","center"),o(yt,"href","./stable_diffusion_2"),o(xa,"align","center"),o(Za,"align","center"),o(wt,"href","./stable_diffusion_2"),o(ka,"align","center"),o(Ra,"align","center"),o(St,"href","./ldm3d"),o(Va,"align","center"),o(Ja,"align","center"),o(W,"id","tips"),o(W,"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"),o(W,"href","#tips"),o($,"class","relative group"),o(B,"id","how-to-load-and-use-different-schedulers"),o(B,"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"),o(B,"href","#how-to-load-and-use-different-schedulers"),o(N,"class","relative group"),o(Tt,"href","/docs/diffusers/v0.18.0/en/api/schedulers/pndm#diffusers.PNDMScheduler"),o(Mt,"href","/docs/diffusers/v0.18.0/en/api/schedulers/ddim#diffusers.DDIMScheduler"),o(It,"href","/docs/diffusers/v0.18.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler"),o(Gt,"href","/docs/diffusers/v0.18.0/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler"),o(xt,"href","/docs/diffusers/v0.18.0/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler"),o(Zt,"href","/docs/diffusers/v0.18.0/en/api/configuration#diffusers.ConfigMixin.from_config"),o(Ut,"href","/docs/diffusers/v0.18.0/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler"),o(O,"id","how-to-convert-all-use-cases-with-multiple-or-single-pipeline"),o(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"),o(O,"href","#how-to-convert-all-use-cases-with-multiple-or-single-pipeline"),o(j,"class","relative group"),o(We,"href","https://github.com/huggingface/diffusers/tree/main/examples/community#stable-diffusion-mega"),o(We,"rel","nofollow"),o(Q,"id","diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),o(Q,"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"),o(Q,"href","#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),o(V,"class","relative group"),o(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(s,c){e(document.head,k),u(s,al,c),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Ja),u(s,dl,c),u(s,$,c),e($,W),e(W,La),de(je,La,null),e($,zs),e($,Ca),e(Ca,Fs),u(s,cl,c),u(s,N,c),e(N,B),e(B,Wa),de(Ve,Wa,null),e(N,Ys),e(N,Ba),e(Ba,qs),u(s,ul,c),u(s,p,c),e(p,Ks),e(p,Tt),e(Tt,eo),e(p,to),e(p,Oa),e(Oa,ao),e(p,lo),e(p,Mt),e(Mt,ro),e(p,so),e(p,It),e(It,oo),e(p,io),e(p,Gt),e(Gt,no),e(p,fo),e(p,xt),e(xt,co),e(p,uo),e(p,Zt),e(Zt,ho),e(p,po),e(p,Xa),e(Xa,mo),e(p,go),e(p,Ha),e(Ha,bo),e(p,vo),e(p,Ut),e(Ut,_o),e(p,Eo),u(s,hl,c),de(Je,s,c),u(s,pl,c),u(s,j,c),e(j,O),e(O,Qa),de(Le,Qa,null),e(j,Do),e(j,za),e(za,yo),u(s,ml,c),u(s,X,c),e(X,wo),e(X,Fa),e(Fa,So),e(X,To),u(s,gl,c),u(s,H,c),e(H,Ce),e(Ce,Mo),e(Ce,We),e(We,Io),e(Ce,Go),e(H,xo),e(H,Be),e(Be,Zo),e(Be,Ya),e(Ya,Uo),e(Be,Po),u(s,bl,c),de(Oe,s,c),u(s,vl,c),u(s,V,c),e(V,Q),e(Q,qa),de(Xe,qa,null),e(V,Ao),e(V,Ka),e(Ka,ko),u(s,_l,c),u(s,J,c),de(He,J,null),e(J,Ro),e(J,el),e(el,$o),El=!0},p:af,i(s){El||(ce(pe.$$.fragment,s),ce(je.$$.fragment,s),ce(Ve.$$.fragment,s),ce(Je.$$.fragment,s),ce(Le.$$.fragment,s),ce(Oe.$$.fragment,s),ce(Xe.$$.fragment,s),ce(He.$$.fragment,s),El=!0)},o(s){ue(pe.$$.fragment,s),ue(je.$$.fragment,s),ue(Ve.$$.fragment,s),ue(Je.$$.fragment,s),ue(Le.$$.fragment,s),ue(Oe.$$.fragment,s),ue(Xe.$$.fragment,s),ue(He.$$.fragment,s),El=!1},d(s){t(k),s&&t(al),s&&t(R),he(pe),s&&t(ll),s&&t(b),s&&t(rl),s&&t(P),s&&t(sl),s&&t(A),s&&t(ol),s&&t(ye),s&&t(il),s&&t(ze),s&&t(nl),s&&t(Se),s&&t(fl),s&&t(C),s&&t(dl),s&&t($),he(je),s&&t(cl),s&&t(N),he(Ve),s&&t(ul),s&&t(p),s&&t(hl),he(Je,s),s&&t(pl),s&&t(j),he(Le),s&&t(ml),s&&t(X),s&&t(gl),s&&t(H),s&&t(bl),he(Oe,s),s&&t(vl),s&&t(V),he(Xe),s&&t(_l),s&&t(J),he(He)}}}const of={local:"stable-diffusion-pipelines",sections:[{local:"tips",sections:[{local:"how-to-load-and-use-different-schedulers",title:"How to load and use different schedulers."},{local:"how-to-convert-all-use-cases-with-multiple-or-single-pipeline",title:"How to convert all use cases with multiple or single pipeline"}],title:"Tips"},{local:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",title:"StableDiffusionPipelineOutput"}],title:"Stable diffusion pipelines"};function nf(Jo){return lf(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hf extends qn{constructor(k){super();Kn(this,k,nf,sf,ef,{})}}export{hf as default,of as metadata};
