import{s as Yt,o as Zt,n as eo}from"../chunks/scheduler.182ea377.js";import{S as to,i as oo,g as i,s as r,r as d,A as so,h as a,f as o,c as n,j as g,u as c,x as $,k as h,y as l,a as s,v as m,d as f,t as p,w as u}from"../chunks/index.abf12888.js";import{T as ro}from"../chunks/Tip.230e2334.js";import{D as b}from"../chunks/Docstring.93f6f462.js";import{H as A}from"../chunks/Heading.16916d63.js";function no(ze){let _,q="This API is currently 🧪 experimental in nature and can change in future.";return{c(){_=i("p"),_.textContent=q},l(v){_=a(v,"P",{"data-svelte-h":!0}),$(_)!=="svelte-2dfli5"&&(_.textContent=q)},m(v,_e){s(v,_,_e)},p:eo,d(v){v&&o(_)}}}function io(ze){let _,q,v,_e,N,Ve,E,qt="An attention processor is a class for applying different types of attention mechanisms.",Ke,I,Re,x,S,Pt,ge,Nt="Default processor for performing attention-related computations.",Xe,O,qe,C,W,xt,he,Et="Processor for implementing scaled dot-product attention (enabled by default if you’re using PyTorch 2.0).",Ne,j,Ee,y,B,Ct,$e,It=`Processor for performing attention-related computations with extra learnable key and value matrices for the text
encoder.`,Ie,U,Se,w,H,yt,Ae,St=`Processor for performing scaled dot-product attention (enabled by default if you’re using PyTorch 2.0), with extra
learnable key and value matrices for the text encoder.`,Oe,M,We,D,G,wt,be,Ot="Cross frame attention processor. Each frame attends the first frame.",je,J,Be,T,Q,Dt,ve,Wt="Processor for implementing attention for the Custom Diffusion method.",Ue,Y,He,F,Z,Tt,Pe,jt=`Processor for implementing attention for the Custom Diffusion method using PyTorch 2.0’s memory-efficient scaled
dot-product attention.`,Me,ee,Ge,k,te,Ft,xe,Bt="Processor for implementing memory efficient attention using xFormers for the Custom Diffusion method.",Je,oe,Qe,P,se,kt,Ce,Ut=`Processor for implementing scaled dot-product attention (enabled by default if you’re using PyTorch 2.0). It uses
fused projection layers. For self-attention modules, all projection matrices (i.e., query, key, value) are fused.
For cross-attention modules, key and value projection matrices are fused.`,Lt,X,Ye,re,Ze,L,ne,zt,ye,Ht=`Processor for implementing the LoRA attention mechanism with extra learnable key and value matrices for the text
encoder.`,et,ie,tt,z,ae,Vt,we,Mt="Processor for implementing the LoRA attention mechanism with memory efficient attention using xFormers.",ot,de,st,V,ce,Kt,De,Gt="Processor for implementing sliced attention.",rt,le,nt,K,me,Rt,Te,Jt="Processor for implementing sliced attention with extra learnable key and value matrices for the text encoder.",it,fe,at,R,pe,Xt,Fe,Qt="Processor for implementing memory efficient attention using xFormers.",dt,Le,ct;return N=new A({props:{title:"Attention Processor",local:"attention-processor",headingTag:"h1"}}),I=new A({props:{title:"AttnProcessor",local:"diffusers.models.attention_processor.AttnProcessor",headingTag:"h2"}}),S=new b({props:{name:"class diffusers.models.attention_processor.AttnProcessor",anchor:"diffusers.models.attention_processor.AttnProcessor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L726"}}),O=new A({props:{title:"AttnProcessor2_0",local:"diffusers.models.attention_processor.AttnProcessor2_0",headingTag:"h2"}}),W=new b({props:{name:"class diffusers.models.attention_processor.AttnProcessor2_0",anchor:"diffusers.models.attention_processor.AttnProcessor2_0",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1210"}}),j=new A({props:{title:"AttnAddedKVProcessor",local:"diffusers.models.attention_processor.AttnAddedKVProcessor",headingTag:"h2"}}),B=new b({props:{name:"class diffusers.models.attention_processor.AttnAddedKVProcessor",anchor:"diffusers.models.attention_processor.AttnAddedKVProcessor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L902"}}),U=new A({props:{title:"AttnAddedKVProcessor2_0",local:"diffusers.models.attention_processor.AttnAddedKVProcessor2_0",headingTag:"h2"}}),H=new b({props:{name:"class diffusers.models.attention_processor.AttnAddedKVProcessor2_0",anchor:"diffusers.models.attention_processor.AttnAddedKVProcessor2_0",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L969"}}),M=new A({props:{title:"CrossFrameAttnProcessor",local:"diffusers.pipelines.text_to_video_synthesis.pipeline_text_to_video_zero.CrossFrameAttnProcessor",headingTag:"h2"}}),G=new b({props:{name:"class diffusers.pipelines.text_to_video_synthesis.pipeline_text_to_video_zero.CrossFrameAttnProcessor",anchor:"diffusers.pipelines.text_to_video_synthesis.pipeline_text_to_video_zero.CrossFrameAttnProcessor",parameters:[{name:"batch_size",val:" = 2"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py#L48"}}),J=new A({props:{title:"CustomDiffusionAttnProcessor",local:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor",headingTag:"h2"}}),Q=new b({props:{name:"class diffusers.models.attention_processor.CustomDiffusionAttnProcessor",anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor",parameters:[{name:"train_kv",val:": bool = True"},{name:"train_q_out",val:": bool = True"},{name:"hidden_size",val:": Optional = None"},{name:"cross_attention_dim",val:": Optional = None"},{name:"out_bias",val:": bool = True"},{name:"dropout",val:": float = 0.0"}],parametersDescription:[{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor.train_kv",description:`<strong>train_kv</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to newly train the key and value matrices corresponding to the text features.`,name:"train_kv"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor.train_q_out",description:`<strong>train_q_out</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to newly train query matrices corresponding to the latent image features.`,name:"train_q_out"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The hidden size of the attention layer.`,name:"hidden_size"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The number of channels in the <code>encoder_hidden_states</code>.`,name:"cross_attention_dim"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor.out_bias",description:`<strong>out_bias</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to include the bias parameter in <code>train_q_out</code>.`,name:"out_bias"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability to use.`,name:"dropout"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L798"}}),Y=new A({props:{title:"CustomDiffusionAttnProcessor2_0",local:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0",headingTag:"h2"}}),Z=new b({props:{name:"class diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0",anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0",parameters:[{name:"train_kv",val:": bool = True"},{name:"train_q_out",val:": bool = True"},{name:"hidden_size",val:": Optional = None"},{name:"cross_attention_dim",val:": Optional = None"},{name:"out_bias",val:": bool = True"},{name:"dropout",val:": float = 0.0"}],parametersDescription:[{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0.train_kv",description:`<strong>train_kv</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to newly train the key and value matrices corresponding to the text features.`,name:"train_kv"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0.train_q_out",description:`<strong>train_q_out</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to newly train query matrices corresponding to the latent image features.`,name:"train_q_out"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The hidden size of the attention layer.`,name:"hidden_size"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The number of channels in the <code>encoder_hidden_states</code>.`,name:"cross_attention_dim"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0.out_bias",description:`<strong>out_bias</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to include the bias parameter in <code>train_q_out</code>.`,name:"out_bias"},{anchor:"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability to use.`,name:"dropout"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1516"}}),ee=new A({props:{title:"CustomDiffusionXFormersAttnProcessor",local:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor",headingTag:"h2"}}),te=new b({props:{name:"class diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor",anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor",parameters:[{name:"train_kv",val:": bool = True"},{name:"train_q_out",val:": bool = False"},{name:"hidden_size",val:": Optional = None"},{name:"cross_attention_dim",val:": Optional = None"},{name:"out_bias",val:": bool = True"},{name:"dropout",val:": float = 0.0"},{name:"attention_op",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.train_kv",description:`<strong>train_kv</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to newly train the key and value matrices corresponding to the text features.`,name:"train_kv"},{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.train_q_out",description:`<strong>train_q_out</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to newly train query matrices corresponding to the latent image features.`,name:"train_q_out"},{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The hidden size of the attention layer.`,name:"hidden_size"},{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The number of channels in the <code>encoder_hidden_states</code>.`,name:"cross_attention_dim"},{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.out_bias",description:`<strong>out_bias</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to include the bias parameter in <code>train_q_out</code>.`,name:"out_bias"},{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability to use.`,name:"dropout"},{anchor:"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The base
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.AttentionOpBase" rel="nofollow">operator</a> to use
as the attention operator. It is recommended to set to <code>None</code>, and allow xFormers to choose the best operator.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1400"}}),oe=new A({props:{title:"FusedAttnProcessor2_0",local:"diffusers.models.attention_processor.FusedAttnProcessor2_0",headingTag:"h2"}}),se=new b({props:{name:"class diffusers.models.attention_processor.FusedAttnProcessor2_0",anchor:"diffusers.models.attention_processor.FusedAttnProcessor2_0",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1299"}}),X=new ro({props:{warning:!0,$$slots:{default:[no]},$$scope:{ctx:ze}}}),re=new A({props:{title:"LoRAAttnAddedKVProcessor",local:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor",headingTag:"h2"}}),ne=new b({props:{name:"class diffusers.models.attention_processor.LoRAAttnAddedKVProcessor",anchor:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor",parameters:[{name:"hidden_size",val:": int"},{name:"cross_attention_dim",val:": Optional = None"},{name:"rank",val:": int = 4"},{name:"network_alpha",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The hidden size of the attention layer.`,name:"hidden_size"},{anchor:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The number of channels in the <code>encoder_hidden_states</code>.`,name:"cross_attention_dim"},{anchor:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor.rank",description:`<strong>rank</strong> (<code>int</code>, defaults to 4) &#x2014;
The dimension of the LoRA update matrices.`,name:"rank"},{anchor:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor.network_alpha",description:`<strong>network_alpha</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Equivalent to <code>alpha</code> but it&#x2019;s usage is specific to Kohya (A1111) style LoRAs.`,name:"network_alpha"},{anchor:"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>) &#x2014;
Additional keyword arguments to pass to the <code>LoRALinearLayer</code> layers.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L2037"}}),ie=new A({props:{title:"LoRAXFormersAttnProcessor",local:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor",headingTag:"h2"}}),ae=new b({props:{name:"class diffusers.models.attention_processor.LoRAXFormersAttnProcessor",anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor",parameters:[{name:"hidden_size",val:": int"},{name:"cross_attention_dim",val:": int"},{name:"rank",val:": int = 4"},{name:"attention_op",val:": Optional = None"},{name:"network_alpha",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The hidden size of the attention layer.`,name:"hidden_size"},{anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of channels in the <code>encoder_hidden_states</code>.`,name:"cross_attention_dim"},{anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor.rank",description:`<strong>rank</strong> (<code>int</code>, defaults to 4) &#x2014;
The dimension of the LoRA update matrices.`,name:"rank"},{anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The base
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.AttentionOpBase" rel="nofollow">operator</a> to
use as the attention operator. It is recommended to set to <code>None</code>, and allow xFormers to choose the best
operator.`,name:"attention_op"},{anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor.network_alpha",description:`<strong>network_alpha</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Equivalent to <code>alpha</code> but it&#x2019;s usage is specific to Kohya (A1111) style LoRAs.`,name:"network_alpha"},{anchor:"diffusers.models.attention_processor.LoRAXFormersAttnProcessor.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>) &#x2014;
Additional keyword arguments to pass to the <code>LoRALinearLayer</code> layers.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1958"}}),de=new A({props:{title:"SlicedAttnProcessor",local:"diffusers.models.attention_processor.SlicedAttnProcessor",headingTag:"h2"}}),ce=new b({props:{name:"class diffusers.models.attention_processor.SlicedAttnProcessor",anchor:"diffusers.models.attention_processor.SlicedAttnProcessor",parameters:[{name:"slice_size",val:": int"}],parametersDescription:[{anchor:"diffusers.models.attention_processor.SlicedAttnProcessor.slice_size",description:`<strong>slice_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of steps to compute attention. Uses as many slices as <code>attention_head_dim // slice_size</code>, and
<code>attention_head_dim</code> must be a multiple of the <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1630"}}),le=new A({props:{title:"SlicedAttnAddedKVProcessor",local:"diffusers.models.attention_processor.SlicedAttnAddedKVProcessor",headingTag:"h2"}}),me=new b({props:{name:"class diffusers.models.attention_processor.SlicedAttnAddedKVProcessor",anchor:"diffusers.models.attention_processor.SlicedAttnAddedKVProcessor",parameters:[{name:"slice_size",val:""}],parametersDescription:[{anchor:"diffusers.models.attention_processor.SlicedAttnAddedKVProcessor.slice_size",description:`<strong>slice_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of steps to compute attention. Uses as many slices as <code>attention_head_dim // slice_size</code>, and
<code>attention_head_dim</code> must be a multiple of the <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1717"}}),fe=new A({props:{title:"XFormersAttnProcessor",local:"diffusers.models.attention_processor.XFormersAttnProcessor",headingTag:"h2"}}),pe=new b({props:{name:"class diffusers.models.attention_processor.XFormersAttnProcessor",anchor:"diffusers.models.attention_processor.XFormersAttnProcessor",parameters:[{name:"attention_op",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.models.attention_processor.XFormersAttnProcessor.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The base
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.AttentionOpBase" rel="nofollow">operator</a> to
use as the attention operator. It is recommended to set to <code>None</code>, and allow xFormers to choose the best
operator.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py#L1116"}}),{c(){_=i("meta"),q=r(),v=i("p"),_e=r(),d(N.$$.fragment),Ve=r(),E=i("p"),E.textContent=qt,Ke=r(),d(I.$$.fragment),Re=r(),x=i("div"),d(S.$$.fragment),Pt=r(),ge=i("p"),ge.textContent=Nt,Xe=r(),d(O.$$.fragment),qe=r(),C=i("div"),d(W.$$.fragment),xt=r(),he=i("p"),he.textContent=Et,Ne=r(),d(j.$$.fragment),Ee=r(),y=i("div"),d(B.$$.fragment),Ct=r(),$e=i("p"),$e.textContent=It,Ie=r(),d(U.$$.fragment),Se=r(),w=i("div"),d(H.$$.fragment),yt=r(),Ae=i("p"),Ae.textContent=St,Oe=r(),d(M.$$.fragment),We=r(),D=i("div"),d(G.$$.fragment),wt=r(),be=i("p"),be.textContent=Ot,je=r(),d(J.$$.fragment),Be=r(),T=i("div"),d(Q.$$.fragment),Dt=r(),ve=i("p"),ve.textContent=Wt,Ue=r(),d(Y.$$.fragment),He=r(),F=i("div"),d(Z.$$.fragment),Tt=r(),Pe=i("p"),Pe.textContent=jt,Me=r(),d(ee.$$.fragment),Ge=r(),k=i("div"),d(te.$$.fragment),Ft=r(),xe=i("p"),xe.textContent=Bt,Je=r(),d(oe.$$.fragment),Qe=r(),P=i("div"),d(se.$$.fragment),kt=r(),Ce=i("p"),Ce.textContent=Ut,Lt=r(),d(X.$$.fragment),Ye=r(),d(re.$$.fragment),Ze=r(),L=i("div"),d(ne.$$.fragment),zt=r(),ye=i("p"),ye.textContent=Ht,et=r(),d(ie.$$.fragment),tt=r(),z=i("div"),d(ae.$$.fragment),Vt=r(),we=i("p"),we.textContent=Mt,ot=r(),d(de.$$.fragment),st=r(),V=i("div"),d(ce.$$.fragment),Kt=r(),De=i("p"),De.textContent=Gt,rt=r(),d(le.$$.fragment),nt=r(),K=i("div"),d(me.$$.fragment),Rt=r(),Te=i("p"),Te.textContent=Jt,it=r(),d(fe.$$.fragment),at=r(),R=i("div"),d(pe.$$.fragment),Xt=r(),Fe=i("p"),Fe.textContent=Qt,dt=r(),Le=i("p"),this.h()},l(e){const t=so("svelte-u9bgzb",document.head);_=a(t,"META",{name:!0,content:!0}),t.forEach(o),q=n(e),v=a(e,"P",{}),g(v).forEach(o),_e=n(e),c(N.$$.fragment,e),Ve=n(e),E=a(e,"P",{"data-svelte-h":!0}),$(E)!=="svelte-itqz7g"&&(E.textContent=qt),Ke=n(e),c(I.$$.fragment,e),Re=n(e),x=a(e,"DIV",{class:!0});var ue=g(x);c(S.$$.fragment,ue),Pt=n(ue),ge=a(ue,"P",{"data-svelte-h":!0}),$(ge)!=="svelte-12lirf9"&&(ge.textContent=Nt),ue.forEach(o),Xe=n(e),c(O.$$.fragment,e),qe=n(e),C=a(e,"DIV",{class:!0});var lt=g(C);c(W.$$.fragment,lt),xt=n(lt),he=a(lt,"P",{"data-svelte-h":!0}),$(he)!=="svelte-zp073y"&&(he.textContent=Et),lt.forEach(o),Ne=n(e),c(j.$$.fragment,e),Ee=n(e),y=a(e,"DIV",{class:!0});var mt=g(y);c(B.$$.fragment,mt),Ct=n(mt),$e=a(mt,"P",{"data-svelte-h":!0}),$($e)!=="svelte-yqqibm"&&($e.textContent=It),mt.forEach(o),Ie=n(e),c(U.$$.fragment,e),Se=n(e),w=a(e,"DIV",{class:!0});var ft=g(w);c(H.$$.fragment,ft),yt=n(ft),Ae=a(ft,"P",{"data-svelte-h":!0}),$(Ae)!=="svelte-hw86c4"&&(Ae.textContent=St),ft.forEach(o),Oe=n(e),c(M.$$.fragment,e),We=n(e),D=a(e,"DIV",{class:!0});var pt=g(D);c(G.$$.fragment,pt),wt=n(pt),be=a(pt,"P",{"data-svelte-h":!0}),$(be)!=="svelte-1j63vyq"&&(be.textContent=Ot),pt.forEach(o),je=n(e),c(J.$$.fragment,e),Be=n(e),T=a(e,"DIV",{class:!0});var ut=g(T);c(Q.$$.fragment,ut),Dt=n(ut),ve=a(ut,"P",{"data-svelte-h":!0}),$(ve)!=="svelte-1gjwzkd"&&(ve.textContent=Wt),ut.forEach(o),Ue=n(e),c(Y.$$.fragment,e),He=n(e),F=a(e,"DIV",{class:!0});var _t=g(F);c(Z.$$.fragment,_t),Tt=n(_t),Pe=a(_t,"P",{"data-svelte-h":!0}),$(Pe)!=="svelte-pottg0"&&(Pe.textContent=jt),_t.forEach(o),Me=n(e),c(ee.$$.fragment,e),Ge=n(e),k=a(e,"DIV",{class:!0});var gt=g(k);c(te.$$.fragment,gt),Ft=n(gt),xe=a(gt,"P",{"data-svelte-h":!0}),$(xe)!=="svelte-10eh8wb"&&(xe.textContent=Bt),gt.forEach(o),Je=n(e),c(oe.$$.fragment,e),Qe=n(e),P=a(e,"DIV",{class:!0});var ke=g(P);c(se.$$.fragment,ke),kt=n(ke),Ce=a(ke,"P",{"data-svelte-h":!0}),$(Ce)!=="svelte-cpmq6s"&&(Ce.textContent=Ut),Lt=n(ke),c(X.$$.fragment,ke),ke.forEach(o),Ye=n(e),c(re.$$.fragment,e),Ze=n(e),L=a(e,"DIV",{class:!0});var ht=g(L);c(ne.$$.fragment,ht),zt=n(ht),ye=a(ht,"P",{"data-svelte-h":!0}),$(ye)!=="svelte-zfgvyc"&&(ye.textContent=Ht),ht.forEach(o),et=n(e),c(ie.$$.fragment,e),tt=n(e),z=a(e,"DIV",{class:!0});var $t=g(z);c(ae.$$.fragment,$t),Vt=n($t),we=a($t,"P",{"data-svelte-h":!0}),$(we)!=="svelte-yqwtom"&&(we.textContent=Mt),$t.forEach(o),ot=n(e),c(de.$$.fragment,e),st=n(e),V=a(e,"DIV",{class:!0});var At=g(V);c(ce.$$.fragment,At),Kt=n(At),De=a(At,"P",{"data-svelte-h":!0}),$(De)!=="svelte-16xjg0o"&&(De.textContent=Gt),At.forEach(o),rt=n(e),c(le.$$.fragment,e),nt=n(e),K=a(e,"DIV",{class:!0});var bt=g(K);c(me.$$.fragment,bt),Rt=n(bt),Te=a(bt,"P",{"data-svelte-h":!0}),$(Te)!=="svelte-15dojbg"&&(Te.textContent=Jt),bt.forEach(o),it=n(e),c(fe.$$.fragment,e),at=n(e),R=a(e,"DIV",{class:!0});var vt=g(R);c(pe.$$.fragment,vt),Xt=n(vt),Fe=a(vt,"P",{"data-svelte-h":!0}),$(Fe)!=="svelte-10td8ls"&&(Fe.textContent=Qt),vt.forEach(o),dt=n(e),Le=a(e,"P",{}),g(Le).forEach(o),this.h()},h(){h(_,"name","hf:doc:metadata"),h(_,"content",ao),h(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){l(document.head,_),s(e,q,t),s(e,v,t),s(e,_e,t),m(N,e,t),s(e,Ve,t),s(e,E,t),s(e,Ke,t),m(I,e,t),s(e,Re,t),s(e,x,t),m(S,x,null),l(x,Pt),l(x,ge),s(e,Xe,t),m(O,e,t),s(e,qe,t),s(e,C,t),m(W,C,null),l(C,xt),l(C,he),s(e,Ne,t),m(j,e,t),s(e,Ee,t),s(e,y,t),m(B,y,null),l(y,Ct),l(y,$e),s(e,Ie,t),m(U,e,t),s(e,Se,t),s(e,w,t),m(H,w,null),l(w,yt),l(w,Ae),s(e,Oe,t),m(M,e,t),s(e,We,t),s(e,D,t),m(G,D,null),l(D,wt),l(D,be),s(e,je,t),m(J,e,t),s(e,Be,t),s(e,T,t),m(Q,T,null),l(T,Dt),l(T,ve),s(e,Ue,t),m(Y,e,t),s(e,He,t),s(e,F,t),m(Z,F,null),l(F,Tt),l(F,Pe),s(e,Me,t),m(ee,e,t),s(e,Ge,t),s(e,k,t),m(te,k,null),l(k,Ft),l(k,xe),s(e,Je,t),m(oe,e,t),s(e,Qe,t),s(e,P,t),m(se,P,null),l(P,kt),l(P,Ce),l(P,Lt),m(X,P,null),s(e,Ye,t),m(re,e,t),s(e,Ze,t),s(e,L,t),m(ne,L,null),l(L,zt),l(L,ye),s(e,et,t),m(ie,e,t),s(e,tt,t),s(e,z,t),m(ae,z,null),l(z,Vt),l(z,we),s(e,ot,t),m(de,e,t),s(e,st,t),s(e,V,t),m(ce,V,null),l(V,Kt),l(V,De),s(e,rt,t),m(le,e,t),s(e,nt,t),s(e,K,t),m(me,K,null),l(K,Rt),l(K,Te),s(e,it,t),m(fe,e,t),s(e,at,t),s(e,R,t),m(pe,R,null),l(R,Xt),l(R,Fe),s(e,dt,t),s(e,Le,t),ct=!0},p(e,[t]){const ue={};t&2&&(ue.$$scope={dirty:t,ctx:e}),X.$set(ue)},i(e){ct||(f(N.$$.fragment,e),f(I.$$.fragment,e),f(S.$$.fragment,e),f(O.$$.fragment,e),f(W.$$.fragment,e),f(j.$$.fragment,e),f(B.$$.fragment,e),f(U.$$.fragment,e),f(H.$$.fragment,e),f(M.$$.fragment,e),f(G.$$.fragment,e),f(J.$$.fragment,e),f(Q.$$.fragment,e),f(Y.$$.fragment,e),f(Z.$$.fragment,e),f(ee.$$.fragment,e),f(te.$$.fragment,e),f(oe.$$.fragment,e),f(se.$$.fragment,e),f(X.$$.fragment,e),f(re.$$.fragment,e),f(ne.$$.fragment,e),f(ie.$$.fragment,e),f(ae.$$.fragment,e),f(de.$$.fragment,e),f(ce.$$.fragment,e),f(le.$$.fragment,e),f(me.$$.fragment,e),f(fe.$$.fragment,e),f(pe.$$.fragment,e),ct=!0)},o(e){p(N.$$.fragment,e),p(I.$$.fragment,e),p(S.$$.fragment,e),p(O.$$.fragment,e),p(W.$$.fragment,e),p(j.$$.fragment,e),p(B.$$.fragment,e),p(U.$$.fragment,e),p(H.$$.fragment,e),p(M.$$.fragment,e),p(G.$$.fragment,e),p(J.$$.fragment,e),p(Q.$$.fragment,e),p(Y.$$.fragment,e),p(Z.$$.fragment,e),p(ee.$$.fragment,e),p(te.$$.fragment,e),p(oe.$$.fragment,e),p(se.$$.fragment,e),p(X.$$.fragment,e),p(re.$$.fragment,e),p(ne.$$.fragment,e),p(ie.$$.fragment,e),p(ae.$$.fragment,e),p(de.$$.fragment,e),p(ce.$$.fragment,e),p(le.$$.fragment,e),p(me.$$.fragment,e),p(fe.$$.fragment,e),p(pe.$$.fragment,e),ct=!1},d(e){e&&(o(q),o(v),o(_e),o(Ve),o(E),o(Ke),o(Re),o(x),o(Xe),o(qe),o(C),o(Ne),o(Ee),o(y),o(Ie),o(Se),o(w),o(Oe),o(We),o(D),o(je),o(Be),o(T),o(Ue),o(He),o(F),o(Me),o(Ge),o(k),o(Je),o(Qe),o(P),o(Ye),o(Ze),o(L),o(et),o(tt),o(z),o(ot),o(st),o(V),o(rt),o(nt),o(K),o(it),o(at),o(R),o(dt),o(Le)),o(_),u(N,e),u(I,e),u(S),u(O,e),u(W),u(j,e),u(B),u(U,e),u(H),u(M,e),u(G),u(J,e),u(Q),u(Y,e),u(Z),u(ee,e),u(te),u(oe,e),u(se),u(X),u(re,e),u(ne),u(ie,e),u(ae),u(de,e),u(ce),u(le,e),u(me),u(fe,e),u(pe)}}}const ao='{"title":"Attention Processor","local":"attention-processor","sections":[{"title":"AttnProcessor","local":"diffusers.models.attention_processor.AttnProcessor","sections":[],"depth":2},{"title":"AttnProcessor2_0","local":"diffusers.models.attention_processor.AttnProcessor2_0","sections":[],"depth":2},{"title":"AttnAddedKVProcessor","local":"diffusers.models.attention_processor.AttnAddedKVProcessor","sections":[],"depth":2},{"title":"AttnAddedKVProcessor2_0","local":"diffusers.models.attention_processor.AttnAddedKVProcessor2_0","sections":[],"depth":2},{"title":"CrossFrameAttnProcessor","local":"diffusers.pipelines.text_to_video_synthesis.pipeline_text_to_video_zero.CrossFrameAttnProcessor","sections":[],"depth":2},{"title":"CustomDiffusionAttnProcessor","local":"diffusers.models.attention_processor.CustomDiffusionAttnProcessor","sections":[],"depth":2},{"title":"CustomDiffusionAttnProcessor2_0","local":"diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0","sections":[],"depth":2},{"title":"CustomDiffusionXFormersAttnProcessor","local":"diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor","sections":[],"depth":2},{"title":"FusedAttnProcessor2_0","local":"diffusers.models.attention_processor.FusedAttnProcessor2_0","sections":[],"depth":2},{"title":"LoRAAttnAddedKVProcessor","local":"diffusers.models.attention_processor.LoRAAttnAddedKVProcessor","sections":[],"depth":2},{"title":"LoRAXFormersAttnProcessor","local":"diffusers.models.attention_processor.LoRAXFormersAttnProcessor","sections":[],"depth":2},{"title":"SlicedAttnProcessor","local":"diffusers.models.attention_processor.SlicedAttnProcessor","sections":[],"depth":2},{"title":"SlicedAttnAddedKVProcessor","local":"diffusers.models.attention_processor.SlicedAttnAddedKVProcessor","sections":[],"depth":2},{"title":"XFormersAttnProcessor","local":"diffusers.models.attention_processor.XFormersAttnProcessor","sections":[],"depth":2}],"depth":1}';function co(ze){return Zt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _o extends to{constructor(_){super(),oo(this,_,co,io,Yt,{})}}export{_o as component};
