import{S as eo,i as to,s as oo,e as n,k as l,w as _,t as a,M as no,c as s,d as o,m as c,a as r,x as g,h as d,b as i,G as e,g as p,y as b,L as so,q as v,o as w,B as D,v as ro}from"../../../chunks/vendor-hf-doc-builder.js";import{D as Z}from"../../../chunks/Docstring-hf-doc-builder.js";import{I as Mt}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function io(xt){let y,ge,k,A,ie,I,Le,ae,Ve,be,$,Fe,O,Re,Ke,ve,ee,Xe,we,te,S,We,z,He,Ge,De,N,T,de,B,Je,le,je,ye,u,L,Qe,ce,Ye,Ze,V,et,oe,tt,ot,nt,M,F,st,R,rt,K,it,at,dt,x,X,lt,W,ct,ne,ut,ft,mt,h,H,pt,ue,ht,_t,fe,gt,bt,P,G,vt,me,wt,Dt,E,J,yt,pe,kt,ke,U,q,he,j,Nt,_e,Ut,Ne,C,Q,Ct,Y,At,se,$t,Tt,Ue;return I=new Mt({}),B=new Mt({}),L=new Z({props:{name:"class diffusers.UNet3DConditionModel",anchor:"diffusers.UNet3DConditionModel",parameters:[{name:"sample_size",val:": typing.Optional[int] = None"},{name:"in_channels",val:": int = 4"},{name:"out_channels",val:": int = 4"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock3D', 'CrossAttnDownBlock3D', 'CrossAttnDownBlock3D', 'DownBlock3D')"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpBlock3D', 'CrossAttnUpBlock3D', 'CrossAttnUpBlock3D', 'CrossAttnUpBlock3D')"},{name:"block_out_channels",val:": typing.Tuple[int] = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": int = 2"},{name:"downsample_padding",val:": int = 1"},{name:"mid_block_scale_factor",val:": float = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"norm_num_groups",val:": typing.Optional[int] = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": int = 1024"},{name:"attention_head_dim",val:": typing.Union[int, typing.Tuple[int]] = 64"},{name:"num_attention_heads",val:": typing.Union[int, typing.Tuple[int], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code> or <code>Tuple[int, int]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Height and width of input/output sample.`,name:"sample_size"},{anchor:"diffusers.UNet3DConditionModel.in_channels",description:"<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; The number of channels in the input sample.",name:"in_channels"},{anchor:"diffusers.UNet3DConditionModel.out_channels",description:"<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; The number of channels in the output.",name:"out_channels"},{anchor:"diffusers.UNet3DConditionModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;DownBlock2D&quot;)</code>) &#x2014;
The tuple of downsample blocks to use.`,name:"down_block_types"},{anchor:"diffusers.UNet3DConditionModel.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;UpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;)</code>) &#x2014;
The tuple of upsample blocks to use.`,name:"up_block_types"},{anchor:"diffusers.UNet3DConditionModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to <code>(320, 640, 1280, 1280)</code>) &#x2014;
The tuple of output channels for each block.`,name:"block_out_channels"},{anchor:"diffusers.UNet3DConditionModel.layers_per_block",description:"<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014; The number of layers per block.",name:"layers_per_block"},{anchor:"diffusers.UNet3DConditionModel.downsample_padding",description:"<strong>downsample_padding</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014; The padding to use for the downsampling convolution.",name:"downsample_padding"},{anchor:"diffusers.UNet3DConditionModel.mid_block_scale_factor",description:"<strong>mid_block_scale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014; The scale factor to use for the mid block.",name:"mid_block_scale_factor"},{anchor:"diffusers.UNet3DConditionModel.act_fn",description:"<strong>act_fn</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;silu&quot;</code>) &#x2014; The activation function to use.",name:"act_fn"},{anchor:"diffusers.UNet3DConditionModel.norm_num_groups",description:`<strong>norm_num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014; The number of groups to use for the normalization.
If <code>None</code>, normalization and activation layers is skipped in post-processing.`,name:"norm_num_groups"},{anchor:"diffusers.UNet3DConditionModel.norm_eps",description:"<strong>norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014; The epsilon to use for the normalization.",name:"norm_eps"},{anchor:"diffusers.UNet3DConditionModel.cross_attention_dim",description:"<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 1280) &#x2014; The dimension of the cross attention features.",name:"cross_attention_dim"},{anchor:"diffusers.UNet3DConditionModel.attention_head_dim",description:"<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014; The dimension of the attention heads.",name:"attention_head_dim"},{anchor:"diffusers.UNet3DConditionModel.num_attention_heads",description:"<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>) &#x2014; The number of attention heads.",name:"num_attention_heads"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_3d_condition.py#L56"}}),F=new Z({props:{name:"enable_forward_chunking",anchor:"diffusers.UNet3DConditionModel.enable_forward_chunking",parameters:[{name:"chunk_size",val:" = None"},{name:"dim",val:" = 0"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.enable_forward_chunking.chunk_size",description:`<strong>chunk_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The chunk size of the feed-forward layers. If not specified, will run feed-forward layer individually
over each tensor of dim=<code>dim</code>.`,name:"chunk_size"},{anchor:"diffusers.UNet3DConditionModel.enable_forward_chunking.dim",description:`<strong>dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) &#x2014;
The dimension over which the feed-forward computation should be chunked. Choose between dim=0 (batch)
or dim=1 (sequence length).`,name:"dim"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_3d_condition.py#L397"}}),X=new Z({props:{name:"forward",anchor:"diffusers.UNet3DConditionModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"encoder_hidden_states",val:": Tensor"},{name:"class_labels",val:": typing.Optional[torch.Tensor] = None"},{name:"timestep_cond",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"down_block_additional_residuals",val:": typing.Optional[typing.Tuple[torch.Tensor]] = None"},{name:"mid_block_additional_residual",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.forward.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code>) &#x2014;
The noisy input tensor with the following shape <code>(batch, num_frames, channel, height, width</code>.`,name:"sample"},{anchor:"diffusers.UNet3DConditionModel.forward.timestep",description:"<strong>timestep</strong> (<code>torch.FloatTensor</code> or <code>float</code> or <code>int</code>) &#x2014; The number of timesteps to denoise an input.",name:"timestep"},{anchor:"diffusers.UNet3DConditionModel.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code>) &#x2014;
The encoder hidden states with shape <code>(batch, sequence_length, feature_dim)</code>.`,name:"encoder_hidden_states"},{anchor:"diffusers.UNet3DConditionModel.forward.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/main/en/api/models/unet3d-cond#diffusers.models.unet_3d_condition.UNet3DConditionOutput">UNet3DConditionOutput</a> instead of a plain
tuple.`,name:"return_dict"},{anchor:"diffusers.UNet3DConditionModel.forward.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttnProcessor</code>.`,name:"cross_attention_kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_3d_condition.py#L448",returnDescription:`
<p>If <code>return_dict</code> is True, an <a
  href="/docs/diffusers/main/en/api/models/unet3d-cond#diffusers.models.unet_3d_condition.UNet3DConditionOutput"
>UNet3DConditionOutput</a> is returned, otherwise
a <code>tuple</code> is returned where the first element is the sample tensor.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/main/en/api/models/unet3d-cond#diffusers.models.unet_3d_condition.UNet3DConditionOutput"
>UNet3DConditionOutput</a> or <code>tuple</code></p>
`}}),H=new Z({props:{name:"set_attention_slice",anchor:"diffusers.UNet3DConditionModel.set_attention_slice",parameters:[{name:"slice_size",val:""}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.set_attention_slice.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code> or <code>list(int)</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, input to the attention heads is halved, so attention is computed in two steps. If
<code>&quot;max&quot;</code>, maximum amount of memory is 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/main/src/diffusers/models/unet_3d_condition.py#L297"}}),G=new Z({props:{name:"set_attn_processor",anchor:"diffusers.UNet3DConditionModel.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor]]]"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.set_attn_processor.processor",description:`<strong>processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or only <code>AttentionProcessor</code>) &#x2014;
The instantiated processor class or a dictionary of processor classes that will be set as the processor
for <strong>all</strong> <code>Attention</code> layers.</p>
<p>If <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention
processor. This is strongly recommended when setting trainable attention processors.`,name:"processor"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_3d_condition.py#L363"}}),J=new Z({props:{name:"set_default_attn_processor",anchor:"diffusers.UNet3DConditionModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_3d_condition.py#L438"}}),j=new Mt({}),Q=new Z({props:{name:"class diffusers.models.unet_3d_condition.UNet3DConditionOutput",anchor:"diffusers.models.unet_3d_condition.UNet3DConditionOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.unet_3d_condition.UNet3DConditionOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_frames, num_channels, height, width)</code>) &#x2014;
The hidden states output conditioned on <code>encoder_hidden_states</code> input. Output of last layer of model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_3d_condition.py#L44"}}),{c(){y=n("meta"),ge=l(),k=n("h1"),A=n("a"),ie=n("span"),_(I.$$.fragment),Le=l(),ae=n("span"),Ve=a("UNet3DConditionModel"),be=l(),$=n("p"),Fe=a("The "),O=n("a"),Re=a("UNet"),Ke=a(" model was originally introduced by Ronneberger et al for biomedical image segmentation, but it is also commonly used in \u{1F917} Diffusers because it outputs images that are the same size as the input. It is one of the most important components of a diffusion system because it facilitates the actual diffusion process. There are several variants of the UNet model in \u{1F917} Diffusers, depending on it\u2019s number of dimensions and whether it is a conditional model or not. This is a 3D UNet conditional model."),ve=l(),ee=n("p"),Xe=a("The abstract from the paper is:"),we=l(),te=n("p"),S=n("em"),We=a("There is large consent that successful training of deep networks requires many thousand annotated training samples. In this paper, we present a network and training strategy that relies on the strong use of data augmentation to use the available annotated samples more efficiently. The architecture consists of a contracting path to capture context and a symmetric expanding path that enables precise localization. We show that such a network can be trained end-to-end from very few images and outperforms the prior best method (a sliding-window convolutional network) on the ISBI challenge for segmentation of neuronal structures in electron microscopic stacks. Using the same network trained on transmitted light microscopy images (phase contrast and DIC) we won the ISBI cell tracking challenge 2015 in these categories by a large margin. Moreover, the network is fast. Segmentation of a 512x512 image takes less than a second on a recent GPU. The full implementation (based on Caffe) and the trained networks are available at "),z=n("a"),He=a("http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net"),Ge=a("."),De=l(),N=n("h2"),T=n("a"),de=n("span"),_(B.$$.fragment),Je=l(),le=n("span"),je=a("UNet3DConditionModel"),ye=l(),u=n("div"),_(L.$$.fragment),Qe=l(),ce=n("p"),Ye=a(`A conditional 3D UNet model that takes a noisy sample, conditional state, and a timestep and returns a sample
shaped output.`),Ze=l(),V=n("p"),et=a("This model inherits from "),oe=n("a"),tt=a("ModelMixin"),ot=a(`. Check the superclass documentation for it\u2019s generic methods implemented
for all models (such as downloading or saving).`),nt=l(),M=n("div"),_(F.$$.fragment),st=l(),R=n("p"),rt=a("Sets the attention processor to use "),K=n("a"),it=a(`feed forward
chunking`),at=a("."),dt=l(),x=n("div"),_(X.$$.fragment),lt=l(),W=n("p"),ct=a("The "),ne=n("a"),ut=a("UNet3DConditionModel"),ft=a(" forward method."),mt=l(),h=n("div"),_(H.$$.fragment),pt=l(),ue=n("p"),ht=a("Enable sliced attention computation."),_t=l(),fe=n("p"),gt=a(`When this option is enabled, the attention module splits the input tensor in slices to compute attention in
several steps. This is useful for saving some memory in exchange for a small decrease in speed.`),bt=l(),P=n("div"),_(G.$$.fragment),vt=l(),me=n("p"),wt=a("Sets the attention processor to use to compute attention."),Dt=l(),E=n("div"),_(J.$$.fragment),yt=l(),pe=n("p"),kt=a("Disables custom attention processors and sets the default attention implementation."),ke=l(),U=n("h2"),q=n("a"),he=n("span"),_(j.$$.fragment),Nt=l(),_e=n("span"),Ut=a("UNet3DConditionOutput"),Ne=l(),C=n("div"),_(Q.$$.fragment),Ct=l(),Y=n("p"),At=a("The output of "),se=n("a"),$t=a("UNet3DConditionModel"),Tt=a("."),this.h()},l(t){const f=no('[data-svelte="svelte-1phssyn"]',document.head);y=s(f,"META",{name:!0,content:!0}),f.forEach(o),ge=c(t),k=s(t,"H1",{class:!0});var Ce=r(k);A=s(Ce,"A",{id:!0,class:!0,href:!0});var Pt=r(A);ie=s(Pt,"SPAN",{});var Et=r(ie);g(I.$$.fragment,Et),Et.forEach(o),Pt.forEach(o),Le=c(Ce),ae=s(Ce,"SPAN",{});var qt=r(ae);Ve=d(qt,"UNet3DConditionModel"),qt.forEach(o),Ce.forEach(o),be=c(t),$=s(t,"P",{});var Ae=r($);Fe=d(Ae,"The "),O=s(Ae,"A",{href:!0,rel:!0});var It=r(O);Re=d(It,"UNet"),It.forEach(o),Ke=d(Ae," model was originally introduced by Ronneberger et al for biomedical image segmentation, but it is also commonly used in \u{1F917} Diffusers because it outputs images that are the same size as the input. It is one of the most important components of a diffusion system because it facilitates the actual diffusion process. There are several variants of the UNet model in \u{1F917} Diffusers, depending on it\u2019s number of dimensions and whether it is a conditional model or not. This is a 3D UNet conditional model."),Ae.forEach(o),ve=c(t),ee=s(t,"P",{});var Ot=r(ee);Xe=d(Ot,"The abstract from the paper is:"),Ot.forEach(o),we=c(t),te=s(t,"P",{});var St=r(te);S=s(St,"EM",{});var $e=r(S);We=d($e,"There is large consent that successful training of deep networks requires many thousand annotated training samples. In this paper, we present a network and training strategy that relies on the strong use of data augmentation to use the available annotated samples more efficiently. The architecture consists of a contracting path to capture context and a symmetric expanding path that enables precise localization. We show that such a network can be trained end-to-end from very few images and outperforms the prior best method (a sliding-window convolutional network) on the ISBI challenge for segmentation of neuronal structures in electron microscopic stacks. Using the same network trained on transmitted light microscopy images (phase contrast and DIC) we won the ISBI cell tracking challenge 2015 in these categories by a large margin. Moreover, the network is fast. Segmentation of a 512x512 image takes less than a second on a recent GPU. The full implementation (based on Caffe) and the trained networks are available at "),z=s($e,"A",{href:!0,rel:!0});var zt=r(z);He=d(zt,"http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net"),zt.forEach(o),Ge=d($e,"."),$e.forEach(o),St.forEach(o),De=c(t),N=s(t,"H2",{class:!0});var Te=r(N);T=s(Te,"A",{id:!0,class:!0,href:!0});var Bt=r(T);de=s(Bt,"SPAN",{});var Lt=r(de);g(B.$$.fragment,Lt),Lt.forEach(o),Bt.forEach(o),Je=c(Te),le=s(Te,"SPAN",{});var Vt=r(le);je=d(Vt,"UNet3DConditionModel"),Vt.forEach(o),Te.forEach(o),ye=c(t),u=s(t,"DIV",{class:!0});var m=r(u);g(L.$$.fragment,m),Qe=c(m),ce=s(m,"P",{});var Ft=r(ce);Ye=d(Ft,`A conditional 3D UNet model that takes a noisy sample, conditional state, and a timestep and returns a sample
shaped output.`),Ft.forEach(o),Ze=c(m),V=s(m,"P",{});var Me=r(V);et=d(Me,"This model inherits from "),oe=s(Me,"A",{href:!0});var Rt=r(oe);tt=d(Rt,"ModelMixin"),Rt.forEach(o),ot=d(Me,`. Check the superclass documentation for it\u2019s generic methods implemented
for all models (such as downloading or saving).`),Me.forEach(o),nt=c(m),M=s(m,"DIV",{class:!0});var xe=r(M);g(F.$$.fragment,xe),st=c(xe),R=s(xe,"P",{});var Pe=r(R);rt=d(Pe,"Sets the attention processor to use "),K=s(Pe,"A",{href:!0,rel:!0});var Kt=r(K);it=d(Kt,`feed forward
chunking`),Kt.forEach(o),at=d(Pe,"."),Pe.forEach(o),xe.forEach(o),dt=c(m),x=s(m,"DIV",{class:!0});var Ee=r(x);g(X.$$.fragment,Ee),lt=c(Ee),W=s(Ee,"P",{});var qe=r(W);ct=d(qe,"The "),ne=s(qe,"A",{href:!0});var Xt=r(ne);ut=d(Xt,"UNet3DConditionModel"),Xt.forEach(o),ft=d(qe," forward method."),qe.forEach(o),Ee.forEach(o),mt=c(m),h=s(m,"DIV",{class:!0});var re=r(h);g(H.$$.fragment,re),pt=c(re),ue=s(re,"P",{});var Wt=r(ue);ht=d(Wt,"Enable sliced attention computation."),Wt.forEach(o),_t=c(re),fe=s(re,"P",{});var Ht=r(fe);gt=d(Ht,`When this option is enabled, the attention module splits the input tensor in slices to compute attention in
several steps. This is useful for saving some memory in exchange for a small decrease in speed.`),Ht.forEach(o),re.forEach(o),bt=c(m),P=s(m,"DIV",{class:!0});var Ie=r(P);g(G.$$.fragment,Ie),vt=c(Ie),me=s(Ie,"P",{});var Gt=r(me);wt=d(Gt,"Sets the attention processor to use to compute attention."),Gt.forEach(o),Ie.forEach(o),Dt=c(m),E=s(m,"DIV",{class:!0});var Oe=r(E);g(J.$$.fragment,Oe),yt=c(Oe),pe=s(Oe,"P",{});var Jt=r(pe);kt=d(Jt,"Disables custom attention processors and sets the default attention implementation."),Jt.forEach(o),Oe.forEach(o),m.forEach(o),ke=c(t),U=s(t,"H2",{class:!0});var Se=r(U);q=s(Se,"A",{id:!0,class:!0,href:!0});var jt=r(q);he=s(jt,"SPAN",{});var Qt=r(he);g(j.$$.fragment,Qt),Qt.forEach(o),jt.forEach(o),Nt=c(Se),_e=s(Se,"SPAN",{});var Yt=r(_e);Ut=d(Yt,"UNet3DConditionOutput"),Yt.forEach(o),Se.forEach(o),Ne=c(t),C=s(t,"DIV",{class:!0});var ze=r(C);g(Q.$$.fragment,ze),Ct=c(ze),Y=s(ze,"P",{});var Be=r(Y);At=d(Be,"The output of "),se=s(Be,"A",{href:!0});var Zt=r(se);$t=d(Zt,"UNet3DConditionModel"),Zt.forEach(o),Tt=d(Be,"."),Be.forEach(o),ze.forEach(o),this.h()},h(){i(y,"name","hf:doc:metadata"),i(y,"content",JSON.stringify(ao)),i(A,"id","unet3dconditionmodel"),i(A,"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"),i(A,"href","#unet3dconditionmodel"),i(k,"class","relative group"),i(O,"href","https://huggingface.co/papers/1505.04597"),i(O,"rel","nofollow"),i(z,"href","http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net"),i(z,"rel","nofollow"),i(T,"id","diffusers.UNet3DConditionModel"),i(T,"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"),i(T,"href","#diffusers.UNet3DConditionModel"),i(N,"class","relative group"),i(oe,"href","/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin"),i(K,"href","https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers"),i(K,"rel","nofollow"),i(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(ne,"href","/docs/diffusers/main/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel"),i(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(u,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(q,"id","diffusers.models.unet_3d_condition.UNet3DConditionOutput"),i(q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(q,"href","#diffusers.models.unet_3d_condition.UNet3DConditionOutput"),i(U,"class","relative group"),i(se,"href","/docs/diffusers/main/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel"),i(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,f){e(document.head,y),p(t,ge,f),p(t,k,f),e(k,A),e(A,ie),b(I,ie,null),e(k,Le),e(k,ae),e(ae,Ve),p(t,be,f),p(t,$,f),e($,Fe),e($,O),e(O,Re),e($,Ke),p(t,ve,f),p(t,ee,f),e(ee,Xe),p(t,we,f),p(t,te,f),e(te,S),e(S,We),e(S,z),e(z,He),e(S,Ge),p(t,De,f),p(t,N,f),e(N,T),e(T,de),b(B,de,null),e(N,Je),e(N,le),e(le,je),p(t,ye,f),p(t,u,f),b(L,u,null),e(u,Qe),e(u,ce),e(ce,Ye),e(u,Ze),e(u,V),e(V,et),e(V,oe),e(oe,tt),e(V,ot),e(u,nt),e(u,M),b(F,M,null),e(M,st),e(M,R),e(R,rt),e(R,K),e(K,it),e(R,at),e(u,dt),e(u,x),b(X,x,null),e(x,lt),e(x,W),e(W,ct),e(W,ne),e(ne,ut),e(W,ft),e(u,mt),e(u,h),b(H,h,null),e(h,pt),e(h,ue),e(ue,ht),e(h,_t),e(h,fe),e(fe,gt),e(u,bt),e(u,P),b(G,P,null),e(P,vt),e(P,me),e(me,wt),e(u,Dt),e(u,E),b(J,E,null),e(E,yt),e(E,pe),e(pe,kt),p(t,ke,f),p(t,U,f),e(U,q),e(q,he),b(j,he,null),e(U,Nt),e(U,_e),e(_e,Ut),p(t,Ne,f),p(t,C,f),b(Q,C,null),e(C,Ct),e(C,Y),e(Y,At),e(Y,se),e(se,$t),e(Y,Tt),Ue=!0},p:so,i(t){Ue||(v(I.$$.fragment,t),v(B.$$.fragment,t),v(L.$$.fragment,t),v(F.$$.fragment,t),v(X.$$.fragment,t),v(H.$$.fragment,t),v(G.$$.fragment,t),v(J.$$.fragment,t),v(j.$$.fragment,t),v(Q.$$.fragment,t),Ue=!0)},o(t){w(I.$$.fragment,t),w(B.$$.fragment,t),w(L.$$.fragment,t),w(F.$$.fragment,t),w(X.$$.fragment,t),w(H.$$.fragment,t),w(G.$$.fragment,t),w(J.$$.fragment,t),w(j.$$.fragment,t),w(Q.$$.fragment,t),Ue=!1},d(t){o(y),t&&o(ge),t&&o(k),D(I),t&&o(be),t&&o($),t&&o(ve),t&&o(ee),t&&o(we),t&&o(te),t&&o(De),t&&o(N),D(B),t&&o(ye),t&&o(u),D(L),D(F),D(X),D(H),D(G),D(J),t&&o(ke),t&&o(U),D(j),t&&o(Ne),t&&o(C),D(Q)}}}const ao={local:"unet3dconditionmodel",sections:[{local:"diffusers.UNet3DConditionModel",title:"UNet3DConditionModel"},{local:"diffusers.models.unet_3d_condition.UNet3DConditionOutput",title:"UNet3DConditionOutput"}],title:"UNet3DConditionModel"};function lo(xt){return ro(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mo extends eo{constructor(y){super();to(this,y,lo,io,oo,{})}}export{mo as default,ao as metadata};
