import{S as es,i as ts,s as ns,e as s,k as c,w as x,t as i,M as ss,c as a,d as n,m as p,a as o,x as M,h as l,b as d,G as e,g as _,y as $,q as P,o as S,B as D,v as as,L as Hn}from"../../../../chunks/vendor-hf-doc-builder.js";import{D as X}from"../../../../chunks/Docstring-hf-doc-builder.js";import{C as Kn}from"../../../../chunks/CodeBlock-hf-doc-builder.js";import{I as On}from"../../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Yn}from"../../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function os(de){let h,T,b,u,y;return u=new Kn({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFmcm9tJTIwaW8lMjBpbXBvcnQlMjBCeXRlc0lPJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblVwc2NhbGVQaXBlbGluZSUwQWltcG9ydCUyMHRvcmNoJTBBJTBBJTIzJTIwbG9hZCUyMG1vZGVsJTIwYW5kJTIwc2NoZWR1bGVyJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24teDQtdXBzY2FsZXIlMjIlMEFwaXBlbGluZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblVwc2NhbGVQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlMkMlMjByZXZpc2lvbiUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpJTBBcGlwZWxpbmUlMjAlM0QlMjBwaXBlbGluZS50byglMjJjdWRhJTIyKSUwQSUwQSUyMyUyMGxldCdzJTIwZG93bmxvYWQlMjBhbiUyMCUyMGltYWdlJTBBdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGaGYtaW50ZXJuYWwtdGVzdGluZyUyRmRpZmZ1c2Vycy1pbWFnZXMlMkZyZXNvbHZlJTJGbWFpbiUyRnNkMi11cHNjYWxlJTJGbG93X3Jlc19jYXQucG5nJTIyJTBBcmVzcG9uc2UlMjAlM0QlMjByZXF1ZXN0cy5nZXQodXJsKSUwQWxvd19yZXNfaW1nJTIwJTNEJTIwSW1hZ2Uub3BlbihCeXRlc0lPKHJlc3BvbnNlLmNvbnRlbnQpKS5jb252ZXJ0KCUyMlJHQiUyMiklMEFsb3dfcmVzX2ltZyUyMCUzRCUyMGxvd19yZXNfaW1nLnJlc2l6ZSgoMTI4JTJDJTIwMTI4KSklMEFwcm9tcHQlMjAlM0QlMjAlMjJhJTIwd2hpdGUlMjBjYXQlMjIlMEElMEF1cHNjYWxlZF9pbWFnZSUyMCUzRCUyMHBpcGVsaW5lKHByb21wdCUzRHByb21wdCUyQyUyMGltYWdlJTNEbG93X3Jlc19pbWcpLmltYWdlcyU1QjAlNUQlMEF1cHNjYWxlZF9pbWFnZS5zYXZlKCUyMnVwc2FtcGxlZF9jYXQucG5nJTIyKQ==",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">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> StableDiffusionUpscalePipeline
<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-comment"># load model and scheduler</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;stabilityai/stable-diffusion-x4-upscaler&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionUpscalePipeline.from_pretrained(
<span class="hljs-meta">... </span>    model_id, revision=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># let&#x27;s download an  image</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd2-upscale/low_res_cat.png&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>response = requests.get(url)
<span class="hljs-meta">&gt;&gt;&gt; </span>low_res_img = 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>low_res_img = low_res_img.resize((<span class="hljs-number">128</span>, <span class="hljs-number">128</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;a white cat&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_image = pipeline(prompt=prompt, image=low_res_img).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_image.save(<span class="hljs-string">&quot;upsampled_cat.png&quot;</span>)`}}),{c(){h=s("p"),T=i("Examples:"),b=c(),x(u.$$.fragment)},l(r){h=a(r,"P",{});var v=o(h);T=l(v,"Examples:"),v.forEach(n),b=p(r),M(u.$$.fragment,r)},m(r,v){_(r,h,v),e(h,T),_(r,b,v),$(u,r,v),y=!0},p:Hn,i(r){y||(P(u.$$.fragment,r),y=!0)},o(r){S(u.$$.fragment,r),y=!1},d(r){r&&n(h),r&&n(b),D(u,r)}}}function is(de){let h,T,b,u,y;return u=new Kn({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(){h=s("p"),T=i("Examples:"),b=c(),x(u.$$.fragment)},l(r){h=a(r,"P",{});var v=o(h);T=l(v,"Examples:"),v.forEach(n),b=p(r),M(u.$$.fragment,r)},m(r,v){_(r,h,v),e(h,T),_(r,b,v),$(u,r,v),y=!0},p:Hn,i(r){y||(P(u.$$.fragment,r),y=!0)},o(r){S(u.$$.fragment,r),y=!1},d(r){r&&n(h),r&&n(b),D(u,r)}}}function ls(de){let h,T,b,u,y,r,v,ye,at,Be,J,G,we,R,ot,Ue,it,Fe,w,lt,V,rt,ct,z,pt,dt,q,ft,ut,fe,mt,ht,Ae,ue,gt,Le,me,Q,xe,_t,bt,O,vt,Xe,he,yt,Re,ge,Y,Me,wt,Ut,H,xt,Ve,f,K,Mt,$e,$t,Pt,ee,St,_e,Dt,It,Tt,E,te,Et,Pe,jt,kt,C,Zt,j,ne,Wt,Se,Jt,Gt,De,Ct,Nt,N,se,Bt,ae,Ft,Ie,At,Lt,Xt,U,oe,Rt,Te,Vt,zt,Ee,qt,Qt,je,Ot,Yt,B,Ht,F,ie,Kt,ke,en,tn,A,le,nn,I,sn,Ze,an,on,We,ln,rn,Je,cn,pn,Ge,dn,fn,un,L,re,mn,ce,hn,Ce,gn,_n,ze;return r=new On({}),R=new On({}),K=new X({props:{name:"class diffusers.StableDiffusionUpscalePipeline",anchor:"diffusers.StableDiffusionUpscalePipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"low_res_scheduler",val:": DDPMScheduler"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"safety_checker",val:": typing.Optional[typing.Any] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.image_processing_clip.CLIPImageProcessor] = None"},{name:"watermarker",val:": typing.Optional[typing.Any] = None"},{name:"max_noise_level",val:": int = 350"}],parametersDescription:[{anchor:"diffusers.StableDiffusionUpscalePipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.17.1/en/api/models#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableDiffusionUpscalePipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
Frozen text-encoder. Stable Diffusion uses the text portion of
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIP</a>, specifically
the <a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a> variant.`,name:"text_encoder"},{anchor:"diffusers.StableDiffusionUpscalePipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.StableDiffusionUpscalePipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.17.1/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionUpscalePipeline.low_res_scheduler",description:`<strong>low_res_scheduler</strong> (<a href="/docs/diffusers/v0.17.1/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler used to add initial noise to the low res conditioning image. It must be an instance of
<a href="/docs/diffusers/v0.17.1/en/api/schedulers/ddpm#diffusers.DDPMScheduler">DDPMScheduler</a>.`,name:"low_res_scheduler"},{anchor:"diffusers.StableDiffusionUpscalePipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.17.1/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.17.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.17.1/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.17.1/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py#L63"}}),te=new X({props:{name:"__call__",anchor:"diffusers.StableDiffusionUpscalePipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image, numpy.ndarray, typing.List[torch.FloatTensor], typing.List[PIL.Image.Image], typing.List[numpy.ndarray]] = None"},{name:"num_inference_steps",val:": int = 75"},{name:"guidance_scale",val:": float = 9.0"},{name:"noise_level",val:": int = 20"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Union[typing.Callable[[int, int, torch.FloatTensor], NoneType], NoneType] = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide the image generation. If not defined, one has to pass <code>prompt_embeds</code>.
instead.`,name:"prompt"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__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 which will be upscaled. *`,name:"image"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__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.StableDiffusionUpscalePipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
Guidance scale as defined in <a href="https://arxiv.org/abs/2207.12598" rel="nofollow">Classifier-Free Diffusion Guidance</a>.
<code>guidance_scale</code> is defined as <code>w</code> of equation 2. of <a href="https://arxiv.org/pdf/2205.11487.pdf" rel="nofollow">Imagen
Paper</a>. Guidance scale is enabled by setting <code>guidance_scale &gt; 1</code>. Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. If not defined, one has to pass
<code>negative_prompt_embeds</code>. instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code>
is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__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.StableDiffusionUpscalePipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) in the DDIM paper: <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">https://arxiv.org/abs/2010.02502</a>. Only applies to
<a href="/docs/diffusers/v0.17.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a>
to make generation deterministic.`,name:"generator"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor will ge generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generate image. Choose between
<a href="https://pillow.readthedocs.io/en/stable/" rel="nofollow">PIL</a>: <code>PIL.Image.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__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.17.1/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that will be called every <code>callback_steps</code> steps during inference. The function will be
called with the following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function will be called. If not specified, the callback will be
called at every step.`,name:"callback_steps"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/cross_attention.py" rel="nofollow">diffusers.cross_attention</a>.`,name:"cross_attention_kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py#L499",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.1/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> if <code>return_dict</code> is True, otherwise a <code>tuple. When returning a tuple, the first element is a list with the generated images, and the second element is a list of </code>bool<code>s denoting whether the corresponding generated image likely represents "not-safe-for-work" (nsfw) content, according to the </code>safety_checker\`.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.17.1/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),C=new Yn({props:{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.example",$$slots:{default:[os]},$$scope:{ctx:de}}}),ne=new X({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionUpscalePipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionUpscalePipeline.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.17.1/src/diffusers/pipelines/pipeline_utils.py#L1492"}}),se=new X({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionUpscalePipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/pipeline_utils.py#L1508"}}),oe=new X({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionUpscalePipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionUpscalePipeline.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.17.1/src/diffusers/pipelines/pipeline_utils.py#L1434"}}),B=new Yn({props:{anchor:"diffusers.StableDiffusionUpscalePipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[is]},$$scope:{ctx:de}}}),ie=new X({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionUpscalePipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/pipeline_utils.py#L1466"}}),le=new X({props:{name:"enable_model_cpu_offload",anchor:"diffusers.StableDiffusionUpscalePipeline.enable_model_cpu_offload",parameters:[{name:"gpu_id",val:" = 0"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py#L155"}}),re=new X({props:{name:"enable_sequential_cpu_offload",anchor:"diffusers.StableDiffusionUpscalePipeline.enable_sequential_cpu_offload",parameters:[{name:"gpu_id",val:" = 0"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py#L138"}}),{c(){h=s("meta"),T=c(),b=s("h1"),u=s("a"),y=s("span"),x(r.$$.fragment),v=c(),ye=s("span"),at=i("Super-Resolution"),Be=c(),J=s("h2"),G=s("a"),we=s("span"),x(R.$$.fragment),ot=c(),Ue=s("span"),it=i("StableDiffusionUpscalePipeline"),Fe=c(),w=s("p"),lt=i("The upscaler diffusion model was created by the researchers and engineers from "),V=s("a"),rt=i("CompVis"),ct=i(", "),z=s("a"),pt=i("Stability AI"),dt=i(", and "),q=s("a"),ft=i("LAION"),ut=i(", as part of Stable Diffusion 2.0. "),fe=s("a"),mt=i("StableDiffusionUpscalePipeline"),ht=i(" can be used to enhance the resolution of input images by a factor of 4."),Ae=c(),ue=s("p"),gt=i("The original codebase can be found here:"),Le=c(),me=s("ul"),Q=s("li"),xe=s("em"),_t=i("Stable Diffusion v2"),bt=i(": "),O=s("a"),vt=i("Stability-AI/stablediffusion"),Xe=c(),he=s("p"),yt=i("Available Checkpoints are:"),Re=c(),ge=s("ul"),Y=s("li"),Me=s("em"),wt=i("stabilityai/stable-diffusion-x4-upscaler (x4 resolution resolution)"),Ut=i(": "),H=s("a"),xt=i("stable-diffusion-x4-upscaler"),Ve=c(),f=s("div"),x(K.$$.fragment),Mt=c(),$e=s("p"),$t=i("Pipeline for text-guided image super-resolution using Stable Diffusion 2."),Pt=c(),ee=s("p"),St=i("This model inherits from "),_e=s("a"),Dt=i("DiffusionPipeline"),It=i(`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),Tt=c(),E=s("div"),x(te.$$.fragment),Et=c(),Pe=s("p"),jt=i("Function invoked when calling the pipeline for generation."),kt=c(),x(C.$$.fragment),Zt=c(),j=s("div"),x(ne.$$.fragment),Wt=c(),Se=s("p"),Jt=i("Enable sliced attention computation."),Gt=c(),De=s("p"),Ct=i(`When this option is enabled, the attention module will split 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.`),Nt=c(),N=s("div"),x(se.$$.fragment),Bt=c(),ae=s("p"),Ft=i("Disable sliced attention computation. If "),Ie=s("code"),At=i("enable_attention_slicing"),Lt=i(` was previously invoked, this method will go
back to computing attention in one step.`),Xt=c(),U=s("div"),x(oe.$$.fragment),Rt=c(),Te=s("p"),Vt=i("Enable memory efficient attention as implemented in xformers."),zt=c(),Ee=s("p"),qt=i(`When this option is enabled, you should observe lower GPU memory usage and a potential speed up at inference
time. Speed up at training time is not guaranteed.`),Qt=c(),je=s("p"),Ot=i(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Yt=c(),x(B.$$.fragment),Ht=c(),F=s("div"),x(ie.$$.fragment),Kt=c(),ke=s("p"),en=i("Disable memory efficient attention as implemented in xformers."),tn=c(),A=s("div"),x(le.$$.fragment),nn=c(),I=s("p"),sn=i(`Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
to `),Ze=s("code"),an=i("enable_sequential_cpu_offload"),on=i(", this method moves one whole model at a time to the GPU when its "),We=s("code"),ln=i("forward"),rn=i(`
method is called, and the model remains in GPU until the next model runs. Memory savings are lower than with
`),Je=s("code"),cn=i("enable_sequential_cpu_offload"),pn=i(", but performance is much better due to the iterative execution of the "),Ge=s("code"),dn=i("unet"),fn=i("."),un=c(),L=s("div"),x(re.$$.fragment),mn=c(),ce=s("p"),hn=i(`Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and safety checker have their state dicts saved to CPU and then are moved to a
`),Ce=s("code"),gn=i("torch.device('meta') and loaded to GPU only when their specific submodule has its "),_n=i("forward` method called."),this.h()},l(t){const m=ss('[data-svelte="svelte-1phssyn"]',document.head);h=a(m,"META",{name:!0,content:!0}),m.forEach(n),T=p(t),b=a(t,"H1",{class:!0});var pe=o(b);u=a(pe,"A",{id:!0,class:!0,href:!0});var Ne=o(u);y=a(Ne,"SPAN",{});var bn=o(y);M(r.$$.fragment,bn),bn.forEach(n),Ne.forEach(n),v=p(pe),ye=a(pe,"SPAN",{});var vn=o(ye);at=l(vn,"Super-Resolution"),vn.forEach(n),pe.forEach(n),Be=p(t),J=a(t,"H2",{class:!0});var qe=o(J);G=a(qe,"A",{id:!0,class:!0,href:!0});var yn=o(G);we=a(yn,"SPAN",{});var wn=o(we);M(R.$$.fragment,wn),wn.forEach(n),yn.forEach(n),ot=p(qe),Ue=a(qe,"SPAN",{});var Un=o(Ue);it=l(Un,"StableDiffusionUpscalePipeline"),Un.forEach(n),qe.forEach(n),Fe=p(t),w=a(t,"P",{});var k=o(w);lt=l(k,"The upscaler diffusion model was created by the researchers and engineers from "),V=a(k,"A",{href:!0,rel:!0});var xn=o(V);rt=l(xn,"CompVis"),xn.forEach(n),ct=l(k,", "),z=a(k,"A",{href:!0,rel:!0});var Mn=o(z);pt=l(Mn,"Stability AI"),Mn.forEach(n),dt=l(k,", and "),q=a(k,"A",{href:!0,rel:!0});var $n=o(q);ft=l($n,"LAION"),$n.forEach(n),ut=l(k,", as part of Stable Diffusion 2.0. "),fe=a(k,"A",{href:!0});var Pn=o(fe);mt=l(Pn,"StableDiffusionUpscalePipeline"),Pn.forEach(n),ht=l(k," can be used to enhance the resolution of input images by a factor of 4."),k.forEach(n),Ae=p(t),ue=a(t,"P",{});var Sn=o(ue);gt=l(Sn,"The original codebase can be found here:"),Sn.forEach(n),Le=p(t),me=a(t,"UL",{});var Dn=o(me);Q=a(Dn,"LI",{});var Qe=o(Q);xe=a(Qe,"EM",{});var In=o(xe);_t=l(In,"Stable Diffusion v2"),In.forEach(n),bt=l(Qe,": "),O=a(Qe,"A",{href:!0,rel:!0});var Tn=o(O);vt=l(Tn,"Stability-AI/stablediffusion"),Tn.forEach(n),Qe.forEach(n),Dn.forEach(n),Xe=p(t),he=a(t,"P",{});var En=o(he);yt=l(En,"Available Checkpoints are:"),En.forEach(n),Re=p(t),ge=a(t,"UL",{});var jn=o(ge);Y=a(jn,"LI",{});var Oe=o(Y);Me=a(Oe,"EM",{});var kn=o(Me);wt=l(kn,"stabilityai/stable-diffusion-x4-upscaler (x4 resolution resolution)"),kn.forEach(n),Ut=l(Oe,": "),H=a(Oe,"A",{href:!0,rel:!0});var Zn=o(H);xt=l(Zn,"stable-diffusion-x4-upscaler"),Zn.forEach(n),Oe.forEach(n),jn.forEach(n),Ve=p(t),f=a(t,"DIV",{class:!0});var g=o(f);M(K.$$.fragment,g),Mt=p(g),$e=a(g,"P",{});var Wn=o($e);$t=l(Wn,"Pipeline for text-guided image super-resolution using Stable Diffusion 2."),Wn.forEach(n),Pt=p(g),ee=a(g,"P",{});var Ye=o(ee);St=l(Ye,"This model inherits from "),_e=a(Ye,"A",{href:!0});var Jn=o(_e);Dt=l(Jn,"DiffusionPipeline"),Jn.forEach(n),It=l(Ye,`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),Ye.forEach(n),Tt=p(g),E=a(g,"DIV",{class:!0});var be=o(E);M(te.$$.fragment,be),Et=p(be),Pe=a(be,"P",{});var Gn=o(Pe);jt=l(Gn,"Function invoked when calling the pipeline for generation."),Gn.forEach(n),kt=p(be),M(C.$$.fragment,be),be.forEach(n),Zt=p(g),j=a(g,"DIV",{class:!0});var ve=o(j);M(ne.$$.fragment,ve),Wt=p(ve),Se=a(ve,"P",{});var Cn=o(Se);Jt=l(Cn,"Enable sliced attention computation."),Cn.forEach(n),Gt=p(ve),De=a(ve,"P",{});var Nn=o(De);Ct=l(Nn,`When this option is enabled, the attention module will split 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.`),Nn.forEach(n),ve.forEach(n),Nt=p(g),N=a(g,"DIV",{class:!0});var He=o(N);M(se.$$.fragment,He),Bt=p(He),ae=a(He,"P",{});var Ke=o(ae);Ft=l(Ke,"Disable sliced attention computation. If "),Ie=a(Ke,"CODE",{});var Bn=o(Ie);At=l(Bn,"enable_attention_slicing"),Bn.forEach(n),Lt=l(Ke,` was previously invoked, this method will go
back to computing attention in one step.`),Ke.forEach(n),He.forEach(n),Xt=p(g),U=a(g,"DIV",{class:!0});var Z=o(U);M(oe.$$.fragment,Z),Rt=p(Z),Te=a(Z,"P",{});var Fn=o(Te);Vt=l(Fn,"Enable memory efficient attention as implemented in xformers."),Fn.forEach(n),zt=p(Z),Ee=a(Z,"P",{});var An=o(Ee);qt=l(An,`When this option is enabled, you should observe lower GPU memory usage and a potential speed up at inference
time. Speed up at training time is not guaranteed.`),An.forEach(n),Qt=p(Z),je=a(Z,"P",{});var Ln=o(je);Ot=l(Ln,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Ln.forEach(n),Yt=p(Z),M(B.$$.fragment,Z),Z.forEach(n),Ht=p(g),F=a(g,"DIV",{class:!0});var et=o(F);M(ie.$$.fragment,et),Kt=p(et),ke=a(et,"P",{});var Xn=o(ke);en=l(Xn,"Disable memory efficient attention as implemented in xformers."),Xn.forEach(n),et.forEach(n),tn=p(g),A=a(g,"DIV",{class:!0});var tt=o(A);M(le.$$.fragment,tt),nn=p(tt),I=a(tt,"P",{});var W=o(I);sn=l(W,`Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
to `),Ze=a(W,"CODE",{});var Rn=o(Ze);an=l(Rn,"enable_sequential_cpu_offload"),Rn.forEach(n),on=l(W,", this method moves one whole model at a time to the GPU when its "),We=a(W,"CODE",{});var Vn=o(We);ln=l(Vn,"forward"),Vn.forEach(n),rn=l(W,`
method is called, and the model remains in GPU until the next model runs. Memory savings are lower than with
`),Je=a(W,"CODE",{});var zn=o(Je);cn=l(zn,"enable_sequential_cpu_offload"),zn.forEach(n),pn=l(W,", but performance is much better due to the iterative execution of the "),Ge=a(W,"CODE",{});var qn=o(Ge);dn=l(qn,"unet"),qn.forEach(n),fn=l(W,"."),W.forEach(n),tt.forEach(n),un=p(g),L=a(g,"DIV",{class:!0});var nt=o(L);M(re.$$.fragment,nt),mn=p(nt),ce=a(nt,"P",{});var st=o(ce);hn=l(st,`Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and safety checker have their state dicts saved to CPU and then are moved to a
`),Ce=a(st,"CODE",{});var Qn=o(Ce);gn=l(Qn,"torch.device('meta') and loaded to GPU only when their specific submodule has its "),Qn.forEach(n),_n=l(st,"forward` method called."),st.forEach(n),nt.forEach(n),g.forEach(n),this.h()},h(){d(h,"name","hf:doc:metadata"),d(h,"content",JSON.stringify(rs)),d(u,"id","superresolution"),d(u,"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"),d(u,"href","#superresolution"),d(b,"class","relative group"),d(G,"id","diffusers.StableDiffusionUpscalePipeline"),d(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"),d(G,"href","#diffusers.StableDiffusionUpscalePipeline"),d(J,"class","relative group"),d(V,"href","https://github.com/CompVis"),d(V,"rel","nofollow"),d(z,"href","https://stability.ai/"),d(z,"rel","nofollow"),d(q,"href","https://laion.ai/"),d(q,"rel","nofollow"),d(fe,"href","/docs/diffusers/v0.17.1/en/api/pipelines/stable_diffusion/upscale#diffusers.StableDiffusionUpscalePipeline"),d(O,"href","https://github.com/Stability-AI/stablediffusion#image-upscaling-with-stable-diffusion"),d(O,"rel","nofollow"),d(H,"href","https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler"),d(H,"rel","nofollow"),d(_e,"href","/docs/diffusers/v0.17.1/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),d(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,m){e(document.head,h),_(t,T,m),_(t,b,m),e(b,u),e(u,y),$(r,y,null),e(b,v),e(b,ye),e(ye,at),_(t,Be,m),_(t,J,m),e(J,G),e(G,we),$(R,we,null),e(J,ot),e(J,Ue),e(Ue,it),_(t,Fe,m),_(t,w,m),e(w,lt),e(w,V),e(V,rt),e(w,ct),e(w,z),e(z,pt),e(w,dt),e(w,q),e(q,ft),e(w,ut),e(w,fe),e(fe,mt),e(w,ht),_(t,Ae,m),_(t,ue,m),e(ue,gt),_(t,Le,m),_(t,me,m),e(me,Q),e(Q,xe),e(xe,_t),e(Q,bt),e(Q,O),e(O,vt),_(t,Xe,m),_(t,he,m),e(he,yt),_(t,Re,m),_(t,ge,m),e(ge,Y),e(Y,Me),e(Me,wt),e(Y,Ut),e(Y,H),e(H,xt),_(t,Ve,m),_(t,f,m),$(K,f,null),e(f,Mt),e(f,$e),e($e,$t),e(f,Pt),e(f,ee),e(ee,St),e(ee,_e),e(_e,Dt),e(ee,It),e(f,Tt),e(f,E),$(te,E,null),e(E,Et),e(E,Pe),e(Pe,jt),e(E,kt),$(C,E,null),e(f,Zt),e(f,j),$(ne,j,null),e(j,Wt),e(j,Se),e(Se,Jt),e(j,Gt),e(j,De),e(De,Ct),e(f,Nt),e(f,N),$(se,N,null),e(N,Bt),e(N,ae),e(ae,Ft),e(ae,Ie),e(Ie,At),e(ae,Lt),e(f,Xt),e(f,U),$(oe,U,null),e(U,Rt),e(U,Te),e(Te,Vt),e(U,zt),e(U,Ee),e(Ee,qt),e(U,Qt),e(U,je),e(je,Ot),e(U,Yt),$(B,U,null),e(f,Ht),e(f,F),$(ie,F,null),e(F,Kt),e(F,ke),e(ke,en),e(f,tn),e(f,A),$(le,A,null),e(A,nn),e(A,I),e(I,sn),e(I,Ze),e(Ze,an),e(I,on),e(I,We),e(We,ln),e(I,rn),e(I,Je),e(Je,cn),e(I,pn),e(I,Ge),e(Ge,dn),e(I,fn),e(f,un),e(f,L),$(re,L,null),e(L,mn),e(L,ce),e(ce,hn),e(ce,Ce),e(Ce,gn),e(ce,_n),ze=!0},p(t,[m]){const pe={};m&2&&(pe.$$scope={dirty:m,ctx:t}),C.$set(pe);const Ne={};m&2&&(Ne.$$scope={dirty:m,ctx:t}),B.$set(Ne)},i(t){ze||(P(r.$$.fragment,t),P(R.$$.fragment,t),P(K.$$.fragment,t),P(te.$$.fragment,t),P(C.$$.fragment,t),P(ne.$$.fragment,t),P(se.$$.fragment,t),P(oe.$$.fragment,t),P(B.$$.fragment,t),P(ie.$$.fragment,t),P(le.$$.fragment,t),P(re.$$.fragment,t),ze=!0)},o(t){S(r.$$.fragment,t),S(R.$$.fragment,t),S(K.$$.fragment,t),S(te.$$.fragment,t),S(C.$$.fragment,t),S(ne.$$.fragment,t),S(se.$$.fragment,t),S(oe.$$.fragment,t),S(B.$$.fragment,t),S(ie.$$.fragment,t),S(le.$$.fragment,t),S(re.$$.fragment,t),ze=!1},d(t){n(h),t&&n(T),t&&n(b),D(r),t&&n(Be),t&&n(J),D(R),t&&n(Fe),t&&n(w),t&&n(Ae),t&&n(ue),t&&n(Le),t&&n(me),t&&n(Xe),t&&n(he),t&&n(Re),t&&n(ge),t&&n(Ve),t&&n(f),D(K),D(te),D(C),D(ne),D(se),D(oe),D(B),D(ie),D(le),D(re)}}}const rs={local:"superresolution",sections:[{local:"diffusers.StableDiffusionUpscalePipeline",title:"StableDiffusionUpscalePipeline"}],title:"Super-Resolution"};function cs(de){return as(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hs extends es{constructor(h){super();ts(this,h,cs,ls,ns,{})}}export{hs as default,rs as metadata};
