import{s as Tt,o as Mt,n as Nt}from"../chunks/scheduler.8c3d61f6.js";import{S as Ft,i as Lt,g as r,s as o,r as p,A as It,h as i,f as n,c as s,j as v,u as _,x as f,k as P,y as t,a as u,v as h,d as g,t as b,w as A}from"../chunks/index.da70eac4.js";import{T as Ut}from"../chunks/Tip.1d9b8c37.js";import{D as $}from"../chunks/Docstring.6b390b9a.js";import{H as lt,E as St}from"../chunks/EditOnGithub.1e64e623.js";function qt(se){let l,w="This API is 🧪 experimental.";return{c(){l=r("p"),l.textContent=w},l(m){l=i(m,"P",{"data-svelte-h":!0}),f(l)!=="svelte-89q1io"&&(l.textContent=w)},m(m,U){u(m,l,U)},p:Nt,d(m){m&&n(l)}}}function Vt(se){let l,w="This API is 🧪 experimental.";return{c(){l=r("p"),l.textContent=w},l(m){l=i(m,"P",{"data-svelte-h":!0}),f(l)!=="svelte-89q1io"&&(l.textContent=w)},m(m,U){u(m,l,U)},p:Nt,d(m){m&&n(l)}}}function Ht(se){let l,w,m,U,V,$e,H,ft='The <a href="https://huggingface.co/papers/1505.04597" rel="nofollow">UNet</a> model was originally introduced by Ronneberger et al. for biomedical image segmentation, but it is also commonly used in 🤗 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 🤗 Diffusers, depending on it’s number of dimensions and whether it is a conditional model or not. This is a 3D UNet conditional model.',we,z,ut="The abstract from the paper is:",De,G,mt='<em>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 <a href="http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net" rel="nofollow">http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net</a>.</em>',xe,O,ye,a,j,Ve,ne,pt=`A conditional 3D UNet model that takes a noisy sample, conditional state, and a timestep and returns a sample
shaped output.`,He,re,_t=`This model inherits from <a href="/docs/diffusers/pr_10037/en/api/models/overview#diffusers.ModelMixin">ModelMixin</a>. Check the superclass documentation for it’s generic methods implemented
for all models (such as downloading or saving).`,ze,N,E,Ge,ie,ht="Disables the FreeU mechanism.",Oe,T,B,je,de,gt=`Sets the attention processor to use <a href="https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers" rel="nofollow">feed forward
chunking</a>.`,Ee,C,X,Be,ae,bt='Enables the FreeU mechanism from <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',Xe,ce,At="The suffixes after the scaling factors represent the stage blocks where they are being applied.",Ke,le,vt=`Please refer to the <a href="https://github.com/ChenyangSi/FreeU" rel="nofollow">official repository</a> for combinations of values that
are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.`,Je,M,K,Re,fe,Pt='The <a href="/docs/diffusers/pr_10037/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel">UNet3DConditionModel</a> forward method.',We,D,J,Qe,ue,Ct=`Enables fused QKV projections. 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.`,Ye,F,Ze,x,R,et,me,$t="Enable sliced attention computation.",tt,pe,wt=`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.`,ot,L,W,st,_e,Dt="Sets the attention processor to use to compute attention.",nt,I,Q,rt,he,xt="Disables custom attention processors and sets the default attention implementation.",it,y,Y,dt,ge,yt="Disables the fused QKV projection if enabled.",at,S,ke,Z,Ue,k,ee,ct,be,kt='The output of <a href="/docs/diffusers/pr_10037/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel">UNet3DConditionModel</a>.',Ne,te,Te,Ce,Me;return V=new lt({props:{title:"UNet3DConditionModel",local:"unet3dconditionmodel",headingTag:"h1"}}),O=new lt({props:{title:"UNet3DConditionModel",local:"diffusers.UNet3DConditionModel",headingTag:"h2"}}),j=new $({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"},{name:"time_cond_proj_dim",val:": typing.Optional[int] = 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;CrossAttnDownBlock3D&quot;, &quot;CrossAttnDownBlock3D&quot;, &quot;CrossAttnDownBlock3D&quot;, &quot;DownBlock3D&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;UpBlock3D&quot;, &quot;CrossAttnUpBlock3D&quot;, &quot;CrossAttnUpBlock3D&quot;, &quot;CrossAttnUpBlock3D&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 1024) &#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 64) &#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"},{anchor:"diffusers.UNet3DConditionModel.time_cond_proj_dim",description:`<strong>time_cond_proj_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The dimension of <code>cond_proj</code> layer in the timestep embedding.`,name:"time_cond_proj_dim"}],source:"https://github.com/huggingface/diffusers/blob/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L66"}}),E=new $({props:{name:"disable_freeu",anchor:"diffusers.UNet3DConditionModel.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L504"}}),B=new $({props:{name:"enable_forward_chunking",anchor:"diffusers.UNet3DConditionModel.enable_forward_chunking",parameters:[{name:"chunk_size",val:": typing.Optional[int] = None"},{name:"dim",val:": int = 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/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L418"}}),X=new $({props:{name:"enable_freeu",anchor:"diffusers.UNet3DConditionModel.enable_freeu",parameters:[{name:"s1",val:""},{name:"s2",val:""},{name:"b1",val:""},{name:"b2",val:""}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.enable_freeu.s1",description:`<strong>s1</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
mitigate the &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.UNet3DConditionModel.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
mitigate the &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.UNet3DConditionModel.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) &#x2014; Scaling factor for stage 1 to amplify the contributions of backbone features.",name:"b1"},{anchor:"diffusers.UNet3DConditionModel.enable_freeu.b2",description:"<strong>b2</strong> (<code>float</code>) &#x2014; Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L479"}}),K=new $({props:{name:"forward",anchor:"diffusers.UNet3DConditionModel.forward",parameters:[{name:"sample",val:": Tensor"},{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.Optional[typing.Dict[str, typing.Any]] = 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.Tensor</code>) &#x2014;
The noisy input tensor with the following shape <code>(batch, num_channels, num_frames, height, width</code>.`,name:"sample"},{anchor:"diffusers.UNet3DConditionModel.forward.timestep",description:"<strong>timestep</strong> (<code>torch.Tensor</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.Tensor</code>) &#x2014;
The encoder hidden states with shape <code>(batch, sequence_length, feature_dim)</code>.`,name:"encoder_hidden_states"},{anchor:"diffusers.UNet3DConditionModel.forward.class_labels",description:`<strong>class_labels</strong> (<code>torch.Tensor</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Optional class labels for conditioning. Their embeddings will be summed with the timestep embeddings.`,name:"class_labels"},{anchor:"diffusers.UNet3DConditionModel.forward.timestep_cond",description:`<strong>timestep_cond</strong> &#x2014; (<code>torch.Tensor</code>, <em>optional</em>, defaults to <code>None</code>):
Conditional embeddings for timestep. If provided, the embeddings will be summed with the samples passed
through the <code>self.time_embedding</code> layer to obtain the timestep embeddings.`,name:"timestep_cond"},{anchor:"diffusers.UNet3DConditionModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
An attention mask of shape <code>(batch, key_tokens)</code> is applied to <code>encoder_hidden_states</code>. If <code>1</code> the mask
is kept, otherwise if <code>0</code> it is discarded. Mask will be converted into a bias, which adds large
negative values to the attention scores corresponding to &#x201C;discard&#x201D; tokens.`,name:"attention_mask"},{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>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.UNet3DConditionModel.forward.down_block_additional_residuals",description:`<strong>down_block_additional_residuals</strong> &#x2014; (<code>tuple</code> of <code>torch.Tensor</code>, <em>optional</em>):
A tuple of tensors that if specified are added to the residuals of down unet blocks.`,name:"down_block_additional_residuals"},{anchor:"diffusers.UNet3DConditionModel.forward.mid_block_additional_residual",description:`<strong>mid_block_additional_residual</strong> &#x2014; (<code>torch.Tensor</code>, <em>optional</em>):
A tensor that if specified is added to the residual of the middle unet block.`,name:"mid_block_additional_residual"},{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/pr_10037/en/api/models/unet-motion#diffusers.models.unets.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/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L552",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is True, an <a
  href="/docs/diffusers/pr_10037/en/api/models/unet-motion#diffusers.models.unets.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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/pr_10037/en/api/models/unet-motion#diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput"
>UNet3DConditionOutput</a> or <code>tuple</code></p>
`}}),J=new $({props:{name:"fuse_qkv_projections",anchor:"diffusers.UNet3DConditionModel.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L513"}}),F=new Ut({props:{warning:!0,$$slots:{default:[qt]},$$scope:{ctx:se}}}),R=new $({props:{name:"set_attention_slice",anchor:"diffusers.UNet3DConditionModel.set_attention_slice",parameters:[{name:"slice_size",val:": typing.Union[str, int, typing.List[int]]"}],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/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L318"}}),W=new $({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.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, 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.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, 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/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L384"}}),Q=new $({props:{name:"set_default_attn_processor",anchor:"diffusers.UNet3DConditionModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L459"}}),Y=new $({props:{name:"unfuse_qkv_projections",anchor:"diffusers.UNet3DConditionModel.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L539"}}),S=new Ut({props:{warning:!0,$$slots:{default:[Vt]},$$scope:{ctx:se}}}),Z=new lt({props:{title:"UNet3DConditionOutput",local:"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput",headingTag:"h2"}}),ee=new $({props:{name:"class diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput",anchor:"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput",parameters:[{name:"sample",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_channels, num_frames, 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/vr_10037/src/diffusers/models/unets/unet_3d_condition.py#L53"}}),te=new St({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/unet3d-cond.md"}}),{c(){l=r("meta"),w=o(),m=r("p"),U=o(),p(V.$$.fragment),$e=o(),H=r("p"),H.innerHTML=ft,we=o(),z=r("p"),z.textContent=ut,De=o(),G=r("p"),G.innerHTML=mt,xe=o(),p(O.$$.fragment),ye=o(),a=r("div"),p(j.$$.fragment),Ve=o(),ne=r("p"),ne.textContent=pt,He=o(),re=r("p"),re.innerHTML=_t,ze=o(),N=r("div"),p(E.$$.fragment),Ge=o(),ie=r("p"),ie.textContent=ht,Oe=o(),T=r("div"),p(B.$$.fragment),je=o(),de=r("p"),de.innerHTML=gt,Ee=o(),C=r("div"),p(X.$$.fragment),Be=o(),ae=r("p"),ae.innerHTML=bt,Xe=o(),ce=r("p"),ce.textContent=At,Ke=o(),le=r("p"),le.innerHTML=vt,Je=o(),M=r("div"),p(K.$$.fragment),Re=o(),fe=r("p"),fe.innerHTML=Pt,We=o(),D=r("div"),p(J.$$.fragment),Qe=o(),ue=r("p"),ue.textContent=Ct,Ye=o(),p(F.$$.fragment),Ze=o(),x=r("div"),p(R.$$.fragment),et=o(),me=r("p"),me.textContent=$t,tt=o(),pe=r("p"),pe.textContent=wt,ot=o(),L=r("div"),p(W.$$.fragment),st=o(),_e=r("p"),_e.textContent=Dt,nt=o(),I=r("div"),p(Q.$$.fragment),rt=o(),he=r("p"),he.textContent=xt,it=o(),y=r("div"),p(Y.$$.fragment),dt=o(),ge=r("p"),ge.textContent=yt,at=o(),p(S.$$.fragment),ke=o(),p(Z.$$.fragment),Ue=o(),k=r("div"),p(ee.$$.fragment),ct=o(),be=r("p"),be.innerHTML=kt,Ne=o(),p(te.$$.fragment),Te=o(),Ce=r("p"),this.h()},l(e){const d=It("svelte-u9bgzb",document.head);l=i(d,"META",{name:!0,content:!0}),d.forEach(n),w=s(e),m=i(e,"P",{}),v(m).forEach(n),U=s(e),_(V.$$.fragment,e),$e=s(e),H=i(e,"P",{"data-svelte-h":!0}),f(H)!=="svelte-ow4zsm"&&(H.innerHTML=ft),we=s(e),z=i(e,"P",{"data-svelte-h":!0}),f(z)!=="svelte-1cwsb16"&&(z.textContent=ut),De=s(e),G=i(e,"P",{"data-svelte-h":!0}),f(G)!=="svelte-12epiox"&&(G.innerHTML=mt),xe=s(e),_(O.$$.fragment,e),ye=s(e),a=i(e,"DIV",{class:!0});var c=v(a);_(j.$$.fragment,c),Ve=s(c),ne=i(c,"P",{"data-svelte-h":!0}),f(ne)!=="svelte-1izhjcu"&&(ne.textContent=pt),He=s(c),re=i(c,"P",{"data-svelte-h":!0}),f(re)!=="svelte-1ixon1"&&(re.innerHTML=_t),ze=s(c),N=i(c,"DIV",{class:!0});var oe=v(N);_(E.$$.fragment,oe),Ge=s(oe),ie=i(oe,"P",{"data-svelte-h":!0}),f(ie)!=="svelte-1d0rkng"&&(ie.textContent=ht),oe.forEach(n),Oe=s(c),T=i(c,"DIV",{class:!0});var Fe=v(T);_(B.$$.fragment,Fe),je=s(Fe),de=i(Fe,"P",{"data-svelte-h":!0}),f(de)!=="svelte-2m23sy"&&(de.innerHTML=gt),Fe.forEach(n),Ee=s(c),C=i(c,"DIV",{class:!0});var q=v(C);_(X.$$.fragment,q),Be=s(q),ae=i(q,"P",{"data-svelte-h":!0}),f(ae)!=="svelte-4p7kn0"&&(ae.innerHTML=bt),Xe=s(q),ce=i(q,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-1t9gjdi"&&(ce.textContent=At),Ke=s(q),le=i(q,"P",{"data-svelte-h":!0}),f(le)!=="svelte-tw05zf"&&(le.innerHTML=vt),q.forEach(n),Je=s(c),M=i(c,"DIV",{class:!0});var Le=v(M);_(K.$$.fragment,Le),Re=s(Le),fe=i(Le,"P",{"data-svelte-h":!0}),f(fe)!=="svelte-xtzvw6"&&(fe.innerHTML=Pt),Le.forEach(n),We=s(c),D=i(c,"DIV",{class:!0});var Ae=v(D);_(J.$$.fragment,Ae),Qe=s(Ae),ue=i(Ae,"P",{"data-svelte-h":!0}),f(ue)!=="svelte-1254b9i"&&(ue.textContent=Ct),Ye=s(Ae),_(F.$$.fragment,Ae),Ae.forEach(n),Ze=s(c),x=i(c,"DIV",{class:!0});var ve=v(x);_(R.$$.fragment,ve),et=s(ve),me=i(ve,"P",{"data-svelte-h":!0}),f(me)!=="svelte-7fahc0"&&(me.textContent=$t),tt=s(ve),pe=i(ve,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-1yjwkav"&&(pe.textContent=wt),ve.forEach(n),ot=s(c),L=i(c,"DIV",{class:!0});var Ie=v(L);_(W.$$.fragment,Ie),st=s(Ie),_e=i(Ie,"P",{"data-svelte-h":!0}),f(_e)!=="svelte-1o77hl2"&&(_e.textContent=Dt),Ie.forEach(n),nt=s(c),I=i(c,"DIV",{class:!0});var Se=v(I);_(Q.$$.fragment,Se),rt=s(Se),he=i(Se,"P",{"data-svelte-h":!0}),f(he)!=="svelte-1lxcwhv"&&(he.textContent=xt),Se.forEach(n),it=s(c),y=i(c,"DIV",{class:!0});var Pe=v(y);_(Y.$$.fragment,Pe),dt=s(Pe),ge=i(Pe,"P",{"data-svelte-h":!0}),f(ge)!=="svelte-1vhtc74"&&(ge.textContent=yt),at=s(Pe),_(S.$$.fragment,Pe),Pe.forEach(n),c.forEach(n),ke=s(e),_(Z.$$.fragment,e),Ue=s(e),k=i(e,"DIV",{class:!0});var qe=v(k);_(ee.$$.fragment,qe),ct=s(qe),be=i(qe,"P",{"data-svelte-h":!0}),f(be)!=="svelte-1o4sj6i"&&(be.innerHTML=kt),qe.forEach(n),Ne=s(e),_(te.$$.fragment,e),Te=s(e),Ce=i(e,"P",{}),v(Ce).forEach(n),this.h()},h(){P(l,"name","hf:doc:metadata"),P(l,"content",zt),P(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(k,"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,d){t(document.head,l),u(e,w,d),u(e,m,d),u(e,U,d),h(V,e,d),u(e,$e,d),u(e,H,d),u(e,we,d),u(e,z,d),u(e,De,d),u(e,G,d),u(e,xe,d),h(O,e,d),u(e,ye,d),u(e,a,d),h(j,a,null),t(a,Ve),t(a,ne),t(a,He),t(a,re),t(a,ze),t(a,N),h(E,N,null),t(N,Ge),t(N,ie),t(a,Oe),t(a,T),h(B,T,null),t(T,je),t(T,de),t(a,Ee),t(a,C),h(X,C,null),t(C,Be),t(C,ae),t(C,Xe),t(C,ce),t(C,Ke),t(C,le),t(a,Je),t(a,M),h(K,M,null),t(M,Re),t(M,fe),t(a,We),t(a,D),h(J,D,null),t(D,Qe),t(D,ue),t(D,Ye),h(F,D,null),t(a,Ze),t(a,x),h(R,x,null),t(x,et),t(x,me),t(x,tt),t(x,pe),t(a,ot),t(a,L),h(W,L,null),t(L,st),t(L,_e),t(a,nt),t(a,I),h(Q,I,null),t(I,rt),t(I,he),t(a,it),t(a,y),h(Y,y,null),t(y,dt),t(y,ge),t(y,at),h(S,y,null),u(e,ke,d),h(Z,e,d),u(e,Ue,d),u(e,k,d),h(ee,k,null),t(k,ct),t(k,be),u(e,Ne,d),h(te,e,d),u(e,Te,d),u(e,Ce,d),Me=!0},p(e,[d]){const c={};d&2&&(c.$$scope={dirty:d,ctx:e}),F.$set(c);const oe={};d&2&&(oe.$$scope={dirty:d,ctx:e}),S.$set(oe)},i(e){Me||(g(V.$$.fragment,e),g(O.$$.fragment,e),g(j.$$.fragment,e),g(E.$$.fragment,e),g(B.$$.fragment,e),g(X.$$.fragment,e),g(K.$$.fragment,e),g(J.$$.fragment,e),g(F.$$.fragment,e),g(R.$$.fragment,e),g(W.$$.fragment,e),g(Q.$$.fragment,e),g(Y.$$.fragment,e),g(S.$$.fragment,e),g(Z.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),Me=!0)},o(e){b(V.$$.fragment,e),b(O.$$.fragment,e),b(j.$$.fragment,e),b(E.$$.fragment,e),b(B.$$.fragment,e),b(X.$$.fragment,e),b(K.$$.fragment,e),b(J.$$.fragment,e),b(F.$$.fragment,e),b(R.$$.fragment,e),b(W.$$.fragment,e),b(Q.$$.fragment,e),b(Y.$$.fragment,e),b(S.$$.fragment,e),b(Z.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),Me=!1},d(e){e&&(n(w),n(m),n(U),n($e),n(H),n(we),n(z),n(De),n(G),n(xe),n(ye),n(a),n(ke),n(Ue),n(k),n(Ne),n(Te),n(Ce)),n(l),A(V,e),A(O,e),A(j),A(E),A(B),A(X),A(K),A(J),A(F),A(R),A(W),A(Q),A(Y),A(S),A(Z,e),A(ee),A(te,e)}}}const zt='{"title":"UNet3DConditionModel","local":"unet3dconditionmodel","sections":[{"title":"UNet3DConditionModel","local":"diffusers.UNet3DConditionModel","sections":[],"depth":2},{"title":"UNet3DConditionOutput","local":"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput","sections":[],"depth":2}],"depth":1}';function Gt(se){return Mt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Kt extends Ft{constructor(l){super(),Lt(this,l,Gt,Ht,Tt,{})}}export{Kt as component};
