import{s as kt,o as Ct,n as Tt}from"../chunks/scheduler.8c3d61f6.js";import{S as Nt,i as Ut,g as r,s as o,r as p,A as Dt,h as i,f as n,c as s,j as v,u as _,x as u,k as P,y as t,a as f,v as g,d as h,t as b,w as A}from"../chunks/index.da70eac4.js";import{T as xt}from"../chunks/Tip.1d9b8c37.js";import{D as y}from"../chunks/Docstring.6b390b9a.js";import{H as dt,E as Ft}from"../chunks/EditOnGithub.1e64e623.js";function Lt(se){let c,M="This API is 🧪 experimental.";return{c(){c=r("p"),c.textContent=M},l(m){c=i(m,"P",{"data-svelte-h":!0}),u(c)!=="svelte-89q1io"&&(c.textContent=M)},m(m,k){f(m,c,k)},p:Tt,d(m){m&&n(c)}}}function It(se){let c,M="This API is 🧪 experimental.";return{c(){c=r("p"),c.textContent=M},l(m){c=i(m,"P",{"data-svelte-h":!0}),u(c)!=="svelte-89q1io"&&(c.textContent=M)},m(m,k){f(m,c,k)},p:Tt,d(m){m&&n(c)}}}function St(se){let c,M,m,k,G,Pe,H,lt='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 2D UNet model.',$e,O,ct="The abstract from the paper is:",ye,E,ft='<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>',Me,j,we,d,X,Ve,ne,ut=`A modified conditional 2D UNet model that takes a noisy sample, conditional state, and a timestep and returns a
sample shaped output.`,Ge,re,mt=`This model inherits from <a href="/docs/diffusers/main/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).`,He,C,z,Oe,ie,pt="Disables the FreeU mechanism.",Ee,N,q,je,ae,_t=`Sets the attention processor to use <a href="https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers" rel="nofollow">feed forward
chunking</a>.`,Xe,$,K,ze,de,gt='Enables the FreeU mechanism from <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',qe,le,ht="The suffixes after the scaling factors represent the stage blocks where they are being applied.",Ke,ce,bt=`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.`,Be,U,B,Je,fe,At='The <a href="/docs/diffusers/main/en/api/models/unet-motion#diffusers.UNetMotionModel">UNetMotionModel</a> forward method.',Re,D,J,Qe,ue,vt=`Freeze the weights of just the UNet2DConditionModel, and leave the motion modules
unfrozen for fine tuning.`,We,w,R,Ye,me,Pt=`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.`,Ze,F,et,L,Q,tt,pe,$t="Sets the attention processor to use to compute attention.",ot,I,W,st,_e,yt="Disables custom attention processors and sets the default attention implementation.",nt,x,Y,rt,ge,Mt="Disables the fused QKV projection if enabled.",it,S,xe,Z,Te,T,ee,at,he,wt='The output of <a href="/docs/diffusers/main/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel">UNet3DConditionModel</a>.',ke,te,Ce,ve,Ne;return G=new dt({props:{title:"UNetMotionModel",local:"unetmotionmodel",headingTag:"h1"}}),j=new dt({props:{title:"UNetMotionModel",local:"diffusers.UNetMotionModel",headingTag:"h2"}}),X=new y({props:{name:"class diffusers.UNetMotionModel",anchor:"diffusers.UNetMotionModel",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, ...] = ('CrossAttnDownBlockMotion', 'CrossAttnDownBlockMotion', 'CrossAttnDownBlockMotion', 'DownBlockMotion')"},{name:"up_block_types",val:": typing.Tuple[str, ...] = ('UpBlockMotion', 'CrossAttnUpBlockMotion', 'CrossAttnUpBlockMotion', 'CrossAttnUpBlockMotion')"},{name:"block_out_channels",val:": typing.Tuple[int, ...] = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": typing.Union[int, typing.Tuple[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:": int = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": int = 1280"},{name:"transformer_layers_per_block",val:": typing.Union[int, typing.Tuple[int], typing.Tuple[typing.Tuple]] = 1"},{name:"reverse_transformer_layers_per_block",val:": typing.Union[int, typing.Tuple[int], typing.Tuple[typing.Tuple], NoneType] = None"},{name:"temporal_transformer_layers_per_block",val:": typing.Union[int, typing.Tuple[int], typing.Tuple[typing.Tuple]] = 1"},{name:"reverse_temporal_transformer_layers_per_block",val:": typing.Union[int, typing.Tuple[int], typing.Tuple[typing.Tuple], NoneType] = None"},{name:"transformer_layers_per_mid_block",val:": typing.Union[int, typing.Tuple[int], NoneType] = None"},{name:"temporal_transformer_layers_per_mid_block",val:": typing.Union[int, typing.Tuple[int], NoneType] = 1"},{name:"use_linear_projection",val:": bool = False"},{name:"num_attention_heads",val:": typing.Union[int, typing.Tuple[int, ...]] = 8"},{name:"motion_max_seq_length",val:": int = 32"},{name:"motion_num_attention_heads",val:": typing.Union[int, typing.Tuple[int, ...]] = 8"},{name:"reverse_motion_num_attention_heads",val:": typing.Union[int, typing.Tuple[int, ...], typing.Tuple[typing.Tuple[int, ...], ...], NoneType] = None"},{name:"use_motion_mid_block",val:": bool = True"},{name:"mid_block_layers",val:": int = 1"},{name:"encoder_hid_dim",val:": typing.Optional[int] = None"},{name:"encoder_hid_dim_type",val:": typing.Optional[str] = None"},{name:"addition_embed_type",val:": typing.Optional[str] = None"},{name:"addition_time_embed_dim",val:": typing.Optional[int] = None"},{name:"projection_class_embeddings_input_dim",val:": typing.Optional[int] = None"},{name:"time_cond_proj_dim",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L1294"}}),z=new y({props:{name:"disable_freeu",anchor:"diffusers.UNetMotionModel.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L1998"}}),q=new y({props:{name:"enable_forward_chunking",anchor:"diffusers.UNetMotionModel.enable_forward_chunking",parameters:[{name:"chunk_size",val:": typing.Optional[int] = None"},{name:"dim",val:": int = 0"}],parametersDescription:[{anchor:"diffusers.UNetMotionModel.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.UNetMotionModel.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/unets/unet_motion_model.py#L1912"}}),K=new y({props:{name:"enable_freeu",anchor:"diffusers.UNetMotionModel.enable_freeu",parameters:[{name:"s1",val:": float"},{name:"s2",val:": float"},{name:"b1",val:": float"},{name:"b2",val:": float"}],parametersDescription:[{anchor:"diffusers.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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/main/src/diffusers/models/unets/unet_motion_model.py#L1973"}}),B=new y({props:{name:"forward",anchor:"diffusers.UNetMotionModel.forward",parameters:[{name:"sample",val:": Tensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"encoder_hidden_states",val:": Tensor"},{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:"added_cond_kwargs",val:": typing.Optional[typing.Dict[str, torch.Tensor]] = 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.UNetMotionModel.forward.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
The noisy input tensor with the following shape <code>(batch, num_frames, channel, height, width</code>.`,name:"sample"},{anchor:"diffusers.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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.UNetMotionModel.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 <code>UNetMotionOutput</code> instead of a plain
tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L2046",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is True, an <code>UNetMotionOutput</code> 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><code>UNetMotionOutput</code> or <code>tuple</code></p>
`}}),J=new y({props:{name:"freeze_unet2d_params",anchor:"diffusers.UNetMotionModel.freeze_unet2d_params",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L1783"}}),R=new y({props:{name:"fuse_qkv_projections",anchor:"diffusers.UNetMotionModel.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L2007"}}),F=new xt({props:{warning:!0,$$slots:{default:[Lt]},$$scope:{ctx:se}}}),Q=new y({props:{name:"set_attn_processor",anchor:"diffusers.UNetMotionModel.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.UNetMotionModel.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/unets/unet_motion_model.py#L1878"}}),W=new y({props:{name:"set_default_attn_processor",anchor:"diffusers.UNetMotionModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L1953"}}),Y=new y({props:{name:"unfuse_qkv_projections",anchor:"diffusers.UNetMotionModel.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_motion_model.py#L2033"}}),S=new xt({props:{warning:!0,$$slots:{default:[It]},$$scope:{ctx:se}}}),Z=new dt({props:{title:"UNet3DConditionOutput",local:"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput",headingTag:"h2"}}),ee=new y({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/main/src/diffusers/models/unets/unet_3d_condition.py#L53"}}),te=new Ft({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/unet-motion.md"}}),{c(){c=r("meta"),M=o(),m=r("p"),k=o(),p(G.$$.fragment),Pe=o(),H=r("p"),H.innerHTML=lt,$e=o(),O=r("p"),O.textContent=ct,ye=o(),E=r("p"),E.innerHTML=ft,Me=o(),p(j.$$.fragment),we=o(),d=r("div"),p(X.$$.fragment),Ve=o(),ne=r("p"),ne.textContent=ut,Ge=o(),re=r("p"),re.innerHTML=mt,He=o(),C=r("div"),p(z.$$.fragment),Oe=o(),ie=r("p"),ie.textContent=pt,Ee=o(),N=r("div"),p(q.$$.fragment),je=o(),ae=r("p"),ae.innerHTML=_t,Xe=o(),$=r("div"),p(K.$$.fragment),ze=o(),de=r("p"),de.innerHTML=gt,qe=o(),le=r("p"),le.textContent=ht,Ke=o(),ce=r("p"),ce.innerHTML=bt,Be=o(),U=r("div"),p(B.$$.fragment),Je=o(),fe=r("p"),fe.innerHTML=At,Re=o(),D=r("div"),p(J.$$.fragment),Qe=o(),ue=r("p"),ue.textContent=vt,We=o(),w=r("div"),p(R.$$.fragment),Ye=o(),me=r("p"),me.textContent=Pt,Ze=o(),p(F.$$.fragment),et=o(),L=r("div"),p(Q.$$.fragment),tt=o(),pe=r("p"),pe.textContent=$t,ot=o(),I=r("div"),p(W.$$.fragment),st=o(),_e=r("p"),_e.textContent=yt,nt=o(),x=r("div"),p(Y.$$.fragment),rt=o(),ge=r("p"),ge.textContent=Mt,it=o(),p(S.$$.fragment),xe=o(),p(Z.$$.fragment),Te=o(),T=r("div"),p(ee.$$.fragment),at=o(),he=r("p"),he.innerHTML=wt,ke=o(),p(te.$$.fragment),Ce=o(),ve=r("p"),this.h()},l(e){const a=Dt("svelte-u9bgzb",document.head);c=i(a,"META",{name:!0,content:!0}),a.forEach(n),M=s(e),m=i(e,"P",{}),v(m).forEach(n),k=s(e),_(G.$$.fragment,e),Pe=s(e),H=i(e,"P",{"data-svelte-h":!0}),u(H)!=="svelte-1gx5we1"&&(H.innerHTML=lt),$e=s(e),O=i(e,"P",{"data-svelte-h":!0}),u(O)!=="svelte-1cwsb16"&&(O.textContent=ct),ye=s(e),E=i(e,"P",{"data-svelte-h":!0}),u(E)!=="svelte-12epiox"&&(E.innerHTML=ft),Me=s(e),_(j.$$.fragment,e),we=s(e),d=i(e,"DIV",{class:!0});var l=v(d);_(X.$$.fragment,l),Ve=s(l),ne=i(l,"P",{"data-svelte-h":!0}),u(ne)!=="svelte-17nn7p8"&&(ne.textContent=ut),Ge=s(l),re=i(l,"P",{"data-svelte-h":!0}),u(re)!=="svelte-1hyu2ru"&&(re.innerHTML=mt),He=s(l),C=i(l,"DIV",{class:!0});var oe=v(C);_(z.$$.fragment,oe),Oe=s(oe),ie=i(oe,"P",{"data-svelte-h":!0}),u(ie)!=="svelte-1d0rkng"&&(ie.textContent=pt),oe.forEach(n),Ee=s(l),N=i(l,"DIV",{class:!0});var Ue=v(N);_(q.$$.fragment,Ue),je=s(Ue),ae=i(Ue,"P",{"data-svelte-h":!0}),u(ae)!=="svelte-2m23sy"&&(ae.innerHTML=_t),Ue.forEach(n),Xe=s(l),$=i(l,"DIV",{class:!0});var V=v($);_(K.$$.fragment,V),ze=s(V),de=i(V,"P",{"data-svelte-h":!0}),u(de)!=="svelte-4p7kn0"&&(de.innerHTML=gt),qe=s(V),le=i(V,"P",{"data-svelte-h":!0}),u(le)!=="svelte-1t9gjdi"&&(le.textContent=ht),Ke=s(V),ce=i(V,"P",{"data-svelte-h":!0}),u(ce)!=="svelte-tw05zf"&&(ce.innerHTML=bt),V.forEach(n),Be=s(l),U=i(l,"DIV",{class:!0});var De=v(U);_(B.$$.fragment,De),Je=s(De),fe=i(De,"P",{"data-svelte-h":!0}),u(fe)!=="svelte-h4la7u"&&(fe.innerHTML=At),De.forEach(n),Re=s(l),D=i(l,"DIV",{class:!0});var Fe=v(D);_(J.$$.fragment,Fe),Qe=s(Fe),ue=i(Fe,"P",{"data-svelte-h":!0}),u(ue)!=="svelte-os6vgi"&&(ue.textContent=vt),Fe.forEach(n),We=s(l),w=i(l,"DIV",{class:!0});var be=v(w);_(R.$$.fragment,be),Ye=s(be),me=i(be,"P",{"data-svelte-h":!0}),u(me)!=="svelte-1254b9i"&&(me.textContent=Pt),Ze=s(be),_(F.$$.fragment,be),be.forEach(n),et=s(l),L=i(l,"DIV",{class:!0});var Le=v(L);_(Q.$$.fragment,Le),tt=s(Le),pe=i(Le,"P",{"data-svelte-h":!0}),u(pe)!=="svelte-1o77hl2"&&(pe.textContent=$t),Le.forEach(n),ot=s(l),I=i(l,"DIV",{class:!0});var Ie=v(I);_(W.$$.fragment,Ie),st=s(Ie),_e=i(Ie,"P",{"data-svelte-h":!0}),u(_e)!=="svelte-1lxcwhv"&&(_e.textContent=yt),Ie.forEach(n),nt=s(l),x=i(l,"DIV",{class:!0});var Ae=v(x);_(Y.$$.fragment,Ae),rt=s(Ae),ge=i(Ae,"P",{"data-svelte-h":!0}),u(ge)!=="svelte-1vhtc74"&&(ge.textContent=Mt),it=s(Ae),_(S.$$.fragment,Ae),Ae.forEach(n),l.forEach(n),xe=s(e),_(Z.$$.fragment,e),Te=s(e),T=i(e,"DIV",{class:!0});var Se=v(T);_(ee.$$.fragment,Se),at=s(Se),he=i(Se,"P",{"data-svelte-h":!0}),u(he)!=="svelte-njpr7n"&&(he.innerHTML=wt),Se.forEach(n),ke=s(e),_(te.$$.fragment,e),Ce=s(e),ve=i(e,"P",{}),v(ve).forEach(n),this.h()},h(){P(c,"name","hf:doc:metadata"),P(c,"content",Vt),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(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($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(U,"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(w,"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(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(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(T,"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,a){t(document.head,c),f(e,M,a),f(e,m,a),f(e,k,a),g(G,e,a),f(e,Pe,a),f(e,H,a),f(e,$e,a),f(e,O,a),f(e,ye,a),f(e,E,a),f(e,Me,a),g(j,e,a),f(e,we,a),f(e,d,a),g(X,d,null),t(d,Ve),t(d,ne),t(d,Ge),t(d,re),t(d,He),t(d,C),g(z,C,null),t(C,Oe),t(C,ie),t(d,Ee),t(d,N),g(q,N,null),t(N,je),t(N,ae),t(d,Xe),t(d,$),g(K,$,null),t($,ze),t($,de),t($,qe),t($,le),t($,Ke),t($,ce),t(d,Be),t(d,U),g(B,U,null),t(U,Je),t(U,fe),t(d,Re),t(d,D),g(J,D,null),t(D,Qe),t(D,ue),t(d,We),t(d,w),g(R,w,null),t(w,Ye),t(w,me),t(w,Ze),g(F,w,null),t(d,et),t(d,L),g(Q,L,null),t(L,tt),t(L,pe),t(d,ot),t(d,I),g(W,I,null),t(I,st),t(I,_e),t(d,nt),t(d,x),g(Y,x,null),t(x,rt),t(x,ge),t(x,it),g(S,x,null),f(e,xe,a),g(Z,e,a),f(e,Te,a),f(e,T,a),g(ee,T,null),t(T,at),t(T,he),f(e,ke,a),g(te,e,a),f(e,Ce,a),f(e,ve,a),Ne=!0},p(e,[a]){const l={};a&2&&(l.$$scope={dirty:a,ctx:e}),F.$set(l);const oe={};a&2&&(oe.$$scope={dirty:a,ctx:e}),S.$set(oe)},i(e){Ne||(h(G.$$.fragment,e),h(j.$$.fragment,e),h(X.$$.fragment,e),h(z.$$.fragment,e),h(q.$$.fragment,e),h(K.$$.fragment,e),h(B.$$.fragment,e),h(J.$$.fragment,e),h(R.$$.fragment,e),h(F.$$.fragment,e),h(Q.$$.fragment,e),h(W.$$.fragment,e),h(Y.$$.fragment,e),h(S.$$.fragment,e),h(Z.$$.fragment,e),h(ee.$$.fragment,e),h(te.$$.fragment,e),Ne=!0)},o(e){b(G.$$.fragment,e),b(j.$$.fragment,e),b(X.$$.fragment,e),b(z.$$.fragment,e),b(q.$$.fragment,e),b(K.$$.fragment,e),b(B.$$.fragment,e),b(J.$$.fragment,e),b(R.$$.fragment,e),b(F.$$.fragment,e),b(Q.$$.fragment,e),b(W.$$.fragment,e),b(Y.$$.fragment,e),b(S.$$.fragment,e),b(Z.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),Ne=!1},d(e){e&&(n(M),n(m),n(k),n(Pe),n(H),n($e),n(O),n(ye),n(E),n(Me),n(we),n(d),n(xe),n(Te),n(T),n(ke),n(Ce),n(ve)),n(c),A(G,e),A(j,e),A(X),A(z),A(q),A(K),A(B),A(J),A(R),A(F),A(Q),A(W),A(Y),A(S),A(Z,e),A(ee),A(te,e)}}}const Vt='{"title":"UNetMotionModel","local":"unetmotionmodel","sections":[{"title":"UNetMotionModel","local":"diffusers.UNetMotionModel","sections":[],"depth":2},{"title":"UNet3DConditionOutput","local":"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput","sections":[],"depth":2}],"depth":1}';function Gt(se){return Ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zt extends Nt{constructor(c){super(),Ut(this,c,Gt,St,kt,{})}}export{zt as component};
