import{s as Nt,n as Ut,o as Dt}from"../chunks/scheduler.53228c21.js";import{S as Lt,i as Ft,e as r,s as o,c as m,h as St,a as i,d as n,b as s,f as A,g as u,j as c,k as b,l as t,m as f,n as p,t as _,o as g,p as h}from"../chunks/index.100fac89.js";import{C as It}from"../chunks/CopyLLMTxtMenu.4f0519ef.js";import{D as P}from"../chunks/Docstring.d02a9fa5.js";import{H as lt,E as Ht}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.62dbb7c4.js";function Ot(ct){let M,be,ge,Ae,L,ve,F,Pe,S,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 2D UNet model.',ye,I,mt="The abstract from the paper is:",$e,H,ut='<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,O,we,a,V,Oe,ee,pt=`A modified conditional 2D UNet model that takes a noisy sample, conditional state, and a timestep and returns a
sample shaped output.`,Ve,te,_t=`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).`,Ge,x,G,Ee,oe,gt="Disables the FreeU mechanism.",je,T,E,Xe,se,ht=`Sets the attention processor to use <a href="https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers" rel="nofollow">feed forward
chunking</a>.`,ze,v,j,qe,ne,bt='Enables the FreeU mechanism from <a href="https://huggingface.co/papers/2309.11497" rel="nofollow">https://huggingface.co/papers/2309.11497</a>.',Ke,re,At="The suffixes after the scaling factors represent the stage blocks where they are being applied.",Be,ie,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,k,X,Re,ae,Pt='The <a href="/docs/diffusers/main/en/api/models/unet-motion#diffusers.UNetMotionModel">UNetMotionModel</a> forward method.',Qe,C,z,We,de,yt=`Freeze the weights of just the UNet2DConditionModel, and leave the motion modules
unfrozen for fine tuning.`,Ye,y,q,Ze,le,$t=`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.`,et,K,Mt="<p>&gt; This API is 🧪 experimental.</p>",tt,N,B,ot,ce,wt="Sets the attention processor to use to compute attention.",st,U,J,nt,fe,xt="Disables custom attention processors and sets the default attention implementation.",rt,$,R,it,me,Tt="Disables the fused QKV projection if enabled.",at,Q,kt="<p>&gt; This API is 🧪 experimental.</p>",xe,W,Te,w,Y,dt,ue,Ct='The output of <a href="/docs/diffusers/main/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel">UNet3DConditionModel</a>.',ke,Z,Ce,he,Ne;return L=new It({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),F=new lt({props:{title:"UNetMotionModel",local:"unetmotionmodel",headingTag:"h1"}}),O=new lt({props:{title:"UNetMotionModel",local:"diffusers.UNetMotionModel",headingTag:"h2"}}),V=new P({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#L1199"}}),G=new P({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#L1900"}}),E=new P({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#L1818"}}),j=new P({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#L1875"}}),X=new P({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#L1940",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>
`}}),z=new P({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#L1689"}}),q=new P({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#L1909"}}),B=new P({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#L1784"}}),J=new P({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#L1859"}}),R=new P({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#L1931"}}),W=new lt({props:{title:"UNet3DConditionOutput",local:"diffusers.models.unets.unet_3d_condition.UNet3DConditionOutput",headingTag:"h2"}}),Y=new P({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#L50"}}),Z=new Ht({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/unet-motion.md"}}),{c(){M=r("meta"),be=o(),ge=r("p"),Ae=o(),m(L.$$.fragment),ve=o(),m(F.$$.fragment),Pe=o(),S=r("p"),S.innerHTML=ft,ye=o(),I=r("p"),I.textContent=mt,$e=o(),H=r("p"),H.innerHTML=ut,Me=o(),m(O.$$.fragment),we=o(),a=r("div"),m(V.$$.fragment),Oe=o(),ee=r("p"),ee.textContent=pt,Ve=o(),te=r("p"),te.innerHTML=_t,Ge=o(),x=r("div"),m(G.$$.fragment),Ee=o(),oe=r("p"),oe.textContent=gt,je=o(),T=r("div"),m(E.$$.fragment),Xe=o(),se=r("p"),se.innerHTML=ht,ze=o(),v=r("div"),m(j.$$.fragment),qe=o(),ne=r("p"),ne.innerHTML=bt,Ke=o(),re=r("p"),re.textContent=At,Be=o(),ie=r("p"),ie.innerHTML=vt,Je=o(),k=r("div"),m(X.$$.fragment),Re=o(),ae=r("p"),ae.innerHTML=Pt,Qe=o(),C=r("div"),m(z.$$.fragment),We=o(),de=r("p"),de.textContent=yt,Ye=o(),y=r("div"),m(q.$$.fragment),Ze=o(),le=r("p"),le.textContent=$t,et=o(),K=r("blockquote"),K.innerHTML=Mt,tt=o(),N=r("div"),m(B.$$.fragment),ot=o(),ce=r("p"),ce.textContent=wt,st=o(),U=r("div"),m(J.$$.fragment),nt=o(),fe=r("p"),fe.textContent=xt,rt=o(),$=r("div"),m(R.$$.fragment),it=o(),me=r("p"),me.textContent=Tt,at=o(),Q=r("blockquote"),Q.innerHTML=kt,xe=o(),m(W.$$.fragment),Te=o(),w=r("div"),m(Y.$$.fragment),dt=o(),ue=r("p"),ue.innerHTML=Ct,ke=o(),m(Z.$$.fragment),Ce=o(),he=r("p"),this.h()},l(e){const d=St("svelte-u9bgzb",document.head);M=i(d,"META",{name:!0,content:!0}),d.forEach(n),be=s(e),ge=i(e,"P",{}),A(ge).forEach(n),Ae=s(e),u(L.$$.fragment,e),ve=s(e),u(F.$$.fragment,e),Pe=s(e),S=i(e,"P",{"data-svelte-h":!0}),c(S)!=="svelte-1gx5we1"&&(S.innerHTML=ft),ye=s(e),I=i(e,"P",{"data-svelte-h":!0}),c(I)!=="svelte-1cwsb16"&&(I.textContent=mt),$e=s(e),H=i(e,"P",{"data-svelte-h":!0}),c(H)!=="svelte-12epiox"&&(H.innerHTML=ut),Me=s(e),u(O.$$.fragment,e),we=s(e),a=i(e,"DIV",{class:!0});var l=A(a);u(V.$$.fragment,l),Oe=s(l),ee=i(l,"P",{"data-svelte-h":!0}),c(ee)!=="svelte-17nn7p8"&&(ee.textContent=pt),Ve=s(l),te=i(l,"P",{"data-svelte-h":!0}),c(te)!=="svelte-1hyu2ru"&&(te.innerHTML=_t),Ge=s(l),x=i(l,"DIV",{class:!0});var Ue=A(x);u(G.$$.fragment,Ue),Ee=s(Ue),oe=i(Ue,"P",{"data-svelte-h":!0}),c(oe)!=="svelte-1d0rkng"&&(oe.textContent=gt),Ue.forEach(n),je=s(l),T=i(l,"DIV",{class:!0});var De=A(T);u(E.$$.fragment,De),Xe=s(De),se=i(De,"P",{"data-svelte-h":!0}),c(se)!=="svelte-2m23sy"&&(se.innerHTML=ht),De.forEach(n),ze=s(l),v=i(l,"DIV",{class:!0});var D=A(v);u(j.$$.fragment,D),qe=s(D),ne=i(D,"P",{"data-svelte-h":!0}),c(ne)!=="svelte-1kpywno"&&(ne.innerHTML=bt),Ke=s(D),re=i(D,"P",{"data-svelte-h":!0}),c(re)!=="svelte-1t9gjdi"&&(re.textContent=At),Be=s(D),ie=i(D,"P",{"data-svelte-h":!0}),c(ie)!=="svelte-tw05zf"&&(ie.innerHTML=vt),D.forEach(n),Je=s(l),k=i(l,"DIV",{class:!0});var Le=A(k);u(X.$$.fragment,Le),Re=s(Le),ae=i(Le,"P",{"data-svelte-h":!0}),c(ae)!=="svelte-h4la7u"&&(ae.innerHTML=Pt),Le.forEach(n),Qe=s(l),C=i(l,"DIV",{class:!0});var Fe=A(C);u(z.$$.fragment,Fe),We=s(Fe),de=i(Fe,"P",{"data-svelte-h":!0}),c(de)!=="svelte-os6vgi"&&(de.textContent=yt),Fe.forEach(n),Ye=s(l),y=i(l,"DIV",{class:!0});var pe=A(y);u(q.$$.fragment,pe),Ze=s(pe),le=i(pe,"P",{"data-svelte-h":!0}),c(le)!=="svelte-1254b9i"&&(le.textContent=$t),et=s(pe),K=i(pe,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(K)!=="svelte-6y4o4y"&&(K.innerHTML=Mt),pe.forEach(n),tt=s(l),N=i(l,"DIV",{class:!0});var Se=A(N);u(B.$$.fragment,Se),ot=s(Se),ce=i(Se,"P",{"data-svelte-h":!0}),c(ce)!=="svelte-1o77hl2"&&(ce.textContent=wt),Se.forEach(n),st=s(l),U=i(l,"DIV",{class:!0});var Ie=A(U);u(J.$$.fragment,Ie),nt=s(Ie),fe=i(Ie,"P",{"data-svelte-h":!0}),c(fe)!=="svelte-1lxcwhv"&&(fe.textContent=xt),Ie.forEach(n),rt=s(l),$=i(l,"DIV",{class:!0});var _e=A($);u(R.$$.fragment,_e),it=s(_e),me=i(_e,"P",{"data-svelte-h":!0}),c(me)!=="svelte-1vhtc74"&&(me.textContent=Tt),at=s(_e),Q=i(_e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(Q)!=="svelte-6y4o4y"&&(Q.innerHTML=kt),_e.forEach(n),l.forEach(n),xe=s(e),u(W.$$.fragment,e),Te=s(e),w=i(e,"DIV",{class:!0});var He=A(w);u(Y.$$.fragment,He),dt=s(He),ue=i(He,"P",{"data-svelte-h":!0}),c(ue)!=="svelte-njpr7n"&&(ue.innerHTML=Ct),He.forEach(n),ke=s(e),u(Z.$$.fragment,e),Ce=s(e),he=i(e,"P",{}),A(he).forEach(n),this.h()},h(){b(M,"name","hf:doc:metadata"),b(M,"content",Vt),b(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(K,"class","warning"),b(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Q,"class","warning"),b($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(w,"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,M),f(e,be,d),f(e,ge,d),f(e,Ae,d),p(L,e,d),f(e,ve,d),p(F,e,d),f(e,Pe,d),f(e,S,d),f(e,ye,d),f(e,I,d),f(e,$e,d),f(e,H,d),f(e,Me,d),p(O,e,d),f(e,we,d),f(e,a,d),p(V,a,null),t(a,Oe),t(a,ee),t(a,Ve),t(a,te),t(a,Ge),t(a,x),p(G,x,null),t(x,Ee),t(x,oe),t(a,je),t(a,T),p(E,T,null),t(T,Xe),t(T,se),t(a,ze),t(a,v),p(j,v,null),t(v,qe),t(v,ne),t(v,Ke),t(v,re),t(v,Be),t(v,ie),t(a,Je),t(a,k),p(X,k,null),t(k,Re),t(k,ae),t(a,Qe),t(a,C),p(z,C,null),t(C,We),t(C,de),t(a,Ye),t(a,y),p(q,y,null),t(y,Ze),t(y,le),t(y,et),t(y,K),t(a,tt),t(a,N),p(B,N,null),t(N,ot),t(N,ce),t(a,st),t(a,U),p(J,U,null),t(U,nt),t(U,fe),t(a,rt),t(a,$),p(R,$,null),t($,it),t($,me),t($,at),t($,Q),f(e,xe,d),p(W,e,d),f(e,Te,d),f(e,w,d),p(Y,w,null),t(w,dt),t(w,ue),f(e,ke,d),p(Z,e,d),f(e,Ce,d),f(e,he,d),Ne=!0},p:Ut,i(e){Ne||(_(L.$$.fragment,e),_(F.$$.fragment,e),_(O.$$.fragment,e),_(V.$$.fragment,e),_(G.$$.fragment,e),_(E.$$.fragment,e),_(j.$$.fragment,e),_(X.$$.fragment,e),_(z.$$.fragment,e),_(q.$$.fragment,e),_(B.$$.fragment,e),_(J.$$.fragment,e),_(R.$$.fragment,e),_(W.$$.fragment,e),_(Y.$$.fragment,e),_(Z.$$.fragment,e),Ne=!0)},o(e){g(L.$$.fragment,e),g(F.$$.fragment,e),g(O.$$.fragment,e),g(V.$$.fragment,e),g(G.$$.fragment,e),g(E.$$.fragment,e),g(j.$$.fragment,e),g(X.$$.fragment,e),g(z.$$.fragment,e),g(q.$$.fragment,e),g(B.$$.fragment,e),g(J.$$.fragment,e),g(R.$$.fragment,e),g(W.$$.fragment,e),g(Y.$$.fragment,e),g(Z.$$.fragment,e),Ne=!1},d(e){e&&(n(be),n(ge),n(Ae),n(ve),n(Pe),n(S),n(ye),n(I),n($e),n(H),n(Me),n(we),n(a),n(xe),n(Te),n(w),n(ke),n(Ce),n(he)),n(M),h(L,e),h(F,e),h(O,e),h(V),h(G),h(E),h(j),h(X),h(z),h(q),h(B),h(J),h(R),h(W,e),h(Y),h(Z,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(ct){return Dt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Kt extends Lt{constructor(M){super(),Ft(this,M,Gt,Ot,Nt,{})}}export{Kt as component};
