import{S as ha,i as ga,s as _a,e as n,k as c,w as D,t as s,M as ba,c as a,d as t,m as f,a as l,x,h as i,b as m,G as e,g as w,y as $,q as I,o as M,B as S,v as va,L as Bt}from"../../../../chunks/vendor-hf-doc-builder.js";import{T as ua}from"../../../../chunks/Tip-hf-doc-builder.js";import{D as Y}from"../../../../chunks/Docstring-hf-doc-builder.js";import{C as Xt}from"../../../../chunks/CodeBlock-hf-doc-builder.js";import{I as jn}from"../../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Rt}from"../../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function ya(k){let d,v,h,p,b,r,u,q,G,oe,U,C,A,ge,F,Q,_e;return{c(){d=n("p"),v=s("Make sure to check out the Stable Diffusion "),h=n("a"),p=s("Tips"),b=s(" section to learn how to explore the tradeoff between scheduler speed and quality, and how to reuse pipeline components efficiently!"),r=c(),u=n("p"),q=s("If you\u2019re interested in using one of the official checkpoints for a task, explore the "),G=n("a"),oe=s("CompVis"),U=s(", "),C=n("a"),A=s("Runway"),ge=s(", and "),F=n("a"),Q=s("Stability AI"),_e=s(" Hub organizations!"),this.h()},l(E){d=a(E,"P",{});var J=l(d);v=i(J,"Make sure to check out the Stable Diffusion "),h=a(J,"A",{href:!0});var R=l(h);p=i(R,"Tips"),R.forEach(t),b=i(J," section to learn how to explore the tradeoff between scheduler speed and quality, and how to reuse pipeline components efficiently!"),J.forEach(t),r=f(E),u=a(E,"P",{});var Z=l(u);q=i(Z,"If you\u2019re interested in using one of the official checkpoints for a task, explore the "),G=a(Z,"A",{href:!0,rel:!0});var j=l(G);oe=i(j,"CompVis"),j.forEach(t),U=i(Z,", "),C=a(Z,"A",{href:!0,rel:!0});var B=l(C);A=i(B,"Runway"),B.forEach(t),ge=i(Z,", and "),F=a(Z,"A",{href:!0,rel:!0});var ne=l(F);Q=i(ne,"Stability AI"),ne.forEach(t),_e=i(Z," Hub organizations!"),Z.forEach(t),this.h()},h(){m(h,"href","overview#tips"),m(G,"href","https://huggingface.co/CompVis"),m(G,"rel","nofollow"),m(C,"href","https://huggingface.co/runwayml"),m(C,"rel","nofollow"),m(F,"href","https://huggingface.co/stabilityai"),m(F,"rel","nofollow")},m(E,J){w(E,d,J),e(d,v),e(d,h),e(h,p),e(d,b),w(E,r,J),w(E,u,J),e(u,q),e(u,G),e(G,oe),e(u,U),e(u,C),e(C,A),e(u,ge),e(u,F),e(F,Q),e(u,_e)},d(E){E&&t(d),E&&t(r),E&&t(u)}}}function wa(k){let d,v,h,p,b;return p=new Xt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjByZXF1ZXN0cyUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQSUwQWZyb20lMjBkaWZmdXNlcnMlMjBpbXBvcnQlMjBTdGFibGVEaWZmdXNpb25EZXB0aDJJbWdQaXBlbGluZSUwQSUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25EZXB0aDJJbWdQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTItZGVwdGglMjIlMkMlMEElMjAlMjAlMjAlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMEEpJTBBcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbml0X2ltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQXByb21wdCUyMCUzRCUyMCUyMnR3byUyMHRpZ2VycyUyMiUwQW5fcHJvcG10JTIwJTNEJTIwJTIyYmFkJTJDJTIwZGVmb3JtZWQlMkMlMjB1Z2x5JTJDJTIwYmFkJTIwYW5vdG9teSUyMiUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQlM0Rwcm9tcHQlMkMlMjBpbWFnZSUzRGluaXRfaW1hZ2UlMkMlMjBuZWdhdGl2ZV9wcm9tcHQlM0RuX3Byb3BtdCUyQyUyMHN0cmVuZ3RoJTNEMC43KS5pbWFnZXMlNUIwJTVE",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">import</span> requests
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionDepth2ImgPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionDepth2ImgPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;stabilityai/stable-diffusion-2-depth&quot;</span>,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)


<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>init_image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;two tigers&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>n_propmt = <span class="hljs-string">&quot;bad, deformed, ugly, bad anotomy&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt=prompt, image=init_image, negative_prompt=n_propmt, strength=<span class="hljs-number">0.7</span>).images[<span class="hljs-number">0</span>]`}}),{c(){d=n("p"),v=s("Examples:"),h=c(),D(p.$$.fragment)},l(r){d=a(r,"P",{});var u=l(d);v=i(u,"Examples:"),u.forEach(t),h=f(r),x(p.$$.fragment,r)},m(r,u){w(r,d,u),e(d,v),w(r,h,u),$(p,r,u),b=!0},p:Bt,i(r){b||(I(p.$$.fragment,r),b=!0)},o(r){M(p.$$.fragment,r),b=!1},d(r){r&&t(d),r&&t(h),S(p,r)}}}function Da(k){let d,v;return{c(){d=n("p"),v=s(`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`)},l(h){d=a(h,"P",{});var p=l(d);v=i(p,`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`),p.forEach(t)},m(h,p){w(h,d,p),e(d,v)},d(h){h&&t(d)}}}function xa(k){let d,v,h,p,b;return p=new Xt({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(){d=n("p"),v=s("Examples:"),h=c(),D(p.$$.fragment)},l(r){d=a(r,"P",{});var u=l(d);v=i(u,"Examples:"),u.forEach(t),h=f(r),x(p.$$.fragment,r)},m(r,u){w(r,d,u),e(d,v),w(r,h,u),$(p,r,u),b=!0},p:Bt,i(r){b||(I(p.$$.fragment,r),b=!0)},o(r){M(p.$$.fragment,r),b=!1},d(r){r&&t(d),r&&t(h),S(p,r)}}}function $a(k){let d,v,h,p,b;return p=new Xt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNikudG8oJTIyY3VkYSUyMiklMEElMEFwaXBlLmxvYWRfdGV4dHVhbF9pbnZlcnNpb24oJTIyc2QtY29uY2VwdHMtbGlicmFyeSUyRmNhdC10b3klMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyQSUyMCUzQ2NhdC10b3klM0UlMjBiYWNrcGFjayUyMiUwQSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTApLmltYWdlcyU1QjAlNUQlMEFpbWFnZS5zYXZlKCUyMmNhdC1iYWNrcGFjay5wbmclMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline
<span class="hljs-keyword">import</span> torch

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to(<span class="hljs-string">&quot;cuda&quot;</span>)

pipe.load_textual_inversion(<span class="hljs-string">&quot;sd-concepts-library/cat-toy&quot;</span>)

prompt = <span class="hljs-string">&quot;A &lt;cat-toy&gt; backpack&quot;</span>

image = pipe(prompt, num_inference_steps=<span class="hljs-number">50</span>).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">&quot;cat-backpack.png&quot;</span>)`}}),{c(){d=n("p"),v=s("To load a textual inversion embedding vector in \u{1F917} Diffusers format:"),h=c(),D(p.$$.fragment)},l(r){d=a(r,"P",{});var u=l(d);v=i(u,"To load a textual inversion embedding vector in \u{1F917} Diffusers format:"),u.forEach(t),h=f(r),x(p.$$.fragment,r)},m(r,u){w(r,d,u),e(d,v),w(r,h,u),$(p,r,u),b=!0},p:Bt,i(r){b||(I(p.$$.fragment,r),b=!0)},o(r){M(p.$$.fragment,r),b=!1},d(r){r&&t(d),r&&t(h),S(p,r)}}}function Ia(k){let d,v,h,p,b;return p=new Xt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNikudG8oJTIyY3VkYSUyMiklMEElMEFwaXBlLmxvYWRfdGV4dHVhbF9pbnZlcnNpb24oJTIyLiUyRmNoYXJ0dXJuZXJ2Mi5wdCUyMiUyQyUyMHRva2VuJTNEJTIyY2hhcnR1cm5lcnYyJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMmNoYXJ0dXJuZXJ2MiUyQyUyMG11bHRpcGxlJTIwdmlld3MlMjBvZiUyMHRoZSUyMHNhbWUlMjBjaGFyYWN0ZXIlMjBpbiUyMHRoZSUyMHNhbWUlMjBvdXRmaXQlMkMlMjBhJTIwY2hhcmFjdGVyJTIwdHVybmFyb3VuZCUyMG9mJTIwYSUyMHdvbWFuJTIwd2VhcmluZyUyMGElMjBibGFjayUyMGphY2tldCUyMGFuZCUyMHJlZCUyMHNoaXJ0JTJDJTIwYmVzdCUyMHF1YWxpdHklMkMlMjBpbnRyaWNhdGUlMjBkZXRhaWxzLiUyMiUwQSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTApLmltYWdlcyU1QjAlNUQlMEFpbWFnZS5zYXZlKCUyMmNoYXJhY3Rlci5wbmclMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline
<span class="hljs-keyword">import</span> torch

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to(<span class="hljs-string">&quot;cuda&quot;</span>)

pipe.load_textual_inversion(<span class="hljs-string">&quot;./charturnerv2.pt&quot;</span>, token=<span class="hljs-string">&quot;charturnerv2&quot;</span>)

prompt = <span class="hljs-string">&quot;charturnerv2, multiple views of the same character in the same outfit, a character turnaround of a woman wearing a black jacket and red shirt, best quality, intricate details.&quot;</span>

image = pipe(prompt, num_inference_steps=<span class="hljs-number">50</span>).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">&quot;character.png&quot;</span>)`}}),{c(){d=n("p"),v=s("locally:"),h=c(),D(p.$$.fragment)},l(r){d=a(r,"P",{});var u=l(d);v=i(u,"locally:"),u.forEach(t),h=f(r),x(p.$$.fragment,r)},m(r,u){w(r,d,u),e(d,v),w(r,h,u),$(p,r,u),b=!0},p:Bt,i(r){b||(I(p.$$.fragment,r),b=!0)},o(r){M(p.$$.fragment,r),b=!1},d(r){r&&t(d),r&&t(h),S(p,r)}}}function Ma(k){let d,v,h,p,b,r,u,q,G,oe,U,C,A,ge,F,Q,_e,E,J,R,Z,j,B,ne,be,Vt,nt,Yt,$t,g,ve,qt,at,Qt,zt,ye,Ht,Fe,Ot,Kt,eo,st,to,oo,z,Re,Be,no,ao,so,Xe,Ve,io,ro,lo,Ye,qe,po,co,fo,V,we,mo,it,uo,ho,ae,go,se,De,_o,rt,bo,vo,ie,xe,yo,$e,wo,lt,Do,xo,$o,W,Ie,Io,Me,Mo,Se,So,To,Po,re,Eo,le,ko,de,Te,Uo,Pe,Jo,Ee,Zo,jo,Wo,T,ke,Lo,Ue,No,Qe,Go,Co,Ao,dt,Fo,Ro,pe,Bo,Je,Xo,Ze,Vo,Yo,qo,ce,Qo,P,je,zo,X,Ho,pt,Oo,Ko,ct,en,tn,ft,on,nn,an,We,sn,mt,rn,ln,dn,Le,pn,ze,cn,fn,mn,H,un,He,hn,gn,ut,_n,bn,vn,O,yn,Oe,wn,Dn,ht,xn,$n,In,fe,Ne,Mn,gt,Sn,It,K,me,_t,Ge,Tn,bt,Pn,Mt,ee,Ce,En,vt,kn,St;return r=new jn({}),R=new ua({props:{$$slots:{default:[ya]},$$scope:{ctx:k}}}),be=new jn({}),ve=new Y({props:{name:"class diffusers.StableDiffusionDepth2ImgPipeline",anchor:"diffusers.StableDiffusionDepth2ImgPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"depth_estimator",val:": DPTForDepthEstimation"},{name:"feature_extractor",val:": DPTFeatureExtractor"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.19.0/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/v4.31.0/en/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIPTextModel</a>) &#x2014;
Frozen text-encoder (<a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a>).`,name:"text_encoder"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/v4.31.0/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>) &#x2014;
A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/v0.19.0/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <code>UNet2DConditionModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.19.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.19.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.19.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.19.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py#L65"}}),we=new Y({props:{name:"__call__",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image, numpy.ndarray, typing.List[torch.FloatTensor], typing.List[PIL.Image.Image], typing.List[numpy.ndarray]] = None"},{name:"depth_map",val:": typing.Optional[torch.FloatTensor] = None"},{name:"strength",val:": float = 0.8"},{name:"num_inference_steps",val:": typing.Optional[int] = 50"},{name:"guidance_scale",val:": typing.Optional[float] = 7.5"},{name:"negative_prompt",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": typing.Optional[float] = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Union[typing.Callable[[int, int, torch.FloatTensor], NoneType], NoneType] = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.FloatTensor]</code>, <code>List[PIL.Image.Image]</code>, or <code>List[np.ndarray]</code>) &#x2014;
<code>Image</code> or tensor representing an image batch to be used as the starting point. Can accept image
latents as <code>image</code> only if <code>depth_map</code> is not <code>None</code>.`,name:"image"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.depth_map",description:`<strong>depth_map</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Depth prediction to be used as additional conditioning for the image generation process. If not
defined, it automatically predicts the depth with <code>self.depth_estimator</code>.`,name:"depth_map"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.strength",description:`<strong>strength</strong> (<code>float</code>, <em>optional</em>, defaults to 0.8) &#x2014;
Indicates extent to transform the reference <code>image</code>. Must be between 0 and 1. <code>image</code> is used as a
starting point and more noise is added the higher the <code>strength</code>. The number of denoising steps depends
on the amount of noise initially added. When <code>strength</code> is 1, added noise is maximum and the denoising
process runs for the full number of iterations specified in <code>num_inference_steps</code>. A value of 1
essentially ignores <code>image</code>.`,name:"strength"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference. This parameter is modulated by <code>strength</code>.`,name:"num_inference_steps"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide what to not include in image generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) from the <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">DDIM</a> paper. Only applies
to the <a href="/docs/diffusers/v0.19.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, and is ignored in other schedulers.`,name:"eta"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function is called. If not specified, the callback is called at
every step.`,name:"callback_steps"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/cross_attention.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py#L491",returnDescription:`
<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> is returned,
otherwise a <code>tuple</code> is returned where the first element is a list with the generated images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),ae=new Rt({props:{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.example",$$slots:{default:[wa]},$$scope:{ctx:k}}}),De=new Y({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.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"}}),xe=new Y({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1646"}}),Ie=new Y({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.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"}}),re=new ua({props:{warning:!0,$$slots:{default:[Da]},$$scope:{ctx:k}}}),le=new Rt({props:{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[xa]},$$scope:{ctx:k}}}),Te=new Y({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1605"}}),ke=new Y({props:{name:"load_textual_inversion",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, typing.List[str], typing.Dict[str, torch.Tensor], typing.List[typing.Dict[str, torch.Tensor]]]"},{name:"token",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code> or <code>List[str or os.PathLike]</code> or <code>Dict</code> or <code>List[Dict]</code>) &#x2014;
Can be either one of the following or a list of them:</p>
<ul>
<li>A string, the <em>model id</em> (for example <code>sd-concepts-library/low-poly-hd-logos-icons</code>) of a
pretrained model hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_text_inversion_directory/</code>) containing the textual
inversion weights.</li>
<li>A path to a <em>file</em> (for example <code>./my_text_inversions.pt</code>) containing textual inversion weights.</li>
<li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state
dict</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.token",description:`<strong>token</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Override the token to use for the textual inversion weights. If <code>pretrained_model_name_or_path</code> is a
list, then <code>token</code> must also be a list of equal length.`,name:"token"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of a custom weight file. This should be used when:</p>
<ul>
<li>The saved textual inversion file is in &#x1F917; Diffusers format, but was saved under a specific weight
name such as <code>text_inv.bin</code>.</li>
<li>The saved textual inversion file is in the Automatic1111 format.</li>
</ul>`,name:"weight_name"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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.StableDiffusionDepth2ImgPipeline.load_textual_inversion.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/loaders.py#L585"}}),pe=new Rt({props:{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.example",$$slots:{default:[$a]},$$scope:{ctx:k}}}),ce=new Rt({props:{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_textual_inversion.example-2",$$slots:{default:[Ia]},$$scope:{ctx:k}}}),je=new Y({props:{name:"load_lora_weights",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/v0.19.0/en/api/loaders#diffusers.loaders.LoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/v0.19.0/en/api/loaders#diffusers.loaders.LoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/loaders.py#L862"}}),Ne=new Y({props:{name:"save_lora_weights",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"unet_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/loaders.py#L1235"}}),Ge=new jn({}),Ce=new Y({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>.`,name:"images"},{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.nsfw_content_detected",description:`<strong>nsfw_content_detected</strong> (<code>List[bool]</code>) &#x2014;
List indicating whether the corresponding generated image contains &#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.19.0/src/diffusers/pipelines/stable_diffusion/__init__.py#L22"}}),{c(){d=n("meta"),v=c(),h=n("h1"),p=n("a"),b=n("span"),D(r.$$.fragment),u=c(),q=n("span"),G=s("Depth-to-image"),oe=c(),U=n("p"),C=s("The Stable Diffusion model can also infer depth based on an image using "),A=n("a"),ge=s("MiDas"),F=s(". This allows you to pass a text prompt and an initial image to condition the generation of new images as well as a "),Q=n("code"),_e=s("depth_map"),E=s(" to preserve the image structure."),J=c(),D(R.$$.fragment),Z=c(),j=n("h2"),B=n("a"),ne=n("span"),D(be.$$.fragment),Vt=c(),nt=n("span"),Yt=s("StableDiffusionDepth2ImgPipeline"),$t=c(),g=n("div"),D(ve.$$.fragment),qt=c(),at=n("p"),Qt=s("Pipeline for text-guided depth-based image-to-image generation using Stable Diffusion."),zt=c(),ye=n("p"),Ht=s("This model inherits from "),Fe=n("a"),Ot=s("DiffusionPipeline"),Kt=s(`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),eo=c(),st=n("p"),to=s("The pipeline also inherits the following loading methods:"),oo=c(),z=n("ul"),Re=n("li"),Be=n("a"),no=s("load_textual_inversion()"),ao=s(" for loading textual inversion embeddings"),so=c(),Xe=n("li"),Ve=n("a"),io=s("load_lora_weights()"),ro=s(" for loading LoRA weights"),lo=c(),Ye=n("li"),qe=n("a"),po=s("save_lora_weights()"),co=s(" for saving LoRA weights"),fo=c(),V=n("div"),D(we.$$.fragment),mo=c(),it=n("p"),uo=s("The call function to the pipeline for generation."),ho=c(),D(ae.$$.fragment),go=c(),se=n("div"),D(De.$$.fragment),_o=c(),rt=n("p"),bo=s(`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.`),vo=c(),ie=n("div"),D(xe.$$.fragment),yo=c(),$e=n("p"),wo=s("Disable sliced attention computation. If "),lt=n("code"),Do=s("enable_attention_slicing"),xo=s(` was previously called, attention is
computed in one step.`),$o=c(),W=n("div"),D(Ie.$$.fragment),Io=c(),Me=n("p"),Mo=s("Enable memory efficient attention from "),Se=n("a"),So=s("xFormers"),To=s(`. 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.`),Po=c(),D(re.$$.fragment),Eo=c(),D(le.$$.fragment),ko=c(),de=n("div"),D(Te.$$.fragment),Uo=c(),Pe=n("p"),Jo=s("Disable memory efficient attention from "),Ee=n("a"),Zo=s("xFormers"),jo=s("."),Wo=c(),T=n("div"),D(ke.$$.fragment),Lo=c(),Ue=n("p"),No=s("Load textual inversion embeddings into the text encoder of "),Qe=n("a"),Go=s("StableDiffusionPipeline"),Co=s(` (both \u{1F917} Diffusers and
Automatic1111 formats are supported).`),Ao=c(),dt=n("p"),Fo=s("Example:"),Ro=c(),D(pe.$$.fragment),Bo=c(),Je=n("p"),Xo=s(`To load a textual inversion embedding vector in Automatic1111 format, make sure to download the vector first
(for example from `),Ze=n("a"),Vo=s("civitAI"),Yo=s(") and then load the vector"),qo=c(),D(ce.$$.fragment),Qo=c(),P=n("div"),D(je.$$.fragment),zo=c(),X=n("p"),Ho=s("Load LoRA weights specified in "),pt=n("code"),Oo=s("pretrained_model_name_or_path_or_dict"),Ko=s(" into "),ct=n("code"),en=s("self.unet"),tn=s(` and
`),ft=n("code"),on=s("self.text_encoder"),nn=s("."),an=c(),We=n("p"),sn=s("All kwargs are forwarded to "),mt=n("code"),rn=s("self.lora_state_dict"),ln=s("."),dn=c(),Le=n("p"),pn=s("See "),ze=n("a"),cn=s("lora_state_dict()"),fn=s(" for more details on how the state dict is loaded."),mn=c(),H=n("p"),un=s("See "),He=n("a"),hn=s("load_lora_into_unet()"),gn=s(` for more details on how the state dict is loaded into
`),ut=n("code"),_n=s("self.unet"),bn=s("."),vn=c(),O=n("p"),yn=s("See "),Oe=n("a"),wn=s("load_lora_into_text_encoder()"),Dn=s(` for more details on how the state dict is loaded
into `),ht=n("code"),xn=s("self.text_encoder"),$n=s("."),In=c(),fe=n("div"),D(Ne.$$.fragment),Mn=c(),gt=n("p"),Sn=s("Save the LoRA parameters corresponding to the UNet and text encoder."),It=c(),K=n("h2"),me=n("a"),_t=n("span"),D(Ge.$$.fragment),Tn=c(),bt=n("span"),Pn=s("StableDiffusionPipelineOutput"),Mt=c(),ee=n("div"),D(Ce.$$.fragment),En=c(),vt=n("p"),kn=s("Output class for Stable Diffusion pipelines."),this.h()},l(o){const _=ba('[data-svelte="svelte-1phssyn"]',document.head);d=a(_,"META",{name:!0,content:!0}),_.forEach(t),v=f(o),h=a(o,"H1",{class:!0});var Ae=l(h);p=a(Ae,"A",{id:!0,class:!0,href:!0});var yt=l(p);b=a(yt,"SPAN",{});var wt=l(b);x(r.$$.fragment,wt),wt.forEach(t),yt.forEach(t),u=f(Ae),q=a(Ae,"SPAN",{});var Dt=l(q);G=i(Dt,"Depth-to-image"),Dt.forEach(t),Ae.forEach(t),oe=f(o),U=a(o,"P",{});var te=l(U);C=i(te,"The Stable Diffusion model can also infer depth based on an image using "),A=a(te,"A",{href:!0,rel:!0});var xt=l(A);ge=i(xt,"MiDas"),xt.forEach(t),F=i(te,". This allows you to pass a text prompt and an initial image to condition the generation of new images as well as a "),Q=a(te,"CODE",{});var Wn=l(Q);_e=i(Wn,"depth_map"),Wn.forEach(t),E=i(te," to preserve the image structure."),te.forEach(t),J=f(o),x(R.$$.fragment,o),Z=f(o),j=a(o,"H2",{class:!0});var Tt=l(j);B=a(Tt,"A",{id:!0,class:!0,href:!0});var Ln=l(B);ne=a(Ln,"SPAN",{});var Nn=l(ne);x(be.$$.fragment,Nn),Nn.forEach(t),Ln.forEach(t),Vt=f(Tt),nt=a(Tt,"SPAN",{});var Gn=l(nt);Yt=i(Gn,"StableDiffusionDepth2ImgPipeline"),Gn.forEach(t),Tt.forEach(t),$t=f(o),g=a(o,"DIV",{class:!0});var y=l(g);x(ve.$$.fragment,y),qt=f(y),at=a(y,"P",{});var Cn=l(at);Qt=i(Cn,"Pipeline for text-guided depth-based image-to-image generation using Stable Diffusion."),Cn.forEach(t),zt=f(y),ye=a(y,"P",{});var Pt=l(ye);Ht=i(Pt,"This model inherits from "),Fe=a(Pt,"A",{href:!0});var An=l(Fe);Ot=i(An,"DiffusionPipeline"),An.forEach(t),Kt=i(Pt,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),Pt.forEach(t),eo=f(y),st=a(y,"P",{});var Fn=l(st);to=i(Fn,"The pipeline also inherits the following loading methods:"),Fn.forEach(t),oo=f(y),z=a(y,"UL",{});var Ke=l(z);Re=a(Ke,"LI",{});var Un=l(Re);Be=a(Un,"A",{href:!0});var Rn=l(Be);no=i(Rn,"load_textual_inversion()"),Rn.forEach(t),ao=i(Un," for loading textual inversion embeddings"),Un.forEach(t),so=f(Ke),Xe=a(Ke,"LI",{});var Jn=l(Xe);Ve=a(Jn,"A",{href:!0});var Bn=l(Ve);io=i(Bn,"load_lora_weights()"),Bn.forEach(t),ro=i(Jn," for loading LoRA weights"),Jn.forEach(t),lo=f(Ke),Ye=a(Ke,"LI",{});var Zn=l(Ye);qe=a(Zn,"A",{href:!0});var Xn=l(qe);po=i(Xn,"save_lora_weights()"),Xn.forEach(t),co=i(Zn," for saving LoRA weights"),Zn.forEach(t),Ke.forEach(t),fo=f(y),V=a(y,"DIV",{class:!0});var et=l(V);x(we.$$.fragment,et),mo=f(et),it=a(et,"P",{});var Vn=l(it);uo=i(Vn,"The call function to the pipeline for generation."),Vn.forEach(t),ho=f(et),x(ae.$$.fragment,et),et.forEach(t),go=f(y),se=a(y,"DIV",{class:!0});var Et=l(se);x(De.$$.fragment,Et),_o=f(Et),rt=a(Et,"P",{});var Yn=l(rt);bo=i(Yn,`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.`),Yn.forEach(t),Et.forEach(t),vo=f(y),ie=a(y,"DIV",{class:!0});var kt=l(ie);x(xe.$$.fragment,kt),yo=f(kt),$e=a(kt,"P",{});var Ut=l($e);wo=i(Ut,"Disable sliced attention computation. If "),lt=a(Ut,"CODE",{});var qn=l(lt);Do=i(qn,"enable_attention_slicing"),qn.forEach(t),xo=i(Ut,` was previously called, attention is
computed in one step.`),Ut.forEach(t),kt.forEach(t),$o=f(y),W=a(y,"DIV",{class:!0});var ue=l(W);x(Ie.$$.fragment,ue),Io=f(ue),Me=a(ue,"P",{});var Jt=l(Me);Mo=i(Jt,"Enable memory efficient attention from "),Se=a(Jt,"A",{href:!0,rel:!0});var Qn=l(Se);So=i(Qn,"xFormers"),Qn.forEach(t),To=i(Jt,`. 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.`),Jt.forEach(t),Po=f(ue),x(re.$$.fragment,ue),Eo=f(ue),x(le.$$.fragment,ue),ue.forEach(t),ko=f(y),de=a(y,"DIV",{class:!0});var Zt=l(de);x(Te.$$.fragment,Zt),Uo=f(Zt),Pe=a(Zt,"P",{});var jt=l(Pe);Jo=i(jt,"Disable memory efficient attention from "),Ee=a(jt,"A",{href:!0,rel:!0});var zn=l(Ee);Zo=i(zn,"xFormers"),zn.forEach(t),jo=i(jt,"."),jt.forEach(t),Zt.forEach(t),Wo=f(y),T=a(y,"DIV",{class:!0});var L=l(T);x(ke.$$.fragment,L),Lo=f(L),Ue=a(L,"P",{});var Wt=l(Ue);No=i(Wt,"Load textual inversion embeddings into the text encoder of "),Qe=a(Wt,"A",{href:!0});var Hn=l(Qe);Go=i(Hn,"StableDiffusionPipeline"),Hn.forEach(t),Co=i(Wt,` (both \u{1F917} Diffusers and
Automatic1111 formats are supported).`),Wt.forEach(t),Ao=f(L),dt=a(L,"P",{});var On=l(dt);Fo=i(On,"Example:"),On.forEach(t),Ro=f(L),x(pe.$$.fragment,L),Bo=f(L),Je=a(L,"P",{});var Lt=l(Je);Xo=i(Lt,`To load a textual inversion embedding vector in Automatic1111 format, make sure to download the vector first
(for example from `),Ze=a(Lt,"A",{href:!0,rel:!0});var Kn=l(Ze);Vo=i(Kn,"civitAI"),Kn.forEach(t),Yo=i(Lt,") and then load the vector"),Lt.forEach(t),qo=f(L),x(ce.$$.fragment,L),L.forEach(t),Qo=f(y),P=a(y,"DIV",{class:!0});var N=l(P);x(je.$$.fragment,N),zo=f(N),X=a(N,"P",{});var he=l(X);Ho=i(he,"Load LoRA weights specified in "),pt=a(he,"CODE",{});var ea=l(pt);Oo=i(ea,"pretrained_model_name_or_path_or_dict"),ea.forEach(t),Ko=i(he," into "),ct=a(he,"CODE",{});var ta=l(ct);en=i(ta,"self.unet"),ta.forEach(t),tn=i(he,` and
`),ft=a(he,"CODE",{});var oa=l(ft);on=i(oa,"self.text_encoder"),oa.forEach(t),nn=i(he,"."),he.forEach(t),an=f(N),We=a(N,"P",{});var Nt=l(We);sn=i(Nt,"All kwargs are forwarded to "),mt=a(Nt,"CODE",{});var na=l(mt);rn=i(na,"self.lora_state_dict"),na.forEach(t),ln=i(Nt,"."),Nt.forEach(t),dn=f(N),Le=a(N,"P",{});var Gt=l(Le);pn=i(Gt,"See "),ze=a(Gt,"A",{href:!0});var aa=l(ze);cn=i(aa,"lora_state_dict()"),aa.forEach(t),fn=i(Gt," for more details on how the state dict is loaded."),Gt.forEach(t),mn=f(N),H=a(N,"P",{});var tt=l(H);un=i(tt,"See "),He=a(tt,"A",{href:!0});var sa=l(He);hn=i(sa,"load_lora_into_unet()"),sa.forEach(t),gn=i(tt,` for more details on how the state dict is loaded into
`),ut=a(tt,"CODE",{});var ia=l(ut);_n=i(ia,"self.unet"),ia.forEach(t),bn=i(tt,"."),tt.forEach(t),vn=f(N),O=a(N,"P",{});var ot=l(O);yn=i(ot,"See "),Oe=a(ot,"A",{href:!0});var ra=l(Oe);wn=i(ra,"load_lora_into_text_encoder()"),ra.forEach(t),Dn=i(ot,` for more details on how the state dict is loaded
into `),ht=a(ot,"CODE",{});var la=l(ht);xn=i(la,"self.text_encoder"),la.forEach(t),$n=i(ot,"."),ot.forEach(t),N.forEach(t),In=f(y),fe=a(y,"DIV",{class:!0});var Ct=l(fe);x(Ne.$$.fragment,Ct),Mn=f(Ct),gt=a(Ct,"P",{});var da=l(gt);Sn=i(da,"Save the LoRA parameters corresponding to the UNet and text encoder."),da.forEach(t),Ct.forEach(t),y.forEach(t),It=f(o),K=a(o,"H2",{class:!0});var At=l(K);me=a(At,"A",{id:!0,class:!0,href:!0});var pa=l(me);_t=a(pa,"SPAN",{});var ca=l(_t);x(Ge.$$.fragment,ca),ca.forEach(t),pa.forEach(t),Tn=f(At),bt=a(At,"SPAN",{});var fa=l(bt);Pn=i(fa,"StableDiffusionPipelineOutput"),fa.forEach(t),At.forEach(t),Mt=f(o),ee=a(o,"DIV",{class:!0});var Ft=l(ee);x(Ce.$$.fragment,Ft),En=f(Ft),vt=a(Ft,"P",{});var ma=l(vt);kn=i(ma,"Output class for Stable Diffusion pipelines."),ma.forEach(t),Ft.forEach(t),this.h()},h(){m(d,"name","hf:doc:metadata"),m(d,"content",JSON.stringify(Sa)),m(p,"id","depthtoimage"),m(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"),m(p,"href","#depthtoimage"),m(h,"class","relative group"),m(A,"href","https://github.com/isl-org/MiDaS"),m(A,"rel","nofollow"),m(B,"id","diffusers.StableDiffusionDepth2ImgPipeline"),m(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"),m(B,"href","#diffusers.StableDiffusionDepth2ImgPipeline"),m(j,"class","relative group"),m(Fe,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline"),m(Be,"href","/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.load_textual_inversion"),m(Ve,"href","/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.load_lora_weights"),m(qe,"href","/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline.save_lora_weights"),m(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(Se,"href","https://facebookresearch.github.io/xformers/"),m(Se,"rel","nofollow"),m(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(Ee,"href","https://facebookresearch.github.io/xformers/"),m(Ee,"rel","nofollow"),m(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(Qe,"href","/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline"),m(Ze,"href","https://civitai.com/models/3036?modelVersionId=9857"),m(Ze,"rel","nofollow"),m(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(ze,"href","/docs/diffusers/v0.19.0/en/api/loaders#diffusers.loaders.LoraLoaderMixin.lora_state_dict"),m(He,"href","/docs/diffusers/v0.19.0/en/api/loaders#diffusers.loaders.LoraLoaderMixin.load_lora_into_unet"),m(Oe,"href","/docs/diffusers/v0.19.0/en/api/loaders#diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder"),m(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(g,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(me,"id","diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),m(me,"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"),m(me,"href","#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),m(K,"class","relative group"),m(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,_){e(document.head,d),w(o,v,_),w(o,h,_),e(h,p),e(p,b),$(r,b,null),e(h,u),e(h,q),e(q,G),w(o,oe,_),w(o,U,_),e(U,C),e(U,A),e(A,ge),e(U,F),e(U,Q),e(Q,_e),e(U,E),w(o,J,_),$(R,o,_),w(o,Z,_),w(o,j,_),e(j,B),e(B,ne),$(be,ne,null),e(j,Vt),e(j,nt),e(nt,Yt),w(o,$t,_),w(o,g,_),$(ve,g,null),e(g,qt),e(g,at),e(at,Qt),e(g,zt),e(g,ye),e(ye,Ht),e(ye,Fe),e(Fe,Ot),e(ye,Kt),e(g,eo),e(g,st),e(st,to),e(g,oo),e(g,z),e(z,Re),e(Re,Be),e(Be,no),e(Re,ao),e(z,so),e(z,Xe),e(Xe,Ve),e(Ve,io),e(Xe,ro),e(z,lo),e(z,Ye),e(Ye,qe),e(qe,po),e(Ye,co),e(g,fo),e(g,V),$(we,V,null),e(V,mo),e(V,it),e(it,uo),e(V,ho),$(ae,V,null),e(g,go),e(g,se),$(De,se,null),e(se,_o),e(se,rt),e(rt,bo),e(g,vo),e(g,ie),$(xe,ie,null),e(ie,yo),e(ie,$e),e($e,wo),e($e,lt),e(lt,Do),e($e,xo),e(g,$o),e(g,W),$(Ie,W,null),e(W,Io),e(W,Me),e(Me,Mo),e(Me,Se),e(Se,So),e(Me,To),e(W,Po),$(re,W,null),e(W,Eo),$(le,W,null),e(g,ko),e(g,de),$(Te,de,null),e(de,Uo),e(de,Pe),e(Pe,Jo),e(Pe,Ee),e(Ee,Zo),e(Pe,jo),e(g,Wo),e(g,T),$(ke,T,null),e(T,Lo),e(T,Ue),e(Ue,No),e(Ue,Qe),e(Qe,Go),e(Ue,Co),e(T,Ao),e(T,dt),e(dt,Fo),e(T,Ro),$(pe,T,null),e(T,Bo),e(T,Je),e(Je,Xo),e(Je,Ze),e(Ze,Vo),e(Je,Yo),e(T,qo),$(ce,T,null),e(g,Qo),e(g,P),$(je,P,null),e(P,zo),e(P,X),e(X,Ho),e(X,pt),e(pt,Oo),e(X,Ko),e(X,ct),e(ct,en),e(X,tn),e(X,ft),e(ft,on),e(X,nn),e(P,an),e(P,We),e(We,sn),e(We,mt),e(mt,rn),e(We,ln),e(P,dn),e(P,Le),e(Le,pn),e(Le,ze),e(ze,cn),e(Le,fn),e(P,mn),e(P,H),e(H,un),e(H,He),e(He,hn),e(H,gn),e(H,ut),e(ut,_n),e(H,bn),e(P,vn),e(P,O),e(O,yn),e(O,Oe),e(Oe,wn),e(O,Dn),e(O,ht),e(ht,xn),e(O,$n),e(g,In),e(g,fe),$(Ne,fe,null),e(fe,Mn),e(fe,gt),e(gt,Sn),w(o,It,_),w(o,K,_),e(K,me),e(me,_t),$(Ge,_t,null),e(K,Tn),e(K,bt),e(bt,Pn),w(o,Mt,_),w(o,ee,_),$(Ce,ee,null),e(ee,En),e(ee,vt),e(vt,kn),St=!0},p(o,[_]){const Ae={};_&2&&(Ae.$$scope={dirty:_,ctx:o}),R.$set(Ae);const yt={};_&2&&(yt.$$scope={dirty:_,ctx:o}),ae.$set(yt);const wt={};_&2&&(wt.$$scope={dirty:_,ctx:o}),re.$set(wt);const Dt={};_&2&&(Dt.$$scope={dirty:_,ctx:o}),le.$set(Dt);const te={};_&2&&(te.$$scope={dirty:_,ctx:o}),pe.$set(te);const xt={};_&2&&(xt.$$scope={dirty:_,ctx:o}),ce.$set(xt)},i(o){St||(I(r.$$.fragment,o),I(R.$$.fragment,o),I(be.$$.fragment,o),I(ve.$$.fragment,o),I(we.$$.fragment,o),I(ae.$$.fragment,o),I(De.$$.fragment,o),I(xe.$$.fragment,o),I(Ie.$$.fragment,o),I(re.$$.fragment,o),I(le.$$.fragment,o),I(Te.$$.fragment,o),I(ke.$$.fragment,o),I(pe.$$.fragment,o),I(ce.$$.fragment,o),I(je.$$.fragment,o),I(Ne.$$.fragment,o),I(Ge.$$.fragment,o),I(Ce.$$.fragment,o),St=!0)},o(o){M(r.$$.fragment,o),M(R.$$.fragment,o),M(be.$$.fragment,o),M(ve.$$.fragment,o),M(we.$$.fragment,o),M(ae.$$.fragment,o),M(De.$$.fragment,o),M(xe.$$.fragment,o),M(Ie.$$.fragment,o),M(re.$$.fragment,o),M(le.$$.fragment,o),M(Te.$$.fragment,o),M(ke.$$.fragment,o),M(pe.$$.fragment,o),M(ce.$$.fragment,o),M(je.$$.fragment,o),M(Ne.$$.fragment,o),M(Ge.$$.fragment,o),M(Ce.$$.fragment,o),St=!1},d(o){t(d),o&&t(v),o&&t(h),S(r),o&&t(oe),o&&t(U),o&&t(J),S(R,o),o&&t(Z),o&&t(j),S(be),o&&t($t),o&&t(g),S(ve),S(we),S(ae),S(De),S(xe),S(Ie),S(re),S(le),S(Te),S(ke),S(pe),S(ce),S(je),S(Ne),o&&t(It),o&&t(K),S(Ge),o&&t(Mt),o&&t(ee),S(Ce)}}}const Sa={local:"depthtoimage",sections:[{local:"diffusers.StableDiffusionDepth2ImgPipeline",title:"StableDiffusionDepth2ImgPipeline"},{local:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",title:"StableDiffusionPipelineOutput"}],title:"Depth-to-image"};function Ta(k){return va(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ja extends ha{constructor(d){super();ga(this,d,Ta,Ma,_a,{})}}export{ja as default,Sa as metadata};
