import{S as Hr,i as Kr,s as el,e as o,k as l,w as _,t as s,M as tl,c as a,d as n,m as d,a as i,x as b,h as r,b as c,G as e,g as h,y as v,q as y,o as I,B as w,v as nl,L as Fo}from"../../../chunks/vendor-hf-doc-builder.js";import{T as Ns}from"../../../chunks/Tip-hf-doc-builder.js";import{D as J}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as Jt}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as xt}from"../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as No}from"../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function ol(E){let m,U,u,g,$,p,P,R;return{c(){m=o("p"),U=s("For text-to-image we use "),u=o("code"),g=s("stabilityai/stable-diffusion-2-1-unclip-small"),$=s(" as it was trained on CLIP ViT-L/14 embedding, the same as the Karlo model prior. "),p=o("a"),P=s("stabilityai/stable-diffusion-2-1-unclip"),R=s(" was trained on OpenCLIP ViT-H, so we don\u2019t recommend its use."),this.h()},l(A){m=a(A,"P",{});var S=i(m);U=r(S,"For text-to-image we use "),u=a(S,"CODE",{});var V=i(u);g=r(V,"stabilityai/stable-diffusion-2-1-unclip-small"),V.forEach(n),$=r(S," as it was trained on CLIP ViT-L/14 embedding, the same as the Karlo model prior. "),p=a(S,"A",{href:!0,rel:!0});var Et=i(p);P=r(Et,"stabilityai/stable-diffusion-2-1-unclip"),Et.forEach(n),R=r(S," was trained on OpenCLIP ViT-H, so we don\u2019t recommend its use."),S.forEach(n),this.h()},h(){c(p,"href","https://hf.co/stabilityai/stable-diffusion-2-1-unclip"),c(p,"rel","nofollow")},m(A,S){h(A,m,S),e(m,U),e(m,u),e(u,g),e(m,$),e(m,p),e(p,P),e(m,R)},d(A){A&&n(m)}}}function al(E){let m,U,u,g,$;return g=new Jt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlVW5DTElQUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlVW5DTElQUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmZ1c2luZyUyRnN0YWJsZS11bmNsaXAtMi0xLWwlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpJTIwJTIwJTIzJTIwVE9ETyUyMHVwZGF0ZSUyMG1vZGVsJTIwcGF0aCUwQXBpcGUlMjAlM0QlMjBwaXBlLnRvKCUyMmN1ZGElMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyYSUyMHBob3RvJTIwb2YlMjBhbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwbWFycyUyMiUwQWltYWdlcyUyMCUzRCUyMHBpcGUocHJvbXB0KS5pbWFnZXMlMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyYXN0cm9uYXV0X2hvcnNlLnBuZyUyMik=",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> StableUnCLIPPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableUnCLIPPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fusing/stable-unclip-2-1-l&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)  <span class="hljs-comment"># TODO update model path</span>
<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>prompt = <span class="hljs-string">&quot;a photo of an astronaut riding a horse on mars&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>images = pipe(prompt).images
<span class="hljs-meta">&gt;&gt;&gt; </span>images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;astronaut_horse.png&quot;</span>)`}}),{c(){m=o("p"),U=s("Examples:"),u=l(),_(g.$$.fragment)},l(p){m=a(p,"P",{});var P=i(m);U=r(P,"Examples:"),P.forEach(n),u=d(p),b(g.$$.fragment,p)},m(p,P){h(p,m,P),e(m,U),h(p,u,P),v(g,p,P),$=!0},p:Fo,i(p){$||(y(g.$$.fragment,p),$=!0)},o(p){I(g.$$.fragment,p),$=!1},d(p){p&&n(m),p&&n(u),w(g,p)}}}function il(E){let m,U;return{c(){m=o("p"),U=s(`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`)},l(u){m=a(u,"P",{});var g=i(m);U=r(g,`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`),g.forEach(n)},m(u,g){h(u,m,g),e(m,U)},d(u){u&&n(m)}}}function sl(E){let m,U,u,g,$;return g=new Jt({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(){m=o("p"),U=s("Examples:"),u=l(),_(g.$$.fragment)},l(p){m=a(p,"P",{});var P=i(m);U=r(P,"Examples:"),P.forEach(n),u=d(p),b(g.$$.fragment,p)},m(p,P){h(p,m,P),e(m,U),h(p,u,P),v(g,p,P),$=!0},p:Fo,i(p){$||(y(g.$$.fragment,p),$=!0)},o(p){I(g.$$.fragment,p),$=!1},d(p){p&&n(m),p&&n(u),w(g,p)}}}function rl(E){let m,U,u,g,$;return g=new Jt({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWZyb20lMjBpbyUyMGltcG9ydCUyMEJ5dGVzSU8lMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlVW5DTElQSW1nMkltZ1BpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMFN0YWJsZVVuQ0xJUEltZzJJbWdQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyZnVzaW5nJTJGc3RhYmxlLXVuY2xpcC0yLTEtbC1pbWcyaW1nJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUyMCUyMCUyMyUyMFRPRE8lMjB1cGRhdGUlMjBtb2RlbCUyMHBhdGglMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSUyRkNvbXBWaXMlMkZzdGFibGUtZGlmZnVzaW9uJTJGbWFpbiUyRmFzc2V0cyUyRnN0YWJsZS1zYW1wbGVzJTJGaW1nMmltZyUyRnNrZXRjaC1tb3VudGFpbnMtaW5wdXQuanBnJTIyJTBBJTBBcmVzcG9uc2UlMjAlM0QlMjByZXF1ZXN0cy5nZXQodXJsKSUwQWluaXRfaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKEJ5dGVzSU8ocmVzcG9uc2UuY29udGVudCkpLmNvbnZlcnQoJTIyUkdCJTIyKSUwQWluaXRfaW1hZ2UlMjAlM0QlMjBpbml0X2ltYWdlLnJlc2l6ZSgoNzY4JTJDJTIwNTEyKSklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJBJTIwZmFudGFzeSUyMGxhbmRzY2FwZSUyQyUyMHRyZW5kaW5nJTIwb24lMjBhcnRzdGF0aW9uJTIyJTBBJTBBaW1hZ2VzJTIwJTNEJTIwcGlwZShwcm9tcHQlMkMlMjBpbml0X2ltYWdlKS5pbWFnZXMlMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyZmFudGFzeV9sYW5kc2NhcGUucG5nJTIyKQ==",highlighted:`<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">import</span> torch
<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> io <span class="hljs-keyword">import</span> BytesIO

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

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableUnCLIPImg2ImgPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fusing/stable-unclip-2-1-l-img2img&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)  <span class="hljs-comment"># TODO update model path</span>
<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>url = <span class="hljs-string">&quot;https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>response = requests.get(url)
<span class="hljs-meta">&gt;&gt;&gt; </span>init_image = Image.<span class="hljs-built_in">open</span>(BytesIO(response.content)).convert(<span class="hljs-string">&quot;RGB&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>init_image = init_image.resize((<span class="hljs-number">768</span>, <span class="hljs-number">512</span>))

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;A fantasy landscape, trending on artstation&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>images = pipe(prompt, init_image).images
<span class="hljs-meta">&gt;&gt;&gt; </span>images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;fantasy_landscape.png&quot;</span>)`}}),{c(){m=o("p"),U=s("Examples:"),u=l(),_(g.$$.fragment)},l(p){m=a(p,"P",{});var P=i(m);U=r(P,"Examples:"),P.forEach(n),u=d(p),b(g.$$.fragment,p)},m(p,P){h(p,m,P),e(m,U),h(p,u,P),v(g,p,P),$=!0},p:Fo,i(p){$||(y(g.$$.fragment,p),$=!0)},o(p){I(g.$$.fragment,p),$=!1},d(p){p&&n(m),p&&n(u),w(g,p)}}}function ll(E){let m,U;return{c(){m=o("p"),U=s(`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`)},l(u){m=a(u,"P",{});var g=i(m);U=r(g,`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`),g.forEach(n)},m(u,g){h(u,m,g),e(m,U)},d(u){u&&n(m)}}}function dl(E){let m,U,u,g,$;return g=new Jt({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(){m=o("p"),U=s("Examples:"),u=l(),_(g.$$.fragment)},l(p){m=a(p,"P",{});var P=i(m);U=r(P,"Examples:"),P.forEach(n),u=d(p),b(g.$$.fragment,p)},m(p,P){h(p,m,P),e(m,U),h(p,u,P),v(g,p,P),$=!0},p:Fo,i(p){$||(y(g.$$.fragment,p),$=!0)},o(p){I(g.$$.fragment,p),$=!1},d(p){p&&n(m),p&&n(u),w(g,p)}}}function pl(E){let m,U,u,g,$,p,P,R,A,S,V,Et,Lt,zo,Ro,Fn,Zt,Ao,zn,St,Xt,Do,Rn,D,ne,Nt,Ze,Yo,Ft,Qo,An,W,qo,zt,Oo,Ho,Rt,Ko,ea,At,ta,na,Dn,Y,oe,Dt,Se,oa,Yt,aa,Yn,We,Qn,ae,qn,Q,ie,Qt,ke,ia,qt,sa,On,je,Hn,se,ra,Ot,la,da,Kn,Ge,eo,q,re,Ht,Be,pa,Kt,ca,to,M,Ve,ma,en,fa,ga,Xe,ua,Wt,ha,_a,ba,F,Ne,va,tn,ya,Ia,le,wa,de,Fe,Pa,nn,Ua,$a,pe,ze,Ma,Re,Ta,on,Ca,xa,Ja,ce,Ae,Ea,an,La,Za,me,De,Sa,Ye,Wa,sn,ka,ja,Ga,k,Qe,Ba,qe,Va,Oe,Xa,Na,Fa,fe,za,ge,Ra,ue,He,Aa,Ke,Da,et,Ya,Qa,qa,he,tt,Oa,X,Ha,rn,Ka,ei,ln,ti,ni,dn,oi,ai,ii,L,nt,si,O,ri,pn,li,di,cn,pi,ci,mi,mn,fi,gi,ot,fn,ui,hi,gn,_i,bi,at,vi,un,yi,Ii,wi,hn,Pi,no,H,_e,_n,it,Ui,bn,$i,oo,T,st,Mi,vn,Ti,Ci,rt,xi,kt,Ji,Ei,Li,z,lt,Zi,yn,Si,Wi,be,ki,ve,dt,ji,In,Gi,Bi,ye,pt,Vi,ct,Xi,wn,Ni,Fi,zi,Ie,mt,Ri,Pn,Ai,Di,we,ft,Yi,gt,Qi,Un,qi,Oi,Hi,j,ut,Ki,ht,es,_t,ts,ns,os,Pe,as,Ue,is,$e,bt,ss,vt,rs,yt,ls,ds,ps,Me,It,cs,N,ms,$n,fs,gs,Mn,us,hs,Tn,_s,bs,vs,Z,wt,ys,K,Is,Cn,ws,Ps,xn,Us,$s,Ms,Jn,Ts,Cs,Pt,En,xs,Js,Ln,Es,Ls,Ut,Zs,Zn,Ss,Ws,ks,Sn,js,ao,ee,Te,Wn,$t,Gs,kn,Bs,io,te,Mt,Vs,jn,Xs,so;return p=new xt({}),Ze=new xt({}),Se=new xt({}),We=new Jt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwVW5DTElQU2NoZWR1bGVyJTJDJTIwRERQTVNjaGVkdWxlciUyQyUyMFN0YWJsZVVuQ0xJUFBpcGVsaW5lJTBBZnJvbSUyMGRpZmZ1c2Vycy5tb2RlbHMlMjBpbXBvcnQlMjBQcmlvclRyYW5zZm9ybWVyJTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENMSVBUb2tlbml6ZXIlMkMlMjBDTElQVGV4dE1vZGVsV2l0aFByb2plY3Rpb24lMEElMEFwcmlvcl9tb2RlbF9pZCUyMCUzRCUyMCUyMmtha2FvYnJhaW4lMkZrYXJsby12MS1hbHBoYSUyMiUwQWRhdGFfdHlwZSUyMCUzRCUyMHRvcmNoLmZsb2F0MTYlMEFwcmlvciUyMCUzRCUyMFByaW9yVHJhbnNmb3JtZXIuZnJvbV9wcmV0cmFpbmVkKHByaW9yX21vZGVsX2lkJTJDJTIwc3ViZm9sZGVyJTNEJTIycHJpb3IlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRGRhdGFfdHlwZSklMEElMEFwcmlvcl90ZXh0X21vZGVsX2lkJTIwJTNEJTIwJTIyb3BlbmFpJTJGY2xpcC12aXQtbGFyZ2UtcGF0Y2gxNCUyMiUwQXByaW9yX3Rva2VuaXplciUyMCUzRCUyMENMSVBUb2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKHByaW9yX3RleHRfbW9kZWxfaWQpJTBBcHJpb3JfdGV4dF9tb2RlbCUyMCUzRCUyMENMSVBUZXh0TW9kZWxXaXRoUHJvamVjdGlvbi5mcm9tX3ByZXRyYWluZWQocHJpb3JfdGV4dF9tb2RlbF9pZCUyQyUyMHRvcmNoX2R0eXBlJTNEZGF0YV90eXBlKSUwQXByaW9yX3NjaGVkdWxlciUyMCUzRCUyMFVuQ0xJUFNjaGVkdWxlci5mcm9tX3ByZXRyYWluZWQocHJpb3JfbW9kZWxfaWQlMkMlMjBzdWJmb2xkZXIlM0QlMjJwcmlvcl9zY2hlZHVsZXIlMjIpJTBBcHJpb3Jfc2NoZWR1bGVyJTIwJTNEJTIwRERQTVNjaGVkdWxlci5mcm9tX2NvbmZpZyhwcmlvcl9zY2hlZHVsZXIuY29uZmlnKSUwQSUwQXN0YWJsZV91bmNsaXBfbW9kZWxfaWQlMjAlM0QlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMi0xLXVuY2xpcC1zbWFsbCUyMiUwQSUwQXBpcGUlMjAlM0QlMjBTdGFibGVVbkNMSVBQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwc3RhYmxlX3VuY2xpcF9tb2RlbF9pZCUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEZGF0YV90eXBlJTJDJTBBJTIwJTIwJTIwJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMEElMjAlMjAlMjAlMjBwcmlvcl90b2tlbml6ZXIlM0Rwcmlvcl90b2tlbml6ZXIlMkMlMEElMjAlMjAlMjAlMjBwcmlvcl90ZXh0X2VuY29kZXIlM0Rwcmlvcl90ZXh0X21vZGVsJTJDJTBBJTIwJTIwJTIwJTIwcHJpb3IlM0RwcmlvciUyQyUwQSUyMCUyMCUyMCUyMHByaW9yX3NjaGVkdWxlciUzRHByaW9yX3NjaGVkdWxlciUyQyUwQSklMEElMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQXdhdmVfcHJvbXB0JTIwJTNEJTIwJTIyZHJhbWF0aWMlMjB3YXZlJTJDJTIwdGhlJTIwT2NlYW5zJTIwcm9hciUyQyUyMFN0cm9uZyUyMHdhdmUlMjBzcGlyYWwlMjBhY3Jvc3MlMjB0aGUlMjBvY2VhbnMlMjBhcyUyMHRoZSUyMHdhdmVzJTIwdW5mdXJsJTIwaW50byUyMHJvYXJpbmclMjBjcmVzdHMlM0IlMjBwZXJmZWN0JTIwd2F2ZSUyMGZvcm0lM0IlMjBwZXJmZWN0JTIwd2F2ZSUyMHNoYXBlJTNCJTIwZHJhbWF0aWMlMjB3YXZlJTIwc2hhcGUlM0IlMjB3YXZlJTIwc2hhcGUlMjB1bmJlbGlldmFibGUlM0IlMjB3YXZlJTNCJTIwd2F2ZSUyMHNoYXBlJTIwc3BlY3RhY3VsYXIlMjIlMEElMEFpbWFnZXMlMjAlM0QlMjBwaXBlKHByb21wdCUzRHdhdmVfcHJvbXB0KS5pbWFnZXMlMEFpbWFnZXMlNUIwJTVELnNhdmUoJTIyd2F2ZXMucG5nJTIyKQ==",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UnCLIPScheduler, DDPMScheduler, StableUnCLIPPipeline
<span class="hljs-keyword">from</span> diffusers.models <span class="hljs-keyword">import</span> PriorTransformer
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPTokenizer, CLIPTextModelWithProjection

prior_model_id = <span class="hljs-string">&quot;kakaobrain/karlo-v1-alpha&quot;</span>
data_type = torch.float16
prior = PriorTransformer.from_pretrained(prior_model_id, subfolder=<span class="hljs-string">&quot;prior&quot;</span>, torch_dtype=data_type)

prior_text_model_id = <span class="hljs-string">&quot;openai/clip-vit-large-patch14&quot;</span>
prior_tokenizer = CLIPTokenizer.from_pretrained(prior_text_model_id)
prior_text_model = CLIPTextModelWithProjection.from_pretrained(prior_text_model_id, torch_dtype=data_type)
prior_scheduler = UnCLIPScheduler.from_pretrained(prior_model_id, subfolder=<span class="hljs-string">&quot;prior_scheduler&quot;</span>)
prior_scheduler = DDPMScheduler.from_config(prior_scheduler.config)

stable_unclip_model_id = <span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1-unclip-small&quot;</span>

pipe = StableUnCLIPPipeline.from_pretrained(
    stable_unclip_model_id,
    torch_dtype=data_type,
    variant=<span class="hljs-string">&quot;fp16&quot;</span>,
    prior_tokenizer=prior_tokenizer,
    prior_text_encoder=prior_text_model,
    prior=prior,
    prior_scheduler=prior_scheduler,
)

pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
wave_prompt = <span class="hljs-string">&quot;dramatic wave, the Oceans roar, Strong wave spiral across the oceans as the waves unfurl into roaring crests; perfect wave form; perfect wave shape; dramatic wave shape; wave shape unbelievable; wave; wave shape spectacular&quot;</span>

images = pipe(prompt=wave_prompt).images
images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;waves.png&quot;</span>)`}}),ae=new Ns({props:{warning:!0,$$slots:{default:[ol]},$$scope:{ctx:E}}}),ke=new xt({}),je=new Jt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZVVuQ0xJUEltZzJJbWdQaXBlbGluZSUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBsb2FkX2ltYWdlJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlVW5DTElQSW1nMkltZ1BpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMi0xLXVuY2xpcCUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHZhcmlhdGlvbiUzRCUyMmZwMTYlMjIlMEEpJTBBcGlwZSUyMCUzRCUyMHBpcGUudG8oJTIyY3VkYSUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZoZi1pbnRlcm5hbC10ZXN0aW5nJTJGZGlmZnVzZXJzLWltYWdlcyUyRnJlc29sdmUlMkZtYWluJTJGc3RhYmxlX3VuY2xpcCUyRnRhcnNpbGFfZG9fYW1hcmFsLnBuZyUyMiUwQWluaXRfaW1hZ2UlMjAlM0QlMjBsb2FkX2ltYWdlKHVybCklMEElMEFpbWFnZXMlMjAlM0QlMjBwaXBlKGluaXRfaW1hZ2UpLmltYWdlcyUwQWltYWdlcyU1QjAlNUQuc2F2ZSglMjJ2YXJpYXRpb25faW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableUnCLIPImg2ImgPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image
<span class="hljs-keyword">import</span> torch

pipe = StableUnCLIPImg2ImgPipeline.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1-unclip&quot;</span>, torch_dtype=torch.float16, variation=<span class="hljs-string">&quot;fp16&quot;</span>
)
pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

url = <span class="hljs-string">&quot;https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/tarsila_do_amaral.png&quot;</span>
init_image = load_image(url)

images = pipe(init_image).images
images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;variation_image.png&quot;</span>)`}}),Ge=new Jt({props:{code:"cHJvbXB0JTIwJTNEJTIwJTIyQSUyMGZhbnRhc3klMjBsYW5kc2NhcGUlMkMlMjB0cmVuZGluZyUyMG9uJTIwYXJ0c3RhdGlvbiUyMiUwQSUwQWltYWdlcyUyMCUzRCUyMHBpcGUoaW5pdF9pbWFnZSUyQyUyMHByb21wdCUzRHByb21wdCkuaW1hZ2VzJTBBaW1hZ2VzJTVCMCU1RC5zYXZlKCUyMnZhcmlhdGlvbl9pbWFnZV90d28ucG5nJTIyKQ==",highlighted:`prompt = <span class="hljs-string">&quot;A fantasy landscape, trending on artstation&quot;</span>

images = pipe(init_image, prompt=prompt).images
images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;variation_image_two.png&quot;</span>)`}}),Be=new xt({}),Ve=new J({props:{name:"class diffusers.StableUnCLIPPipeline",anchor:"diffusers.StableUnCLIPPipeline",parameters:[{name:"prior_tokenizer",val:": CLIPTokenizer"},{name:"prior_text_encoder",val:": CLIPTextModelWithProjection"},{name:"prior",val:": PriorTransformer"},{name:"prior_scheduler",val:": KarrasDiffusionSchedulers"},{name:"image_normalizer",val:": StableUnCLIPImageNormalizer"},{name:"image_noising_scheduler",val:": KarrasDiffusionSchedulers"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": CLIPTextModelWithProjection"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"vae",val:": AutoencoderKL"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPPipeline.prior_tokenizer",description:`<strong>prior_tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
A <code>CLIPTokenizer</code>.`,name:"prior_tokenizer"},{anchor:"diffusers.StableUnCLIPPipeline.prior_text_encoder",description:`<strong>prior_text_encoder</strong> (<code>CLIPTextModelWithProjection</code>) &#x2014;
Frozen <code>CLIPTextModelWithProjection</code> text-encoder.`,name:"prior_text_encoder"},{anchor:"diffusers.StableUnCLIPPipeline.prior",description:`<strong>prior</strong> (<a href="/docs/diffusers/v0.19.0/en/api/models/prior_transformer#diffusers.PriorTransformer">PriorTransformer</a>) &#x2014;
The canonincal unCLIP prior to approximate the image embedding from the text embedding.`,name:"prior"},{anchor:"diffusers.StableUnCLIPPipeline.prior_scheduler",description:`<strong>prior_scheduler</strong> (<code>KarrasDiffusionSchedulers</code>) &#x2014;
Scheduler used in the prior denoising process.`,name:"prior_scheduler"},{anchor:"diffusers.StableUnCLIPPipeline.image_normalizer",description:`<strong>image_normalizer</strong> (<code>StableUnCLIPImageNormalizer</code>) &#x2014;
Used to normalize the predicted image embeddings before the noise is applied and un-normalize the image
embeddings after the noise has been applied.`,name:"image_normalizer"},{anchor:"diffusers.StableUnCLIPPipeline.image_noising_scheduler",description:`<strong>image_noising_scheduler</strong> (<code>KarrasDiffusionSchedulers</code>) &#x2014;
Noise schedule for adding noise to the predicted image embeddings. The amount of noise to add is determined
by the <code>noise_level</code>.`,name:"image_noising_scheduler"},{anchor:"diffusers.StableUnCLIPPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
A <code>CLIPTokenizer</code>.`,name:"tokenizer"},{anchor:"diffusers.StableUnCLIPPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
Frozen <code>CLIPTextModel</code> text-encoder.`,name:"text_encoder"},{anchor:"diffusers.StableUnCLIPPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/v0.19.0/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <a href="/docs/diffusers/v0.19.0/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.StableUnCLIPPipeline.scheduler",description:`<strong>scheduler</strong> (<code>KarrasDiffusionSchedulers</code>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.StableUnCLIPPipeline.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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py#L53"}}),Ne=new J({props:{name:"__call__",anchor:"diffusers.StableUnCLIPPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 20"},{name:"guidance_scale",val:": float = 10.0"},{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:": float = 0.0"},{name:"generator",val:": typing.Optional[torch._C.Generator] = 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:"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:"noise_level",val:": int = 0"},{name:"prior_num_inference_steps",val:": int = 25"},{name:"prior_guidance_scale",val:": float = 4.0"},{name:"prior_latents",val:": typing.Optional[torch.FloatTensor] = None"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.StableUnCLIPPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.StableUnCLIPPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 20) &#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.StableUnCLIPPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 10.0) &#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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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 is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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/latent_diffusion#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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.StableUnCLIPPipeline.__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"},{anchor:"diffusers.StableUnCLIPPipeline.__call__.noise_level",description:`<strong>noise_level</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) &#x2014;
The amount of noise to add to the image embeddings. A higher <code>noise_level</code> increases the variance in
the final un-noised images. See <a href="/docs/diffusers/v0.19.0/en/api/pipelines/stable_unclip#diffusers.StableUnCLIPPipeline.noise_image_embeddings">StableUnCLIPPipeline.noise_image_embeddings()</a> for more details.`,name:"noise_level"},{anchor:"diffusers.StableUnCLIPPipeline.__call__.prior_num_inference_steps",description:`<strong>prior_num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 25) &#x2014;
The number of denoising steps in the prior denoising process. More denoising steps usually lead to a
higher quality image at the expense of slower inference.`,name:"prior_num_inference_steps"},{anchor:"diffusers.StableUnCLIPPipeline.__call__.prior_guidance_scale",description:`<strong>prior_guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 4.0) &#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:"prior_guidance_scale"},{anchor:"diffusers.StableUnCLIPPipeline.__call__.prior_latents",description:`<strong>prior_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
embedding generation in the prior denoising process. Can be used to tweak the same generation with
different prompts. If not provided, a latents tensor is generated by sampling using the supplied random
<code>generator</code>.`,name:"prior_latents"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py#L610",returnDescription:`
<p><code>~ pipeline_utils.ImagePipelineOutput</code> if <code>return_dict</code> is True, otherwise a <code>tuple</code>. When returning
a tuple, the first element is a list with the generated images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.19.0/en/api/pipelines/latent_diffusion#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),le=new No({props:{anchor:"diffusers.StableUnCLIPPipeline.__call__.example",$$slots:{default:[al]},$$scope:{ctx:E}}}),Fe=new J({props:{name:"enable_attention_slicing",anchor:"diffusers.StableUnCLIPPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPPipeline.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"}}),ze=new J({props:{name:"disable_attention_slicing",anchor:"diffusers.StableUnCLIPPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1646"}}),Ae=new J({props:{name:"enable_vae_slicing",anchor:"diffusers.StableUnCLIPPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py#L145"}}),De=new J({props:{name:"disable_vae_slicing",anchor:"diffusers.StableUnCLIPPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py#L153"}}),Qe=new J({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableUnCLIPPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPPipeline.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"}}),fe=new Ns({props:{warning:!0,$$slots:{default:[il]},$$scope:{ctx:E}}}),ge=new No({props:{anchor:"diffusers.StableUnCLIPPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[sl]},$$scope:{ctx:E}}}),He=new J({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableUnCLIPPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1605"}}),tt=new J({props:{name:"enable_model_cpu_offload",anchor:"diffusers.StableUnCLIPPipeline.enable_model_cpu_offload",parameters:[{name:"gpu_id",val:" = 0"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py#L160"}}),nt=new J({props:{name:"noise_image_embeddings",anchor:"diffusers.StableUnCLIPPipeline.noise_image_embeddings",parameters:[{name:"image_embeds",val:": Tensor"},{name:"noise_level",val:": int"},{name:"noise",val:": typing.Optional[torch.FloatTensor] = None"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py#L564"}}),it=new xt({}),st=new J({props:{name:"class diffusers.StableUnCLIPImg2ImgPipeline",anchor:"diffusers.StableUnCLIPImg2ImgPipeline",parameters:[{name:"feature_extractor",val:": CLIPImageProcessor"},{name:"image_encoder",val:": CLIPVisionModelWithProjection"},{name:"image_normalizer",val:": StableUnCLIPImageNormalizer"},{name:"image_noising_scheduler",val:": KarrasDiffusionSchedulers"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": CLIPTextModel"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"vae",val:": AutoencoderKL"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPImageProcessor</code>) &#x2014;
Feature extractor for image pre-processing before being encoded.`,name:"feature_extractor"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.image_encoder",description:`<strong>image_encoder</strong> (<code>CLIPVisionModelWithProjection</code>) &#x2014;
CLIP vision model for encoding images.`,name:"image_encoder"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.image_normalizer",description:`<strong>image_normalizer</strong> (<code>StableUnCLIPImageNormalizer</code>) &#x2014;
Used to normalize the predicted image embeddings before the noise is applied and un-normalize the image
embeddings after the noise has been applied.`,name:"image_normalizer"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.image_noising_scheduler",description:`<strong>image_noising_scheduler</strong> (<code>KarrasDiffusionSchedulers</code>) &#x2014;
Noise schedule for adding noise to the predicted image embeddings. The amount of noise to add is determined
by the <code>noise_level</code>.`,name:"image_noising_scheduler"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>~transformers.CLIPTokenizer</code>) &#x2014;
A [<code>~transformers.CLIPTokenizer</code>)].`,name:"tokenizer"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.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 <a href="https://huggingface.co/docs/transformers/v4.31.0/en/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIPTextModel</a> text-encoder.`,name:"text_encoder"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/v0.19.0/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <a href="/docs/diffusers/v0.19.0/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<code>KarrasDiffusionSchedulers</code>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py#L66"}}),lt=new J({props:{name:"__call__",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__",parameters:[{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image] = None"},{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 20"},{name:"guidance_scale",val:": float = 10"},{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:": float = 0.0"},{name:"generator",val:": typing.Optional[torch._C.Generator] = 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:"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:"noise_level",val:": int = 0"},{name:"image_embeds",val:": typing.Optional[torch.FloatTensor] = None"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__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, either <code>prompt_embeds</code> will be
used or prompt is initialized to <code>&quot;&quot;</code>.`,name:"prompt"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code> or <code>PIL.Image.Image</code>) &#x2014;
<code>Image</code> or tensor representing an image batch. The image is encoded to its CLIP embedding which the
<code>unet</code> is conditioned on. The image is <em>not</em> encoded by the <code>vae</code> and then used as the latents in the
denoising process like it is in the standard Stable Diffusion text-guided image variation process.`,name:"image"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 20) &#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.StableUnCLIPImg2ImgPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 10.0) &#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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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 is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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/latent_diffusion#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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.StableUnCLIPImg2ImgPipeline.__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"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.noise_level",description:`<strong>noise_level</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) &#x2014;
The amount of noise to add to the image embeddings. A higher <code>noise_level</code> increases the variance in
the final un-noised images. See <a href="/docs/diffusers/v0.19.0/en/api/pipelines/stable_unclip#diffusers.StableUnCLIPPipeline.noise_image_embeddings">StableUnCLIPPipeline.noise_image_embeddings()</a> for more details.`,name:"noise_level"},{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.image_embeds",description:`<strong>image_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated CLIP embeddings to condition the <code>unet</code> on. These latents are not used in the denoising
process. If you want to provide pre-generated latents, pass them to <code>__call__</code> as <code>latents</code>.`,name:"image_embeds"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py#L578",returnDescription:`
<p><code>~ pipeline_utils.ImagePipelineOutput</code> if <code>return_dict</code> is True, otherwise a <code>tuple</code>. When returning
a tuple, the first element is a list with the generated images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.19.0/en/api/pipelines/latent_diffusion#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),be=new No({props:{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.__call__.example",$$slots:{default:[rl]},$$scope:{ctx:E}}}),dt=new J({props:{name:"enable_attention_slicing",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.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"}}),pt=new J({props:{name:"disable_attention_slicing",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1646"}}),mt=new J({props:{name:"enable_vae_slicing",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py#L148"}}),ft=new J({props:{name:"disable_vae_slicing",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py#L156"}}),ut=new J({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.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"}}),Pe=new Ns({props:{warning:!0,$$slots:{default:[ll]},$$scope:{ctx:E}}}),Ue=new No({props:{anchor:"diffusers.StableUnCLIPImg2ImgPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[dl]},$$scope:{ctx:E}}}),bt=new J({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L1605"}}),It=new J({props:{name:"enable_model_cpu_offload",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.enable_model_cpu_offload",parameters:[{name:"gpu_id",val:" = 0"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py#L163"}}),wt=new J({props:{name:"noise_image_embeddings",anchor:"diffusers.StableUnCLIPImg2ImgPipeline.noise_image_embeddings",parameters:[{name:"image_embeds",val:": Tensor"},{name:"noise_level",val:": int"},{name:"noise",val:": typing.Optional[torch.FloatTensor] = None"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py#L532"}}),$t=new xt({}),Mt=new J({props:{name:"class diffusers.ImagePipelineOutput",anchor:"diffusers.ImagePipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"}],parametersDescription:[{anchor:"diffusers.ImagePipelineOutput.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"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/pipeline_utils.py#L113"}}),{c(){m=o("meta"),U=l(),u=o("h1"),g=o("a"),$=o("span"),_(p.$$.fragment),P=l(),R=o("span"),A=s("Stable unCLIP"),S=l(),V=o("p"),Et=s("Stable unCLIP checkpoints are finetuned from "),Lt=o("a"),zo=s("Stable Diffusion 2.1"),Ro=s(` checkpoints to condition on CLIP image embeddings.
Stable unCLIP still conditions on text embeddings. Given the two separate conditionings, stable unCLIP can be used
for text guided image variation. When combined with an unCLIP prior, it can also be used for full text to image generation.`),Fn=l(),Zt=o("p"),Ao=s("The abstract from the paper is:"),zn=l(),St=o("p"),Xt=o("em"),Do=s("Contrastive models like CLIP have been shown to learn robust representations of images that capture both semantics and style. To leverage these representations for image generation, we propose a two-stage model: a prior that generates a CLIP image embedding given a text caption, and a decoder that generates an image conditioned on the image embedding. We show that explicitly generating image representations improves image diversity with minimal loss in photorealism and caption similarity. Our decoders conditioned on image representations can also produce variations of an image that preserve both its semantics and style, while varying the non-essential details absent from the image representation. Moreover, the joint embedding space of CLIP enables language-guided image manipulations in a zero-shot fashion. We use diffusion models for the decoder and experiment with both autoregressive and diffusion models for the prior, finding that the latter are computationally more efficient and produce higher-quality samples."),Rn=l(),D=o("h2"),ne=o("a"),Nt=o("span"),_(Ze.$$.fragment),Yo=l(),Ft=o("span"),Qo=s("Tips"),An=l(),W=o("p"),qo=s("Stable unCLIP takes  "),zt=o("code"),Oo=s("noise_level"),Ho=s(` as input during inference which determines how much noise is added
to the image embeddings. A higher `),Rt=o("code"),Ko=s("noise_level"),ea=s(` increases variation in the final un-noised images. By default,
we do not add any additional noise to the image embeddings (`),At=o("code"),ta=s("noise_level = 0"),na=s(")."),Dn=l(),Y=o("h3"),oe=o("a"),Dt=o("span"),_(Se.$$.fragment),oa=l(),Yt=o("span"),aa=s("Text-to-Image Generation"),Yn=s(`

Stable unCLIP can be leveraged for text-to-image generation by pipelining it with the prior model of KakaoBrain's open source DALL-E 2 replication [Karlo](https://huggingface.co/kakaobrain/karlo-v1-alpha)

	`),_(We.$$.fragment),Qn=l(),_(ae.$$.fragment),qn=l(),Q=o("h3"),ie=o("a"),Qt=o("span"),_(ke.$$.fragment),ia=l(),qt=o("span"),sa=s("Text guided Image-to-Image Variation"),On=l(),_(je.$$.fragment),Hn=l(),se=o("p"),ra=s("Optionally, you can also pass a prompt to "),Ot=o("code"),la=s("pipe"),da=s(" such as:"),Kn=l(),_(Ge.$$.fragment),eo=l(),q=o("h2"),re=o("a"),Ht=o("span"),_(Be.$$.fragment),pa=l(),Kt=o("span"),ca=s("StableUnCLIPPipeline"),to=l(),M=o("div"),_(Ve.$$.fragment),ma=l(),en=o("p"),fa=s("Pipeline for text-to-image generation using stable unCLIP."),ga=l(),Xe=o("p"),ua=s("This model inherits from "),Wt=o("a"),ha=s("DiffusionPipeline"),_a=s(`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),ba=l(),F=o("div"),_(Ne.$$.fragment),va=l(),tn=o("p"),ya=s("The call function to the pipeline for generation."),Ia=l(),_(le.$$.fragment),wa=l(),de=o("div"),_(Fe.$$.fragment),Pa=l(),nn=o("p"),Ua=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.`),$a=l(),pe=o("div"),_(ze.$$.fragment),Ma=l(),Re=o("p"),Ta=s("Disable sliced attention computation. If "),on=o("code"),Ca=s("enable_attention_slicing"),xa=s(` was previously called, attention is
computed in one step.`),Ja=l(),ce=o("div"),_(Ae.$$.fragment),Ea=l(),an=o("p"),La=s(`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.`),Za=l(),me=o("div"),_(De.$$.fragment),Sa=l(),Ye=o("p"),Wa=s("Disable sliced VAE decoding. If "),sn=o("code"),ka=s("enable_vae_slicing"),ja=s(` was previously enabled, this method will go back to
computing decoding in one step.`),Ga=l(),k=o("div"),_(Qe.$$.fragment),Ba=l(),qe=o("p"),Va=s("Enable memory efficient attention from "),Oe=o("a"),Xa=s("xFormers"),Na=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.`),Fa=l(),_(fe.$$.fragment),za=l(),_(ge.$$.fragment),Ra=l(),ue=o("div"),_(He.$$.fragment),Aa=l(),Ke=o("p"),Da=s("Disable memory efficient attention from "),et=o("a"),Ya=s("xFormers"),Qa=s("."),qa=l(),he=o("div"),_(tt.$$.fragment),Oa=l(),X=o("p"),Ha=s(`Offload all models to CPU to reduce memory usage with a low impact on performance. Moves one whole model at a
time to the GPU when its `),rn=o("code"),Ka=s("forward"),ei=s(` method is called, and the model remains in GPU until the next model runs.
Memory savings are lower than using `),ln=o("code"),ti=s("enable_sequential_cpu_offload"),ni=s(`, but performance is much better due to the
iterative execution of the `),dn=o("code"),oi=s("unet"),ai=s("."),ii=l(),L=o("div"),_(nt.$$.fragment),si=l(),O=o("p"),ri=s("Add noise to the image embeddings. The amount of noise is controlled by a "),pn=o("code"),li=s("noise_level"),di=s(` input. A higher
`),cn=o("code"),pi=s("noise_level"),ci=s(" increases the variance in the final un-noised images."),mi=l(),mn=o("p"),fi=s("The noise is applied in two ways:"),gi=l(),ot=o("ol"),fn=o("li"),ui=s("A noise schedule is applied directly to the embeddings."),hi=l(),gn=o("li"),_i=s("A vector of sinusoidal time embeddings are appended to the output."),bi=l(),at=o("p"),vi=s("In both cases, the amount of noise is controlled by the same "),un=o("code"),yi=s("noise_level"),Ii=s("."),wi=l(),hn=o("p"),Pi=s("The embeddings are normalized before the noise is applied and un-normalized after the noise is applied."),no=l(),H=o("h2"),_e=o("a"),_n=o("span"),_(it.$$.fragment),Ui=l(),bn=o("span"),$i=s("StableUnCLIPImg2ImgPipeline"),oo=l(),T=o("div"),_(st.$$.fragment),Mi=l(),vn=o("p"),Ti=s("Pipeline for text-guided image-to-image generation using stable unCLIP."),Ci=l(),rt=o("p"),xi=s("This model inherits from "),kt=o("a"),Ji=s("DiffusionPipeline"),Ei=s(`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),Li=l(),z=o("div"),_(lt.$$.fragment),Zi=l(),yn=o("p"),Si=s("The call function to the pipeline for generation."),Wi=l(),_(be.$$.fragment),ki=l(),ve=o("div"),_(dt.$$.fragment),ji=l(),In=o("p"),Gi=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.`),Bi=l(),ye=o("div"),_(pt.$$.fragment),Vi=l(),ct=o("p"),Xi=s("Disable sliced attention computation. If "),wn=o("code"),Ni=s("enable_attention_slicing"),Fi=s(` was previously called, attention is
computed in one step.`),zi=l(),Ie=o("div"),_(mt.$$.fragment),Ri=l(),Pn=o("p"),Ai=s(`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.`),Di=l(),we=o("div"),_(ft.$$.fragment),Yi=l(),gt=o("p"),Qi=s("Disable sliced VAE decoding. If "),Un=o("code"),qi=s("enable_vae_slicing"),Oi=s(` was previously enabled, this method will go back to
computing decoding in one step.`),Hi=l(),j=o("div"),_(ut.$$.fragment),Ki=l(),ht=o("p"),es=s("Enable memory efficient attention from "),_t=o("a"),ts=s("xFormers"),ns=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.`),os=l(),_(Pe.$$.fragment),as=l(),_(Ue.$$.fragment),is=l(),$e=o("div"),_(bt.$$.fragment),ss=l(),vt=o("p"),rs=s("Disable memory efficient attention from "),yt=o("a"),ls=s("xFormers"),ds=s("."),ps=l(),Me=o("div"),_(It.$$.fragment),cs=l(),N=o("p"),ms=s(`Offload all models to CPU to reduce memory usage with a low impact on performance. Moves one whole model at a
time to the GPU when its `),$n=o("code"),fs=s("forward"),gs=s(` method is called, and the model remains in GPU until the next model runs.
Memory savings are lower than using `),Mn=o("code"),us=s("enable_sequential_cpu_offload"),hs=s(`, but performance is much better due to the
iterative execution of the `),Tn=o("code"),_s=s("unet"),bs=s("."),vs=l(),Z=o("div"),_(wt.$$.fragment),ys=l(),K=o("p"),Is=s("Add noise to the image embeddings. The amount of noise is controlled by a "),Cn=o("code"),ws=s("noise_level"),Ps=s(` input. A higher
`),xn=o("code"),Us=s("noise_level"),$s=s(" increases the variance in the final un-noised images."),Ms=l(),Jn=o("p"),Ts=s("The noise is applied in two ways:"),Cs=l(),Pt=o("ol"),En=o("li"),xs=s("A noise schedule is applied directly to the embeddings."),Js=l(),Ln=o("li"),Es=s("A vector of sinusoidal time embeddings are appended to the output."),Ls=l(),Ut=o("p"),Zs=s("In both cases, the amount of noise is controlled by the same "),Zn=o("code"),Ss=s("noise_level"),Ws=s("."),ks=l(),Sn=o("p"),js=s("The embeddings are normalized before the noise is applied and un-normalized after the noise is applied."),ao=l(),ee=o("h2"),Te=o("a"),Wn=o("span"),_($t.$$.fragment),Gs=l(),kn=o("span"),Bs=s("ImagePipelineOutput"),io=l(),te=o("div"),_(Mt.$$.fragment),Vs=l(),jn=o("p"),Xs=s("Output class for image pipelines."),this.h()},l(t){const f=tl('[data-svelte="svelte-1phssyn"]',document.head);m=a(f,"META",{name:!0,content:!0}),f.forEach(n),U=d(t),u=a(t,"H1",{class:!0});var Tt=i(u);g=a(Tt,"A",{id:!0,class:!0,href:!0});var Gn=i(g);$=a(Gn,"SPAN",{});var Bn=i($);b(p.$$.fragment,Bn),Bn.forEach(n),Gn.forEach(n),P=d(Tt),R=a(Tt,"SPAN",{});var Vn=i(R);A=r(Vn,"Stable unCLIP"),Vn.forEach(n),Tt.forEach(n),S=d(t),V=a(t,"P",{});var Ct=i(V);Et=r(Ct,"Stable unCLIP checkpoints are finetuned from "),Lt=a(Ct,"A",{href:!0});var Xn=i(Lt);zo=r(Xn,"Stable Diffusion 2.1"),Xn.forEach(n),Ro=r(Ct,` checkpoints to condition on CLIP image embeddings.
Stable unCLIP still conditions on text embeddings. Given the two separate conditionings, stable unCLIP can be used
for text guided image variation. When combined with an unCLIP prior, it can also be used for full text to image generation.`),Ct.forEach(n),Fn=d(t),Zt=a(t,"P",{});var Nn=i(Zt);Ao=r(Nn,"The abstract from the paper is:"),Nn.forEach(n),zn=d(t),St=a(t,"P",{});var Fs=i(St);Xt=a(Fs,"EM",{});var zs=i(Xt);Do=r(zs,"Contrastive models like CLIP have been shown to learn robust representations of images that capture both semantics and style. To leverage these representations for image generation, we propose a two-stage model: a prior that generates a CLIP image embedding given a text caption, and a decoder that generates an image conditioned on the image embedding. We show that explicitly generating image representations improves image diversity with minimal loss in photorealism and caption similarity. Our decoders conditioned on image representations can also produce variations of an image that preserve both its semantics and style, while varying the non-essential details absent from the image representation. Moreover, the joint embedding space of CLIP enables language-guided image manipulations in a zero-shot fashion. We use diffusion models for the decoder and experiment with both autoregressive and diffusion models for the prior, finding that the latter are computationally more efficient and produce higher-quality samples."),zs.forEach(n),Fs.forEach(n),Rn=d(t),D=a(t,"H2",{class:!0});var ro=i(D);ne=a(ro,"A",{id:!0,class:!0,href:!0});var Rs=i(ne);Nt=a(Rs,"SPAN",{});var As=i(Nt);b(Ze.$$.fragment,As),As.forEach(n),Rs.forEach(n),Yo=d(ro),Ft=a(ro,"SPAN",{});var Ds=i(Ft);Qo=r(Ds,"Tips"),Ds.forEach(n),ro.forEach(n),An=d(t),W=a(t,"P",{});var Ce=i(W);qo=r(Ce,"Stable unCLIP takes  "),zt=a(Ce,"CODE",{});var Ys=i(zt);Oo=r(Ys,"noise_level"),Ys.forEach(n),Ho=r(Ce,` as input during inference which determines how much noise is added
to the image embeddings. A higher `),Rt=a(Ce,"CODE",{});var Qs=i(Rt);Ko=r(Qs,"noise_level"),Qs.forEach(n),ea=r(Ce,` increases variation in the final un-noised images. By default,
we do not add any additional noise to the image embeddings (`),At=a(Ce,"CODE",{});var qs=i(At);ta=r(qs,"noise_level = 0"),qs.forEach(n),na=r(Ce,")."),Ce.forEach(n),Dn=d(t),Y=a(t,"H3",{class:!0});var lo=i(Y);oe=a(lo,"A",{id:!0,class:!0,href:!0});var Os=i(oe);Dt=a(Os,"SPAN",{});var Hs=i(Dt);b(Se.$$.fragment,Hs),Hs.forEach(n),Os.forEach(n),oa=d(lo),Yt=a(lo,"SPAN",{});var Ks=i(Yt);aa=r(Ks,"Text-to-Image Generation"),Ks.forEach(n),lo.forEach(n),Yn=r(t,`

Stable unCLIP can be leveraged for text-to-image generation by pipelining it with the prior model of KakaoBrain's open source DALL-E 2 replication [Karlo](https://huggingface.co/kakaobrain/karlo-v1-alpha)

	`),b(We.$$.fragment,t),Qn=d(t),b(ae.$$.fragment,t),qn=d(t),Q=a(t,"H3",{class:!0});var po=i(Q);ie=a(po,"A",{id:!0,class:!0,href:!0});var er=i(ie);Qt=a(er,"SPAN",{});var tr=i(Qt);b(ke.$$.fragment,tr),tr.forEach(n),er.forEach(n),ia=d(po),qt=a(po,"SPAN",{});var nr=i(qt);sa=r(nr,"Text guided Image-to-Image Variation"),nr.forEach(n),po.forEach(n),On=d(t),b(je.$$.fragment,t),Hn=d(t),se=a(t,"P",{});var co=i(se);ra=r(co,"Optionally, you can also pass a prompt to "),Ot=a(co,"CODE",{});var or=i(Ot);la=r(or,"pipe"),or.forEach(n),da=r(co," such as:"),co.forEach(n),Kn=d(t),b(Ge.$$.fragment,t),eo=d(t),q=a(t,"H2",{class:!0});var mo=i(q);re=a(mo,"A",{id:!0,class:!0,href:!0});var ar=i(re);Ht=a(ar,"SPAN",{});var ir=i(Ht);b(Be.$$.fragment,ir),ir.forEach(n),ar.forEach(n),pa=d(mo),Kt=a(mo,"SPAN",{});var sr=i(Kt);ca=r(sr,"StableUnCLIPPipeline"),sr.forEach(n),mo.forEach(n),to=d(t),M=a(t,"DIV",{class:!0});var C=i(M);b(Ve.$$.fragment,C),ma=d(C),en=a(C,"P",{});var rr=i(en);fa=r(rr,"Pipeline for text-to-image generation using stable unCLIP."),rr.forEach(n),ga=d(C),Xe=a(C,"P",{});var fo=i(Xe);ua=r(fo,"This model inherits from "),Wt=a(fo,"A",{href:!0});var lr=i(Wt);ha=r(lr,"DiffusionPipeline"),lr.forEach(n),_a=r(fo,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),fo.forEach(n),ba=d(C),F=a(C,"DIV",{class:!0});var jt=i(F);b(Ne.$$.fragment,jt),va=d(jt),tn=a(jt,"P",{});var dr=i(tn);ya=r(dr,"The call function to the pipeline for generation."),dr.forEach(n),Ia=d(jt),b(le.$$.fragment,jt),jt.forEach(n),wa=d(C),de=a(C,"DIV",{class:!0});var go=i(de);b(Fe.$$.fragment,go),Pa=d(go),nn=a(go,"P",{});var pr=i(nn);Ua=r(pr,`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.`),pr.forEach(n),go.forEach(n),$a=d(C),pe=a(C,"DIV",{class:!0});var uo=i(pe);b(ze.$$.fragment,uo),Ma=d(uo),Re=a(uo,"P",{});var ho=i(Re);Ta=r(ho,"Disable sliced attention computation. If "),on=a(ho,"CODE",{});var cr=i(on);Ca=r(cr,"enable_attention_slicing"),cr.forEach(n),xa=r(ho,` was previously called, attention is
computed in one step.`),ho.forEach(n),uo.forEach(n),Ja=d(C),ce=a(C,"DIV",{class:!0});var _o=i(ce);b(Ae.$$.fragment,_o),Ea=d(_o),an=a(_o,"P",{});var mr=i(an);La=r(mr,`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.`),mr.forEach(n),_o.forEach(n),Za=d(C),me=a(C,"DIV",{class:!0});var bo=i(me);b(De.$$.fragment,bo),Sa=d(bo),Ye=a(bo,"P",{});var vo=i(Ye);Wa=r(vo,"Disable sliced VAE decoding. If "),sn=a(vo,"CODE",{});var fr=i(sn);ka=r(fr,"enable_vae_slicing"),fr.forEach(n),ja=r(vo,` was previously enabled, this method will go back to
computing decoding in one step.`),vo.forEach(n),bo.forEach(n),Ga=d(C),k=a(C,"DIV",{class:!0});var xe=i(k);b(Qe.$$.fragment,xe),Ba=d(xe),qe=a(xe,"P",{});var yo=i(qe);Va=r(yo,"Enable memory efficient attention from "),Oe=a(yo,"A",{href:!0,rel:!0});var gr=i(Oe);Xa=r(gr,"xFormers"),gr.forEach(n),Na=r(yo,`. 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.`),yo.forEach(n),Fa=d(xe),b(fe.$$.fragment,xe),za=d(xe),b(ge.$$.fragment,xe),xe.forEach(n),Ra=d(C),ue=a(C,"DIV",{class:!0});var Io=i(ue);b(He.$$.fragment,Io),Aa=d(Io),Ke=a(Io,"P",{});var wo=i(Ke);Da=r(wo,"Disable memory efficient attention from "),et=a(wo,"A",{href:!0,rel:!0});var ur=i(et);Ya=r(ur,"xFormers"),ur.forEach(n),Qa=r(wo,"."),wo.forEach(n),Io.forEach(n),qa=d(C),he=a(C,"DIV",{class:!0});var Po=i(he);b(tt.$$.fragment,Po),Oa=d(Po),X=a(Po,"P",{});var Je=i(X);Ha=r(Je,`Offload all models to CPU to reduce memory usage with a low impact on performance. Moves one whole model at a
time to the GPU when its `),rn=a(Je,"CODE",{});var hr=i(rn);Ka=r(hr,"forward"),hr.forEach(n),ei=r(Je,` method is called, and the model remains in GPU until the next model runs.
Memory savings are lower than using `),ln=a(Je,"CODE",{});var _r=i(ln);ti=r(_r,"enable_sequential_cpu_offload"),_r.forEach(n),ni=r(Je,`, but performance is much better due to the
iterative execution of the `),dn=a(Je,"CODE",{});var br=i(dn);oi=r(br,"unet"),br.forEach(n),ai=r(Je,"."),Je.forEach(n),Po.forEach(n),ii=d(C),L=a(C,"DIV",{class:!0});var G=i(L);b(nt.$$.fragment,G),si=d(G),O=a(G,"P",{});var Gt=i(O);ri=r(Gt,"Add noise to the image embeddings. The amount of noise is controlled by a "),pn=a(Gt,"CODE",{});var vr=i(pn);li=r(vr,"noise_level"),vr.forEach(n),di=r(Gt,` input. A higher
`),cn=a(Gt,"CODE",{});var yr=i(cn);pi=r(yr,"noise_level"),yr.forEach(n),ci=r(Gt," increases the variance in the final un-noised images."),Gt.forEach(n),mi=d(G),mn=a(G,"P",{});var Ir=i(mn);fi=r(Ir,"The noise is applied in two ways:"),Ir.forEach(n),gi=d(G),ot=a(G,"OL",{});var Uo=i(ot);fn=a(Uo,"LI",{});var wr=i(fn);ui=r(wr,"A noise schedule is applied directly to the embeddings."),wr.forEach(n),hi=d(Uo),gn=a(Uo,"LI",{});var Pr=i(gn);_i=r(Pr,"A vector of sinusoidal time embeddings are appended to the output."),Pr.forEach(n),Uo.forEach(n),bi=d(G),at=a(G,"P",{});var $o=i(at);vi=r($o,"In both cases, the amount of noise is controlled by the same "),un=a($o,"CODE",{});var Ur=i(un);yi=r(Ur,"noise_level"),Ur.forEach(n),Ii=r($o,"."),$o.forEach(n),wi=d(G),hn=a(G,"P",{});var $r=i(hn);Pi=r($r,"The embeddings are normalized before the noise is applied and un-normalized after the noise is applied."),$r.forEach(n),G.forEach(n),C.forEach(n),no=d(t),H=a(t,"H2",{class:!0});var Mo=i(H);_e=a(Mo,"A",{id:!0,class:!0,href:!0});var Mr=i(_e);_n=a(Mr,"SPAN",{});var Tr=i(_n);b(it.$$.fragment,Tr),Tr.forEach(n),Mr.forEach(n),Ui=d(Mo),bn=a(Mo,"SPAN",{});var Cr=i(bn);$i=r(Cr,"StableUnCLIPImg2ImgPipeline"),Cr.forEach(n),Mo.forEach(n),oo=d(t),T=a(t,"DIV",{class:!0});var x=i(T);b(st.$$.fragment,x),Mi=d(x),vn=a(x,"P",{});var xr=i(vn);Ti=r(xr,"Pipeline for text-guided image-to-image generation using stable unCLIP."),xr.forEach(n),Ci=d(x),rt=a(x,"P",{});var To=i(rt);xi=r(To,"This model inherits from "),kt=a(To,"A",{href:!0});var Jr=i(kt);Ji=r(Jr,"DiffusionPipeline"),Jr.forEach(n),Ei=r(To,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),To.forEach(n),Li=d(x),z=a(x,"DIV",{class:!0});var Bt=i(z);b(lt.$$.fragment,Bt),Zi=d(Bt),yn=a(Bt,"P",{});var Er=i(yn);Si=r(Er,"The call function to the pipeline for generation."),Er.forEach(n),Wi=d(Bt),b(be.$$.fragment,Bt),Bt.forEach(n),ki=d(x),ve=a(x,"DIV",{class:!0});var Co=i(ve);b(dt.$$.fragment,Co),ji=d(Co),In=a(Co,"P",{});var Lr=i(In);Gi=r(Lr,`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.`),Lr.forEach(n),Co.forEach(n),Bi=d(x),ye=a(x,"DIV",{class:!0});var xo=i(ye);b(pt.$$.fragment,xo),Vi=d(xo),ct=a(xo,"P",{});var Jo=i(ct);Xi=r(Jo,"Disable sliced attention computation. If "),wn=a(Jo,"CODE",{});var Zr=i(wn);Ni=r(Zr,"enable_attention_slicing"),Zr.forEach(n),Fi=r(Jo,` was previously called, attention is
computed in one step.`),Jo.forEach(n),xo.forEach(n),zi=d(x),Ie=a(x,"DIV",{class:!0});var Eo=i(Ie);b(mt.$$.fragment,Eo),Ri=d(Eo),Pn=a(Eo,"P",{});var Sr=i(Pn);Ai=r(Sr,`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.`),Sr.forEach(n),Eo.forEach(n),Di=d(x),we=a(x,"DIV",{class:!0});var Lo=i(we);b(ft.$$.fragment,Lo),Yi=d(Lo),gt=a(Lo,"P",{});var Zo=i(gt);Qi=r(Zo,"Disable sliced VAE decoding. If "),Un=a(Zo,"CODE",{});var Wr=i(Un);qi=r(Wr,"enable_vae_slicing"),Wr.forEach(n),Oi=r(Zo,` was previously enabled, this method will go back to
computing decoding in one step.`),Zo.forEach(n),Lo.forEach(n),Hi=d(x),j=a(x,"DIV",{class:!0});var Ee=i(j);b(ut.$$.fragment,Ee),Ki=d(Ee),ht=a(Ee,"P",{});var So=i(ht);es=r(So,"Enable memory efficient attention from "),_t=a(So,"A",{href:!0,rel:!0});var kr=i(_t);ts=r(kr,"xFormers"),kr.forEach(n),ns=r(So,`. 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.`),So.forEach(n),os=d(Ee),b(Pe.$$.fragment,Ee),as=d(Ee),b(Ue.$$.fragment,Ee),Ee.forEach(n),is=d(x),$e=a(x,"DIV",{class:!0});var Wo=i($e);b(bt.$$.fragment,Wo),ss=d(Wo),vt=a(Wo,"P",{});var ko=i(vt);rs=r(ko,"Disable memory efficient attention from "),yt=a(ko,"A",{href:!0,rel:!0});var jr=i(yt);ls=r(jr,"xFormers"),jr.forEach(n),ds=r(ko,"."),ko.forEach(n),Wo.forEach(n),ps=d(x),Me=a(x,"DIV",{class:!0});var jo=i(Me);b(It.$$.fragment,jo),cs=d(jo),N=a(jo,"P",{});var Le=i(N);ms=r(Le,`Offload all models to CPU to reduce memory usage with a low impact on performance. Moves one whole model at a
time to the GPU when its `),$n=a(Le,"CODE",{});var Gr=i($n);fs=r(Gr,"forward"),Gr.forEach(n),gs=r(Le,` method is called, and the model remains in GPU until the next model runs.
Memory savings are lower than using `),Mn=a(Le,"CODE",{});var Br=i(Mn);us=r(Br,"enable_sequential_cpu_offload"),Br.forEach(n),hs=r(Le,`, but performance is much better due to the
iterative execution of the `),Tn=a(Le,"CODE",{});var Vr=i(Tn);_s=r(Vr,"unet"),Vr.forEach(n),bs=r(Le,"."),Le.forEach(n),jo.forEach(n),vs=d(x),Z=a(x,"DIV",{class:!0});var B=i(Z);b(wt.$$.fragment,B),ys=d(B),K=a(B,"P",{});var Vt=i(K);Is=r(Vt,"Add noise to the image embeddings. The amount of noise is controlled by a "),Cn=a(Vt,"CODE",{});var Xr=i(Cn);ws=r(Xr,"noise_level"),Xr.forEach(n),Ps=r(Vt,` input. A higher
`),xn=a(Vt,"CODE",{});var Nr=i(xn);Us=r(Nr,"noise_level"),Nr.forEach(n),$s=r(Vt," increases the variance in the final un-noised images."),Vt.forEach(n),Ms=d(B),Jn=a(B,"P",{});var Fr=i(Jn);Ts=r(Fr,"The noise is applied in two ways:"),Fr.forEach(n),Cs=d(B),Pt=a(B,"OL",{});var Go=i(Pt);En=a(Go,"LI",{});var zr=i(En);xs=r(zr,"A noise schedule is applied directly to the embeddings."),zr.forEach(n),Js=d(Go),Ln=a(Go,"LI",{});var Rr=i(Ln);Es=r(Rr,"A vector of sinusoidal time embeddings are appended to the output."),Rr.forEach(n),Go.forEach(n),Ls=d(B),Ut=a(B,"P",{});var Bo=i(Ut);Zs=r(Bo,"In both cases, the amount of noise is controlled by the same "),Zn=a(Bo,"CODE",{});var Ar=i(Zn);Ss=r(Ar,"noise_level"),Ar.forEach(n),Ws=r(Bo,"."),Bo.forEach(n),ks=d(B),Sn=a(B,"P",{});var Dr=i(Sn);js=r(Dr,"The embeddings are normalized before the noise is applied and un-normalized after the noise is applied."),Dr.forEach(n),B.forEach(n),x.forEach(n),ao=d(t),ee=a(t,"H2",{class:!0});var Vo=i(ee);Te=a(Vo,"A",{id:!0,class:!0,href:!0});var Yr=i(Te);Wn=a(Yr,"SPAN",{});var Qr=i(Wn);b($t.$$.fragment,Qr),Qr.forEach(n),Yr.forEach(n),Gs=d(Vo),kn=a(Vo,"SPAN",{});var qr=i(kn);Bs=r(qr,"ImagePipelineOutput"),qr.forEach(n),Vo.forEach(n),io=d(t),te=a(t,"DIV",{class:!0});var Xo=i(te);b(Mt.$$.fragment,Xo),Vs=d(Xo),jn=a(Xo,"P",{});var Or=i(jn);Xs=r(Or,"Output class for image pipelines."),Or.forEach(n),Xo.forEach(n),this.h()},h(){c(m,"name","hf:doc:metadata"),c(m,"content",JSON.stringify(cl)),c(g,"id","stable-unclip"),c(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"),c(g,"href","#stable-unclip"),c(u,"class","relative group"),c(Lt,"href","./stable_diffusion/stable_diffusion_2"),c(ne,"id","tips"),c(ne,"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"),c(ne,"href","#tips"),c(D,"class","relative group"),c(oe,"id","texttoimage-generation"),c(oe,"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"),c(oe,"href","#texttoimage-generation"),c(Y,"class","relative group"),c(ie,"id","text-guided-imagetoimage-variation"),c(ie,"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"),c(ie,"href","#text-guided-imagetoimage-variation"),c(Q,"class","relative group"),c(re,"id","diffusers.StableUnCLIPPipeline"),c(re,"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"),c(re,"href","#diffusers.StableUnCLIPPipeline"),c(q,"class","relative group"),c(Wt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline"),c(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Oe,"href","https://facebookresearch.github.io/xformers/"),c(Oe,"rel","nofollow"),c(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(et,"href","https://facebookresearch.github.io/xformers/"),c(et,"rel","nofollow"),c(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(_e,"id","diffusers.StableUnCLIPImg2ImgPipeline"),c(_e,"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"),c(_e,"href","#diffusers.StableUnCLIPImg2ImgPipeline"),c(H,"class","relative group"),c(kt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline"),c(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(_t,"href","https://facebookresearch.github.io/xformers/"),c(_t,"rel","nofollow"),c(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(yt,"href","https://facebookresearch.github.io/xformers/"),c(yt,"rel","nofollow"),c($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Te,"id","diffusers.ImagePipelineOutput"),c(Te,"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"),c(Te,"href","#diffusers.ImagePipelineOutput"),c(ee,"class","relative group"),c(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,f){e(document.head,m),h(t,U,f),h(t,u,f),e(u,g),e(g,$),v(p,$,null),e(u,P),e(u,R),e(R,A),h(t,S,f),h(t,V,f),e(V,Et),e(V,Lt),e(Lt,zo),e(V,Ro),h(t,Fn,f),h(t,Zt,f),e(Zt,Ao),h(t,zn,f),h(t,St,f),e(St,Xt),e(Xt,Do),h(t,Rn,f),h(t,D,f),e(D,ne),e(ne,Nt),v(Ze,Nt,null),e(D,Yo),e(D,Ft),e(Ft,Qo),h(t,An,f),h(t,W,f),e(W,qo),e(W,zt),e(zt,Oo),e(W,Ho),e(W,Rt),e(Rt,Ko),e(W,ea),e(W,At),e(At,ta),e(W,na),h(t,Dn,f),h(t,Y,f),e(Y,oe),e(oe,Dt),v(Se,Dt,null),e(Y,oa),e(Y,Yt),e(Yt,aa),h(t,Yn,f),v(We,t,f),h(t,Qn,f),v(ae,t,f),h(t,qn,f),h(t,Q,f),e(Q,ie),e(ie,Qt),v(ke,Qt,null),e(Q,ia),e(Q,qt),e(qt,sa),h(t,On,f),v(je,t,f),h(t,Hn,f),h(t,se,f),e(se,ra),e(se,Ot),e(Ot,la),e(se,da),h(t,Kn,f),v(Ge,t,f),h(t,eo,f),h(t,q,f),e(q,re),e(re,Ht),v(Be,Ht,null),e(q,pa),e(q,Kt),e(Kt,ca),h(t,to,f),h(t,M,f),v(Ve,M,null),e(M,ma),e(M,en),e(en,fa),e(M,ga),e(M,Xe),e(Xe,ua),e(Xe,Wt),e(Wt,ha),e(Xe,_a),e(M,ba),e(M,F),v(Ne,F,null),e(F,va),e(F,tn),e(tn,ya),e(F,Ia),v(le,F,null),e(M,wa),e(M,de),v(Fe,de,null),e(de,Pa),e(de,nn),e(nn,Ua),e(M,$a),e(M,pe),v(ze,pe,null),e(pe,Ma),e(pe,Re),e(Re,Ta),e(Re,on),e(on,Ca),e(Re,xa),e(M,Ja),e(M,ce),v(Ae,ce,null),e(ce,Ea),e(ce,an),e(an,La),e(M,Za),e(M,me),v(De,me,null),e(me,Sa),e(me,Ye),e(Ye,Wa),e(Ye,sn),e(sn,ka),e(Ye,ja),e(M,Ga),e(M,k),v(Qe,k,null),e(k,Ba),e(k,qe),e(qe,Va),e(qe,Oe),e(Oe,Xa),e(qe,Na),e(k,Fa),v(fe,k,null),e(k,za),v(ge,k,null),e(M,Ra),e(M,ue),v(He,ue,null),e(ue,Aa),e(ue,Ke),e(Ke,Da),e(Ke,et),e(et,Ya),e(Ke,Qa),e(M,qa),e(M,he),v(tt,he,null),e(he,Oa),e(he,X),e(X,Ha),e(X,rn),e(rn,Ka),e(X,ei),e(X,ln),e(ln,ti),e(X,ni),e(X,dn),e(dn,oi),e(X,ai),e(M,ii),e(M,L),v(nt,L,null),e(L,si),e(L,O),e(O,ri),e(O,pn),e(pn,li),e(O,di),e(O,cn),e(cn,pi),e(O,ci),e(L,mi),e(L,mn),e(mn,fi),e(L,gi),e(L,ot),e(ot,fn),e(fn,ui),e(ot,hi),e(ot,gn),e(gn,_i),e(L,bi),e(L,at),e(at,vi),e(at,un),e(un,yi),e(at,Ii),e(L,wi),e(L,hn),e(hn,Pi),h(t,no,f),h(t,H,f),e(H,_e),e(_e,_n),v(it,_n,null),e(H,Ui),e(H,bn),e(bn,$i),h(t,oo,f),h(t,T,f),v(st,T,null),e(T,Mi),e(T,vn),e(vn,Ti),e(T,Ci),e(T,rt),e(rt,xi),e(rt,kt),e(kt,Ji),e(rt,Ei),e(T,Li),e(T,z),v(lt,z,null),e(z,Zi),e(z,yn),e(yn,Si),e(z,Wi),v(be,z,null),e(T,ki),e(T,ve),v(dt,ve,null),e(ve,ji),e(ve,In),e(In,Gi),e(T,Bi),e(T,ye),v(pt,ye,null),e(ye,Vi),e(ye,ct),e(ct,Xi),e(ct,wn),e(wn,Ni),e(ct,Fi),e(T,zi),e(T,Ie),v(mt,Ie,null),e(Ie,Ri),e(Ie,Pn),e(Pn,Ai),e(T,Di),e(T,we),v(ft,we,null),e(we,Yi),e(we,gt),e(gt,Qi),e(gt,Un),e(Un,qi),e(gt,Oi),e(T,Hi),e(T,j),v(ut,j,null),e(j,Ki),e(j,ht),e(ht,es),e(ht,_t),e(_t,ts),e(ht,ns),e(j,os),v(Pe,j,null),e(j,as),v(Ue,j,null),e(T,is),e(T,$e),v(bt,$e,null),e($e,ss),e($e,vt),e(vt,rs),e(vt,yt),e(yt,ls),e(vt,ds),e(T,ps),e(T,Me),v(It,Me,null),e(Me,cs),e(Me,N),e(N,ms),e(N,$n),e($n,fs),e(N,gs),e(N,Mn),e(Mn,us),e(N,hs),e(N,Tn),e(Tn,_s),e(N,bs),e(T,vs),e(T,Z),v(wt,Z,null),e(Z,ys),e(Z,K),e(K,Is),e(K,Cn),e(Cn,ws),e(K,Ps),e(K,xn),e(xn,Us),e(K,$s),e(Z,Ms),e(Z,Jn),e(Jn,Ts),e(Z,Cs),e(Z,Pt),e(Pt,En),e(En,xs),e(Pt,Js),e(Pt,Ln),e(Ln,Es),e(Z,Ls),e(Z,Ut),e(Ut,Zs),e(Ut,Zn),e(Zn,Ss),e(Ut,Ws),e(Z,ks),e(Z,Sn),e(Sn,js),h(t,ao,f),h(t,ee,f),e(ee,Te),e(Te,Wn),v($t,Wn,null),e(ee,Gs),e(ee,kn),e(kn,Bs),h(t,io,f),h(t,te,f),v(Mt,te,null),e(te,Vs),e(te,jn),e(jn,Xs),so=!0},p(t,[f]){const Tt={};f&2&&(Tt.$$scope={dirty:f,ctx:t}),ae.$set(Tt);const Gn={};f&2&&(Gn.$$scope={dirty:f,ctx:t}),le.$set(Gn);const Bn={};f&2&&(Bn.$$scope={dirty:f,ctx:t}),fe.$set(Bn);const Vn={};f&2&&(Vn.$$scope={dirty:f,ctx:t}),ge.$set(Vn);const Ct={};f&2&&(Ct.$$scope={dirty:f,ctx:t}),be.$set(Ct);const Xn={};f&2&&(Xn.$$scope={dirty:f,ctx:t}),Pe.$set(Xn);const Nn={};f&2&&(Nn.$$scope={dirty:f,ctx:t}),Ue.$set(Nn)},i(t){so||(y(p.$$.fragment,t),y(Ze.$$.fragment,t),y(Se.$$.fragment,t),y(We.$$.fragment,t),y(ae.$$.fragment,t),y(ke.$$.fragment,t),y(je.$$.fragment,t),y(Ge.$$.fragment,t),y(Be.$$.fragment,t),y(Ve.$$.fragment,t),y(Ne.$$.fragment,t),y(le.$$.fragment,t),y(Fe.$$.fragment,t),y(ze.$$.fragment,t),y(Ae.$$.fragment,t),y(De.$$.fragment,t),y(Qe.$$.fragment,t),y(fe.$$.fragment,t),y(ge.$$.fragment,t),y(He.$$.fragment,t),y(tt.$$.fragment,t),y(nt.$$.fragment,t),y(it.$$.fragment,t),y(st.$$.fragment,t),y(lt.$$.fragment,t),y(be.$$.fragment,t),y(dt.$$.fragment,t),y(pt.$$.fragment,t),y(mt.$$.fragment,t),y(ft.$$.fragment,t),y(ut.$$.fragment,t),y(Pe.$$.fragment,t),y(Ue.$$.fragment,t),y(bt.$$.fragment,t),y(It.$$.fragment,t),y(wt.$$.fragment,t),y($t.$$.fragment,t),y(Mt.$$.fragment,t),so=!0)},o(t){I(p.$$.fragment,t),I(Ze.$$.fragment,t),I(Se.$$.fragment,t),I(We.$$.fragment,t),I(ae.$$.fragment,t),I(ke.$$.fragment,t),I(je.$$.fragment,t),I(Ge.$$.fragment,t),I(Be.$$.fragment,t),I(Ve.$$.fragment,t),I(Ne.$$.fragment,t),I(le.$$.fragment,t),I(Fe.$$.fragment,t),I(ze.$$.fragment,t),I(Ae.$$.fragment,t),I(De.$$.fragment,t),I(Qe.$$.fragment,t),I(fe.$$.fragment,t),I(ge.$$.fragment,t),I(He.$$.fragment,t),I(tt.$$.fragment,t),I(nt.$$.fragment,t),I(it.$$.fragment,t),I(st.$$.fragment,t),I(lt.$$.fragment,t),I(be.$$.fragment,t),I(dt.$$.fragment,t),I(pt.$$.fragment,t),I(mt.$$.fragment,t),I(ft.$$.fragment,t),I(ut.$$.fragment,t),I(Pe.$$.fragment,t),I(Ue.$$.fragment,t),I(bt.$$.fragment,t),I(It.$$.fragment,t),I(wt.$$.fragment,t),I($t.$$.fragment,t),I(Mt.$$.fragment,t),so=!1},d(t){n(m),t&&n(U),t&&n(u),w(p),t&&n(S),t&&n(V),t&&n(Fn),t&&n(Zt),t&&n(zn),t&&n(St),t&&n(Rn),t&&n(D),w(Ze),t&&n(An),t&&n(W),t&&n(Dn),t&&n(Y),w(Se),t&&n(Yn),w(We,t),t&&n(Qn),w(ae,t),t&&n(qn),t&&n(Q),w(ke),t&&n(On),w(je,t),t&&n(Hn),t&&n(se),t&&n(Kn),w(Ge,t),t&&n(eo),t&&n(q),w(Be),t&&n(to),t&&n(M),w(Ve),w(Ne),w(le),w(Fe),w(ze),w(Ae),w(De),w(Qe),w(fe),w(ge),w(He),w(tt),w(nt),t&&n(no),t&&n(H),w(it),t&&n(oo),t&&n(T),w(st),w(lt),w(be),w(dt),w(pt),w(mt),w(ft),w(ut),w(Pe),w(Ue),w(bt),w(It),w(wt),t&&n(ao),t&&n(ee),w($t),t&&n(io),t&&n(te),w(Mt)}}}const cl={local:"stable-unclip",sections:[{local:"tips",sections:[{local:"texttoimage-generation",title:"Text-to-Image Generation"},{local:"text-guided-imagetoimage-variation",title:"Text guided Image-to-Image Variation"}],title:"Tips"},{local:"diffusers.StableUnCLIPPipeline",title:"StableUnCLIPPipeline"},{local:"diffusers.StableUnCLIPImg2ImgPipeline",title:"StableUnCLIPImg2ImgPipeline"},{local:"diffusers.ImagePipelineOutput",title:"ImagePipelineOutput"}],title:"Stable unCLIP"};function ml(E){return nl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vl extends Hr{constructor(m){super();Kr(this,m,ml,pl,el,{})}}export{vl as default,cl as metadata};
