import{S as qa,i as Oa,s as Ka,e as n,k as c,w as h,t as i,M as ei,c as s,d as o,m as d,a,x as _,h as l,b as p,N as rt,G as t,g as m,y as b,q as y,o as v,B as w,v as ti,L as oi}from"../../../chunks/vendor-hf-doc-builder.js";import{D as O}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as kt}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as Ps}from"../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as ni}from"../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function si(Wt){let M,k,J,T,N;return T=new kt({props:{code:"JTIzJTIwIXBpcCUyMGluc3RhbGwlMjBvcGVuY3YtcHl0aG9uJTIwdHJhbnNmb3JtZXJzJTIwYWNjZWxlcmF0ZSUwQWZyb20lMjBkaWZmdXNlcnMlMjBpbXBvcnQlMjBTdGFibGVEaWZmdXNpb25YTENvbnRyb2xOZXRQaXBlbGluZSUyQyUyMENvbnRyb2xOZXRNb2RlbCUyQyUyMEF1dG9lbmNvZGVyS0wlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwbG9hZF9pbWFnZSUwQWltcG9ydCUyMG51bXB5JTIwYXMlMjBucCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBaW1wb3J0JTIwY3YyJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyYWVyaWFsJTIwdmlldyUyQyUyMGElMjBmdXR1cmlzdGljJTIwcmVzZWFyY2glMjBjb21wbGV4JTIwaW4lMjBhJTIwYnJpZ2h0JTIwZm9nZ3klMjBqdW5nbGUlMkMlMjBoYXJkJTIwbGlnaHRpbmclMjIlMEFuZWdhdGl2ZV9wcm9tcHQlMjAlM0QlMjAlMjJsb3clMjBxdWFsaXR5JTJDJTIwYmFkJTIwcXVhbGl0eSUyQyUyMHNrZXRjaGVzJTIyJTBBJTBBJTIzJTIwZG93bmxvYWQlMjBhbiUyMGltYWdlJTBBaW1hZ2UlMjAlM0QlMjBsb2FkX2ltYWdlKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaGYuY28lMkZkYXRhc2V0cyUyRmhmLWludGVybmFsLXRlc3RpbmclMkZkaWZmdXNlcnMtaW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZzZF9jb250cm9sbmV0JTJGaGYtbG9nby5wbmclMjIlMEEpJTBBJTBBJTIzJTIwaW5pdGlhbGl6ZSUyMHRoZSUyMG1vZGVscyUyMGFuZCUyMHBpcGVsaW5lJTBBY29udHJvbG5ldF9jb25kaXRpb25pbmdfc2NhbGUlMjAlM0QlMjAwLjUlMjAlMjAlMjMlMjByZWNvbW1lbmRlZCUyMGZvciUyMGdvb2QlMjBnZW5lcmFsaXphdGlvbiUwQWNvbnRyb2xuZXQlMjAlM0QlMjBDb250cm9sTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmRpZmZ1c2VycyUyRmNvbnRyb2xuZXQtY2Fubnktc2R4bC0xLjAlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpJTBBdmFlJTIwJTNEJTIwQXV0b2VuY29kZXJLTC5mcm9tX3ByZXRyYWluZWQoJTIybWFkZWJ5b2xsaW4lMkZzZHhsLXZhZS1mcDE2LWZpeCUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uWExDb250cm9sTmV0UGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi14bC1iYXNlLTEuMCUyMiUyQyUyMGNvbnRyb2xuZXQlM0Rjb250cm9sbmV0JTJDJTIwdmFlJTNEdmFlJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUwQXBpcGUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCklMEElMEElMjMlMjBnZXQlMjBjYW5ueSUyMGltYWdlJTBBaW1hZ2UlMjAlM0QlMjBucC5hcnJheShpbWFnZSklMEFpbWFnZSUyMCUzRCUyMGN2Mi5DYW5ueShpbWFnZSUyQyUyMDEwMCUyQyUyMDIwMCklMEFpbWFnZSUyMCUzRCUyMGltYWdlJTVCJTNBJTJDJTIwJTNBJTJDJTIwTm9uZSU1RCUwQWltYWdlJTIwJTNEJTIwbnAuY29uY2F0ZW5hdGUoJTVCaW1hZ2UlMkMlMjBpbWFnZSUyQyUyMGltYWdlJTVEJTJDJTIwYXhpcyUzRDIpJTBBY2FubnlfaW1hZ2UlMjAlM0QlMjBJbWFnZS5mcm9tYXJyYXkoaW1hZ2UpJTBBJTBBJTIzJTIwZ2VuZXJhdGUlMjBpbWFnZSUwQWltYWdlJTIwJTNEJTIwcGlwZSglMEElMjAlMjAlMjAlMjBwcm9tcHQlMkMlMjBjb250cm9sbmV0X2NvbmRpdGlvbmluZ19zY2FsZSUzRGNvbnRyb2xuZXRfY29uZGl0aW9uaW5nX3NjYWxlJTJDJTIwaW1hZ2UlM0RjYW5ueV9pbWFnZSUwQSkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># !pip install opencv-python transformers accelerate</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLControlNetPipeline, ControlNetModel, AutoencoderKL
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<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> cv2
<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>prompt = <span class="hljs-string">&quot;aerial view, a futuristic research complex in a bright foggy jungle, hard lighting&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;low quality, bad quality, sketches&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># download an image</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = load_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://hf.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/hf-logo.png&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># initialize the models and pipeline</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>controlnet_conditioning_scale = <span class="hljs-number">0.5</span>  <span class="hljs-comment"># recommended for good generalization</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>controlnet = ControlNetModel.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;diffusers/controlnet-canny-sdxl-1.0&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>vae = AutoencoderKL.from_pretrained(<span class="hljs-string">&quot;madebyollin/sdxl-vae-fp16-fix&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, controlnet=controlnet, vae=vae, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_model_cpu_offload()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># get canny image</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = np.array(image)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = cv2.Canny(image, <span class="hljs-number">100</span>, <span class="hljs-number">200</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = image[:, :, <span class="hljs-literal">None</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image = np.concatenate([image, image, image], axis=<span class="hljs-number">2</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>canny_image = Image.fromarray(image)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># generate image</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(
<span class="hljs-meta">... </span>    prompt, controlnet_conditioning_scale=controlnet_conditioning_scale, image=canny_image
<span class="hljs-meta">... </span>).images[<span class="hljs-number">0</span>]`}}),{c(){M=n("p"),k=i("Examples:"),J=c(),h(T.$$.fragment)},l(g){M=s(g,"P",{});var U=a(M);k=l(U,"Examples:"),U.forEach(o),J=d(g),_(T.$$.fragment,g)},m(g,U){m(g,M,U),t(M,k),m(g,J,U),b(T,g,U),N=!0},p:oi,i(g){N||(y(T.$$.fragment,g),N=!0)},o(g){v(T.$$.fragment,g),N=!1},d(g){g&&o(M),g&&o(J),w(T,g)}}}function ai(Wt){let M,k,J,T,N,g,U,pt,Go,Dt,K,ee,Bo,Vo,Pt,ke,Fo,Gt,We,Yo,Bt,De,ct,$o,Vt,W,zo,Pe,Ro,Ao,Ft,D,Qo,te,Ho,qo,Yt,x,dt,oe,Oo,Ko,mt,ne,en,tn,ft,se,on,nn,ut,ae,sn,$t,P,an,ie,ln,rn,zt,Ge,pn,Rt,le,Gs,At,Be,cn,Qt,X,G,gt,re,dn,ht,mn,Ht,B,fn,_t,un,gn,qt,V,bt,hn,_n,pe,bn,ce,yt,yn,vn,Ot,Ve,wn,Kt,Fe,Mn,eo,de,to,E,me,Ye,Bs,Tn,$e,Jn,Cn,fe,ze,Vs,xn,Re,Nn,oo,Ae,Un,no,ue,so,L,ge,Qe,Fs,In,He,jn,Zn,he,qe,Ys,Xn,Oe,En,ao,I,Ln,Ke,Sn,kn,et,Wn,Dn,io,_e,lo,tt,Pn,ro,be,po,ye,ot,$s,co,S,F,vt,ve,Gn,wt,Bn,mo,f,we,Vn,Mt,Fn,Yn,Me,$n,nt,zn,Rn,An,Tt,Qn,Hn,Te,Je,Jt,qn,On,st,Kn,es,Ce,Ct,ts,os,at,ns,ss,j,xe,as,xt,is,ls,Y,rs,$,Ne,ps,Ue,cs,Nt,ds,ms,fs,z,Ie,us,je,gs,Ut,hs,_s,bs,R,Ze,ys,C,vs,It,ws,Ms,jt,Ts,Js,Zt,Cs,xs,Xt,Ns,Us,Is,A,Xe,js,Et,Zs,Xs,Q,Ee,Es,Lt,Ls,Ss,H,Le,ks,St,Ws,fo;return g=new Ps({}),re=new Ps({}),de=new kt({props:{code:"ZnJvbSUyMGRpZmZ1c2Vycy51dGlscyUyMGltcG9ydCUyMGxvYWRfaW1hZ2UlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjBudW1weSUyMGFzJTIwbnAlMjAlMEFpbXBvcnQlMjBjdjIlMEElMEFjYW5ueV9pbWFnZSUyMCUzRCUyMGxvYWRfaW1hZ2UoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGaHVnZ2luZ2ZhY2UlMkZkb2N1bWVudGF0aW9uLWltYWdlcyUyRnJlc29sdmUlMkZtYWluJTJGZGlmZnVzZXJzJTJGbGFuZHNjYXBlLnBuZyUyMiUwQSklMEFjYW5ueV9pbWFnZSUyMCUzRCUyMG5wLmFycmF5KGNhbm55X2ltYWdlKSUwQSUwQWxvd190aHJlc2hvbGQlMjAlM0QlMjAxMDAlMEFoaWdoX3RocmVzaG9sZCUyMCUzRCUyMDIwMCUwQSUwQWNhbm55X2ltYWdlJTIwJTNEJTIwY3YyLkNhbm55KGNhbm55X2ltYWdlJTJDJTIwbG93X3RocmVzaG9sZCUyQyUyMGhpZ2hfdGhyZXNob2xkKSUwQSUwQSUyMyUyMHplcm8lMjBvdXQlMjBtaWRkbGUlMjBjb2x1bW5zJTIwb2YlMjBpbWFnZSUyMHdoZXJlJTIwcG9zZSUyMHdpbGwlMjBiZSUyMG92ZXJsYXllZCUwQXplcm9fc3RhcnQlMjAlM0QlMjBjYW5ueV9pbWFnZS5zaGFwZSU1QjElNUQlMjAlMkYlMkYlMjA0JTBBemVyb19lbmQlMjAlM0QlMjB6ZXJvX3N0YXJ0JTIwJTJCJTIwY2FubnlfaW1hZ2Uuc2hhcGUlNUIxJTVEJTIwJTJGJTJGJTIwMiUwQWNhbm55X2ltYWdlJTVCJTNBJTJDJTIwemVyb19zdGFydCUzQXplcm9fZW5kJTVEJTIwJTNEJTIwMCUwQSUwQWNhbm55X2ltYWdlJTIwJTNEJTIwY2FubnlfaW1hZ2UlNUIlM0ElMkMlMjAlM0ElMkMlMjBOb25lJTVEJTBBY2FubnlfaW1hZ2UlMjAlM0QlMjBucC5jb25jYXRlbmF0ZSglNUJjYW5ueV9pbWFnZSUyQyUyMGNhbm55X2ltYWdlJTJDJTIwY2FubnlfaW1hZ2UlNUQlMkMlMjBheGlzJTNEMiklMEFjYW5ueV9pbWFnZSUyMCUzRCUyMEltYWdlLmZyb21hcnJheShjYW5ueV9pbWFnZSkucmVzaXplKCgxMDI0JTJDJTIwMTAyNCkp",highlighted:`<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np 
<span class="hljs-keyword">import</span> cv2

canny_image = load_image(
    <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/landscape.png&quot;</span>
)
canny_image = np.array(canny_image)

low_threshold = <span class="hljs-number">100</span>
high_threshold = <span class="hljs-number">200</span>

canny_image = cv2.Canny(canny_image, low_threshold, high_threshold)

<span class="hljs-comment"># zero out middle columns of image where pose will be overlayed</span>
zero_start = canny_image.shape[<span class="hljs-number">1</span>] // <span class="hljs-number">4</span>
zero_end = zero_start + canny_image.shape[<span class="hljs-number">1</span>] // <span class="hljs-number">2</span>
canny_image[:, zero_start:zero_end] = <span class="hljs-number">0</span>

canny_image = canny_image[:, :, <span class="hljs-literal">None</span>]
canny_image = np.concatenate([canny_image, canny_image, canny_image], axis=<span class="hljs-number">2</span>)
canny_image = Image.fromarray(canny_image).resize((<span class="hljs-number">1024</span>, <span class="hljs-number">1024</span>))`}}),ue=new kt({props:{code:"ZnJvbSUyMGNvbnRyb2xuZXRfYXV4JTIwaW1wb3J0JTIwT3BlbnBvc2VEZXRlY3RvciUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBsb2FkX2ltYWdlJTBBJTBBb3BlbnBvc2UlMjAlM0QlMjBPcGVucG9zZURldGVjdG9yLmZyb21fcHJldHJhaW5lZCglMjJsbGx5YXN2aWVsJTJGQ29udHJvbE5ldCUyMiklMEElMEFvcGVucG9zZV9pbWFnZSUyMCUzRCUyMGxvYWRfaW1hZ2UoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGaHVnZ2luZ2ZhY2UlMkZkb2N1bWVudGF0aW9uLWltYWdlcyUyRnJlc29sdmUlMkZtYWluJTJGZGlmZnVzZXJzJTJGcGVyc29uLnBuZyUyMiUwQSklMEFvcGVucG9zZV9pbWFnZSUyMCUzRCUyMG9wZW5wb3NlKG9wZW5wb3NlX2ltYWdlKS5yZXNpemUoKDEwMjQlMkMlMjAxMDI0KSk=",highlighted:`<span class="hljs-keyword">from</span> controlnet_aux <span class="hljs-keyword">import</span> OpenposeDetector
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image

openpose = OpenposeDetector.from_pretrained(<span class="hljs-string">&quot;lllyasviel/ControlNet&quot;</span>)

openpose_image = load_image(
    <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/person.png&quot;</span>
)
openpose_image = openpose(openpose_image).resize((<span class="hljs-number">1024</span>, <span class="hljs-number">1024</span>))`}}),_e=new kt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblhMQ29udHJvbE5ldFBpcGVsaW5lJTJDJTIwQ29udHJvbE5ldE1vZGVsJTJDJTIwQXV0b2VuY29kZXJLTCUyQyUyMFVuaVBDTXVsdGlzdGVwU2NoZWR1bGVyJTBBaW1wb3J0JTIwdG9yY2glMEElMEFjb250cm9sbmV0cyUyMCUzRCUyMCU1QiUwQSUyMCUyMCUyMCUyMENvbnRyb2xOZXRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydGhpYmF1ZCUyRmNvbnRyb2xuZXQtb3BlbnBvc2Utc2R4bC0xLjAlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTBBJTIwJTIwJTIwJTIwKSUyQyUwQSUyMCUyMCUyMCUyMENvbnRyb2xOZXRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZGlmZnVzZXJzJTJGY29udHJvbG5ldC1jYW5ueS1zZHhsLTEuMCUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUpJTJDJTBBJTVEJTBBJTBBdmFlJTIwJTNEJTIwQXV0b2VuY29kZXJLTC5mcm9tX3ByZXRyYWluZWQoJTIybWFkZWJ5b2xsaW4lMkZzZHhsLXZhZS1mcDE2LWZpeCUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblhMQ29udHJvbE5ldFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24teGwtYmFzZS0xLjAlMjIlMkMlMjBjb250cm9sbmV0JTNEY29udHJvbG5ldHMlMkMlMjB2YWUlM0R2YWUlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTBBKSUwQXBpcGUuc2NoZWR1bGVyJTIwJTNEJTIwVW5pUENNdWx0aXN0ZXBTY2hlZHVsZXIuZnJvbV9jb25maWcocGlwZS5zY2hlZHVsZXIuY29uZmlnKSUwQXBpcGUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLControlNetPipeline, ControlNetModel, AutoencoderKL, UniPCMultistepScheduler
<span class="hljs-keyword">import</span> torch

controlnets = [
    ControlNetModel.from_pretrained(
        <span class="hljs-string">&quot;thibaud/controlnet-openpose-sdxl-1.0&quot;</span>, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>
    ),
    ControlNetModel.from_pretrained(<span class="hljs-string">&quot;diffusers/controlnet-canny-sdxl-1.0&quot;</span>, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>),
]

vae = AutoencoderKL.from_pretrained(<span class="hljs-string">&quot;madebyollin/sdxl-vae-fp16-fix&quot;</span>, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>)
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, controlnet=controlnets, vae=vae, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>
)
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
pipe.enable_model_cpu_offload()`}}),be=new kt({props:{code:"cHJvbXB0JTIwJTNEJTIwJTIyYSUyMGdpYW50JTIwc3RhbmRpbmclMjBpbiUyMGElMjBmYW50YXN5JTIwbGFuZHNjYXBlJTJDJTIwYmVzdCUyMHF1YWxpdHklMjIlMEFuZWdhdGl2ZV9wcm9tcHQlMjAlM0QlMjAlMjJtb25vY2hyb21lJTJDJTIwbG93cmVzJTJDJTIwYmFkJTIwYW5hdG9teSUyQyUyMHdvcnN0JTIwcXVhbGl0eSUyQyUyMGxvdyUyMHF1YWxpdHklMjIlMEElMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5tYW51YWxfc2VlZCgxKSUwQSUwQWltYWdlcyUyMCUzRCUyMCU1Qm9wZW5wb3NlX2ltYWdlJTJDJTIwY2FubnlfaW1hZ2UlNUQlMEElMEFpbWFnZXMlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUyQyUwQSUyMCUyMCUyMCUyMGltYWdlJTNEaW1hZ2VzJTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDI1JTJDJTBBJTIwJTIwJTIwJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEbmVnYXRpdmVfcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwbnVtX2ltYWdlc19wZXJfcHJvbXB0JTNEMyUyQyUwQSUyMCUyMCUyMCUyMGNvbnRyb2xuZXRfY29uZGl0aW9uaW5nX3NjYWxlJTNEJTVCMS4wJTJDJTIwMC44JTVEJTJDJTBBKS5pbWFnZXMlNUIwJTVE",highlighted:`prompt = <span class="hljs-string">&quot;a giant standing in a fantasy landscape, best quality&quot;</span>
negative_prompt = <span class="hljs-string">&quot;monochrome, lowres, bad anatomy, worst quality, low quality&quot;</span>

generator = torch.manual_seed(<span class="hljs-number">1</span>)

images = [openpose_image, canny_image]

images = pipe(
    prompt,
    image=images,
    num_inference_steps=<span class="hljs-number">25</span>,
    generator=generator,
    negative_prompt=negative_prompt,
    num_images_per_prompt=<span class="hljs-number">3</span>,
    controlnet_conditioning_scale=[<span class="hljs-number">1.0</span>, <span class="hljs-number">0.8</span>],
).images[<span class="hljs-number">0</span>]`}}),ve=new Ps({}),we=new O({props:{name:"class diffusers.StableDiffusionXLControlNetPipeline",anchor:"diffusers.StableDiffusionXLControlNetPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"text_encoder_2",val:": CLIPTextModelWithProjection"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"tokenizer_2",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"controlnet",val:": typing.Union[diffusers.models.controlnet.ControlNetModel, typing.List[diffusers.models.controlnet.ControlNetModel], typing.Tuple[diffusers.models.controlnet.ControlNetModel], diffusers.pipelines.controlnet.multicontrolnet.MultiControlNetModel]"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLControlNetPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/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.StableDiffusionXLControlNetPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
Frozen text-encoder. Stable Diffusion uses the text portion of
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIP</a>, specifically
the <a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a> variant.`,name:"text_encoder"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.text_encoder_2",description:`<strong>text_encoder_2</strong> (<code> CLIPTextModelWithProjection</code>) &#x2014;
Second frozen text-encoder. Stable Diffusion XL uses the text and pool portion of
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModelWithProjection" rel="nofollow">CLIP</a>,
specifically the
<a href="https://huggingface.co/laion/CLIP-ViT-bigG-14-laion2B-39B-b160k" rel="nofollow">laion/CLIP-ViT-bigG-14-laion2B-39B-b160k</a>
variant.`,name:"text_encoder_2"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.tokenizer_2",description:`<strong>tokenizer_2</strong> (<code>CLIPTokenizer</code>) &#x2014;
Second Tokenizer of class
<a href="https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer_2"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.controlnet",description:`<strong>controlnet</strong> (<a href="/docs/diffusers/main/en/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a> or <code>List[ControlNetModel]</code>) &#x2014;
Provides additional conditioning to the unet during the denoising process. If you set multiple ControlNets
as a list, the outputs from each ControlNet are added together to create one combined additional
conditioning.`,name:"controlnet"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/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/main/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/main/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/main/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.force_zeros_for_empty_prompt",description:`<strong>force_zeros_for_empty_prompt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>&quot;True&quot;</code>) &#x2014;
Whether the negative prompt embeddings shall always be set to 0. Also see the config of
<code>stabilityai/stable-diffusion-xl-base-1-0</code>.`,name:"force_zeros_for_empty_prompt"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.add_watermarker",description:`<strong>add_watermarker</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to use the <a href="https://github.com/ShieldMnt/invisible-watermark/" rel="nofollow">invisible_watermark</a> library to
watermark output images. If not defined, it will default to <code>True</code> if the package is installed, otherwise
no watermarker will be used.`,name:"add_watermarker"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L105"}}),xe=new O({props:{name:"__call__",anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"prompt_2",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.FloatTensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.FloatTensor]] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"guidance_scale",val:": float = 5.0"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"negative_prompt_2",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"pooled_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_pooled_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"},{name:"controlnet_conditioning_scale",val:": typing.Union[float, typing.List[float]] = 1.0"},{name:"guess_mode",val:": bool = False"},{name:"control_guidance_start",val:": typing.Union[float, typing.List[float]] = 0.0"},{name:"control_guidance_end",val:": typing.Union[float, typing.List[float]] = 1.0"},{name:"original_size",val:": typing.Tuple[int, int] = None"},{name:"crops_coords_top_left",val:": typing.Tuple[int, int] = (0, 0)"},{name:"target_size",val:": typing.Tuple[int, int] = None"},{name:"negative_original_size",val:": typing.Union[typing.Tuple[int, int], NoneType] = None"},{name:"negative_crops_coords_top_left",val:": typing.Tuple[int, int] = (0, 0)"},{name:"negative_target_size",val:": typing.Union[typing.Tuple[int, int], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide the image generation. If not defined, one has to pass <code>prompt_embeds</code>.
instead.`,name:"prompt"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.prompt_2",description:`<strong>prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to be sent to the <code>tokenizer_2</code> and <code>text_encoder_2</code>. If not defined, <code>prompt</code> is
used in both text-encoders`,name:"prompt_2"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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>, <code>List[np.ndarray]</code>, &#x2014;
<code>List[List[torch.FloatTensor]]</code>, <code>List[List[np.ndarray]]</code> or <code>List[List[PIL.Image.Image]]</code>):
The ControlNet input condition. ControlNet uses this input condition to generate guidance to Unet. If
the type is specified as <code>Torch.FloatTensor</code>, it is passed to ControlNet as is. <code>PIL.Image.Image</code> can
also be accepted as an image. The dimensions of the output image defaults to <code>image</code>&#x2019;s dimensions. If
height and/or width are passed, <code>image</code> is resized according to them. If multiple ControlNets are
specified in init, images must be passed as a list such that each element of the list can be correctly
batched for input to a single controlnet.`,name:"image"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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.`,name:"num_inference_steps"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
Guidance scale as defined in <a href="https://arxiv.org/abs/2207.12598" rel="nofollow">Classifier-Free Diffusion Guidance</a>.
<code>guidance_scale</code> is defined as <code>w</code> of equation 2. of <a href="https://arxiv.org/pdf/2205.11487.pdf" rel="nofollow">Imagen
Paper</a>. Guidance scale is enabled by setting <code>guidance_scale &gt; 1</code>. Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.negative_prompt_2",description:`<strong>negative_prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation to be sent to <code>tokenizer_2</code> and
<code>text_encoder_2</code>. If not defined, <code>negative_prompt</code> is used in both text-encoders`,name:"negative_prompt_2"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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.StableDiffusionXLControlNetPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) in the DDIM paper: <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">https://arxiv.org/abs/2010.02502</a>. Only applies to
<a href="/docs/diffusers/main/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a>
to make generation deterministic.`,name:"generator"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor will ge generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting.
If not provided, pooled text embeddings will be generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, pooled negative_prompt_embeds will be generated from <code>negative_prompt</code>
input argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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 generate image. Choose between
<a href="https://pillow.readthedocs.io/en/stable/" rel="nofollow">PIL</a>: <code>PIL.Image.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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/main/en/api/pipelines/stable_diffusion/img2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that will be called every <code>callback_steps</code> steps during inference. The function will be
called with the following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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 will be called. If not specified, the callback will be
called at every step.`,name:"callback_steps"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__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 under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.controlnet_conditioning_scale",description:`<strong>controlnet_conditioning_scale</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The outputs of the controlnet are multiplied by <code>controlnet_conditioning_scale</code> before they are added
to the residual in the original unet. If multiple ControlNets are specified in init, you can set the
corresponding scale as a list.`,name:"controlnet_conditioning_scale"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.guess_mode",description:`<strong>guess_mode</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
In this mode, the ControlNet encoder will try best to recognize the content of the input image even if
you remove all prompts. The <code>guidance_scale</code> between 3.0 and 5.0 is recommended.`,name:"guess_mode"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.control_guidance_start",description:`<strong>control_guidance_start</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The percentage of total steps at which the controlnet starts applying.`,name:"control_guidance_start"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.control_guidance_end",description:`<strong>control_guidance_end</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The percentage of total steps at which the controlnet stops applying.`,name:"control_guidance_end"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.original_size",description:`<strong>original_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
If <code>original_size</code> is not the same as <code>target_size</code> the image will appear to be down- or upsampled.
<code>original_size</code> defaults to <code>(width, height)</code> if not specified. Part of SDXL&#x2019;s micro-conditioning as
explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"original_size"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.crops_coords_top_left",description:`<strong>crops_coords_top_left</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
<code>crops_coords_top_left</code> can be used to generate an image that appears to be &#x201C;cropped&#x201D; from the position
<code>crops_coords_top_left</code> downwards. Favorable, well-centered images are usually achieved by setting
<code>crops_coords_top_left</code> to (0, 0). Part of SDXL&#x2019;s micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"crops_coords_top_left"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.target_size",description:`<strong>target_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
For most cases, <code>target_size</code> should be set to the desired height and width of the generated image. If
not specified it will default to <code>(width, height)</code>. Part of SDXL&#x2019;s micro-conditioning as explained in
section 2.2 of <a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"target_size"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.negative_original_size",description:`<strong>negative_original_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
To negatively condition the generation process based on a specific image resolution. Part of SDXL&#x2019;s
micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_original_size"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.negative_crops_coords_top_left",description:`<strong>negative_crops_coords_top_left</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
To negatively condition the generation process based on a specific crop coordinates. Part of SDXL&#x2019;s
micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_crops_coords_top_left"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.negative_target_size",description:`<strong>negative_target_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
To negatively condition the generation process based on a target image resolution. It should be as same
as the <code>target_size</code> for most cases. Part of SDXL&#x2019;s micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_target_size"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L759",returnDescription:`
<p><a
  href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/img2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> if <code>return_dict</code> is True, otherwise a <code>tuple</code>
containing the output images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/img2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),Y=new ni({props:{anchor:"diffusers.StableDiffusionXLControlNetPipeline.__call__.example",$$slots:{default:[si]},$$scope:{ctx:Wt}}}),Ne=new O({props:{name:"disable_vae_slicing",anchor:"diffusers.StableDiffusionXLControlNetPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L203"}}),Ie=new O({props:{name:"disable_vae_tiling",anchor:"diffusers.StableDiffusionXLControlNetPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L220"}}),Ze=new O({props:{name:"enable_model_cpu_offload",anchor:"diffusers.StableDiffusionXLControlNetPipeline.enable_model_cpu_offload",parameters:[{name:"gpu_id",val:" = 0"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L227"}}),Xe=new O({props:{name:"enable_vae_slicing",anchor:"diffusers.StableDiffusionXLControlNetPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L195"}}),Ee=new O({props:{name:"enable_vae_tiling",anchor:"diffusers.StableDiffusionXLControlNetPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L211"}}),Le=new O({props:{name:"encode_prompt",anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt",parameters:[{name:"prompt",val:": str"},{name:"prompt_2",val:": typing.Optional[str] = None"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"num_images_per_prompt",val:": int = 1"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"negative_prompt_2",val:": typing.Optional[str] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"pooled_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_pooled_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.prompt_2",description:`<strong>prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to be sent to the <code>tokenizer_2</code> and <code>text_encoder_2</code>. If not defined, <code>prompt</code> is
used in both text-encoders
device &#x2014; (<code>torch.device</code>):
torch device`,name:"prompt_2"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) &#x2014;
number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>) &#x2014;
whether to use classifier free guidance or not`,name:"do_classifier_free_guidance"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.negative_prompt_2",description:`<strong>negative_prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation to be sent to <code>tokenizer_2</code> and
<code>text_encoder_2</code>. If not defined, <code>negative_prompt</code> is used in both text-encoders`,name:"negative_prompt_2"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.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, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.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, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting.
If not provided, pooled text embeddings will be generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, pooled negative_prompt_embeds will be generated from <code>negative_prompt</code>
input argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLControlNetPipeline.encode_prompt.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
A lora scale that will be applied to all LoRA layers of the text encoder if LoRA layers are loaded.`,name:"lora_scale"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py#L260"}}),{c(){M=n("meta"),k=c(),J=n("h1"),T=n("a"),N=n("span"),h(g.$$.fragment),U=c(),pt=n("span"),Go=i("ControlNet with Stable Diffusion XL"),Dt=c(),K=n("p"),ee=n("a"),Bo=i("Adding Conditional Control to Text-to-Image Diffusion Models"),Vo=i(" by Lvmin Zhang and Maneesh Agrawala."),Pt=c(),ke=n("p"),Fo=i("Using a pretrained model, we can provide control images (for example, a depth map) to control Stable Diffusion text-to-image generation so that it follows the structure of the depth image and fills in the details."),Gt=c(),We=n("p"),Yo=i("The abstract from the paper is:"),Bt=c(),De=n("p"),ct=n("em"),$o=i("We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications."),Vt=c(),W=n("p"),zo=i("We provide support using ControlNets with "),Pe=n("a"),Ro=i("Stable Diffusion XL"),Ao=i(" (SDXL)."),Ft=c(),D=n("p"),Qo=i("You can find numerous SDXL ControlNet checkpoints from "),te=n("a"),Ho=i("this link"),qo=i(". There are some smaller ControlNet checkpoints too:"),Yt=c(),x=n("ul"),dt=n("li"),oe=n("a"),Oo=i("controlnet-canny-sdxl-1.0-small"),Ko=c(),mt=n("li"),ne=n("a"),en=i("controlnet-canny-sdxl-1.0-mid"),tn=c(),ft=n("li"),se=n("a"),on=i("controlnet-depth-sdxl-1.0-small"),nn=c(),ut=n("li"),ae=n("a"),sn=i("controlnet-depth-sdxl-1.0-mid"),$t=c(),P=n("p"),an=i("We also encourage you to train custom ControlNets; we provide a "),ie=n("a"),ln=i("training script"),rn=i(" for this."),zt=c(),Ge=n("p"),pn=i("You can find some results below:"),Rt=c(),le=n("img"),At=c(),Be=n("p"),cn=i("\u{1F6A8} At the time of this writing, many of these SDXL ControlNet checkpoints are experimental and there is a lot of room for improvement. We encourage our users to provide feedback. \u{1F6A8}"),Qt=c(),X=n("h2"),G=n("a"),gt=n("span"),h(re.$$.fragment),dn=c(),ht=n("span"),mn=i("MultiControlNet"),Ht=c(),B=n("p"),fn=i("You can compose multiple ControlNet conditionings from different image inputs to create a "),_t=n("em"),un=i("MultiControlNet"),gn=i(". To get better results, it is often helpful to:"),qt=c(),V=n("ol"),bt=n("li"),hn=i("mask conditionings such that they don\u2019t overlap (for example, mask the area of a canny image where the pose conditioning is located)"),_n=c(),pe=n("li"),bn=i("experiment with the "),ce=n("a"),yt=n("code"),yn=i("controlnet_conditioning_scale"),vn=i(" parameter to determine how much weight to assign to each conditioning input"),Ot=c(),Ve=n("p"),wn=i("In this example, you\u2019ll combine a canny image and a human pose estimation image to generate a new image."),Kt=c(),Fe=n("p"),Mn=i("Prepare the canny image conditioning:"),eo=c(),h(de.$$.fragment),to=c(),E=n("div"),me=n("div"),Ye=n("img"),Tn=c(),$e=n("figcaption"),Jn=i("original image"),Cn=c(),fe=n("div"),ze=n("img"),xn=c(),Re=n("figcaption"),Nn=i("canny image"),oo=c(),Ae=n("p"),Un=i("Prepare the human pose estimation conditioning:"),no=c(),h(ue.$$.fragment),so=c(),L=n("div"),ge=n("div"),Qe=n("img"),In=c(),He=n("figcaption"),jn=i("original image"),Zn=c(),he=n("div"),qe=n("img"),Xn=c(),Oe=n("figcaption"),En=i("human pose image"),ao=c(),I=n("p"),Ln=i("Load a list of ControlNet models that correspond to each conditioning, and pass them to the "),Ke=n("a"),Sn=i("StableDiffusionXLControlNetPipeline"),kn=i(". Use the faster "),et=n("a"),Wn=i("UniPCMultistepScheduler"),Dn=i(" and nable model offloading to reduce memory usage."),io=c(),h(_e.$$.fragment),lo=c(),tt=n("p"),Pn=i("Now you can pass your prompt (an optional negative prompt if you\u2019re using one), canny image, and pose image to the pipeline:"),ro=c(),h(be.$$.fragment),po=c(),ye=n("div"),ot=n("img"),co=c(),S=n("h2"),F=n("a"),vt=n("span"),h(ve.$$.fragment),Gn=c(),wt=n("span"),Bn=i("StableDiffusionXLControlNetPipeline"),mo=c(),f=n("div"),h(we.$$.fragment),Vn=c(),Mt=n("p"),Fn=i("Pipeline for text-to-image generation using Stable Diffusion XL with ControlNet guidance."),Yn=c(),Me=n("p"),$n=i("This model inherits from "),nt=n("a"),zn=i("DiffusionPipeline"),Rn=i(`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),An=c(),Tt=n("p"),Qn=i("In addition the pipeline inherits the following loading methods:"),Hn=c(),Te=n("ul"),Je=n("li"),Jt=n("em"),qn=i("Textual-Inversion"),On=i(": "),st=n("a"),Kn=i("loaders.TextualInversionLoaderMixin.load_textual_inversion()"),es=c(),Ce=n("li"),Ct=n("em"),ts=i("LoRA"),os=i(": "),at=n("a"),ns=i("loaders.LoraLoaderMixin.load_lora_weights()"),ss=c(),j=n("div"),h(xe.$$.fragment),as=c(),xt=n("p"),is=i("Function invoked when calling the pipeline for generation."),ls=c(),h(Y.$$.fragment),rs=c(),$=n("div"),h(Ne.$$.fragment),ps=c(),Ue=n("p"),cs=i("Disable sliced VAE decoding. If "),Nt=n("code"),ds=i("enable_vae_slicing"),ms=i(` was previously enabled, this method will go back to
computing decoding in one step.`),fs=c(),z=n("div"),h(Ie.$$.fragment),us=c(),je=n("p"),gs=i("Disable tiled VAE decoding. If "),Ut=n("code"),hs=i("enable_vae_tiling"),_s=i(` was previously enabled, this method will go back to
computing decoding in one step.`),bs=c(),R=n("div"),h(Ze.$$.fragment),ys=c(),C=n("p"),vs=i(`Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
to `),It=n("code"),ws=i("enable_sequential_cpu_offload"),Ms=i(", this method moves one whole model at a time to the GPU when its "),jt=n("code"),Ts=i("forward"),Js=i(`
method is called, and the model remains in GPU until the next model runs. Memory savings are lower than with
`),Zt=n("code"),Cs=i("enable_sequential_cpu_offload"),xs=i(", but performance is much better due to the iterative execution of the "),Xt=n("code"),Ns=i("unet"),Us=i("."),Is=c(),A=n("div"),h(Xe.$$.fragment),js=c(),Et=n("p"),Zs=i(`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`),Xs=c(),Q=n("div"),h(Ee.$$.fragment),Es=c(),Lt=n("p"),Ls=i(`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`),Ss=c(),H=n("div"),h(Le.$$.fragment),ks=c(),St=n("p"),Ws=i("Encodes the prompt into text encoder hidden states."),this.h()},l(e){const r=ei('[data-svelte="svelte-1phssyn"]',document.head);M=s(r,"META",{name:!0,content:!0}),r.forEach(o),k=d(e),J=s(e,"H1",{class:!0});var Se=a(J);T=s(Se,"A",{id:!0,class:!0,href:!0});var zs=a(T);N=s(zs,"SPAN",{});var Rs=a(N);_(g.$$.fragment,Rs),Rs.forEach(o),zs.forEach(o),U=d(Se),pt=s(Se,"SPAN",{});var As=a(pt);Go=l(As,"ControlNet with Stable Diffusion XL"),As.forEach(o),Se.forEach(o),Dt=d(e),K=s(e,"P",{});var Ds=a(K);ee=s(Ds,"A",{href:!0,rel:!0});var Qs=a(ee);Bo=l(Qs,"Adding Conditional Control to Text-to-Image Diffusion Models"),Qs.forEach(o),Vo=l(Ds," by Lvmin Zhang and Maneesh Agrawala."),Ds.forEach(o),Pt=d(e),ke=s(e,"P",{});var Hs=a(ke);Fo=l(Hs,"Using a pretrained model, we can provide control images (for example, a depth map) to control Stable Diffusion text-to-image generation so that it follows the structure of the depth image and fills in the details."),Hs.forEach(o),Gt=d(e),We=s(e,"P",{});var qs=a(We);Yo=l(qs,"The abstract from the paper is:"),qs.forEach(o),Bt=d(e),De=s(e,"P",{});var Os=a(De);ct=s(Os,"EM",{});var Ks=a(ct);$o=l(Ks,"We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications."),Ks.forEach(o),Os.forEach(o),Vt=d(e),W=s(e,"P",{});var uo=a(W);zo=l(uo,"We provide support using ControlNets with "),Pe=s(uo,"A",{href:!0});var ea=a(Pe);Ro=l(ea,"Stable Diffusion XL"),ea.forEach(o),Ao=l(uo," (SDXL)."),uo.forEach(o),Ft=d(e),D=s(e,"P",{});var go=a(D);Qo=l(go,"You can find numerous SDXL ControlNet checkpoints from "),te=s(go,"A",{href:!0,rel:!0});var ta=a(te);Ho=l(ta,"this link"),ta.forEach(o),qo=l(go,". There are some smaller ControlNet checkpoints too:"),go.forEach(o),Yt=d(e),x=s(e,"UL",{});var q=a(x);dt=s(q,"LI",{});var oa=a(dt);oe=s(oa,"A",{href:!0,rel:!0});var na=a(oe);Oo=l(na,"controlnet-canny-sdxl-1.0-small"),na.forEach(o),oa.forEach(o),Ko=d(q),mt=s(q,"LI",{});var sa=a(mt);ne=s(sa,"A",{href:!0,rel:!0});var aa=a(ne);en=l(aa,"controlnet-canny-sdxl-1.0-mid"),aa.forEach(o),sa.forEach(o),tn=d(q),ft=s(q,"LI",{});var ia=a(ft);se=s(ia,"A",{href:!0,rel:!0});var la=a(se);on=l(la,"controlnet-depth-sdxl-1.0-small"),la.forEach(o),ia.forEach(o),nn=d(q),ut=s(q,"LI",{});var ra=a(ut);ae=s(ra,"A",{href:!0,rel:!0});var pa=a(ae);sn=l(pa,"controlnet-depth-sdxl-1.0-mid"),pa.forEach(o),ra.forEach(o),q.forEach(o),$t=d(e),P=s(e,"P",{});var ho=a(P);an=l(ho,"We also encourage you to train custom ControlNets; we provide a "),ie=s(ho,"A",{href:!0,rel:!0});var ca=a(ie);ln=l(ca,"training script"),ca.forEach(o),rn=l(ho," for this."),ho.forEach(o),zt=d(e),Ge=s(e,"P",{});var da=a(Ge);pn=l(da,"You can find some results below:"),da.forEach(o),Rt=d(e),le=s(e,"IMG",{src:!0,width:!0}),At=d(e),Be=s(e,"P",{});var ma=a(Be);cn=l(ma,"\u{1F6A8} At the time of this writing, many of these SDXL ControlNet checkpoints are experimental and there is a lot of room for improvement. We encourage our users to provide feedback. \u{1F6A8}"),ma.forEach(o),Qt=d(e),X=s(e,"H2",{class:!0});var _o=a(X);G=s(_o,"A",{id:!0,class:!0,href:!0});var fa=a(G);gt=s(fa,"SPAN",{});var ua=a(gt);_(re.$$.fragment,ua),ua.forEach(o),fa.forEach(o),dn=d(_o),ht=s(_o,"SPAN",{});var ga=a(ht);mn=l(ga,"MultiControlNet"),ga.forEach(o),_o.forEach(o),Ht=d(e),B=s(e,"P",{});var bo=a(B);fn=l(bo,"You can compose multiple ControlNet conditionings from different image inputs to create a "),_t=s(bo,"EM",{});var ha=a(_t);un=l(ha,"MultiControlNet"),ha.forEach(o),gn=l(bo,". To get better results, it is often helpful to:"),bo.forEach(o),qt=d(e),V=s(e,"OL",{});var yo=a(V);bt=s(yo,"LI",{});var _a=a(bt);hn=l(_a,"mask conditionings such that they don\u2019t overlap (for example, mask the area of a canny image where the pose conditioning is located)"),_a.forEach(o),_n=d(yo),pe=s(yo,"LI",{});var vo=a(pe);bn=l(vo,"experiment with the "),ce=s(vo,"A",{href:!0,rel:!0});var ba=a(ce);yt=s(ba,"CODE",{});var ya=a(yt);yn=l(ya,"controlnet_conditioning_scale"),ya.forEach(o),ba.forEach(o),vn=l(vo," parameter to determine how much weight to assign to each conditioning input"),vo.forEach(o),yo.forEach(o),Ot=d(e),Ve=s(e,"P",{});var va=a(Ve);wn=l(va,"In this example, you\u2019ll combine a canny image and a human pose estimation image to generate a new image."),va.forEach(o),Kt=d(e),Fe=s(e,"P",{});var wa=a(Fe);Mn=l(wa,"Prepare the canny image conditioning:"),wa.forEach(o),eo=d(e),_(de.$$.fragment,e),to=d(e),E=s(e,"DIV",{class:!0});var wo=a(E);me=s(wo,"DIV",{});var Mo=a(me);Ye=s(Mo,"IMG",{class:!0,src:!0}),Tn=d(Mo),$e=s(Mo,"FIGCAPTION",{class:!0});var Ma=a($e);Jn=l(Ma,"original image"),Ma.forEach(o),Mo.forEach(o),Cn=d(wo),fe=s(wo,"DIV",{});var To=a(fe);ze=s(To,"IMG",{class:!0,src:!0}),xn=d(To),Re=s(To,"FIGCAPTION",{class:!0});var Ta=a(Re);Nn=l(Ta,"canny image"),Ta.forEach(o),To.forEach(o),wo.forEach(o),oo=d(e),Ae=s(e,"P",{});var Ja=a(Ae);Un=l(Ja,"Prepare the human pose estimation conditioning:"),Ja.forEach(o),no=d(e),_(ue.$$.fragment,e),so=d(e),L=s(e,"DIV",{class:!0});var Jo=a(L);ge=s(Jo,"DIV",{});var Co=a(ge);Qe=s(Co,"IMG",{class:!0,src:!0}),In=d(Co),He=s(Co,"FIGCAPTION",{class:!0});var Ca=a(He);jn=l(Ca,"original image"),Ca.forEach(o),Co.forEach(o),Zn=d(Jo),he=s(Jo,"DIV",{});var xo=a(he);qe=s(xo,"IMG",{class:!0,src:!0}),Xn=d(xo),Oe=s(xo,"FIGCAPTION",{class:!0});var xa=a(Oe);En=l(xa,"human pose image"),xa.forEach(o),xo.forEach(o),Jo.forEach(o),ao=d(e),I=s(e,"P",{});var it=a(I);Ln=l(it,"Load a list of ControlNet models that correspond to each conditioning, and pass them to the "),Ke=s(it,"A",{href:!0});var Na=a(Ke);Sn=l(Na,"StableDiffusionXLControlNetPipeline"),Na.forEach(o),kn=l(it,". Use the faster "),et=s(it,"A",{href:!0});var Ua=a(et);Wn=l(Ua,"UniPCMultistepScheduler"),Ua.forEach(o),Dn=l(it," and nable model offloading to reduce memory usage."),it.forEach(o),io=d(e),_(_e.$$.fragment,e),lo=d(e),tt=s(e,"P",{});var Ia=a(tt);Pn=l(Ia,"Now you can pass your prompt (an optional negative prompt if you\u2019re using one), canny image, and pose image to the pipeline:"),Ia.forEach(o),ro=d(e),_(be.$$.fragment,e),po=d(e),ye=s(e,"DIV",{class:!0});var ja=a(ye);ot=s(ja,"IMG",{class:!0,src:!0}),ja.forEach(o),co=d(e),S=s(e,"H2",{class:!0});var No=a(S);F=s(No,"A",{id:!0,class:!0,href:!0});var Za=a(F);vt=s(Za,"SPAN",{});var Xa=a(vt);_(ve.$$.fragment,Xa),Xa.forEach(o),Za.forEach(o),Gn=d(No),wt=s(No,"SPAN",{});var Ea=a(wt);Bn=l(Ea,"StableDiffusionXLControlNetPipeline"),Ea.forEach(o),No.forEach(o),mo=d(e),f=s(e,"DIV",{class:!0});var u=a(f);_(we.$$.fragment,u),Vn=d(u),Mt=s(u,"P",{});var La=a(Mt);Fn=l(La,"Pipeline for text-to-image generation using Stable Diffusion XL with ControlNet guidance."),La.forEach(o),Yn=d(u),Me=s(u,"P",{});var Uo=a(Me);$n=l(Uo,"This model inherits from "),nt=s(Uo,"A",{href:!0});var Sa=a(nt);zn=l(Sa,"DiffusionPipeline"),Sa.forEach(o),Rn=l(Uo,`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),Uo.forEach(o),An=d(u),Tt=s(u,"P",{});var ka=a(Tt);Qn=l(ka,"In addition the pipeline inherits the following loading methods:"),ka.forEach(o),Hn=d(u),Te=s(u,"UL",{});var Io=a(Te);Je=s(Io,"LI",{});var jo=a(Je);Jt=s(jo,"EM",{});var Wa=a(Jt);qn=l(Wa,"Textual-Inversion"),Wa.forEach(o),On=l(jo,": "),st=s(jo,"A",{href:!0});var Da=a(st);Kn=l(Da,"loaders.TextualInversionLoaderMixin.load_textual_inversion()"),Da.forEach(o),jo.forEach(o),es=d(Io),Ce=s(Io,"LI",{});var Zo=a(Ce);Ct=s(Zo,"EM",{});var Pa=a(Ct);ts=l(Pa,"LoRA"),Pa.forEach(o),os=l(Zo,": "),at=s(Zo,"A",{href:!0});var Ga=a(at);ns=l(Ga,"loaders.LoraLoaderMixin.load_lora_weights()"),Ga.forEach(o),Zo.forEach(o),Io.forEach(o),ss=d(u),j=s(u,"DIV",{class:!0});var lt=a(j);_(xe.$$.fragment,lt),as=d(lt),xt=s(lt,"P",{});var Ba=a(xt);is=l(Ba,"Function invoked when calling the pipeline for generation."),Ba.forEach(o),ls=d(lt),_(Y.$$.fragment,lt),lt.forEach(o),rs=d(u),$=s(u,"DIV",{class:!0});var Xo=a($);_(Ne.$$.fragment,Xo),ps=d(Xo),Ue=s(Xo,"P",{});var Eo=a(Ue);cs=l(Eo,"Disable sliced VAE decoding. If "),Nt=s(Eo,"CODE",{});var Va=a(Nt);ds=l(Va,"enable_vae_slicing"),Va.forEach(o),ms=l(Eo,` was previously enabled, this method will go back to
computing decoding in one step.`),Eo.forEach(o),Xo.forEach(o),fs=d(u),z=s(u,"DIV",{class:!0});var Lo=a(z);_(Ie.$$.fragment,Lo),us=d(Lo),je=s(Lo,"P",{});var So=a(je);gs=l(So,"Disable tiled VAE decoding. If "),Ut=s(So,"CODE",{});var Fa=a(Ut);hs=l(Fa,"enable_vae_tiling"),Fa.forEach(o),_s=l(So,` was previously enabled, this method will go back to
computing decoding in one step.`),So.forEach(o),Lo.forEach(o),bs=d(u),R=s(u,"DIV",{class:!0});var ko=a(R);_(Ze.$$.fragment,ko),ys=d(ko),C=s(ko,"P",{});var Z=a(C);vs=l(Z,`Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
to `),It=s(Z,"CODE",{});var Ya=a(It);ws=l(Ya,"enable_sequential_cpu_offload"),Ya.forEach(o),Ms=l(Z,", this method moves one whole model at a time to the GPU when its "),jt=s(Z,"CODE",{});var $a=a(jt);Ts=l($a,"forward"),$a.forEach(o),Js=l(Z,`
method is called, and the model remains in GPU until the next model runs. Memory savings are lower than with
`),Zt=s(Z,"CODE",{});var za=a(Zt);Cs=l(za,"enable_sequential_cpu_offload"),za.forEach(o),xs=l(Z,", but performance is much better due to the iterative execution of the "),Xt=s(Z,"CODE",{});var Ra=a(Xt);Ns=l(Ra,"unet"),Ra.forEach(o),Us=l(Z,"."),Z.forEach(o),ko.forEach(o),Is=d(u),A=s(u,"DIV",{class:!0});var Wo=a(A);_(Xe.$$.fragment,Wo),js=d(Wo),Et=s(Wo,"P",{});var Aa=a(Et);Zs=l(Aa,`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`),Aa.forEach(o),Wo.forEach(o),Xs=d(u),Q=s(u,"DIV",{class:!0});var Do=a(Q);_(Ee.$$.fragment,Do),Es=d(Do),Lt=s(Do,"P",{});var Qa=a(Lt);Ls=l(Qa,`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`),Qa.forEach(o),Do.forEach(o),Ss=d(u),H=s(u,"DIV",{class:!0});var Po=a(H);_(Le.$$.fragment,Po),ks=d(Po),St=s(Po,"P",{});var Ha=a(St);Ws=l(Ha,"Encodes the prompt into text encoder hidden states."),Ha.forEach(o),Po.forEach(o),u.forEach(o),this.h()},h(){p(M,"name","hf:doc:metadata"),p(M,"content",JSON.stringify(ii)),p(T,"id","controlnet-with-stable-diffusion-xl"),p(T,"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"),p(T,"href","#controlnet-with-stable-diffusion-xl"),p(J,"class","relative group"),p(ee,"href","https://huggingface.co/papers/2302.05543"),p(ee,"rel","nofollow"),p(Pe,"href","./stable_diffusion/stable_diffusion_xl.md"),p(te,"href","https://huggingface.co/models?other=stable-diffusion-xl&other=controlnet"),p(te,"rel","nofollow"),p(oe,"href","https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0-small"),p(oe,"rel","nofollow"),p(ne,"href","https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0-mid"),p(ne,"rel","nofollow"),p(se,"href","https://huggingface.co/diffusers/controlnet-depth-sdxl-1.0-small"),p(se,"rel","nofollow"),p(ae,"href","https://huggingface.co/diffusers/controlnet-depth-sdxl-1.0-mid"),p(ae,"rel","nofollow"),p(ie,"href","https://github.com/huggingface/diffusers/blob/main/examples/controlnet/README_sdxl.md"),p(ie,"rel","nofollow"),rt(le.src,Gs="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/sd_xl/sdxl_controlnet_canny_grid.png")||p(le,"src",Gs),p(le,"width","600"),p(G,"id","multicontrolnet"),p(G,"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"),p(G,"href","#multicontrolnet"),p(X,"class","relative group"),p(ce,"href","https://huggingface.co/docs/diffusers/main/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline.__call__.controlnet_conditioning_scale"),p(ce,"rel","nofollow"),p(Ye,"class","rounded-xl"),rt(Ye.src,Bs="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/landscape.png")||p(Ye,"src",Bs),p($e,"class","mt-2 text-center text-sm text-gray-500"),p(ze,"class","rounded-xl"),rt(ze.src,Vs="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/controlnet/landscape_canny_masked.png")||p(ze,"src",Vs),p(Re,"class","mt-2 text-center text-sm text-gray-500"),p(E,"class","flex gap-4"),p(Qe,"class","rounded-xl"),rt(Qe.src,Fs="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/person.png")||p(Qe,"src",Fs),p(He,"class","mt-2 text-center text-sm text-gray-500"),p(qe,"class","rounded-xl"),rt(qe.src,Ys="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/controlnet/person_pose.png")||p(qe,"src",Ys),p(Oe,"class","mt-2 text-center text-sm text-gray-500"),p(L,"class","flex gap-4"),p(Ke,"href","/docs/diffusers/main/en/api/pipelines/controlnet_sdxl#diffusers.StableDiffusionXLControlNetPipeline"),p(et,"href","/docs/diffusers/main/en/api/schedulers/unipc#diffusers.UniPCMultistepScheduler"),p(ot,"class","rounded-xl"),rt(ot.src,$s="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/multicontrolnet.png")||p(ot,"src",$s),p(ye,"class","flex justify-center"),p(F,"id","diffusers.StableDiffusionXLControlNetPipeline"),p(F,"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"),p(F,"href","#diffusers.StableDiffusionXLControlNetPipeline"),p(S,"class","relative group"),p(nt,"href","/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"),p(st,"href","/docs/diffusers/main/en/api/pipelines/stable_diffusion/img2img#diffusers.StableDiffusionImg2ImgPipeline.load_textual_inversion"),p(at,"href","/docs/diffusers/main/en/api/pipelines/stable_diffusion/img2img#diffusers.StableDiffusionImg2ImgPipeline.load_lora_weights"),p(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){t(document.head,M),m(e,k,r),m(e,J,r),t(J,T),t(T,N),b(g,N,null),t(J,U),t(J,pt),t(pt,Go),m(e,Dt,r),m(e,K,r),t(K,ee),t(ee,Bo),t(K,Vo),m(e,Pt,r),m(e,ke,r),t(ke,Fo),m(e,Gt,r),m(e,We,r),t(We,Yo),m(e,Bt,r),m(e,De,r),t(De,ct),t(ct,$o),m(e,Vt,r),m(e,W,r),t(W,zo),t(W,Pe),t(Pe,Ro),t(W,Ao),m(e,Ft,r),m(e,D,r),t(D,Qo),t(D,te),t(te,Ho),t(D,qo),m(e,Yt,r),m(e,x,r),t(x,dt),t(dt,oe),t(oe,Oo),t(x,Ko),t(x,mt),t(mt,ne),t(ne,en),t(x,tn),t(x,ft),t(ft,se),t(se,on),t(x,nn),t(x,ut),t(ut,ae),t(ae,sn),m(e,$t,r),m(e,P,r),t(P,an),t(P,ie),t(ie,ln),t(P,rn),m(e,zt,r),m(e,Ge,r),t(Ge,pn),m(e,Rt,r),m(e,le,r),m(e,At,r),m(e,Be,r),t(Be,cn),m(e,Qt,r),m(e,X,r),t(X,G),t(G,gt),b(re,gt,null),t(X,dn),t(X,ht),t(ht,mn),m(e,Ht,r),m(e,B,r),t(B,fn),t(B,_t),t(_t,un),t(B,gn),m(e,qt,r),m(e,V,r),t(V,bt),t(bt,hn),t(V,_n),t(V,pe),t(pe,bn),t(pe,ce),t(ce,yt),t(yt,yn),t(pe,vn),m(e,Ot,r),m(e,Ve,r),t(Ve,wn),m(e,Kt,r),m(e,Fe,r),t(Fe,Mn),m(e,eo,r),b(de,e,r),m(e,to,r),m(e,E,r),t(E,me),t(me,Ye),t(me,Tn),t(me,$e),t($e,Jn),t(E,Cn),t(E,fe),t(fe,ze),t(fe,xn),t(fe,Re),t(Re,Nn),m(e,oo,r),m(e,Ae,r),t(Ae,Un),m(e,no,r),b(ue,e,r),m(e,so,r),m(e,L,r),t(L,ge),t(ge,Qe),t(ge,In),t(ge,He),t(He,jn),t(L,Zn),t(L,he),t(he,qe),t(he,Xn),t(he,Oe),t(Oe,En),m(e,ao,r),m(e,I,r),t(I,Ln),t(I,Ke),t(Ke,Sn),t(I,kn),t(I,et),t(et,Wn),t(I,Dn),m(e,io,r),b(_e,e,r),m(e,lo,r),m(e,tt,r),t(tt,Pn),m(e,ro,r),b(be,e,r),m(e,po,r),m(e,ye,r),t(ye,ot),m(e,co,r),m(e,S,r),t(S,F),t(F,vt),b(ve,vt,null),t(S,Gn),t(S,wt),t(wt,Bn),m(e,mo,r),m(e,f,r),b(we,f,null),t(f,Vn),t(f,Mt),t(Mt,Fn),t(f,Yn),t(f,Me),t(Me,$n),t(Me,nt),t(nt,zn),t(Me,Rn),t(f,An),t(f,Tt),t(Tt,Qn),t(f,Hn),t(f,Te),t(Te,Je),t(Je,Jt),t(Jt,qn),t(Je,On),t(Je,st),t(st,Kn),t(Te,es),t(Te,Ce),t(Ce,Ct),t(Ct,ts),t(Ce,os),t(Ce,at),t(at,ns),t(f,ss),t(f,j),b(xe,j,null),t(j,as),t(j,xt),t(xt,is),t(j,ls),b(Y,j,null),t(f,rs),t(f,$),b(Ne,$,null),t($,ps),t($,Ue),t(Ue,cs),t(Ue,Nt),t(Nt,ds),t(Ue,ms),t(f,fs),t(f,z),b(Ie,z,null),t(z,us),t(z,je),t(je,gs),t(je,Ut),t(Ut,hs),t(je,_s),t(f,bs),t(f,R),b(Ze,R,null),t(R,ys),t(R,C),t(C,vs),t(C,It),t(It,ws),t(C,Ms),t(C,jt),t(jt,Ts),t(C,Js),t(C,Zt),t(Zt,Cs),t(C,xs),t(C,Xt),t(Xt,Ns),t(C,Us),t(f,Is),t(f,A),b(Xe,A,null),t(A,js),t(A,Et),t(Et,Zs),t(f,Xs),t(f,Q),b(Ee,Q,null),t(Q,Es),t(Q,Lt),t(Lt,Ls),t(f,Ss),t(f,H),b(Le,H,null),t(H,ks),t(H,St),t(St,Ws),fo=!0},p(e,[r]){const Se={};r&2&&(Se.$$scope={dirty:r,ctx:e}),Y.$set(Se)},i(e){fo||(y(g.$$.fragment,e),y(re.$$.fragment,e),y(de.$$.fragment,e),y(ue.$$.fragment,e),y(_e.$$.fragment,e),y(be.$$.fragment,e),y(ve.$$.fragment,e),y(we.$$.fragment,e),y(xe.$$.fragment,e),y(Y.$$.fragment,e),y(Ne.$$.fragment,e),y(Ie.$$.fragment,e),y(Ze.$$.fragment,e),y(Xe.$$.fragment,e),y(Ee.$$.fragment,e),y(Le.$$.fragment,e),fo=!0)},o(e){v(g.$$.fragment,e),v(re.$$.fragment,e),v(de.$$.fragment,e),v(ue.$$.fragment,e),v(_e.$$.fragment,e),v(be.$$.fragment,e),v(ve.$$.fragment,e),v(we.$$.fragment,e),v(xe.$$.fragment,e),v(Y.$$.fragment,e),v(Ne.$$.fragment,e),v(Ie.$$.fragment,e),v(Ze.$$.fragment,e),v(Xe.$$.fragment,e),v(Ee.$$.fragment,e),v(Le.$$.fragment,e),fo=!1},d(e){o(M),e&&o(k),e&&o(J),w(g),e&&o(Dt),e&&o(K),e&&o(Pt),e&&o(ke),e&&o(Gt),e&&o(We),e&&o(Bt),e&&o(De),e&&o(Vt),e&&o(W),e&&o(Ft),e&&o(D),e&&o(Yt),e&&o(x),e&&o($t),e&&o(P),e&&o(zt),e&&o(Ge),e&&o(Rt),e&&o(le),e&&o(At),e&&o(Be),e&&o(Qt),e&&o(X),w(re),e&&o(Ht),e&&o(B),e&&o(qt),e&&o(V),e&&o(Ot),e&&o(Ve),e&&o(Kt),e&&o(Fe),e&&o(eo),w(de,e),e&&o(to),e&&o(E),e&&o(oo),e&&o(Ae),e&&o(no),w(ue,e),e&&o(so),e&&o(L),e&&o(ao),e&&o(I),e&&o(io),w(_e,e),e&&o(lo),e&&o(tt),e&&o(ro),w(be,e),e&&o(po),e&&o(ye),e&&o(co),e&&o(S),w(ve),e&&o(mo),e&&o(f),w(we),w(xe),w(Y),w(Ne),w(Ie),w(Ze),w(Xe),w(Ee),w(Le)}}}const ii={local:"controlnet-with-stable-diffusion-xl",sections:[{local:"multicontrolnet",title:"MultiControlNet"},{local:"diffusers.StableDiffusionXLControlNetPipeline",title:"StableDiffusionXLControlNetPipeline"}],title:"ControlNet with Stable Diffusion XL"};function li(Wt){return ti(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fi extends qa{constructor(M){super();Oa(this,M,li,ai,Ka,{})}}export{fi as default,ii as metadata};
