import{S as bh,i as vh,s as Dh,e as n,k as l,w as u,t as a,M as yh,c as o,d as t,m as d,a as s,x as m,h as r,b as f,N as Ha,G as e,g as p,y as h,L as Ph,q as g,o as _,B as b,v as wh}from"../../../chunks/vendor-hf-doc-builder.js";import{D as v}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as _h}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as B}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function Sh(wp){let ie,_s,ne,ge,Sn,st,Ba,In,Ka,bs,k,Ra,xn,Ya,Ja,at,Qa,Xa,rt,Za,er,lt,tr,ir,dt,nr,or,vs,K,sr,ft,ar,rr,zi,lr,dr,Ds,R,fr,ct,cr,pr,pt,ur,mr,ys,ut,$n,hr,gr,Ps,qi,Wi,_r,mt,Gi,Sp,ws,ht,En,br,vr,Ss,_e,kn,G,Tn,Dr,yr,Ln,Pr,wr,Fi,Sr,Ir,ji,xr,$r,oe,F,Mn,gt,Er,kr,Cn,An,Tr,Lr,Hi,_t,Bi,Ip,Mr,Ki,bt,Cr,Ar,j,Nn,vt,Nr,Or,On,Un,Ur,Vr,Ri,Dt,Yi,xp,zr,Ji,yt,qr,Wr,H,Vn,Pt,Gr,Fr,wt,zn,jr,Hr,qn,Br,Kr,Qi,St,Xi,$p,Rr,Zi,Yr,Is,se,be,Wn,It,Jr,Gn,Qr,xs,ae,ve,Fn,xt,Xr,jn,Zr,$s,D,el,en,tl,il,Hn,nl,ol,tn,sl,al,nn,rl,ll,on,dl,fl,sn,cl,pl,an,ul,ml,Bn,hl,gl,Kn,_l,bl,rn,vl,Dl,Es,$t,ks,re,De,Rn,Et,yl,Yn,Pl,Ts,ye,wl,Jn,Sl,Il,Ls,Pe,kt,xl,Tt,$l,El,kl,Lt,Tl,Qn,Ll,Ml,Ms,Mt,Cs,le,we,Xn,Ct,Cl,Zn,Al,As,de,At,Nl,eo,Ol,Ns,fe,Se,to,Nt,Ul,io,Vl,Os,y,Ot,zl,no,ql,Wl,Ut,Gl,ln,Fl,jl,Hl,Ie,Vt,Bl,oo,Kl,Rl,Y,zt,Yl,so,Jl,Ql,ao,Xl,Zl,xe,qt,ed,Wt,td,ro,id,nd,od,J,Gt,sd,lo,ad,rd,fo,ld,dd,$e,Ft,fd,jt,cd,co,pd,ud,md,N,Ht,hd,po,gd,_d,uo,bd,vd,mo,Dd,yd,Ee,Bt,Pd,ho,wd,Us,ce,ke,go,Kt,Sd,_o,Id,Vs,w,Rt,xd,bo,$d,Ed,Yt,kd,dn,Td,Ld,Md,Te,Jt,Cd,vo,Ad,Nd,Q,Qt,Od,Do,Ud,Vd,yo,zd,qd,Le,Xt,Wd,Zt,Gd,Po,Fd,jd,Hd,O,ei,Bd,wo,Kd,Rd,So,Yd,Jd,Io,Qd,Xd,Me,ti,Zd,xo,ef,zs,pe,Ce,$o,ii,tf,Eo,nf,qs,S,ni,of,oi,sf,ko,af,rf,lf,si,df,fn,ff,cf,pf,Ae,ai,uf,To,mf,hf,X,ri,gf,Lo,_f,bf,Mo,vf,Df,Ne,li,yf,di,Pf,Co,wf,Sf,If,U,fi,xf,Ao,$f,Ef,No,kf,Tf,Oo,Lf,Mf,Oe,ci,Cf,Uo,Af,Ws,ue,Ue,Vo,pi,Nf,zo,Of,Gs,I,ui,Uf,qo,Vf,zf,mi,qf,cn,Wf,Gf,Ff,Ve,hi,jf,Wo,Hf,Bf,Z,gi,Kf,Go,Rf,Yf,Fo,Jf,Qf,ze,_i,Xf,bi,Zf,jo,ec,tc,ic,V,vi,nc,Ho,oc,sc,Bo,ac,rc,Ko,lc,dc,qe,Di,fc,Ro,cc,Fs,me,We,Yo,yi,pc,Jo,uc,js,x,Pi,mc,Qo,hc,gc,wi,_c,pn,bc,vc,Dc,Ge,Si,yc,Xo,Pc,wc,ee,Ii,Sc,Zo,Ic,xc,es,$c,Ec,Fe,xi,kc,$i,Tc,ts,Lc,Mc,Cc,z,Ei,Ac,is,Nc,Oc,ns,Uc,Vc,os,zc,qc,je,ki,Wc,ss,Gc,Hs,he,He,as,Ti,Fc,rs,jc,Bs,$,Li,Hc,ls,Bc,Kc,Mi,Rc,un,Yc,Jc,Qc,Be,Ci,Xc,ds,Zc,ep,te,Ai,tp,fs,ip,np,cs,op,sp,Ke,Ni,ap,Oi,rp,ps,lp,dp,fp,q,Ui,cp,us,pp,up,ms,mp,hp,hs,gp,_p,Re,Vi,bp,gs,vp,Ks;return st=new B({}),It=new B({}),xt=new B({}),$t=new _h({props:{code:`from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler

pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)

# or
euler_scheduler = EulerDiscreteScheduler.from_pretrained("CompVis/stable-diffusion-v1-4", subfolder="scheduler")
pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", scheduler=euler_scheduler)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline, EulerDiscreteScheduler

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># or</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>euler_scheduler = EulerDiscreteScheduler.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>, scheduler=euler_scheduler)`}}),Et=new B({}),Mt=new _h({props:{code:`from diffusers import (
    StableDiffusionPipeline,
    StableDiffusionImg2ImgPipeline,
    StableDiffusionInpaintPipeline,
)

text2img = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
inpaint = StableDiffusionInpaintPipeline(**text2img.components)

# now you can use text2img(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> (
<span class="hljs-meta">... </span>    StableDiffusionPipeline,
<span class="hljs-meta">... </span>    StableDiffusionImg2ImgPipeline,
<span class="hljs-meta">... </span>    StableDiffusionInpaintPipeline,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>text2img = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
<span class="hljs-meta">&gt;&gt;&gt; </span>inpaint = StableDiffusionInpaintPipeline(**text2img.components)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># now you can use text2img(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline</span>`}}),Ct=new B({}),At=new v({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>. PIL images or numpy array present the denoised images of the diffusion pipeline.`,name:"images"},{anchor:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput.nsfw_content_detected",description:`<strong>nsfw_content_detected</strong> (<code>List[bool]</code>) &#x2014;
List of flags denoting whether the corresponding generated image likely represents &#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.11.0/src/diffusers/pipelines/stable_diffusion/__init__.py#L22"}}),Nt=new B({}),Ot=new v({props:{name:"class diffusers.StableDiffusionPipeline",anchor:"diffusers.StableDiffusionPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler, diffusers.schedulers.scheduling_euler_discrete.EulerDiscreteScheduler, diffusers.schedulers.scheduling_euler_ancestral_discrete.EulerAncestralDiscreteScheduler, diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler]"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPFeatureExtractor"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.StableDiffusionPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.11.0/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.StableDiffusionPipeline.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.StableDiffusionPipeline.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.StableDiffusionPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.11.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.StableDiffusionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPFeatureExtractor</code>) &#x2014;
Model that extracts features from generated images to be used as inputs for the <code>safety_checker</code>.`,name:"feature_extractor"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L43"}}),Vt=new v({props:{name:"__call__",anchor:"diffusers.StableDiffusionPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"guidance_scale",val:": float = 7.5"},{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:"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:": typing.Optional[int] = 1"}],parametersDescription:[{anchor:"diffusers.StableDiffusionPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.StableDiffusionPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.StableDiffusionPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionPipeline.__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.StableDiffusionPipeline.__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"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L408",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),zt=new v({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionPipeline.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>, maxium 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.11.0/src/diffusers/pipeline_utils.py#L849"}}),qt=new v({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L865"}}),Gt=new v({props:{name:"enable_vae_slicing",anchor:"diffusers.StableDiffusionPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L168"}}),Ft=new v({props:{name:"disable_vae_slicing",anchor:"diffusers.StableDiffusionPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L177"}}),Ht=new v({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionPipeline.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L814"}}),Bt=new v({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L826"}}),Kt=new B({}),Rt=new v({props:{name:"class diffusers.StableDiffusionImg2ImgPipeline",anchor:"diffusers.StableDiffusionImg2ImgPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler, diffusers.schedulers.scheduling_euler_discrete.EulerDiscreteScheduler, diffusers.schedulers.scheduling_euler_ancestral_discrete.EulerAncestralDiscreteScheduler, diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler]"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPFeatureExtractor"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.StableDiffusionImg2ImgPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.11.0/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.StableDiffusionImg2ImgPipeline.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.StableDiffusionImg2ImgPipeline.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.StableDiffusionImg2ImgPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.11.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPFeatureExtractor</code>) &#x2014;
Model that extracts features from generated images to be used as inputs for the <code>safety_checker</code>.`,name:"feature_extractor"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py#L66"}}),Jt=new v({props:{name:"__call__",anchor:"diffusers.StableDiffusionImg2ImgPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image] = None"},{name:"strength",val:": float = 0.8"},{name:"num_inference_steps",val:": typing.Optional[int] = 50"},{name:"guidance_scale",val:": typing.Optional[float] = 7.5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": typing.Optional[float] = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"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:": typing.Optional[int] = 1"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__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, that will be used as the starting point for the
process.`,name:"image"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__call__.strength",description:`<strong>strength</strong> (<code>float</code>, <em>optional</em>, defaults to 0.8) &#x2014;
Conceptually, indicates how much to transform the reference <code>image</code>. Must be between 0 and 1. <code>image</code>
will be used as a starting point, adding more noise to it the larger the <code>strength</code>. The number of
denoising steps depends on the amount of noise initially added. When <code>strength</code> is 1, added noise will
be maximum and the denoising process will run for the full number of iterations specified in
<code>num_inference_steps</code>. A value of 1, therefore, essentially ignores <code>image</code>.`,name:"strength"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference. This parameter will be modulated by <code>strength</code>.`,name:"num_inference_steps"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__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.StableDiffusionImg2ImgPipeline.__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. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__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.StableDiffusionImg2ImgPipeline.__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.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__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.StableDiffusionImg2ImgPipeline.__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.StableDiffusionImg2ImgPipeline.__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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionImg2ImgPipeline.__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.StableDiffusionImg2ImgPipeline.__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"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py#L457",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),Qt=new v({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionImg2ImgPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionImg2ImgPipeline.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>, maxium 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.11.0/src/diffusers/pipeline_utils.py#L849"}}),Xt=new v({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionImg2ImgPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L865"}}),ei=new v({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionImg2ImgPipeline.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L814"}}),ti=new v({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionImg2ImgPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L826"}}),ii=new B({}),ni=new v({props:{name:"class diffusers.StableDiffusionInpaintPipeline",anchor:"diffusers.StableDiffusionInpaintPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler]"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPFeatureExtractor"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.StableDiffusionInpaintPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.11.0/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.StableDiffusionInpaintPipeline.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.StableDiffusionInpaintPipeline.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.StableDiffusionInpaintPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionInpaintPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.11.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionInpaintPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.StableDiffusionInpaintPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPFeatureExtractor</code>) &#x2014;
Model that extracts features from generated images to be used as inputs for the <code>safety_checker</code>.`,name:"feature_extractor"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py#L142"}}),ai=new v({props:{name:"__call__",anchor:"diffusers.StableDiffusionInpaintPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image]"},{name:"mask_image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image]"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"guidance_scale",val:": float = 7.5"},{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:"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:": typing.Optional[int] = 1"}],parametersDescription:[{anchor:"diffusers.StableDiffusionInpaintPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__call__.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code>) &#x2014;
<code>Image</code>, or tensor representing an image batch which will be inpainted, <em>i.e.</em> parts of the image will
be masked out with <code>mask_image</code> and repainted according to <code>prompt</code>.`,name:"image"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__call__.mask_image",description:`<strong>mask_image</strong> (<code>PIL.Image.Image</code>) &#x2014;
<code>Image</code>, or tensor representing an image batch, to mask <code>image</code>. White pixels in the mask will be
repainted, while black pixels will be preserved. If <code>mask_image</code> is a PIL image, it will be converted
to a single channel (luminance) before use. If it&#x2019;s a tensor, it should contain one color channel (L)
instead of 3, so the expected shape would be <code>(B, H, W, 1)</code>.`,name:"mask_image"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionInpaintPipeline.__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.StableDiffusionInpaintPipeline.__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"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py#L544",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),ri=new v({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionInpaintPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionInpaintPipeline.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>, maxium 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.11.0/src/diffusers/pipeline_utils.py#L849"}}),li=new v({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionInpaintPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L865"}}),fi=new v({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionInpaintPipeline.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L814"}}),ci=new v({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionInpaintPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L826"}}),pi=new B({}),ui=new v({props:{name:"class diffusers.StableDiffusionDepth2ImgPipeline",anchor:"diffusers.StableDiffusionDepth2ImgPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler, diffusers.schedulers.scheduling_euler_discrete.EulerDiscreteScheduler, diffusers.schedulers.scheduling_euler_ancestral_discrete.EulerAncestralDiscreteScheduler, diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler]"},{name:"depth_estimator",val:": DPTForDepthEstimation"},{name:"feature_extractor",val:": DPTFeatureExtractor"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.11.0/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.StableDiffusionDepth2ImgPipeline.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.StableDiffusionDepth2ImgPipeline.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.StableDiffusionDepth2ImgPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.11.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py#L66"}}),hi=new v({props:{name:"__call__",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image]"},{name:"depth_map",val:": typing.Optional[torch.FloatTensor] = None"},{name:"strength",val:": float = 0.8"},{name:"num_inference_steps",val:": typing.Optional[int] = 50"},{name:"guidance_scale",val:": typing.Optional[float] = 7.5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": typing.Optional[float] = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"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:": typing.Optional[int] = 1"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__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, that will be used as the starting point for the
process.`,name:"image"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.strength",description:`<strong>strength</strong> (<code>float</code>, <em>optional</em>, defaults to 0.8) &#x2014;
Conceptually, indicates how much to transform the reference <code>image</code>. Must be between 0 and 1. <code>image</code>
will be used as a starting point, adding more noise to it the larger the <code>strength</code>. The number of
denoising steps depends on the amount of noise initially added. When <code>strength</code> is 1, added noise will
be maximum and the denoising process will run for the full number of iterations specified in
<code>num_inference_steps</code>. A value of 1, therefore, essentially ignores <code>image</code>.`,name:"strength"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference. This parameter will be modulated by <code>strength</code>.`,name:"num_inference_steps"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
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.StableDiffusionDepth2ImgPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) 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.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__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.StableDiffusionDepth2ImgPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the 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.StableDiffusionDepth2ImgPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that 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.StableDiffusionDepth2ImgPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function will be called. If not specified, the callback will be
called at every step.`,name:"callback_steps"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py#L442",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),gi=new v({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionDepth2ImgPipeline.enable_attention_slicing.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, halves the input to the attention heads, so attention will be computed in two steps. If
<code>&quot;max&quot;</code>, maxium 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.11.0/src/diffusers/pipeline_utils.py#L849"}}),_i=new v({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L865"}}),vi=new v({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L814"}}),Di=new v({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionDepth2ImgPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L826"}}),yi=new B({}),Pi=new v({props:{name:"class diffusers.StableDiffusionImageVariationPipeline",anchor:"diffusers.StableDiffusionImageVariationPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"image_encoder",val:": CLIPVisionModelWithProjection"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler, diffusers.schedulers.scheduling_euler_discrete.EulerDiscreteScheduler, diffusers.schedulers.scheduling_euler_ancestral_discrete.EulerAncestralDiscreteScheduler, diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler]"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPFeatureExtractor"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.StableDiffusionImageVariationPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.11.0/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.StableDiffusionImageVariationPipeline.image_encoder",description:`<strong>image_encoder</strong> (<code>CLIPVisionModelWithProjection</code>) &#x2014;
Frozen CLIP image-encoder. Stable Diffusion Image Variation uses the vision portion of
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPVisionModelWithProjection" 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:"image_encoder"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.11.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPFeatureExtractor</code>) &#x2014;
Model that extracts features from generated images to be used as inputs for the <code>safety_checker</code>.`,name:"feature_extractor"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py#L44"}}),Si=new v({props:{name:"__call__",anchor:"diffusers.StableDiffusionImageVariationPipeline.__call__",parameters:[{name:"image",val:": typing.Union[PIL.Image.Image, typing.List[PIL.Image.Image], torch.FloatTensor]"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"guidance_scale",val:": float = 7.5"},{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:"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:": typing.Optional[int] = 1"}],parametersDescription:[{anchor:"diffusers.StableDiffusionImageVariationPipeline.__call__.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>List[PIL.Image.Image]</code> or <code>torch.FloatTensor</code>) &#x2014;
The image or images to guide the image generation. If you provide a tensor, it needs to comply with the
configuration of
<a href="https://huggingface.co/lambdalabs/sd-image-variations-diffusers/blob/main/feature_extractor/preprocessor_config.json" rel="nofollow">this</a>
<code>CLIPFeatureExtractor</code>`,name:"image"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionImageVariationPipeline.__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.StableDiffusionImageVariationPipeline.__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"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py#L288",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),Ii=new v({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionImageVariationPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionImageVariationPipeline.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>, maxium 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.11.0/src/diffusers/pipeline_utils.py#L849"}}),xi=new v({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionImageVariationPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L865"}}),Ei=new v({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionImageVariationPipeline.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L814"}}),ki=new v({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionImageVariationPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L826"}}),Ti=new B({}),Li=new v({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:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler]"},{name:"max_noise_level",val:": int = 350"}],parametersDescription:[{anchor:"diffusers.StableDiffusionUpscalePipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.11.0/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.11.0/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.11.0/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.11.0/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.11.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py#L55"}}),Ci=new v({props:{name:"__call__",anchor:"diffusers.StableDiffusionUpscalePipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"image",val:": typing.Union[torch.FloatTensor, PIL.Image.Image, typing.List[PIL.Image.Image]]"},{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:"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:": typing.Optional[int] = 1"}],parametersDescription:[{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.StableDiffusionUpscalePipeline.__call__.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or List<code>PIL.Image.Image</code> or <code>torch.FloatTensor</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. 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.11.0/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__.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.11.0/en/api/pipelines/stable_diffusion#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"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py#L330",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/pipelines/stable_diffusion#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.11.0/en/api/pipelines/stable_diffusion#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),Ai=new v({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>, maxium 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.11.0/src/diffusers/pipeline_utils.py#L849"}}),Ni=new v({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionUpscalePipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L865"}}),Ui=new v({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionUpscalePipeline.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L814"}}),Vi=new v({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionUpscalePipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/pipeline_utils.py#L826"}}),{c(){ie=n("meta"),_s=l(),ne=n("h1"),ge=n("a"),Sn=n("span"),u(st.$$.fragment),Ba=l(),In=n("span"),Ka=a("Stable diffusion pipelines"),bs=l(),k=n("p"),Ra=a("Stable Diffusion is a text-to-image "),xn=n("em"),Ya=a("latent diffusion"),Ja=a(" model created by the researchers and engineers from "),at=n("a"),Qa=a("CompVis"),Xa=a(", "),rt=n("a"),Za=a("Stability AI"),er=a(" and "),lt=n("a"),tr=a("LAION"),ir=a(". It\u2019s trained on 512x512 images from a subset of the "),dt=n("a"),nr=a("LAION-5B"),or=a(" dataset. This model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and can run on consumer GPUs."),vs=l(),K=n("p"),sr=a("Latent diffusion is the research on top of which Stable Diffusion was built. It was proposed in "),ft=n("a"),ar=a("High-Resolution Image Synthesis with Latent Diffusion Models"),rr=a(" by Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Bj\xF6rn Ommer. You can learn more details about it in the "),zi=n("a"),lr=a("specific pipeline for latent diffusion"),dr=a(" that is part of \u{1F917} Diffusers."),Ds=l(),R=n("p"),fr=a("For more details about how Stable Diffusion works and how it differs from the base latent diffusion model, please refer to the official "),ct=n("a"),cr=a("launch announcement post"),pr=a(" and "),pt=n("a"),ur=a("this section of our own blog post"),mr=a("."),ys=l(),ut=n("p"),$n=n("em"),hr=a("Tips"),gr=a(":"),Ps=l(),qi=n("ul"),Wi=n("li"),_r=a("To tweak your prompts on a specific result you liked, you can generate your own latents, as demonstrated in the following notebook: "),mt=n("a"),Gi=n("img"),ws=l(),ht=n("p"),En=n("em"),br=a("Overview"),vr=a(":"),Ss=l(),_e=n("table"),kn=n("thead"),G=n("tr"),Tn=n("th"),Dr=a("Pipeline"),yr=l(),Ln=n("th"),Pr=a("Tasks"),wr=l(),Fi=n("th"),Sr=a("Colab"),Ir=l(),ji=n("th"),xr=a("Demo"),$r=l(),oe=n("tbody"),F=n("tr"),Mn=n("td"),gt=n("a"),Er=a("pipeline_stable_diffusion.py"),kr=l(),Cn=n("td"),An=n("em"),Tr=a("Text-to-Image Generation"),Lr=l(),Hi=n("td"),_t=n("a"),Bi=n("img"),Mr=l(),Ki=n("td"),bt=n("a"),Cr=a("\u{1F917} Stable Diffusion"),Ar=l(),j=n("tr"),Nn=n("td"),vt=n("a"),Nr=a("pipeline_stable_diffusion_img2img.py"),Or=l(),On=n("td"),Un=n("em"),Ur=a("Image-to-Image Text-Guided Generation"),Vr=l(),Ri=n("td"),Dt=n("a"),Yi=n("img"),zr=l(),Ji=n("td"),yt=n("a"),qr=a("\u{1F917} Diffuse the Rest"),Wr=l(),H=n("tr"),Vn=n("td"),Pt=n("a"),Gr=a("pipeline_stable_diffusion_inpaint.py"),Fr=l(),wt=n("td"),zn=n("strong"),jr=a("Experimental"),Hr=a(" \u2013 "),qn=n("em"),Br=a("Text-Guided Image Inpainting"),Kr=l(),Qi=n("td"),St=n("a"),Xi=n("img"),Rr=l(),Zi=n("td"),Yr=a("Coming soon"),Is=l(),se=n("h2"),be=n("a"),Wn=n("span"),u(It.$$.fragment),Jr=l(),Gn=n("span"),Qr=a("Tips"),xs=l(),ae=n("h3"),ve=n("a"),Fn=n("span"),u(xt.$$.fragment),Xr=l(),jn=n("span"),Zr=a("How to load and use different schedulers."),$s=l(),D=n("p"),el=a("The stable diffusion pipeline uses "),en=n("a"),tl=a("PNDMScheduler"),il=a(" scheduler by default. But "),Hn=n("code"),nl=a("diffusers"),ol=a(" provides many other schedulers that can be used with the stable diffusion pipeline such as "),tn=n("a"),sl=a("DDIMScheduler"),al=a(", "),nn=n("a"),rl=a("LMSDiscreteScheduler"),ll=a(", "),on=n("a"),dl=a("EulerDiscreteScheduler"),fl=a(", "),sn=n("a"),cl=a("EulerAncestralDiscreteScheduler"),pl=a(` etc.
To use a different scheduler, you can either change it via the `),an=n("a"),ul=a("ConfigMixin.from_config()"),ml=a(" method or pass the "),Bn=n("code"),hl=a("scheduler"),gl=a(" argument to the "),Kn=n("code"),_l=a("from_pretrained"),bl=a(" method of the pipeline. For example, to use the "),rn=n("a"),vl=a("EulerDiscreteScheduler"),Dl=a(", you can do the following:"),Es=l(),u($t.$$.fragment),ks=l(),re=n("h3"),De=n("a"),Rn=n("span"),u(Et.$$.fragment),yl=l(),Yn=n("span"),Pl=a("How to convert all use cases with multiple or single pipeline"),Ts=l(),ye=n("p"),wl=a("If you want to use all possible use cases in a single "),Jn=n("code"),Sl=a("DiffusionPipeline"),Il=a(" you can either:"),Ls=l(),Pe=n("ul"),kt=n("li"),xl=a("Make use of the "),Tt=n("a"),$l=a("Stable Diffusion Mega Pipeline"),El=a(" or"),kl=l(),Lt=n("li"),Tl=a("Make use of the "),Qn=n("code"),Ll=a("components"),Ml=a(" functionality to instantiate all components in the most memory-efficient way:"),Ms=l(),u(Mt.$$.fragment),Cs=l(),le=n("h2"),we=n("a"),Xn=n("span"),u(Ct.$$.fragment),Cl=l(),Zn=n("span"),Al=a("StableDiffusionPipelineOutput"),As=l(),de=n("div"),u(At.$$.fragment),Nl=l(),eo=n("p"),Ol=a("Output class for Stable Diffusion pipelines."),Ns=l(),fe=n("h2"),Se=n("a"),to=n("span"),u(Nt.$$.fragment),Ul=l(),io=n("span"),Vl=a("StableDiffusionPipeline"),Os=l(),y=n("div"),u(Ot.$$.fragment),zl=l(),no=n("p"),ql=a("Pipeline for text-to-image generation using Stable Diffusion."),Wl=l(),Ut=n("p"),Gl=a("This model inherits from "),ln=n("a"),Fl=a("DiffusionPipeline"),jl=a(`. 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.)`),Hl=l(),Ie=n("div"),u(Vt.$$.fragment),Bl=l(),oo=n("p"),Kl=a("Function invoked when calling the pipeline for generation."),Rl=l(),Y=n("div"),u(zt.$$.fragment),Yl=l(),so=n("p"),Jl=a("Enable sliced attention computation."),Ql=l(),ao=n("p"),Xl=a(`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.`),Zl=l(),xe=n("div"),u(qt.$$.fragment),ed=l(),Wt=n("p"),td=a("Disable sliced attention computation. If "),ro=n("code"),id=a("enable_attention_slicing"),nd=a(` was previously invoked, this method will go
back to computing attention in one step.`),od=l(),J=n("div"),u(Gt.$$.fragment),sd=l(),lo=n("p"),ad=a("Enable sliced VAE decoding."),rd=l(),fo=n("p"),ld=a(`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.`),dd=l(),$e=n("div"),u(Ft.$$.fragment),fd=l(),jt=n("p"),cd=a("Disable sliced VAE decoding. If "),co=n("code"),pd=a("enable_vae_slicing"),ud=a(` was previously invoked, this method will go back to
computing decoding in one step.`),md=l(),N=n("div"),u(Ht.$$.fragment),hd=l(),po=n("p"),gd=a("Enable memory efficient attention as implemented in xformers."),_d=l(),uo=n("p"),bd=a(`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.`),vd=l(),mo=n("p"),Dd=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),yd=l(),Ee=n("div"),u(Bt.$$.fragment),Pd=l(),ho=n("p"),wd=a("Disable memory efficient attention as implemented in xformers."),Us=l(),ce=n("h2"),ke=n("a"),go=n("span"),u(Kt.$$.fragment),Sd=l(),_o=n("span"),Id=a("StableDiffusionImg2ImgPipeline"),Vs=l(),w=n("div"),u(Rt.$$.fragment),xd=l(),bo=n("p"),$d=a("Pipeline for text-guided image to image generation using Stable Diffusion."),Ed=l(),Yt=n("p"),kd=a("This model inherits from "),dn=n("a"),Td=a("DiffusionPipeline"),Ld=a(`. 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.)`),Md=l(),Te=n("div"),u(Jt.$$.fragment),Cd=l(),vo=n("p"),Ad=a("Function invoked when calling the pipeline for generation."),Nd=l(),Q=n("div"),u(Qt.$$.fragment),Od=l(),Do=n("p"),Ud=a("Enable sliced attention computation."),Vd=l(),yo=n("p"),zd=a(`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.`),qd=l(),Le=n("div"),u(Xt.$$.fragment),Wd=l(),Zt=n("p"),Gd=a("Disable sliced attention computation. If "),Po=n("code"),Fd=a("enable_attention_slicing"),jd=a(` was previously invoked, this method will go
back to computing attention in one step.`),Hd=l(),O=n("div"),u(ei.$$.fragment),Bd=l(),wo=n("p"),Kd=a("Enable memory efficient attention as implemented in xformers."),Rd=l(),So=n("p"),Yd=a(`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.`),Jd=l(),Io=n("p"),Qd=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Xd=l(),Me=n("div"),u(ti.$$.fragment),Zd=l(),xo=n("p"),ef=a("Disable memory efficient attention as implemented in xformers."),zs=l(),pe=n("h2"),Ce=n("a"),$o=n("span"),u(ii.$$.fragment),tf=l(),Eo=n("span"),nf=a("StableDiffusionInpaintPipeline"),qs=l(),S=n("div"),u(ni.$$.fragment),of=l(),oi=n("p"),sf=a("Pipeline for text-guided image inpainting using Stable Diffusion. "),ko=n("em"),af=a("This is an experimental feature"),rf=a("."),lf=l(),si=n("p"),df=a("This model inherits from "),fn=n("a"),ff=a("DiffusionPipeline"),cf=a(`. 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.)`),pf=l(),Ae=n("div"),u(ai.$$.fragment),uf=l(),To=n("p"),mf=a("Function invoked when calling the pipeline for generation."),hf=l(),X=n("div"),u(ri.$$.fragment),gf=l(),Lo=n("p"),_f=a("Enable sliced attention computation."),bf=l(),Mo=n("p"),vf=a(`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.`),Df=l(),Ne=n("div"),u(li.$$.fragment),yf=l(),di=n("p"),Pf=a("Disable sliced attention computation. If "),Co=n("code"),wf=a("enable_attention_slicing"),Sf=a(` was previously invoked, this method will go
back to computing attention in one step.`),If=l(),U=n("div"),u(fi.$$.fragment),xf=l(),Ao=n("p"),$f=a("Enable memory efficient attention as implemented in xformers."),Ef=l(),No=n("p"),kf=a(`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.`),Tf=l(),Oo=n("p"),Lf=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Mf=l(),Oe=n("div"),u(ci.$$.fragment),Cf=l(),Uo=n("p"),Af=a("Disable memory efficient attention as implemented in xformers."),Ws=l(),ue=n("h2"),Ue=n("a"),Vo=n("span"),u(pi.$$.fragment),Nf=l(),zo=n("span"),Of=a("StableDiffusionDepth2ImgPipeline"),Gs=l(),I=n("div"),u(ui.$$.fragment),Uf=l(),qo=n("p"),Vf=a("Pipeline for text-guided image to image generation using Stable Diffusion."),zf=l(),mi=n("p"),qf=a("This model inherits from "),cn=n("a"),Wf=a("DiffusionPipeline"),Gf=a(`. 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.)`),Ff=l(),Ve=n("div"),u(hi.$$.fragment),jf=l(),Wo=n("p"),Hf=a("Function invoked when calling the pipeline for generation."),Bf=l(),Z=n("div"),u(gi.$$.fragment),Kf=l(),Go=n("p"),Rf=a("Enable sliced attention computation."),Yf=l(),Fo=n("p"),Jf=a(`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.`),Qf=l(),ze=n("div"),u(_i.$$.fragment),Xf=l(),bi=n("p"),Zf=a("Disable sliced attention computation. If "),jo=n("code"),ec=a("enable_attention_slicing"),tc=a(` was previously invoked, this method will go
back to computing attention in one step.`),ic=l(),V=n("div"),u(vi.$$.fragment),nc=l(),Ho=n("p"),oc=a("Enable memory efficient attention as implemented in xformers."),sc=l(),Bo=n("p"),ac=a(`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.`),rc=l(),Ko=n("p"),lc=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),dc=l(),qe=n("div"),u(Di.$$.fragment),fc=l(),Ro=n("p"),cc=a("Disable memory efficient attention as implemented in xformers."),Fs=l(),me=n("h2"),We=n("a"),Yo=n("span"),u(yi.$$.fragment),pc=l(),Jo=n("span"),uc=a("StableDiffusionImageVariationPipeline"),js=l(),x=n("div"),u(Pi.$$.fragment),mc=l(),Qo=n("p"),hc=a("Pipeline to generate variations from an input image using Stable Diffusion."),gc=l(),wi=n("p"),_c=a("This model inherits from "),pn=n("a"),bc=a("DiffusionPipeline"),vc=a(`. 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.)`),Dc=l(),Ge=n("div"),u(Si.$$.fragment),yc=l(),Xo=n("p"),Pc=a("Function invoked when calling the pipeline for generation."),wc=l(),ee=n("div"),u(Ii.$$.fragment),Sc=l(),Zo=n("p"),Ic=a("Enable sliced attention computation."),xc=l(),es=n("p"),$c=a(`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.`),Ec=l(),Fe=n("div"),u(xi.$$.fragment),kc=l(),$i=n("p"),Tc=a("Disable sliced attention computation. If "),ts=n("code"),Lc=a("enable_attention_slicing"),Mc=a(` was previously invoked, this method will go
back to computing attention in one step.`),Cc=l(),z=n("div"),u(Ei.$$.fragment),Ac=l(),is=n("p"),Nc=a("Enable memory efficient attention as implemented in xformers."),Oc=l(),ns=n("p"),Uc=a(`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.`),Vc=l(),os=n("p"),zc=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),qc=l(),je=n("div"),u(ki.$$.fragment),Wc=l(),ss=n("p"),Gc=a("Disable memory efficient attention as implemented in xformers."),Hs=l(),he=n("h2"),He=n("a"),as=n("span"),u(Ti.$$.fragment),Fc=l(),rs=n("span"),jc=a("StableDiffusionUpscalePipeline"),Bs=l(),$=n("div"),u(Li.$$.fragment),Hc=l(),ls=n("p"),Bc=a("Pipeline for text-guided image super-resolution using Stable Diffusion 2."),Kc=l(),Mi=n("p"),Rc=a("This model inherits from "),un=n("a"),Yc=a("DiffusionPipeline"),Jc=a(`. 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.)`),Qc=l(),Be=n("div"),u(Ci.$$.fragment),Xc=l(),ds=n("p"),Zc=a("Function invoked when calling the pipeline for generation."),ep=l(),te=n("div"),u(Ai.$$.fragment),tp=l(),fs=n("p"),ip=a("Enable sliced attention computation."),np=l(),cs=n("p"),op=a(`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.`),sp=l(),Ke=n("div"),u(Ni.$$.fragment),ap=l(),Oi=n("p"),rp=a("Disable sliced attention computation. If "),ps=n("code"),lp=a("enable_attention_slicing"),dp=a(` was previously invoked, this method will go
back to computing attention in one step.`),fp=l(),q=n("div"),u(Ui.$$.fragment),cp=l(),us=n("p"),pp=a("Enable memory efficient attention as implemented in xformers."),up=l(),ms=n("p"),mp=a(`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.`),hp=l(),hs=n("p"),gp=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),_p=l(),Re=n("div"),u(Vi.$$.fragment),bp=l(),gs=n("p"),vp=a("Disable memory efficient attention as implemented in xformers."),this.h()},l(i){const c=yh('[data-svelte="svelte-1phssyn"]',document.head);ie=o(c,"META",{name:!0,content:!0}),c.forEach(t),_s=d(i),ne=o(i,"H1",{class:!0});var Rs=s(ne);ge=o(Rs,"A",{id:!0,class:!0,href:!0});var Ep=s(ge);Sn=o(Ep,"SPAN",{});var kp=s(Sn);m(st.$$.fragment,kp),kp.forEach(t),Ep.forEach(t),Ba=d(Rs),In=o(Rs,"SPAN",{});var Tp=s(In);Ka=r(Tp,"Stable diffusion pipelines"),Tp.forEach(t),Rs.forEach(t),bs=d(i),k=o(i,"P",{});var W=s(k);Ra=r(W,"Stable Diffusion is a text-to-image "),xn=o(W,"EM",{});var Lp=s(xn);Ya=r(Lp,"latent diffusion"),Lp.forEach(t),Ja=r(W," model created by the researchers and engineers from "),at=o(W,"A",{href:!0,rel:!0});var Mp=s(at);Qa=r(Mp,"CompVis"),Mp.forEach(t),Xa=r(W,", "),rt=o(W,"A",{href:!0,rel:!0});var Cp=s(rt);Za=r(Cp,"Stability AI"),Cp.forEach(t),er=r(W," and "),lt=o(W,"A",{href:!0,rel:!0});var Ap=s(lt);tr=r(Ap,"LAION"),Ap.forEach(t),ir=r(W,". It\u2019s trained on 512x512 images from a subset of the "),dt=o(W,"A",{href:!0,rel:!0});var Np=s(dt);nr=r(Np,"LAION-5B"),Np.forEach(t),or=r(W," dataset. This model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and can run on consumer GPUs."),W.forEach(t),vs=d(i),K=o(i,"P",{});var mn=s(K);sr=r(mn,"Latent diffusion is the research on top of which Stable Diffusion was built. It was proposed in "),ft=o(mn,"A",{href:!0,rel:!0});var Op=s(ft);ar=r(Op,"High-Resolution Image Synthesis with Latent Diffusion Models"),Op.forEach(t),rr=r(mn," by Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Bj\xF6rn Ommer. You can learn more details about it in the "),zi=o(mn,"A",{href:!0});var Up=s(zi);lr=r(Up,"specific pipeline for latent diffusion"),Up.forEach(t),dr=r(mn," that is part of \u{1F917} Diffusers."),mn.forEach(t),Ds=d(i),R=o(i,"P",{});var hn=s(R);fr=r(hn,"For more details about how Stable Diffusion works and how it differs from the base latent diffusion model, please refer to the official "),ct=o(hn,"A",{href:!0,rel:!0});var Vp=s(ct);cr=r(Vp,"launch announcement post"),Vp.forEach(t),pr=r(hn," and "),pt=o(hn,"A",{href:!0,rel:!0});var zp=s(pt);ur=r(zp,"this section of our own blog post"),zp.forEach(t),mr=r(hn,"."),hn.forEach(t),ys=d(i),ut=o(i,"P",{});var Dp=s(ut);$n=o(Dp,"EM",{});var qp=s($n);hr=r(qp,"Tips"),qp.forEach(t),gr=r(Dp,":"),Dp.forEach(t),Ps=d(i),qi=o(i,"UL",{});var Wp=s(qi);Wi=o(Wp,"LI",{});var yp=s(Wi);_r=r(yp,"To tweak your prompts on a specific result you liked, you can generate your own latents, as demonstrated in the following notebook: "),mt=o(yp,"A",{href:!0,rel:!0});var Gp=s(mt);Gi=o(Gp,"IMG",{src:!0,alt:!0}),Gp.forEach(t),yp.forEach(t),Wp.forEach(t),ws=d(i),ht=o(i,"P",{});var Pp=s(ht);En=o(Pp,"EM",{});var Fp=s(En);br=r(Fp,"Overview"),Fp.forEach(t),vr=r(Pp,":"),Pp.forEach(t),Ss=d(i),_e=o(i,"TABLE",{});var Ys=s(_e);kn=o(Ys,"THEAD",{});var jp=s(kn);G=o(jp,"TR",{});var Ye=s(G);Tn=o(Ye,"TH",{});var Hp=s(Tn);Dr=r(Hp,"Pipeline"),Hp.forEach(t),yr=d(Ye),Ln=o(Ye,"TH",{});var Bp=s(Ln);Pr=r(Bp,"Tasks"),Bp.forEach(t),wr=d(Ye),Fi=o(Ye,"TH",{align:!0});var Kp=s(Fi);Sr=r(Kp,"Colab"),Kp.forEach(t),Ir=d(Ye),ji=o(Ye,"TH",{align:!0});var Rp=s(ji);xr=r(Rp,"Demo"),Rp.forEach(t),Ye.forEach(t),jp.forEach(t),$r=d(Ys),oe=o(Ys,"TBODY",{});var gn=s(oe);F=o(gn,"TR",{});var Je=s(F);Mn=o(Je,"TD",{});var Yp=s(Mn);gt=o(Yp,"A",{href:!0,rel:!0});var Jp=s(gt);Er=r(Jp,"pipeline_stable_diffusion.py"),Jp.forEach(t),Yp.forEach(t),kr=d(Je),Cn=o(Je,"TD",{});var Qp=s(Cn);An=o(Qp,"EM",{});var Xp=s(An);Tr=r(Xp,"Text-to-Image Generation"),Xp.forEach(t),Qp.forEach(t),Lr=d(Je),Hi=o(Je,"TD",{align:!0});var Zp=s(Hi);_t=o(Zp,"A",{href:!0,rel:!0});var eu=s(_t);Bi=o(eu,"IMG",{src:!0,alt:!0}),eu.forEach(t),Zp.forEach(t),Mr=d(Je),Ki=o(Je,"TD",{align:!0});var tu=s(Ki);bt=o(tu,"A",{href:!0,rel:!0});var iu=s(bt);Cr=r(iu,"\u{1F917} Stable Diffusion"),iu.forEach(t),tu.forEach(t),Je.forEach(t),Ar=d(gn),j=o(gn,"TR",{});var Qe=s(j);Nn=o(Qe,"TD",{});var nu=s(Nn);vt=o(nu,"A",{href:!0,rel:!0});var ou=s(vt);Nr=r(ou,"pipeline_stable_diffusion_img2img.py"),ou.forEach(t),nu.forEach(t),Or=d(Qe),On=o(Qe,"TD",{});var su=s(On);Un=o(su,"EM",{});var au=s(Un);Ur=r(au,"Image-to-Image Text-Guided Generation"),au.forEach(t),su.forEach(t),Vr=d(Qe),Ri=o(Qe,"TD",{align:!0});var ru=s(Ri);Dt=o(ru,"A",{href:!0,rel:!0});var lu=s(Dt);Yi=o(lu,"IMG",{src:!0,alt:!0}),lu.forEach(t),ru.forEach(t),zr=d(Qe),Ji=o(Qe,"TD",{align:!0});var du=s(Ji);yt=o(du,"A",{href:!0,rel:!0});var fu=s(yt);qr=r(fu,"\u{1F917} Diffuse the Rest"),fu.forEach(t),du.forEach(t),Qe.forEach(t),Wr=d(gn),H=o(gn,"TR",{});var Xe=s(H);Vn=o(Xe,"TD",{});var cu=s(Vn);Pt=o(cu,"A",{href:!0,rel:!0});var pu=s(Pt);Gr=r(pu,"pipeline_stable_diffusion_inpaint.py"),pu.forEach(t),cu.forEach(t),Fr=d(Xe),wt=o(Xe,"TD",{});var Js=s(wt);zn=o(Js,"STRONG",{});var uu=s(zn);jr=r(uu,"Experimental"),uu.forEach(t),Hr=r(Js," \u2013 "),qn=o(Js,"EM",{});var mu=s(qn);Br=r(mu,"Text-Guided Image Inpainting"),mu.forEach(t),Js.forEach(t),Kr=d(Xe),Qi=o(Xe,"TD",{align:!0});var hu=s(Qi);St=o(hu,"A",{href:!0,rel:!0});var gu=s(St);Xi=o(gu,"IMG",{src:!0,alt:!0}),gu.forEach(t),hu.forEach(t),Rr=d(Xe),Zi=o(Xe,"TD",{align:!0});var _u=s(Zi);Yr=r(_u,"Coming soon"),_u.forEach(t),Xe.forEach(t),gn.forEach(t),Ys.forEach(t),Is=d(i),se=o(i,"H2",{class:!0});var Qs=s(se);be=o(Qs,"A",{id:!0,class:!0,href:!0});var bu=s(be);Wn=o(bu,"SPAN",{});var vu=s(Wn);m(It.$$.fragment,vu),vu.forEach(t),bu.forEach(t),Jr=d(Qs),Gn=o(Qs,"SPAN",{});var Du=s(Gn);Qr=r(Du,"Tips"),Du.forEach(t),Qs.forEach(t),xs=d(i),ae=o(i,"H3",{class:!0});var Xs=s(ae);ve=o(Xs,"A",{id:!0,class:!0,href:!0});var yu=s(ve);Fn=o(yu,"SPAN",{});var Pu=s(Fn);m(xt.$$.fragment,Pu),Pu.forEach(t),yu.forEach(t),Xr=d(Xs),jn=o(Xs,"SPAN",{});var wu=s(jn);Zr=r(wu,"How to load and use different schedulers."),wu.forEach(t),Xs.forEach(t),$s=d(i),D=o(i,"P",{});var P=s(D);el=r(P,"The stable diffusion pipeline uses "),en=o(P,"A",{href:!0});var Su=s(en);tl=r(Su,"PNDMScheduler"),Su.forEach(t),il=r(P," scheduler by default. But "),Hn=o(P,"CODE",{});var Iu=s(Hn);nl=r(Iu,"diffusers"),Iu.forEach(t),ol=r(P," provides many other schedulers that can be used with the stable diffusion pipeline such as "),tn=o(P,"A",{href:!0});var xu=s(tn);sl=r(xu,"DDIMScheduler"),xu.forEach(t),al=r(P,", "),nn=o(P,"A",{href:!0});var $u=s(nn);rl=r($u,"LMSDiscreteScheduler"),$u.forEach(t),ll=r(P,", "),on=o(P,"A",{href:!0});var Eu=s(on);dl=r(Eu,"EulerDiscreteScheduler"),Eu.forEach(t),fl=r(P,", "),sn=o(P,"A",{href:!0});var ku=s(sn);cl=r(ku,"EulerAncestralDiscreteScheduler"),ku.forEach(t),pl=r(P,` etc.
To use a different scheduler, you can either change it via the `),an=o(P,"A",{href:!0});var Tu=s(an);ul=r(Tu,"ConfigMixin.from_config()"),Tu.forEach(t),ml=r(P," method or pass the "),Bn=o(P,"CODE",{});var Lu=s(Bn);hl=r(Lu,"scheduler"),Lu.forEach(t),gl=r(P," argument to the "),Kn=o(P,"CODE",{});var Mu=s(Kn);_l=r(Mu,"from_pretrained"),Mu.forEach(t),bl=r(P," method of the pipeline. For example, to use the "),rn=o(P,"A",{href:!0});var Cu=s(rn);vl=r(Cu,"EulerDiscreteScheduler"),Cu.forEach(t),Dl=r(P,", you can do the following:"),P.forEach(t),Es=d(i),m($t.$$.fragment,i),ks=d(i),re=o(i,"H3",{class:!0});var Zs=s(re);De=o(Zs,"A",{id:!0,class:!0,href:!0});var Au=s(De);Rn=o(Au,"SPAN",{});var Nu=s(Rn);m(Et.$$.fragment,Nu),Nu.forEach(t),Au.forEach(t),yl=d(Zs),Yn=o(Zs,"SPAN",{});var Ou=s(Yn);Pl=r(Ou,"How to convert all use cases with multiple or single pipeline"),Ou.forEach(t),Zs.forEach(t),Ts=d(i),ye=o(i,"P",{});var ea=s(ye);wl=r(ea,"If you want to use all possible use cases in a single "),Jn=o(ea,"CODE",{});var Uu=s(Jn);Sl=r(Uu,"DiffusionPipeline"),Uu.forEach(t),Il=r(ea," you can either:"),ea.forEach(t),Ls=d(i),Pe=o(i,"UL",{});var ta=s(Pe);kt=o(ta,"LI",{});var ia=s(kt);xl=r(ia,"Make use of the "),Tt=o(ia,"A",{href:!0,rel:!0});var Vu=s(Tt);$l=r(Vu,"Stable Diffusion Mega Pipeline"),Vu.forEach(t),El=r(ia," or"),ia.forEach(t),kl=d(ta),Lt=o(ta,"LI",{});var na=s(Lt);Tl=r(na,"Make use of the "),Qn=o(na,"CODE",{});var zu=s(Qn);Ll=r(zu,"components"),zu.forEach(t),Ml=r(na," functionality to instantiate all components in the most memory-efficient way:"),na.forEach(t),ta.forEach(t),Ms=d(i),m(Mt.$$.fragment,i),Cs=d(i),le=o(i,"H2",{class:!0});var oa=s(le);we=o(oa,"A",{id:!0,class:!0,href:!0});var qu=s(we);Xn=o(qu,"SPAN",{});var Wu=s(Xn);m(Ct.$$.fragment,Wu),Wu.forEach(t),qu.forEach(t),Cl=d(oa),Zn=o(oa,"SPAN",{});var Gu=s(Zn);Al=r(Gu,"StableDiffusionPipelineOutput"),Gu.forEach(t),oa.forEach(t),As=d(i),de=o(i,"DIV",{class:!0});var sa=s(de);m(At.$$.fragment,sa),Nl=d(sa),eo=o(sa,"P",{});var Fu=s(eo);Ol=r(Fu,"Output class for Stable Diffusion pipelines."),Fu.forEach(t),sa.forEach(t),Ns=d(i),fe=o(i,"H2",{class:!0});var aa=s(fe);Se=o(aa,"A",{id:!0,class:!0,href:!0});var ju=s(Se);to=o(ju,"SPAN",{});var Hu=s(to);m(Nt.$$.fragment,Hu),Hu.forEach(t),ju.forEach(t),Ul=d(aa),io=o(aa,"SPAN",{});var Bu=s(io);Vl=r(Bu,"StableDiffusionPipeline"),Bu.forEach(t),aa.forEach(t),Os=d(i),y=o(i,"DIV",{class:!0});var E=s(y);m(Ot.$$.fragment,E),zl=d(E),no=o(E,"P",{});var Ku=s(no);ql=r(Ku,"Pipeline for text-to-image generation using Stable Diffusion."),Ku.forEach(t),Wl=d(E),Ut=o(E,"P",{});var ra=s(Ut);Gl=r(ra,"This model inherits from "),ln=o(ra,"A",{href:!0});var Ru=s(ln);Fl=r(Ru,"DiffusionPipeline"),Ru.forEach(t),jl=r(ra,`. 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.)`),ra.forEach(t),Hl=d(E),Ie=o(E,"DIV",{class:!0});var la=s(Ie);m(Vt.$$.fragment,la),Bl=d(la),oo=o(la,"P",{});var Yu=s(oo);Kl=r(Yu,"Function invoked when calling the pipeline for generation."),Yu.forEach(t),la.forEach(t),Rl=d(E),Y=o(E,"DIV",{class:!0});var _n=s(Y);m(zt.$$.fragment,_n),Yl=d(_n),so=o(_n,"P",{});var Ju=s(so);Jl=r(Ju,"Enable sliced attention computation."),Ju.forEach(t),Ql=d(_n),ao=o(_n,"P",{});var Qu=s(ao);Xl=r(Qu,`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.`),Qu.forEach(t),_n.forEach(t),Zl=d(E),xe=o(E,"DIV",{class:!0});var da=s(xe);m(qt.$$.fragment,da),ed=d(da),Wt=o(da,"P",{});var fa=s(Wt);td=r(fa,"Disable sliced attention computation. If "),ro=o(fa,"CODE",{});var Xu=s(ro);id=r(Xu,"enable_attention_slicing"),Xu.forEach(t),nd=r(fa,` was previously invoked, this method will go
back to computing attention in one step.`),fa.forEach(t),da.forEach(t),od=d(E),J=o(E,"DIV",{class:!0});var bn=s(J);m(Gt.$$.fragment,bn),sd=d(bn),lo=o(bn,"P",{});var Zu=s(lo);ad=r(Zu,"Enable sliced VAE decoding."),Zu.forEach(t),rd=d(bn),fo=o(bn,"P",{});var em=s(fo);ld=r(em,`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.`),em.forEach(t),bn.forEach(t),dd=d(E),$e=o(E,"DIV",{class:!0});var ca=s($e);m(Ft.$$.fragment,ca),fd=d(ca),jt=o(ca,"P",{});var pa=s(jt);cd=r(pa,"Disable sliced VAE decoding. If "),co=o(pa,"CODE",{});var tm=s(co);pd=r(tm,"enable_vae_slicing"),tm.forEach(t),ud=r(pa,` was previously invoked, this method will go back to
computing decoding in one step.`),pa.forEach(t),ca.forEach(t),md=d(E),N=o(E,"DIV",{class:!0});var Ze=s(N);m(Ht.$$.fragment,Ze),hd=d(Ze),po=o(Ze,"P",{});var im=s(po);gd=r(im,"Enable memory efficient attention as implemented in xformers."),im.forEach(t),_d=d(Ze),uo=o(Ze,"P",{});var nm=s(uo);bd=r(nm,`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.`),nm.forEach(t),vd=d(Ze),mo=o(Ze,"P",{});var om=s(mo);Dd=r(om,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),om.forEach(t),Ze.forEach(t),yd=d(E),Ee=o(E,"DIV",{class:!0});var ua=s(Ee);m(Bt.$$.fragment,ua),Pd=d(ua),ho=o(ua,"P",{});var sm=s(ho);wd=r(sm,"Disable memory efficient attention as implemented in xformers."),sm.forEach(t),ua.forEach(t),E.forEach(t),Us=d(i),ce=o(i,"H2",{class:!0});var ma=s(ce);ke=o(ma,"A",{id:!0,class:!0,href:!0});var am=s(ke);go=o(am,"SPAN",{});var rm=s(go);m(Kt.$$.fragment,rm),rm.forEach(t),am.forEach(t),Sd=d(ma),_o=o(ma,"SPAN",{});var lm=s(_o);Id=r(lm,"StableDiffusionImg2ImgPipeline"),lm.forEach(t),ma.forEach(t),Vs=d(i),w=o(i,"DIV",{class:!0});var T=s(w);m(Rt.$$.fragment,T),xd=d(T),bo=o(T,"P",{});var dm=s(bo);$d=r(dm,"Pipeline for text-guided image to image generation using Stable Diffusion."),dm.forEach(t),Ed=d(T),Yt=o(T,"P",{});var ha=s(Yt);kd=r(ha,"This model inherits from "),dn=o(ha,"A",{href:!0});var fm=s(dn);Td=r(fm,"DiffusionPipeline"),fm.forEach(t),Ld=r(ha,`. 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.)`),ha.forEach(t),Md=d(T),Te=o(T,"DIV",{class:!0});var ga=s(Te);m(Jt.$$.fragment,ga),Cd=d(ga),vo=o(ga,"P",{});var cm=s(vo);Ad=r(cm,"Function invoked when calling the pipeline for generation."),cm.forEach(t),ga.forEach(t),Nd=d(T),Q=o(T,"DIV",{class:!0});var vn=s(Q);m(Qt.$$.fragment,vn),Od=d(vn),Do=o(vn,"P",{});var pm=s(Do);Ud=r(pm,"Enable sliced attention computation."),pm.forEach(t),Vd=d(vn),yo=o(vn,"P",{});var um=s(yo);zd=r(um,`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.`),um.forEach(t),vn.forEach(t),qd=d(T),Le=o(T,"DIV",{class:!0});var _a=s(Le);m(Xt.$$.fragment,_a),Wd=d(_a),Zt=o(_a,"P",{});var ba=s(Zt);Gd=r(ba,"Disable sliced attention computation. If "),Po=o(ba,"CODE",{});var mm=s(Po);Fd=r(mm,"enable_attention_slicing"),mm.forEach(t),jd=r(ba,` was previously invoked, this method will go
back to computing attention in one step.`),ba.forEach(t),_a.forEach(t),Hd=d(T),O=o(T,"DIV",{class:!0});var et=s(O);m(ei.$$.fragment,et),Bd=d(et),wo=o(et,"P",{});var hm=s(wo);Kd=r(hm,"Enable memory efficient attention as implemented in xformers."),hm.forEach(t),Rd=d(et),So=o(et,"P",{});var gm=s(So);Yd=r(gm,`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.`),gm.forEach(t),Jd=d(et),Io=o(et,"P",{});var _m=s(Io);Qd=r(_m,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),_m.forEach(t),et.forEach(t),Xd=d(T),Me=o(T,"DIV",{class:!0});var va=s(Me);m(ti.$$.fragment,va),Zd=d(va),xo=o(va,"P",{});var bm=s(xo);ef=r(bm,"Disable memory efficient attention as implemented in xformers."),bm.forEach(t),va.forEach(t),T.forEach(t),zs=d(i),pe=o(i,"H2",{class:!0});var Da=s(pe);Ce=o(Da,"A",{id:!0,class:!0,href:!0});var vm=s(Ce);$o=o(vm,"SPAN",{});var Dm=s($o);m(ii.$$.fragment,Dm),Dm.forEach(t),vm.forEach(t),tf=d(Da),Eo=o(Da,"SPAN",{});var ym=s(Eo);nf=r(ym,"StableDiffusionInpaintPipeline"),ym.forEach(t),Da.forEach(t),qs=d(i),S=o(i,"DIV",{class:!0});var L=s(S);m(ni.$$.fragment,L),of=d(L),oi=o(L,"P",{});var ya=s(oi);sf=r(ya,"Pipeline for text-guided image inpainting using Stable Diffusion. "),ko=o(ya,"EM",{});var Pm=s(ko);af=r(Pm,"This is an experimental feature"),Pm.forEach(t),rf=r(ya,"."),ya.forEach(t),lf=d(L),si=o(L,"P",{});var Pa=s(si);df=r(Pa,"This model inherits from "),fn=o(Pa,"A",{href:!0});var wm=s(fn);ff=r(wm,"DiffusionPipeline"),wm.forEach(t),cf=r(Pa,`. 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.)`),Pa.forEach(t),pf=d(L),Ae=o(L,"DIV",{class:!0});var wa=s(Ae);m(ai.$$.fragment,wa),uf=d(wa),To=o(wa,"P",{});var Sm=s(To);mf=r(Sm,"Function invoked when calling the pipeline for generation."),Sm.forEach(t),wa.forEach(t),hf=d(L),X=o(L,"DIV",{class:!0});var Dn=s(X);m(ri.$$.fragment,Dn),gf=d(Dn),Lo=o(Dn,"P",{});var Im=s(Lo);_f=r(Im,"Enable sliced attention computation."),Im.forEach(t),bf=d(Dn),Mo=o(Dn,"P",{});var xm=s(Mo);vf=r(xm,`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.`),xm.forEach(t),Dn.forEach(t),Df=d(L),Ne=o(L,"DIV",{class:!0});var Sa=s(Ne);m(li.$$.fragment,Sa),yf=d(Sa),di=o(Sa,"P",{});var Ia=s(di);Pf=r(Ia,"Disable sliced attention computation. If "),Co=o(Ia,"CODE",{});var $m=s(Co);wf=r($m,"enable_attention_slicing"),$m.forEach(t),Sf=r(Ia,` was previously invoked, this method will go
back to computing attention in one step.`),Ia.forEach(t),Sa.forEach(t),If=d(L),U=o(L,"DIV",{class:!0});var tt=s(U);m(fi.$$.fragment,tt),xf=d(tt),Ao=o(tt,"P",{});var Em=s(Ao);$f=r(Em,"Enable memory efficient attention as implemented in xformers."),Em.forEach(t),Ef=d(tt),No=o(tt,"P",{});var km=s(No);kf=r(km,`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.`),km.forEach(t),Tf=d(tt),Oo=o(tt,"P",{});var Tm=s(Oo);Lf=r(Tm,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Tm.forEach(t),tt.forEach(t),Mf=d(L),Oe=o(L,"DIV",{class:!0});var xa=s(Oe);m(ci.$$.fragment,xa),Cf=d(xa),Uo=o(xa,"P",{});var Lm=s(Uo);Af=r(Lm,"Disable memory efficient attention as implemented in xformers."),Lm.forEach(t),xa.forEach(t),L.forEach(t),Ws=d(i),ue=o(i,"H2",{class:!0});var $a=s(ue);Ue=o($a,"A",{id:!0,class:!0,href:!0});var Mm=s(Ue);Vo=o(Mm,"SPAN",{});var Cm=s(Vo);m(pi.$$.fragment,Cm),Cm.forEach(t),Mm.forEach(t),Nf=d($a),zo=o($a,"SPAN",{});var Am=s(zo);Of=r(Am,"StableDiffusionDepth2ImgPipeline"),Am.forEach(t),$a.forEach(t),Gs=d(i),I=o(i,"DIV",{class:!0});var M=s(I);m(ui.$$.fragment,M),Uf=d(M),qo=o(M,"P",{});var Nm=s(qo);Vf=r(Nm,"Pipeline for text-guided image to image generation using Stable Diffusion."),Nm.forEach(t),zf=d(M),mi=o(M,"P",{});var Ea=s(mi);qf=r(Ea,"This model inherits from "),cn=o(Ea,"A",{href:!0});var Om=s(cn);Wf=r(Om,"DiffusionPipeline"),Om.forEach(t),Gf=r(Ea,`. 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.)`),Ea.forEach(t),Ff=d(M),Ve=o(M,"DIV",{class:!0});var ka=s(Ve);m(hi.$$.fragment,ka),jf=d(ka),Wo=o(ka,"P",{});var Um=s(Wo);Hf=r(Um,"Function invoked when calling the pipeline for generation."),Um.forEach(t),ka.forEach(t),Bf=d(M),Z=o(M,"DIV",{class:!0});var yn=s(Z);m(gi.$$.fragment,yn),Kf=d(yn),Go=o(yn,"P",{});var Vm=s(Go);Rf=r(Vm,"Enable sliced attention computation."),Vm.forEach(t),Yf=d(yn),Fo=o(yn,"P",{});var zm=s(Fo);Jf=r(zm,`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.`),zm.forEach(t),yn.forEach(t),Qf=d(M),ze=o(M,"DIV",{class:!0});var Ta=s(ze);m(_i.$$.fragment,Ta),Xf=d(Ta),bi=o(Ta,"P",{});var La=s(bi);Zf=r(La,"Disable sliced attention computation. If "),jo=o(La,"CODE",{});var qm=s(jo);ec=r(qm,"enable_attention_slicing"),qm.forEach(t),tc=r(La,` was previously invoked, this method will go
back to computing attention in one step.`),La.forEach(t),Ta.forEach(t),ic=d(M),V=o(M,"DIV",{class:!0});var it=s(V);m(vi.$$.fragment,it),nc=d(it),Ho=o(it,"P",{});var Wm=s(Ho);oc=r(Wm,"Enable memory efficient attention as implemented in xformers."),Wm.forEach(t),sc=d(it),Bo=o(it,"P",{});var Gm=s(Bo);ac=r(Gm,`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.`),Gm.forEach(t),rc=d(it),Ko=o(it,"P",{});var Fm=s(Ko);lc=r(Fm,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Fm.forEach(t),it.forEach(t),dc=d(M),qe=o(M,"DIV",{class:!0});var Ma=s(qe);m(Di.$$.fragment,Ma),fc=d(Ma),Ro=o(Ma,"P",{});var jm=s(Ro);cc=r(jm,"Disable memory efficient attention as implemented in xformers."),jm.forEach(t),Ma.forEach(t),M.forEach(t),Fs=d(i),me=o(i,"H2",{class:!0});var Ca=s(me);We=o(Ca,"A",{id:!0,class:!0,href:!0});var Hm=s(We);Yo=o(Hm,"SPAN",{});var Bm=s(Yo);m(yi.$$.fragment,Bm),Bm.forEach(t),Hm.forEach(t),pc=d(Ca),Jo=o(Ca,"SPAN",{});var Km=s(Jo);uc=r(Km,"StableDiffusionImageVariationPipeline"),Km.forEach(t),Ca.forEach(t),js=d(i),x=o(i,"DIV",{class:!0});var C=s(x);m(Pi.$$.fragment,C),mc=d(C),Qo=o(C,"P",{});var Rm=s(Qo);hc=r(Rm,"Pipeline to generate variations from an input image using Stable Diffusion."),Rm.forEach(t),gc=d(C),wi=o(C,"P",{});var Aa=s(wi);_c=r(Aa,"This model inherits from "),pn=o(Aa,"A",{href:!0});var Ym=s(pn);bc=r(Ym,"DiffusionPipeline"),Ym.forEach(t),vc=r(Aa,`. 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.)`),Aa.forEach(t),Dc=d(C),Ge=o(C,"DIV",{class:!0});var Na=s(Ge);m(Si.$$.fragment,Na),yc=d(Na),Xo=o(Na,"P",{});var Jm=s(Xo);Pc=r(Jm,"Function invoked when calling the pipeline for generation."),Jm.forEach(t),Na.forEach(t),wc=d(C),ee=o(C,"DIV",{class:!0});var Pn=s(ee);m(Ii.$$.fragment,Pn),Sc=d(Pn),Zo=o(Pn,"P",{});var Qm=s(Zo);Ic=r(Qm,"Enable sliced attention computation."),Qm.forEach(t),xc=d(Pn),es=o(Pn,"P",{});var Xm=s(es);$c=r(Xm,`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.`),Xm.forEach(t),Pn.forEach(t),Ec=d(C),Fe=o(C,"DIV",{class:!0});var Oa=s(Fe);m(xi.$$.fragment,Oa),kc=d(Oa),$i=o(Oa,"P",{});var Ua=s($i);Tc=r(Ua,"Disable sliced attention computation. If "),ts=o(Ua,"CODE",{});var Zm=s(ts);Lc=r(Zm,"enable_attention_slicing"),Zm.forEach(t),Mc=r(Ua,` was previously invoked, this method will go
back to computing attention in one step.`),Ua.forEach(t),Oa.forEach(t),Cc=d(C),z=o(C,"DIV",{class:!0});var nt=s(z);m(Ei.$$.fragment,nt),Ac=d(nt),is=o(nt,"P",{});var eh=s(is);Nc=r(eh,"Enable memory efficient attention as implemented in xformers."),eh.forEach(t),Oc=d(nt),ns=o(nt,"P",{});var th=s(ns);Uc=r(th,`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.`),th.forEach(t),Vc=d(nt),os=o(nt,"P",{});var ih=s(os);zc=r(ih,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),ih.forEach(t),nt.forEach(t),qc=d(C),je=o(C,"DIV",{class:!0});var Va=s(je);m(ki.$$.fragment,Va),Wc=d(Va),ss=o(Va,"P",{});var nh=s(ss);Gc=r(nh,"Disable memory efficient attention as implemented in xformers."),nh.forEach(t),Va.forEach(t),C.forEach(t),Hs=d(i),he=o(i,"H2",{class:!0});var za=s(he);He=o(za,"A",{id:!0,class:!0,href:!0});var oh=s(He);as=o(oh,"SPAN",{});var sh=s(as);m(Ti.$$.fragment,sh),sh.forEach(t),oh.forEach(t),Fc=d(za),rs=o(za,"SPAN",{});var ah=s(rs);jc=r(ah,"StableDiffusionUpscalePipeline"),ah.forEach(t),za.forEach(t),Bs=d(i),$=o(i,"DIV",{class:!0});var A=s($);m(Li.$$.fragment,A),Hc=d(A),ls=o(A,"P",{});var rh=s(ls);Bc=r(rh,"Pipeline for text-guided image super-resolution using Stable Diffusion 2."),rh.forEach(t),Kc=d(A),Mi=o(A,"P",{});var qa=s(Mi);Rc=r(qa,"This model inherits from "),un=o(qa,"A",{href:!0});var lh=s(un);Yc=r(lh,"DiffusionPipeline"),lh.forEach(t),Jc=r(qa,`. 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.)`),qa.forEach(t),Qc=d(A),Be=o(A,"DIV",{class:!0});var Wa=s(Be);m(Ci.$$.fragment,Wa),Xc=d(Wa),ds=o(Wa,"P",{});var dh=s(ds);Zc=r(dh,"Function invoked when calling the pipeline for generation."),dh.forEach(t),Wa.forEach(t),ep=d(A),te=o(A,"DIV",{class:!0});var wn=s(te);m(Ai.$$.fragment,wn),tp=d(wn),fs=o(wn,"P",{});var fh=s(fs);ip=r(fh,"Enable sliced attention computation."),fh.forEach(t),np=d(wn),cs=o(wn,"P",{});var ch=s(cs);op=r(ch,`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.`),ch.forEach(t),wn.forEach(t),sp=d(A),Ke=o(A,"DIV",{class:!0});var Ga=s(Ke);m(Ni.$$.fragment,Ga),ap=d(Ga),Oi=o(Ga,"P",{});var Fa=s(Oi);rp=r(Fa,"Disable sliced attention computation. If "),ps=o(Fa,"CODE",{});var ph=s(ps);lp=r(ph,"enable_attention_slicing"),ph.forEach(t),dp=r(Fa,` was previously invoked, this method will go
back to computing attention in one step.`),Fa.forEach(t),Ga.forEach(t),fp=d(A),q=o(A,"DIV",{class:!0});var ot=s(q);m(Ui.$$.fragment,ot),cp=d(ot),us=o(ot,"P",{});var uh=s(us);pp=r(uh,"Enable memory efficient attention as implemented in xformers."),uh.forEach(t),up=d(ot),ms=o(ot,"P",{});var mh=s(ms);mp=r(mh,`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.`),mh.forEach(t),hp=d(ot),hs=o(ot,"P",{});var hh=s(hs);gp=r(hh,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),hh.forEach(t),ot.forEach(t),_p=d(A),Re=o(A,"DIV",{class:!0});var ja=s(Re);m(Vi.$$.fragment,ja),bp=d(ja),gs=o(ja,"P",{});var gh=s(gs);vp=r(gh,"Disable memory efficient attention as implemented in xformers."),gh.forEach(t),ja.forEach(t),A.forEach(t),this.h()},h(){f(ie,"name","hf:doc:metadata"),f(ie,"content",JSON.stringify(Ih)),f(ge,"id","stable-diffusion-pipelines"),f(ge,"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"),f(ge,"href","#stable-diffusion-pipelines"),f(ne,"class","relative group"),f(at,"href","https://github.com/CompVis"),f(at,"rel","nofollow"),f(rt,"href","https://stability.ai/"),f(rt,"rel","nofollow"),f(lt,"href","https://laion.ai/"),f(lt,"rel","nofollow"),f(dt,"href","https://laion.ai/blog/laion-5b/"),f(dt,"rel","nofollow"),f(ft,"href","https://arxiv.org/abs/2112.10752"),f(ft,"rel","nofollow"),f(zi,"href","pipelines/latent_diffusion"),f(ct,"href","https://stability.ai/blog/stable-diffusion-announcement"),f(ct,"rel","nofollow"),f(pt,"href","https://huggingface.co/blog/stable_diffusion#how-does-stable-diffusion-work"),f(pt,"rel","nofollow"),Ha(Gi.src,Sp="https://colab.research.google.com/assets/colab-badge.svg")||f(Gi,"src",Sp),f(Gi,"alt","Open In Colab"),f(mt,"href","https://colab.research.google.com/github/pcuenca/diffusers-examples/blob/main/notebooks/stable-diffusion-seeds.ipynb"),f(mt,"rel","nofollow"),f(Fi,"align","center"),f(ji,"align","center"),f(gt,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"),f(gt,"rel","nofollow"),Ha(Bi.src,Ip="https://colab.research.google.com/assets/colab-badge.svg")||f(Bi,"src",Ip),f(Bi,"alt","Open In Colab"),f(_t,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/stable_diffusion.ipynb"),f(_t,"rel","nofollow"),f(Hi,"align","center"),f(bt,"href","https://huggingface.co/spaces/stabilityai/stable-diffusion"),f(bt,"rel","nofollow"),f(Ki,"align","center"),f(vt,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"),f(vt,"rel","nofollow"),Ha(Yi.src,xp="https://colab.research.google.com/assets/colab-badge.svg")||f(Yi,"src",xp),f(Yi,"alt","Open In Colab"),f(Dt,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/image_2_image_using_diffusers.ipynb"),f(Dt,"rel","nofollow"),f(Ri,"align","center"),f(yt,"href","https://huggingface.co/spaces/huggingface/diffuse-the-rest"),f(yt,"rel","nofollow"),f(Ji,"align","center"),f(Pt,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"),f(Pt,"rel","nofollow"),Ha(Xi.src,$p="https://colab.research.google.com/assets/colab-badge.svg")||f(Xi,"src",$p),f(Xi,"alt","Open In Colab"),f(St,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/in_painting_with_stable_diffusion_using_diffusers.ipynb"),f(St,"rel","nofollow"),f(Qi,"align","center"),f(Zi,"align","center"),f(be,"id","tips"),f(be,"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"),f(be,"href","#tips"),f(se,"class","relative group"),f(ve,"id","how-to-load-and-use-different-schedulers"),f(ve,"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"),f(ve,"href","#how-to-load-and-use-different-schedulers"),f(ae,"class","relative group"),f(en,"href","/docs/diffusers/v0.11.0/en/api/schedulers/pndm#diffusers.PNDMScheduler"),f(tn,"href","/docs/diffusers/v0.11.0/en/api/schedulers/ddim#diffusers.DDIMScheduler"),f(nn,"href","/docs/diffusers/v0.11.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler"),f(on,"href","/docs/diffusers/v0.11.0/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler"),f(sn,"href","/docs/diffusers/v0.11.0/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler"),f(an,"href","/docs/diffusers/v0.11.0/en/api/configuration#diffusers.ConfigMixin.from_config"),f(rn,"href","/docs/diffusers/v0.11.0/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler"),f(De,"id","how-to-convert-all-use-cases-with-multiple-or-single-pipeline"),f(De,"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"),f(De,"href","#how-to-convert-all-use-cases-with-multiple-or-single-pipeline"),f(re,"class","relative group"),f(Tt,"href","https://github.com/huggingface/diffusers/tree/main/examples/community#stable-diffusion-mega"),f(Tt,"rel","nofollow"),f(we,"id","diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),f(we,"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"),f(we,"href","#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"),f(le,"class","relative group"),f(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Se,"id","diffusers.StableDiffusionPipeline"),f(Se,"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"),f(Se,"href","#diffusers.StableDiffusionPipeline"),f(fe,"class","relative group"),f(ln,"href","/docs/diffusers/v0.11.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),f(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(ke,"id","diffusers.StableDiffusionImg2ImgPipeline"),f(ke,"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"),f(ke,"href","#diffusers.StableDiffusionImg2ImgPipeline"),f(ce,"class","relative group"),f(dn,"href","/docs/diffusers/v0.11.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),f(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ce,"id","diffusers.StableDiffusionInpaintPipeline"),f(Ce,"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"),f(Ce,"href","#diffusers.StableDiffusionInpaintPipeline"),f(pe,"class","relative group"),f(fn,"href","/docs/diffusers/v0.11.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),f(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ue,"id","diffusers.StableDiffusionDepth2ImgPipeline"),f(Ue,"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"),f(Ue,"href","#diffusers.StableDiffusionDepth2ImgPipeline"),f(ue,"class","relative group"),f(cn,"href","/docs/diffusers/v0.11.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),f(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(We,"id","diffusers.StableDiffusionImageVariationPipeline"),f(We,"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"),f(We,"href","#diffusers.StableDiffusionImageVariationPipeline"),f(me,"class","relative group"),f(pn,"href","/docs/diffusers/v0.11.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),f(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(He,"id","diffusers.StableDiffusionUpscalePipeline"),f(He,"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"),f(He,"href","#diffusers.StableDiffusionUpscalePipeline"),f(he,"class","relative group"),f(un,"href","/docs/diffusers/v0.11.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),f(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(i,c){e(document.head,ie),p(i,_s,c),p(i,ne,c),e(ne,ge),e(ge,Sn),h(st,Sn,null),e(ne,Ba),e(ne,In),e(In,Ka),p(i,bs,c),p(i,k,c),e(k,Ra),e(k,xn),e(xn,Ya),e(k,Ja),e(k,at),e(at,Qa),e(k,Xa),e(k,rt),e(rt,Za),e(k,er),e(k,lt),e(lt,tr),e(k,ir),e(k,dt),e(dt,nr),e(k,or),p(i,vs,c),p(i,K,c),e(K,sr),e(K,ft),e(ft,ar),e(K,rr),e(K,zi),e(zi,lr),e(K,dr),p(i,Ds,c),p(i,R,c),e(R,fr),e(R,ct),e(ct,cr),e(R,pr),e(R,pt),e(pt,ur),e(R,mr),p(i,ys,c),p(i,ut,c),e(ut,$n),e($n,hr),e(ut,gr),p(i,Ps,c),p(i,qi,c),e(qi,Wi),e(Wi,_r),e(Wi,mt),e(mt,Gi),p(i,ws,c),p(i,ht,c),e(ht,En),e(En,br),e(ht,vr),p(i,Ss,c),p(i,_e,c),e(_e,kn),e(kn,G),e(G,Tn),e(Tn,Dr),e(G,yr),e(G,Ln),e(Ln,Pr),e(G,wr),e(G,Fi),e(Fi,Sr),e(G,Ir),e(G,ji),e(ji,xr),e(_e,$r),e(_e,oe),e(oe,F),e(F,Mn),e(Mn,gt),e(gt,Er),e(F,kr),e(F,Cn),e(Cn,An),e(An,Tr),e(F,Lr),e(F,Hi),e(Hi,_t),e(_t,Bi),e(F,Mr),e(F,Ki),e(Ki,bt),e(bt,Cr),e(oe,Ar),e(oe,j),e(j,Nn),e(Nn,vt),e(vt,Nr),e(j,Or),e(j,On),e(On,Un),e(Un,Ur),e(j,Vr),e(j,Ri),e(Ri,Dt),e(Dt,Yi),e(j,zr),e(j,Ji),e(Ji,yt),e(yt,qr),e(oe,Wr),e(oe,H),e(H,Vn),e(Vn,Pt),e(Pt,Gr),e(H,Fr),e(H,wt),e(wt,zn),e(zn,jr),e(wt,Hr),e(wt,qn),e(qn,Br),e(H,Kr),e(H,Qi),e(Qi,St),e(St,Xi),e(H,Rr),e(H,Zi),e(Zi,Yr),p(i,Is,c),p(i,se,c),e(se,be),e(be,Wn),h(It,Wn,null),e(se,Jr),e(se,Gn),e(Gn,Qr),p(i,xs,c),p(i,ae,c),e(ae,ve),e(ve,Fn),h(xt,Fn,null),e(ae,Xr),e(ae,jn),e(jn,Zr),p(i,$s,c),p(i,D,c),e(D,el),e(D,en),e(en,tl),e(D,il),e(D,Hn),e(Hn,nl),e(D,ol),e(D,tn),e(tn,sl),e(D,al),e(D,nn),e(nn,rl),e(D,ll),e(D,on),e(on,dl),e(D,fl),e(D,sn),e(sn,cl),e(D,pl),e(D,an),e(an,ul),e(D,ml),e(D,Bn),e(Bn,hl),e(D,gl),e(D,Kn),e(Kn,_l),e(D,bl),e(D,rn),e(rn,vl),e(D,Dl),p(i,Es,c),h($t,i,c),p(i,ks,c),p(i,re,c),e(re,De),e(De,Rn),h(Et,Rn,null),e(re,yl),e(re,Yn),e(Yn,Pl),p(i,Ts,c),p(i,ye,c),e(ye,wl),e(ye,Jn),e(Jn,Sl),e(ye,Il),p(i,Ls,c),p(i,Pe,c),e(Pe,kt),e(kt,xl),e(kt,Tt),e(Tt,$l),e(kt,El),e(Pe,kl),e(Pe,Lt),e(Lt,Tl),e(Lt,Qn),e(Qn,Ll),e(Lt,Ml),p(i,Ms,c),h(Mt,i,c),p(i,Cs,c),p(i,le,c),e(le,we),e(we,Xn),h(Ct,Xn,null),e(le,Cl),e(le,Zn),e(Zn,Al),p(i,As,c),p(i,de,c),h(At,de,null),e(de,Nl),e(de,eo),e(eo,Ol),p(i,Ns,c),p(i,fe,c),e(fe,Se),e(Se,to),h(Nt,to,null),e(fe,Ul),e(fe,io),e(io,Vl),p(i,Os,c),p(i,y,c),h(Ot,y,null),e(y,zl),e(y,no),e(no,ql),e(y,Wl),e(y,Ut),e(Ut,Gl),e(Ut,ln),e(ln,Fl),e(Ut,jl),e(y,Hl),e(y,Ie),h(Vt,Ie,null),e(Ie,Bl),e(Ie,oo),e(oo,Kl),e(y,Rl),e(y,Y),h(zt,Y,null),e(Y,Yl),e(Y,so),e(so,Jl),e(Y,Ql),e(Y,ao),e(ao,Xl),e(y,Zl),e(y,xe),h(qt,xe,null),e(xe,ed),e(xe,Wt),e(Wt,td),e(Wt,ro),e(ro,id),e(Wt,nd),e(y,od),e(y,J),h(Gt,J,null),e(J,sd),e(J,lo),e(lo,ad),e(J,rd),e(J,fo),e(fo,ld),e(y,dd),e(y,$e),h(Ft,$e,null),e($e,fd),e($e,jt),e(jt,cd),e(jt,co),e(co,pd),e(jt,ud),e(y,md),e(y,N),h(Ht,N,null),e(N,hd),e(N,po),e(po,gd),e(N,_d),e(N,uo),e(uo,bd),e(N,vd),e(N,mo),e(mo,Dd),e(y,yd),e(y,Ee),h(Bt,Ee,null),e(Ee,Pd),e(Ee,ho),e(ho,wd),p(i,Us,c),p(i,ce,c),e(ce,ke),e(ke,go),h(Kt,go,null),e(ce,Sd),e(ce,_o),e(_o,Id),p(i,Vs,c),p(i,w,c),h(Rt,w,null),e(w,xd),e(w,bo),e(bo,$d),e(w,Ed),e(w,Yt),e(Yt,kd),e(Yt,dn),e(dn,Td),e(Yt,Ld),e(w,Md),e(w,Te),h(Jt,Te,null),e(Te,Cd),e(Te,vo),e(vo,Ad),e(w,Nd),e(w,Q),h(Qt,Q,null),e(Q,Od),e(Q,Do),e(Do,Ud),e(Q,Vd),e(Q,yo),e(yo,zd),e(w,qd),e(w,Le),h(Xt,Le,null),e(Le,Wd),e(Le,Zt),e(Zt,Gd),e(Zt,Po),e(Po,Fd),e(Zt,jd),e(w,Hd),e(w,O),h(ei,O,null),e(O,Bd),e(O,wo),e(wo,Kd),e(O,Rd),e(O,So),e(So,Yd),e(O,Jd),e(O,Io),e(Io,Qd),e(w,Xd),e(w,Me),h(ti,Me,null),e(Me,Zd),e(Me,xo),e(xo,ef),p(i,zs,c),p(i,pe,c),e(pe,Ce),e(Ce,$o),h(ii,$o,null),e(pe,tf),e(pe,Eo),e(Eo,nf),p(i,qs,c),p(i,S,c),h(ni,S,null),e(S,of),e(S,oi),e(oi,sf),e(oi,ko),e(ko,af),e(oi,rf),e(S,lf),e(S,si),e(si,df),e(si,fn),e(fn,ff),e(si,cf),e(S,pf),e(S,Ae),h(ai,Ae,null),e(Ae,uf),e(Ae,To),e(To,mf),e(S,hf),e(S,X),h(ri,X,null),e(X,gf),e(X,Lo),e(Lo,_f),e(X,bf),e(X,Mo),e(Mo,vf),e(S,Df),e(S,Ne),h(li,Ne,null),e(Ne,yf),e(Ne,di),e(di,Pf),e(di,Co),e(Co,wf),e(di,Sf),e(S,If),e(S,U),h(fi,U,null),e(U,xf),e(U,Ao),e(Ao,$f),e(U,Ef),e(U,No),e(No,kf),e(U,Tf),e(U,Oo),e(Oo,Lf),e(S,Mf),e(S,Oe),h(ci,Oe,null),e(Oe,Cf),e(Oe,Uo),e(Uo,Af),p(i,Ws,c),p(i,ue,c),e(ue,Ue),e(Ue,Vo),h(pi,Vo,null),e(ue,Nf),e(ue,zo),e(zo,Of),p(i,Gs,c),p(i,I,c),h(ui,I,null),e(I,Uf),e(I,qo),e(qo,Vf),e(I,zf),e(I,mi),e(mi,qf),e(mi,cn),e(cn,Wf),e(mi,Gf),e(I,Ff),e(I,Ve),h(hi,Ve,null),e(Ve,jf),e(Ve,Wo),e(Wo,Hf),e(I,Bf),e(I,Z),h(gi,Z,null),e(Z,Kf),e(Z,Go),e(Go,Rf),e(Z,Yf),e(Z,Fo),e(Fo,Jf),e(I,Qf),e(I,ze),h(_i,ze,null),e(ze,Xf),e(ze,bi),e(bi,Zf),e(bi,jo),e(jo,ec),e(bi,tc),e(I,ic),e(I,V),h(vi,V,null),e(V,nc),e(V,Ho),e(Ho,oc),e(V,sc),e(V,Bo),e(Bo,ac),e(V,rc),e(V,Ko),e(Ko,lc),e(I,dc),e(I,qe),h(Di,qe,null),e(qe,fc),e(qe,Ro),e(Ro,cc),p(i,Fs,c),p(i,me,c),e(me,We),e(We,Yo),h(yi,Yo,null),e(me,pc),e(me,Jo),e(Jo,uc),p(i,js,c),p(i,x,c),h(Pi,x,null),e(x,mc),e(x,Qo),e(Qo,hc),e(x,gc),e(x,wi),e(wi,_c),e(wi,pn),e(pn,bc),e(wi,vc),e(x,Dc),e(x,Ge),h(Si,Ge,null),e(Ge,yc),e(Ge,Xo),e(Xo,Pc),e(x,wc),e(x,ee),h(Ii,ee,null),e(ee,Sc),e(ee,Zo),e(Zo,Ic),e(ee,xc),e(ee,es),e(es,$c),e(x,Ec),e(x,Fe),h(xi,Fe,null),e(Fe,kc),e(Fe,$i),e($i,Tc),e($i,ts),e(ts,Lc),e($i,Mc),e(x,Cc),e(x,z),h(Ei,z,null),e(z,Ac),e(z,is),e(is,Nc),e(z,Oc),e(z,ns),e(ns,Uc),e(z,Vc),e(z,os),e(os,zc),e(x,qc),e(x,je),h(ki,je,null),e(je,Wc),e(je,ss),e(ss,Gc),p(i,Hs,c),p(i,he,c),e(he,He),e(He,as),h(Ti,as,null),e(he,Fc),e(he,rs),e(rs,jc),p(i,Bs,c),p(i,$,c),h(Li,$,null),e($,Hc),e($,ls),e(ls,Bc),e($,Kc),e($,Mi),e(Mi,Rc),e(Mi,un),e(un,Yc),e(Mi,Jc),e($,Qc),e($,Be),h(Ci,Be,null),e(Be,Xc),e(Be,ds),e(ds,Zc),e($,ep),e($,te),h(Ai,te,null),e(te,tp),e(te,fs),e(fs,ip),e(te,np),e(te,cs),e(cs,op),e($,sp),e($,Ke),h(Ni,Ke,null),e(Ke,ap),e(Ke,Oi),e(Oi,rp),e(Oi,ps),e(ps,lp),e(Oi,dp),e($,fp),e($,q),h(Ui,q,null),e(q,cp),e(q,us),e(us,pp),e(q,up),e(q,ms),e(ms,mp),e(q,hp),e(q,hs),e(hs,gp),e($,_p),e($,Re),h(Vi,Re,null),e(Re,bp),e(Re,gs),e(gs,vp),Ks=!0},p:Ph,i(i){Ks||(g(st.$$.fragment,i),g(It.$$.fragment,i),g(xt.$$.fragment,i),g($t.$$.fragment,i),g(Et.$$.fragment,i),g(Mt.$$.fragment,i),g(Ct.$$.fragment,i),g(At.$$.fragment,i),g(Nt.$$.fragment,i),g(Ot.$$.fragment,i),g(Vt.$$.fragment,i),g(zt.$$.fragment,i),g(qt.$$.fragment,i),g(Gt.$$.fragment,i),g(Ft.$$.fragment,i),g(Ht.$$.fragment,i),g(Bt.$$.fragment,i),g(Kt.$$.fragment,i),g(Rt.$$.fragment,i),g(Jt.$$.fragment,i),g(Qt.$$.fragment,i),g(Xt.$$.fragment,i),g(ei.$$.fragment,i),g(ti.$$.fragment,i),g(ii.$$.fragment,i),g(ni.$$.fragment,i),g(ai.$$.fragment,i),g(ri.$$.fragment,i),g(li.$$.fragment,i),g(fi.$$.fragment,i),g(ci.$$.fragment,i),g(pi.$$.fragment,i),g(ui.$$.fragment,i),g(hi.$$.fragment,i),g(gi.$$.fragment,i),g(_i.$$.fragment,i),g(vi.$$.fragment,i),g(Di.$$.fragment,i),g(yi.$$.fragment,i),g(Pi.$$.fragment,i),g(Si.$$.fragment,i),g(Ii.$$.fragment,i),g(xi.$$.fragment,i),g(Ei.$$.fragment,i),g(ki.$$.fragment,i),g(Ti.$$.fragment,i),g(Li.$$.fragment,i),g(Ci.$$.fragment,i),g(Ai.$$.fragment,i),g(Ni.$$.fragment,i),g(Ui.$$.fragment,i),g(Vi.$$.fragment,i),Ks=!0)},o(i){_(st.$$.fragment,i),_(It.$$.fragment,i),_(xt.$$.fragment,i),_($t.$$.fragment,i),_(Et.$$.fragment,i),_(Mt.$$.fragment,i),_(Ct.$$.fragment,i),_(At.$$.fragment,i),_(Nt.$$.fragment,i),_(Ot.$$.fragment,i),_(Vt.$$.fragment,i),_(zt.$$.fragment,i),_(qt.$$.fragment,i),_(Gt.$$.fragment,i),_(Ft.$$.fragment,i),_(Ht.$$.fragment,i),_(Bt.$$.fragment,i),_(Kt.$$.fragment,i),_(Rt.$$.fragment,i),_(Jt.$$.fragment,i),_(Qt.$$.fragment,i),_(Xt.$$.fragment,i),_(ei.$$.fragment,i),_(ti.$$.fragment,i),_(ii.$$.fragment,i),_(ni.$$.fragment,i),_(ai.$$.fragment,i),_(ri.$$.fragment,i),_(li.$$.fragment,i),_(fi.$$.fragment,i),_(ci.$$.fragment,i),_(pi.$$.fragment,i),_(ui.$$.fragment,i),_(hi.$$.fragment,i),_(gi.$$.fragment,i),_(_i.$$.fragment,i),_(vi.$$.fragment,i),_(Di.$$.fragment,i),_(yi.$$.fragment,i),_(Pi.$$.fragment,i),_(Si.$$.fragment,i),_(Ii.$$.fragment,i),_(xi.$$.fragment,i),_(Ei.$$.fragment,i),_(ki.$$.fragment,i),_(Ti.$$.fragment,i),_(Li.$$.fragment,i),_(Ci.$$.fragment,i),_(Ai.$$.fragment,i),_(Ni.$$.fragment,i),_(Ui.$$.fragment,i),_(Vi.$$.fragment,i),Ks=!1},d(i){t(ie),i&&t(_s),i&&t(ne),b(st),i&&t(bs),i&&t(k),i&&t(vs),i&&t(K),i&&t(Ds),i&&t(R),i&&t(ys),i&&t(ut),i&&t(Ps),i&&t(qi),i&&t(ws),i&&t(ht),i&&t(Ss),i&&t(_e),i&&t(Is),i&&t(se),b(It),i&&t(xs),i&&t(ae),b(xt),i&&t($s),i&&t(D),i&&t(Es),b($t,i),i&&t(ks),i&&t(re),b(Et),i&&t(Ts),i&&t(ye),i&&t(Ls),i&&t(Pe),i&&t(Ms),b(Mt,i),i&&t(Cs),i&&t(le),b(Ct),i&&t(As),i&&t(de),b(At),i&&t(Ns),i&&t(fe),b(Nt),i&&t(Os),i&&t(y),b(Ot),b(Vt),b(zt),b(qt),b(Gt),b(Ft),b(Ht),b(Bt),i&&t(Us),i&&t(ce),b(Kt),i&&t(Vs),i&&t(w),b(Rt),b(Jt),b(Qt),b(Xt),b(ei),b(ti),i&&t(zs),i&&t(pe),b(ii),i&&t(qs),i&&t(S),b(ni),b(ai),b(ri),b(li),b(fi),b(ci),i&&t(Ws),i&&t(ue),b(pi),i&&t(Gs),i&&t(I),b(ui),b(hi),b(gi),b(_i),b(vi),b(Di),i&&t(Fs),i&&t(me),b(yi),i&&t(js),i&&t(x),b(Pi),b(Si),b(Ii),b(xi),b(Ei),b(ki),i&&t(Hs),i&&t(he),b(Ti),i&&t(Bs),i&&t($),b(Li),b(Ci),b(Ai),b(Ni),b(Ui),b(Vi)}}}const Ih={local:"stable-diffusion-pipelines",sections:[{local:"tips",sections:[{local:"how-to-load-and-use-different-schedulers",title:"How to load and use different schedulers."},{local:"how-to-convert-all-use-cases-with-multiple-or-single-pipeline",title:"How to convert all use cases with multiple or single pipeline"}],title:"Tips"},{local:"diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput",title:"StableDiffusionPipelineOutput"},{local:"diffusers.StableDiffusionPipeline",title:"StableDiffusionPipeline"},{local:"diffusers.StableDiffusionImg2ImgPipeline",title:"StableDiffusionImg2ImgPipeline"},{local:"diffusers.StableDiffusionInpaintPipeline",title:"StableDiffusionInpaintPipeline"},{local:"diffusers.StableDiffusionDepth2ImgPipeline",title:"StableDiffusionDepth2ImgPipeline"},{local:"diffusers.StableDiffusionImageVariationPipeline",title:"StableDiffusionImageVariationPipeline"},{local:"diffusers.StableDiffusionUpscalePipeline",title:"StableDiffusionUpscalePipeline"}],title:"Stable diffusion pipelines"};function xh(wp){return wh(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Lh extends bh{constructor(ie){super();vh(this,ie,xh,Sh,Dh,{})}}export{Lh as default,Ih as metadata};
