import{S as Gn,i as Ln,s as Wn,e as o,k as m,w as v,t as r,M as kn,c as i,d as n,m as h,a as l,x as $,h as p,b as u,G as e,g as y,y as U,q as J,o as T,B as I,v as Cn,L as dn}from"../../../../chunks/vendor-hf-doc-builder.js";import{T as pn}from"../../../../chunks/Tip-hf-doc-builder.js";import{D as re}from"../../../../chunks/Docstring-hf-doc-builder.js";import{C as un}from"../../../../chunks/CodeBlock-hf-doc-builder.js";import{I as cn}from"../../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as fn}from"../../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Vn(j){let s,b,d,c,_,a,f,P,k,q,E,C,V,pe,B,N,ce;return{c(){s=o("p"),b=r("Make sure to check out the Stable Diffusion "),d=o("a"),c=r("Tips"),_=r(" section to learn how to explore the tradeoff between scheduler speed and quality, and how to reuse pipeline components efficiently!"),a=m(),f=o("p"),P=r("If you\u2019re interested in using one of the official checkpoints for a task, explore the "),k=o("a"),q=r("CompVis"),E=r(", "),C=o("a"),V=r("Runway"),pe=r(", and "),B=o("a"),N=r("Stability AI"),ce=r(" Hub organizations!"),this.h()},l(x){s=i(x,"P",{});var D=l(s);b=p(D,"Make sure to check out the Stable Diffusion "),d=i(D,"A",{href:!0});var xe=l(d);c=p(xe,"Tips"),xe.forEach(n),_=p(D," section to learn how to explore the tradeoff between scheduler speed and quality, and how to reuse pipeline components efficiently!"),D.forEach(n),a=h(x),f=i(x,"P",{});var Z=l(f);P=p(Z,"If you\u2019re interested in using one of the official checkpoints for a task, explore the "),k=i(Z,"A",{href:!0,rel:!0});var fe=l(k);q=p(fe,"CompVis"),fe.forEach(n),E=p(Z,", "),C=i(Z,"A",{href:!0,rel:!0});var R=l(C);V=p(R,"Runway"),R.forEach(n),pe=p(Z,", and "),B=i(Z,"A",{href:!0,rel:!0});var de=l(B);N=p(de,"Stability AI"),de.forEach(n),ce=p(Z," Hub organizations!"),Z.forEach(n),this.h()},h(){u(d,"href","overview#tips"),u(k,"href","https://huggingface.co/CompVis"),u(k,"rel","nofollow"),u(C,"href","https://huggingface.co/runwayml"),u(C,"rel","nofollow"),u(B,"href","https://huggingface.co/stabilityai"),u(B,"rel","nofollow")},m(x,D){y(x,s,D),e(s,b),e(s,d),e(d,c),e(s,_),y(x,a,D),y(x,f,D),e(f,P),e(f,k),e(k,q),e(f,E),e(f,C),e(C,V),e(f,pe),e(f,B),e(B,N),e(f,ce)},d(x){x&&n(s),x&&n(a),x&&n(f)}}}function Bn(j){let s,b,d,c,_;return c=new un({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvbkxhdGVudFVwc2NhbGVQaXBlbGluZSUyQyUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEElMEFwaXBlbGluZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJDb21wVmlzJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS00JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUwQXBpcGVsaW5lLnRvKCUyMmN1ZGElMjIpJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJzdGFiaWxpdHlhaSUyRnNkLXgyLWxhdGVudC11cHNjYWxlciUyMiUwQXVwc2NhbGVyJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uTGF0ZW50VXBzY2FsZVBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEF1cHNjYWxlci50byglMjJjdWRhJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMmElMjBwaG90byUyMG9mJTIwYW4lMjBhc3Ryb25hdXQlMjBoaWdoJTIwcmVzb2x1dGlvbiUyQyUyMHVucmVhbCUyMGVuZ2luZSUyQyUyMHVsdHJhJTIwcmVhbGlzdGljJTIyJTBBZ2VuZXJhdG9yJTIwJTNEJTIwdG9yY2gubWFudWFsX3NlZWQoMzMpJTBBJTBBbG93X3Jlc19sYXRlbnRzJTIwJTNEJTIwcGlwZWxpbmUocHJvbXB0JTJDJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTIwb3V0cHV0X3R5cGUlM0QlMjJsYXRlbnQlMjIpLmltYWdlcyUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBpbWFnZSUyMCUzRCUyMHBpcGVsaW5lLmRlY29kZV9sYXRlbnRzKGxvd19yZXNfbGF0ZW50cyklMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lLm51bXB5X3RvX3BpbChpbWFnZSklNUIwJTVEJTBBJTBBaW1hZ2Uuc2F2ZSglMjIuLiUyRmltYWdlcyUyRmExLnBuZyUyMiklMEElMEF1cHNjYWxlZF9pbWFnZSUyMCUzRCUyMHVwc2NhbGVyKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRHByb21wdCUyQyUwQSUyMCUyMCUyMCUyMGltYWdlJTNEbG93X3Jlc19sYXRlbnRzJTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDIwJTJDJTBBJTIwJTIwJTIwJTIwZ3VpZGFuY2Vfc2NhbGUlM0QwJTJDJTBBJTIwJTIwJTIwJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTBBKS5pbWFnZXMlNUIwJTVEJTBBJTBBdXBzY2FsZWRfaW1hZ2Uuc2F2ZSglMjIuLiUyRmltYWdlcyUyRmEyLnBuZyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionLatentUpscalePipeline, StableDiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch


<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;stabilityai/sd-x2-latent-upscaler&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained(model_id, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>upscaler.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 high resolution, unreal engine, ultra realistic&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator = torch.manual_seed(<span class="hljs-number">33</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>low_res_latents = pipeline(prompt, generator=generator, output_type=<span class="hljs-string">&quot;latent&quot;</span>).images

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    image = pipeline.decode_latents(low_res_latents)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipeline.numpy_to_pil(image)[<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;../images/a1.png&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_image = upscaler(
<span class="hljs-meta">... </span>    prompt=prompt,
<span class="hljs-meta">... </span>    image=low_res_latents,
<span class="hljs-meta">... </span>    num_inference_steps=<span class="hljs-number">20</span>,
<span class="hljs-meta">... </span>    guidance_scale=<span class="hljs-number">0</span>,
<span class="hljs-meta">... </span>    generator=generator,
<span class="hljs-meta">... </span>).images[<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_image.save(<span class="hljs-string">&quot;../images/a2.png&quot;</span>)`}}),{c(){s=o("p"),b=r("Examples:"),d=m(),v(c.$$.fragment)},l(a){s=i(a,"P",{});var f=l(s);b=p(f,"Examples:"),f.forEach(n),d=h(a),$(c.$$.fragment,a)},m(a,f){y(a,s,f),e(s,b),y(a,d,f),U(c,a,f),_=!0},p:dn,i(a){_||(J(c.$$.fragment,a),_=!0)},o(a){T(c.$$.fragment,a),_=!1},d(a){a&&n(s),a&&n(d),I(c,a)}}}function Nn(j){let s,b,d,c,_;return{c(){s=o("p"),b=r("\u26A0\uFE0F Don\u2019t enable attention slicing if you\u2019re already using "),d=o("code"),c=r("scaled_dot_product_attention"),_=r(` (SDPA) from PyTorch
2.0 or xFormers. These attention computations are already very memory efficient so you won\u2019t need to enable
this function. If you enable attention slicing with SDPA or xFormers, it can lead to serious slow downs!`)},l(a){s=i(a,"P",{});var f=l(s);b=p(f,"\u26A0\uFE0F Don\u2019t enable attention slicing if you\u2019re already using "),d=i(f,"CODE",{});var P=l(d);c=p(P,"scaled_dot_product_attention"),P.forEach(n),_=p(f,` (SDPA) from PyTorch
2.0 or xFormers. These attention computations are already very memory efficient so you won\u2019t need to enable
this function. If you enable attention slicing with SDPA or xFormers, it can lead to serious slow downs!`),f.forEach(n)},m(a,f){y(a,s,f),e(s,b),e(s,d),e(d,c),e(s,_)},d(a){a&&n(s)}}}function Rn(j){let s,b,d,c,_;return c=new un({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBJTIwJTIwJTIwJTIwdXNlX3NhZmV0ZW5zb3JzJTNEVHJ1ZSUyQyUwQSklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJhJTIwcGhvdG8lMjBvZiUyMGFuJTIwYXN0cm9uYXV0JTIwcmlkaW5nJTIwYSUyMGhvcnNlJTIwb24lMjBtYXJzJTIyJTBBcGlwZS5lbmFibGVfYXR0ZW50aW9uX3NsaWNpbmcoKSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQpLmltYWdlcyU1QjAlNUQ=",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> StableDiffusionPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>    use_safetensors=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </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>pipe.enable_attention_slicing()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt).images[<span class="hljs-number">0</span>]`}}),{c(){s=o("p"),b=r("Examples:"),d=m(),v(c.$$.fragment)},l(a){s=i(a,"P",{});var f=l(s);b=p(f,"Examples:"),f.forEach(n),d=h(a),$(c.$$.fragment,a)},m(a,f){y(a,s,f),e(s,b),y(a,d,f),U(c,a,f),_=!0},p:dn,i(a){_||(J(c.$$.fragment,a),_=!0)},o(a){T(c.$$.fragment,a),_=!1},d(a){a&&n(s),a&&n(d),I(c,a)}}}function Fn(j){let s,b;return{c(){s=o("p"),b=r(`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`)},l(d){s=i(d,"P",{});var c=l(s);b=p(c,`\u26A0\uFE0F When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`),c.forEach(n)},m(d,c){y(d,s,c),e(s,b)},d(d){d&&n(s)}}}function Xn(j){let s,b,d,c,_;return c=new un({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(){s=o("p"),b=r("Examples:"),d=m(),v(c.$$.fragment)},l(a){s=i(a,"P",{});var f=l(s);b=p(f,"Examples:"),f.forEach(n),d=h(a),$(c.$$.fragment,a)},m(a,f){y(a,s,f),e(s,b),y(a,d,f),U(c,a,f),_=!0},p:dn,i(a){_||(J(c.$$.fragment,a),_=!0)},o(a){T(c.$$.fragment,a),_=!1},d(a){a&&n(s),a&&n(d),I(c,a)}}}function An(j){let s,b,d,c,_,a,f,P,k,q,E,C,V,pe,B,N,ce,x,D,xe,Z,fe,R,de,A,Q,Pe,ue,ft,Ze,dt,Oe,w,me,ut,Ge,mt,ht,he,gt,Se,bt,_t,yt,X,ge,wt,Le,vt,$t,O,Ut,H,be,Jt,S,Tt,We,It,Mt,ke,Et,Dt,Ce,xt,St,Ve,jt,Pt,Be,Zt,Gt,Lt,G,_e,Wt,Ne,kt,Ct,K,Vt,ee,Bt,te,ye,Nt,we,Rt,Re,Ft,Xt,At,L,ve,zt,$e,Yt,Ue,qt,Qt,Ot,ne,Ht,ae,Kt,se,Je,en,Te,tn,Ie,nn,an,He,z,oe,Fe,Me,sn,Xe,on,Ke,Y,Ee,ln,Ae,rn,et;return a=new cn({}),R=new pn({props:{$$slots:{default:[Vn]},$$scope:{ctx:j}}}),ue=new cn({}),me=new re({props:{name:"class diffusers.StableDiffusionLatentUpscalePipeline",anchor:"diffusers.StableDiffusionLatentUpscalePipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": EulerDiscreteScheduler"}],parametersDescription:[{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.21.0/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
Frozen text-encoder (<a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a>).`,name:"text_encoder"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/v0.21.0/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <code>UNet2DConditionModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.21.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A <a href="/docs/diffusers/v0.21.0/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler">EulerDiscreteScheduler</a> to be used in combination with <code>unet</code> to denoise the encoded image latents.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.21.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py#L62"}}),ge=new re({props:{name:"__call__",anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.FloatTensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.FloatTensor]] = None"},{name:"num_inference_steps",val:": int = 75"},{name:"guidance_scale",val:": float = 9.0"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",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"}],parametersDescription:[{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide image upscaling.`,name:"prompt"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.FloatTensor]</code>, <code>List[PIL.Image.Image]</code>, or <code>List[np.ndarray]</code>) &#x2014;
<code>Image</code> or tensor representing an image batch to be upscaled. If it&#x2019;s a tensor, it can be either a
latent output from a Stable Diffusion model or an image tensor in the range <code>[-1, 1]</code>. It is considered
a <code>latent</code> if <code>image.shape[1]</code> is <code>4</code>; otherwise, it is considered to be an image representation and
encoded using this pipeline&#x2019;s <code>vae</code> encoder.`,name:"image"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__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.StableDiffusionLatentUpscalePipeline.__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.21.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, and is ignored in other schedulers.`,name:"eta"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__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.StableDiffusionLatentUpscalePipeline.__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.StableDiffusionLatentUpscalePipeline.__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.StableDiffusionLatentUpscalePipeline.__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.21.0/en/api/pipelines/stable_diffusion/img2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__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.StableDiffusionLatentUpscalePipeline.__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"}],source:"https://github.com/huggingface/diffusers/blob/v0.21.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py#L256",returnDescription:`
<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/v0.21.0/en/api/pipelines/stable_diffusion/img2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> is returned,
otherwise a <code>tuple</code> is returned where the first element is a list with the generated images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.21.0/en/api/pipelines/stable_diffusion/img2img#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),O=new fn({props:{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.__call__.example",$$slots:{default:[Bn]},$$scope:{ctx:j}}}),be=new re({props:{name:"enable_sequential_cpu_offload",anchor:"diffusers.StableDiffusionLatentUpscalePipeline.enable_sequential_cpu_offload",parameters:[{name:"gpu_id",val:": int = 0"},{name:"device",val:": typing.Union[torch.device, str] = 'cuda'"}],source:"https://github.com/huggingface/diffusers/blob/v0.21.0/src/diffusers/pipelines/pipeline_utils.py#L1294"}}),_e=new re({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionLatentUpscalePipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.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.21.0/src/diffusers/pipelines/pipeline_utils.py#L1780"}}),K=new pn({props:{warning:!0,$$slots:{default:[Nn]},$$scope:{ctx:j}}}),ee=new fn({props:{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.enable_attention_slicing.example",$$slots:{default:[Rn]},$$scope:{ctx:j}}}),ye=new re({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionLatentUpscalePipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.21.0/src/diffusers/pipelines/pipeline_utils.py#L1820"}}),ve=new re({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionLatentUpscalePipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.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.21.0/src/diffusers/pipelines/pipeline_utils.py#L1719"}}),ne=new pn({props:{warning:!0,$$slots:{default:[Fn]},$$scope:{ctx:j}}}),ae=new fn({props:{anchor:"diffusers.StableDiffusionLatentUpscalePipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[Xn]},$$scope:{ctx:j}}}),Je=new re({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionLatentUpscalePipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.21.0/src/diffusers/pipelines/pipeline_utils.py#L1754"}}),Me=new cn({}),Ee=new re({props:{name:"class diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"},{name:"nsfw_content_detected",val:": typing.Optional[typing.List[bool]]"}],parametersDescription:[{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or NumPy array of shape <code>(batch_size, height, width, num_channels)</code>.`,name:"images"},{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.nsfw_content_detected",description:`<strong>nsfw_content_detected</strong> (<code>List[bool]</code>) &#x2014;
List indicating whether the corresponding generated image contains &#x201C;not-safe-for-work&#x201D; (nsfw) content or
<code>None</code> if safety checking could not be performed.`,name:"nsfw_content_detected"}],source:"https://github.com/huggingface/diffusers/blob/v0.21.0/src/diffusers/pipelines/stable_diffusion/pipeline_output.py#L15"}}),{c(){s=o("meta"),b=m(),d=o("h1"),c=o("a"),_=o("span"),v(a.$$.fragment),f=m(),P=o("span"),k=r("Latent upscaler"),q=m(),E=o("p"),C=r("The Stable Diffusion latent upscaler model was created by "),V=o("a"),pe=r("Katherine Crowson"),B=r(" in collaboration with "),N=o("a"),ce=r("Stability AI"),x=r(". It is used to enhance the output image resolution by a factor of 2 (see this demo "),D=o("a"),xe=r("notebook"),Z=r(" for a demonstration of the original implementation)."),fe=m(),v(R.$$.fragment),de=m(),A=o("h2"),Q=o("a"),Pe=o("span"),v(ue.$$.fragment),ft=m(),Ze=o("span"),dt=r("StableDiffusionLatentUpscalePipeline"),Oe=m(),w=o("div"),v(me.$$.fragment),ut=m(),Ge=o("p"),mt=r("Pipeline for upscaling Stable Diffusion output image resolution by a factor of 2."),ht=m(),he=o("p"),gt=r("This model inherits from "),Se=o("a"),bt=r("DiffusionPipeline"),_t=r(`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),yt=m(),X=o("div"),v(ge.$$.fragment),wt=m(),Le=o("p"),vt=r("The call function to the pipeline for generation."),$t=m(),v(O.$$.fragment),Ut=m(),H=o("div"),v(be.$$.fragment),Jt=m(),S=o("p"),Tt=r(`Offloads all models to CPU using \u{1F917} Accelerate, significantly reducing memory usage. When called, the state
dicts of all `),We=o("code"),It=r("torch.nn.Module"),Mt=r(" components (except those in "),ke=o("code"),Et=r("self._exclude_from_cpu_offload"),Dt=r(`) are saved to CPU
and then moved to `),Ce=o("code"),xt=r("torch.device('meta')"),St=r(" and loaded to GPU only when their specific submodule has its "),Ve=o("code"),jt=r("forward"),Pt=r(`
method called. Offloading happens on a submodule basis. Memory savings are higher than with
`),Be=o("code"),Zt=r("enable_model_cpu_offload"),Gt=r(", but performance is lower."),Lt=m(),G=o("div"),v(_e.$$.fragment),Wt=m(),Ne=o("p"),kt=r(`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. For more than one attention head, the computation is performed
sequentially over each head. This is useful to save some memory in exchange for a small speed decrease.`),Ct=m(),v(K.$$.fragment),Vt=m(),v(ee.$$.fragment),Bt=m(),te=o("div"),v(ye.$$.fragment),Nt=m(),we=o("p"),Rt=r("Disable sliced attention computation. If "),Re=o("code"),Ft=r("enable_attention_slicing"),Xt=r(` was previously called, attention is
computed in one step.`),At=m(),L=o("div"),v(ve.$$.fragment),zt=m(),$e=o("p"),Yt=r("Enable memory efficient attention from "),Ue=o("a"),qt=r("xFormers"),Qt=r(`. 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.`),Ot=m(),v(ne.$$.fragment),Ht=m(),v(ae.$$.fragment),Kt=m(),se=o("div"),v(Je.$$.fragment),en=m(),Te=o("p"),tn=r("Disable memory efficient attention from "),Ie=o("a"),nn=r("xFormers"),an=r("."),He=m(),z=o("h2"),oe=o("a"),Fe=o("span"),v(Me.$$.fragment),sn=m(),Xe=o("span"),on=r("StableDiffusionPipelineOutput"),Ke=m(),Y=o("div"),v(Ee.$$.fragment),ln=m(),Ae=o("p"),rn=r("Output class for Stable Diffusion pipelines."),this.h()},l(t){const g=kn('[data-svelte="svelte-1phssyn"]',document.head);s=i(g,"META",{name:!0,content:!0}),g.forEach(n),b=h(t),d=i(t,"H1",{class:!0});var De=l(d);c=i(De,"A",{id:!0,class:!0,href:!0});var ze=l(c);_=i(ze,"SPAN",{});var Ye=l(_);$(a.$$.fragment,Ye),Ye.forEach(n),ze.forEach(n),f=h(De),P=i(De,"SPAN",{});var qe=l(P);k=p(qe,"Latent upscaler"),qe.forEach(n),De.forEach(n),q=h(t),E=i(t,"P",{});var F=l(E);C=p(F,"The Stable Diffusion latent upscaler model was created by "),V=i(F,"A",{href:!0,rel:!0});var Qe=l(V);pe=p(Qe,"Katherine Crowson"),Qe.forEach(n),B=p(F," in collaboration with "),N=i(F,"A",{href:!0,rel:!0});var mn=l(N);ce=p(mn,"Stability AI"),mn.forEach(n),x=p(F,". It is used to enhance the output image resolution by a factor of 2 (see this demo "),D=i(F,"A",{href:!0,rel:!0});var hn=l(D);xe=p(hn,"notebook"),hn.forEach(n),Z=p(F," for a demonstration of the original implementation)."),F.forEach(n),fe=h(t),$(R.$$.fragment,t),de=h(t),A=i(t,"H2",{class:!0});var tt=l(A);Q=i(tt,"A",{id:!0,class:!0,href:!0});var gn=l(Q);Pe=i(gn,"SPAN",{});var bn=l(Pe);$(ue.$$.fragment,bn),bn.forEach(n),gn.forEach(n),ft=h(tt),Ze=i(tt,"SPAN",{});var _n=l(Ze);dt=p(_n,"StableDiffusionLatentUpscalePipeline"),_n.forEach(n),tt.forEach(n),Oe=h(t),w=i(t,"DIV",{class:!0});var M=l(w);$(me.$$.fragment,M),ut=h(M),Ge=i(M,"P",{});var yn=l(Ge);mt=p(yn,"Pipeline for upscaling Stable Diffusion output image resolution by a factor of 2."),yn.forEach(n),ht=h(M),he=i(M,"P",{});var nt=l(he);gt=p(nt,"This model inherits from "),Se=i(nt,"A",{href:!0});var wn=l(Se);bt=p(wn,"DiffusionPipeline"),wn.forEach(n),_t=p(nt,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),nt.forEach(n),yt=h(M),X=i(M,"DIV",{class:!0});var je=l(X);$(ge.$$.fragment,je),wt=h(je),Le=i(je,"P",{});var vn=l(Le);vt=p(vn,"The call function to the pipeline for generation."),vn.forEach(n),$t=h(je),$(O.$$.fragment,je),je.forEach(n),Ut=h(M),H=i(M,"DIV",{class:!0});var at=l(H);$(be.$$.fragment,at),Jt=h(at),S=i(at,"P",{});var W=l(S);Tt=p(W,`Offloads all models to CPU using \u{1F917} Accelerate, significantly reducing memory usage. When called, the state
dicts of all `),We=i(W,"CODE",{});var $n=l(We);It=p($n,"torch.nn.Module"),$n.forEach(n),Mt=p(W," components (except those in "),ke=i(W,"CODE",{});var Un=l(ke);Et=p(Un,"self._exclude_from_cpu_offload"),Un.forEach(n),Dt=p(W,`) are saved to CPU
and then moved to `),Ce=i(W,"CODE",{});var Jn=l(Ce);xt=p(Jn,"torch.device('meta')"),Jn.forEach(n),St=p(W," and loaded to GPU only when their specific submodule has its "),Ve=i(W,"CODE",{});var Tn=l(Ve);jt=p(Tn,"forward"),Tn.forEach(n),Pt=p(W,`
method called. Offloading happens on a submodule basis. Memory savings are higher than with
`),Be=i(W,"CODE",{});var In=l(Be);Zt=p(In,"enable_model_cpu_offload"),In.forEach(n),Gt=p(W,", but performance is lower."),W.forEach(n),at.forEach(n),Lt=h(M),G=i(M,"DIV",{class:!0});var ie=l(G);$(_e.$$.fragment,ie),Wt=h(ie),Ne=i(ie,"P",{});var Mn=l(Ne);kt=p(Mn,`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. For more than one attention head, the computation is performed
sequentially over each head. This is useful to save some memory in exchange for a small speed decrease.`),Mn.forEach(n),Ct=h(ie),$(K.$$.fragment,ie),Vt=h(ie),$(ee.$$.fragment,ie),ie.forEach(n),Bt=h(M),te=i(M,"DIV",{class:!0});var st=l(te);$(ye.$$.fragment,st),Nt=h(st),we=i(st,"P",{});var ot=l(we);Rt=p(ot,"Disable sliced attention computation. If "),Re=i(ot,"CODE",{});var En=l(Re);Ft=p(En,"enable_attention_slicing"),En.forEach(n),Xt=p(ot,` was previously called, attention is
computed in one step.`),ot.forEach(n),st.forEach(n),At=h(M),L=i(M,"DIV",{class:!0});var le=l(L);$(ve.$$.fragment,le),zt=h(le),$e=i(le,"P",{});var it=l($e);Yt=p(it,"Enable memory efficient attention from "),Ue=i(it,"A",{href:!0,rel:!0});var Dn=l(Ue);qt=p(Dn,"xFormers"),Dn.forEach(n),Qt=p(it,`. 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.`),it.forEach(n),Ot=h(le),$(ne.$$.fragment,le),Ht=h(le),$(ae.$$.fragment,le),le.forEach(n),Kt=h(M),se=i(M,"DIV",{class:!0});var lt=l(se);$(Je.$$.fragment,lt),en=h(lt),Te=i(lt,"P",{});var rt=l(Te);tn=p(rt,"Disable memory efficient attention from "),Ie=i(rt,"A",{href:!0,rel:!0});var xn=l(Ie);nn=p(xn,"xFormers"),xn.forEach(n),an=p(rt,"."),rt.forEach(n),lt.forEach(n),M.forEach(n),He=h(t),z=i(t,"H2",{class:!0});var pt=l(z);oe=i(pt,"A",{id:!0,class:!0,href:!0});var Sn=l(oe);Fe=i(Sn,"SPAN",{});var jn=l(Fe);$(Me.$$.fragment,jn),jn.forEach(n),Sn.forEach(n),sn=h(pt),Xe=i(pt,"SPAN",{});var Pn=l(Xe);on=p(Pn,"StableDiffusionPipelineOutput"),Pn.forEach(n),pt.forEach(n),Ke=h(t),Y=i(t,"DIV",{class:!0});var ct=l(Y);$(Ee.$$.fragment,ct),ln=h(ct),Ae=i(ct,"P",{});var Zn=l(Ae);rn=p(Zn,"Output class for Stable Diffusion pipelines."),Zn.forEach(n),ct.forEach(n),this.h()},h(){u(s,"name","hf:doc:metadata"),u(s,"content",JSON.stringify(zn)),u(c,"id","latent-upscaler"),u(c,"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"),u(c,"href","#latent-upscaler"),u(d,"class","relative group"),u(V,"href","https://github.com/crowsonkb/k-diffusion"),u(V,"rel","nofollow"),u(N,"href","https://stability.ai/"),u(N,"rel","nofollow"),u(D,"href","https://colab.research.google.com/drive/1o1qYJcFeywzCIdkfKJy7cTpgZTCM2EI4"),u(D,"rel","nofollow"),u(Q,"id","diffusers.StableDiffusionLatentUpscalePipeline"),u(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Q,"href","#diffusers.StableDiffusionLatentUpscalePipeline"),u(A,"class","relative group"),u(Se,"href","/docs/diffusers/v0.21.0/en/api/pipelines/overview#diffusers.DiffusionPipeline"),u(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ue,"href","https://facebookresearch.github.io/xformers/"),u(Ue,"rel","nofollow"),u(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ie,"href","https://facebookresearch.github.io/xformers/"),u(Ie,"rel","nofollow"),u(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(oe,"id","diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),u(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"),u(oe,"href","#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),u(z,"class","relative group"),u(Y,"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,g){e(document.head,s),y(t,b,g),y(t,d,g),e(d,c),e(c,_),U(a,_,null),e(d,f),e(d,P),e(P,k),y(t,q,g),y(t,E,g),e(E,C),e(E,V),e(V,pe),e(E,B),e(E,N),e(N,ce),e(E,x),e(E,D),e(D,xe),e(E,Z),y(t,fe,g),U(R,t,g),y(t,de,g),y(t,A,g),e(A,Q),e(Q,Pe),U(ue,Pe,null),e(A,ft),e(A,Ze),e(Ze,dt),y(t,Oe,g),y(t,w,g),U(me,w,null),e(w,ut),e(w,Ge),e(Ge,mt),e(w,ht),e(w,he),e(he,gt),e(he,Se),e(Se,bt),e(he,_t),e(w,yt),e(w,X),U(ge,X,null),e(X,wt),e(X,Le),e(Le,vt),e(X,$t),U(O,X,null),e(w,Ut),e(w,H),U(be,H,null),e(H,Jt),e(H,S),e(S,Tt),e(S,We),e(We,It),e(S,Mt),e(S,ke),e(ke,Et),e(S,Dt),e(S,Ce),e(Ce,xt),e(S,St),e(S,Ve),e(Ve,jt),e(S,Pt),e(S,Be),e(Be,Zt),e(S,Gt),e(w,Lt),e(w,G),U(_e,G,null),e(G,Wt),e(G,Ne),e(Ne,kt),e(G,Ct),U(K,G,null),e(G,Vt),U(ee,G,null),e(w,Bt),e(w,te),U(ye,te,null),e(te,Nt),e(te,we),e(we,Rt),e(we,Re),e(Re,Ft),e(we,Xt),e(w,At),e(w,L),U(ve,L,null),e(L,zt),e(L,$e),e($e,Yt),e($e,Ue),e(Ue,qt),e($e,Qt),e(L,Ot),U(ne,L,null),e(L,Ht),U(ae,L,null),e(w,Kt),e(w,se),U(Je,se,null),e(se,en),e(se,Te),e(Te,tn),e(Te,Ie),e(Ie,nn),e(Te,an),y(t,He,g),y(t,z,g),e(z,oe),e(oe,Fe),U(Me,Fe,null),e(z,sn),e(z,Xe),e(Xe,on),y(t,Ke,g),y(t,Y,g),U(Ee,Y,null),e(Y,ln),e(Y,Ae),e(Ae,rn),et=!0},p(t,[g]){const De={};g&2&&(De.$$scope={dirty:g,ctx:t}),R.$set(De);const ze={};g&2&&(ze.$$scope={dirty:g,ctx:t}),O.$set(ze);const Ye={};g&2&&(Ye.$$scope={dirty:g,ctx:t}),K.$set(Ye);const qe={};g&2&&(qe.$$scope={dirty:g,ctx:t}),ee.$set(qe);const F={};g&2&&(F.$$scope={dirty:g,ctx:t}),ne.$set(F);const Qe={};g&2&&(Qe.$$scope={dirty:g,ctx:t}),ae.$set(Qe)},i(t){et||(J(a.$$.fragment,t),J(R.$$.fragment,t),J(ue.$$.fragment,t),J(me.$$.fragment,t),J(ge.$$.fragment,t),J(O.$$.fragment,t),J(be.$$.fragment,t),J(_e.$$.fragment,t),J(K.$$.fragment,t),J(ee.$$.fragment,t),J(ye.$$.fragment,t),J(ve.$$.fragment,t),J(ne.$$.fragment,t),J(ae.$$.fragment,t),J(Je.$$.fragment,t),J(Me.$$.fragment,t),J(Ee.$$.fragment,t),et=!0)},o(t){T(a.$$.fragment,t),T(R.$$.fragment,t),T(ue.$$.fragment,t),T(me.$$.fragment,t),T(ge.$$.fragment,t),T(O.$$.fragment,t),T(be.$$.fragment,t),T(_e.$$.fragment,t),T(K.$$.fragment,t),T(ee.$$.fragment,t),T(ye.$$.fragment,t),T(ve.$$.fragment,t),T(ne.$$.fragment,t),T(ae.$$.fragment,t),T(Je.$$.fragment,t),T(Me.$$.fragment,t),T(Ee.$$.fragment,t),et=!1},d(t){n(s),t&&n(b),t&&n(d),I(a),t&&n(q),t&&n(E),t&&n(fe),I(R,t),t&&n(de),t&&n(A),I(ue),t&&n(Oe),t&&n(w),I(me),I(ge),I(O),I(be),I(_e),I(K),I(ee),I(ye),I(ve),I(ne),I(ae),I(Je),t&&n(He),t&&n(z),I(Me),t&&n(Ke),t&&n(Y),I(Ee)}}}const zn={local:"latent-upscaler",sections:[{local:"diffusers.StableDiffusionLatentUpscalePipeline",title:"StableDiffusionLatentUpscalePipeline"},{local:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",title:"StableDiffusionPipelineOutput"}],title:"Latent upscaler"};function Yn(j){return Cn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ta extends Gn{constructor(s){super();Ln(this,s,Yn,An,Wn,{})}}export{ta as default,zn as metadata};
