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 m,A as Dt,h as i,f as n,c as s,j as $,u as _,x as u,k as A,y as t,a as f,v as g,d as h,t as b,w as v}from"../chunks/index.da70eac4.js";import{T as xt}from"../chunks/Tip.1d9b8c37.js";import{D as P}from"../chunks/Docstring.6b390b9a.js";import{H as dt,E as Ft}from"../chunks/EditOnGithub.1e64e623.js";function Lt(se){let c,w="This API is 🧪 experimental.";return{c(){c=r("p"),c.textContent=w},l(p){c=i(p,"P",{"data-svelte-h":!0}),u(c)!=="svelte-89q1io"&&(c.textContent=w)},m(p,k){f(p,c,k)},p:Tt,d(p){p&&n(c)}}}function It(se){let c,w="This API is 🧪 experimental.";return{c(){c=r("p"),c.textContent=w},l(p){c=i(p,"P",{"data-svelte-h":!0}),u(c)!=="svelte-89q1io"&&(c.textContent=w)},m(p,k){f(p,c,k)},p:Tt,d(p){p&&n(c)}}}function Vt(se){let c,w,p,k,O,Ae,S,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.',ye,G,ct="The abstract from the paper is:",Pe,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>',we,j,Me,d,z,He,ne,ut=`A modified conditional 2D UNet model that takes a noisy sample, conditional state, and a timestep and returns a
sample shaped output.`,Oe,re,pt=`This model inherits from <a href="/docs/diffusers/pr_10001/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).`,Se,C,X,Ge,ie,mt="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>.`,ze,y,K,Xe,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,Re,fe,vt='The <a href="/docs/diffusers/pr_10001/en/api/models/unet-motion#diffusers.UNetMotionModel">UNetMotionModel</a> forward method.',Je,D,R,Qe,ue,$t=`Freeze the weights of just the UNet2DConditionModel, and leave the motion modules
unfrozen for fine tuning.`,We,M,J,Ye,pe,At=`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,me,yt="Sets the attention processor to use to compute attention.",ot,I,W,st,_e,Pt="Disables custom attention processors and sets the default attention implementation.",nt,x,Y,rt,ge,wt="Disables the fused QKV projection if enabled.",it,V,xe,Z,Te,T,ee,at,he,Mt='The output of <a href="/docs/diffusers/pr_10001/en/api/models/unet3d-cond#diffusers.UNet3DConditionModel">UNet3DConditionModel</a>.',ke,te,Ce,$e,Ne;return O=new dt({props:{title:"UNetMotionModel",local:"unetmotionmodel",headingTag:"h1"}}),j=new dt({props:{title:"UNetMotionModel",local:"diffusers.UNetMotionModel",headingTag:"h2"}}),z=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/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1294"}}),X=new P({props:{name:"disable_freeu",anchor:"diffusers.UNetMotionModel.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1998"}}),q=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/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1912"}}),K=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/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1973"}}),B=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/vr_10001/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>
`}}),R=new P({props:{name:"freeze_unet2d_params",anchor:"diffusers.UNetMotionModel.freeze_unet2d_params",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1783"}}),J=new P({props:{name:"fuse_qkv_projections",anchor:"diffusers.UNetMotionModel.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L2007"}}),F=new xt({props:{warning:!0,$$slots:{default:[Lt]},$$scope:{ctx:se}}}),Q=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.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_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.MochiAttnProcessor2_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.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, 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.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_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.MochiAttnProcessor2_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.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, 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/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1878"}}),W=new P({props:{name:"set_default_attn_processor",anchor:"diffusers.UNetMotionModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L1953"}}),Y=new P({props:{name:"unfuse_qkv_projections",anchor:"diffusers.UNetMotionModel.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10001/src/diffusers/models/unets/unet_motion_model.py#L2033"}}),V=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 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/vr_10001/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"),w=o(),p=r("p"),k=o(),m(O.$$.fragment),Ae=o(),S=r("p"),S.innerHTML=lt,ye=o(),G=r("p"),G.textContent=ct,Pe=o(),E=r("p"),E.innerHTML=ft,we=o(),m(j.$$.fragment),Me=o(),d=r("div"),m(z.$$.fragment),He=o(),ne=r("p"),ne.textContent=ut,Oe=o(),re=r("p"),re.innerHTML=pt,Se=o(),C=r("div"),m(X.$$.fragment),Ge=o(),ie=r("p"),ie.textContent=mt,Ee=o(),N=r("div"),m(q.$$.fragment),je=o(),ae=r("p"),ae.innerHTML=_t,ze=o(),y=r("div"),m(K.$$.fragment),Xe=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"),m(B.$$.fragment),Re=o(),fe=r("p"),fe.innerHTML=vt,Je=o(),D=r("div"),m(R.$$.fragment),Qe=o(),ue=r("p"),ue.textContent=$t,We=o(),M=r("div"),m(J.$$.fragment),Ye=o(),pe=r("p"),pe.textContent=At,Ze=o(),m(F.$$.fragment),et=o(),L=r("div"),m(Q.$$.fragment),tt=o(),me=r("p"),me.textContent=yt,ot=o(),I=r("div"),m(W.$$.fragment),st=o(),_e=r("p"),_e.textContent=Pt,nt=o(),x=r("div"),m(Y.$$.fragment),rt=o(),ge=r("p"),ge.textContent=wt,it=o(),m(V.$$.fragment),xe=o(),m(Z.$$.fragment),Te=o(),T=r("div"),m(ee.$$.fragment),at=o(),he=r("p"),he.innerHTML=Mt,ke=o(),m(te.$$.fragment),Ce=o(),$e=r("p"),this.h()},l(e){const a=Dt("svelte-u9bgzb",document.head);c=i(a,"META",{name:!0,content:!0}),a.forEach(n),w=s(e),p=i(e,"P",{}),$(p).forEach(n),k=s(e),_(O.$$.fragment,e),Ae=s(e),S=i(e,"P",{"data-svelte-h":!0}),u(S)!=="svelte-1gx5we1"&&(S.innerHTML=lt),ye=s(e),G=i(e,"P",{"data-svelte-h":!0}),u(G)!=="svelte-1cwsb16"&&(G.textContent=ct),Pe=s(e),E=i(e,"P",{"data-svelte-h":!0}),u(E)!=="svelte-12epiox"&&(E.innerHTML=ft),we=s(e),_(j.$$.fragment,e),Me=s(e),d=i(e,"DIV",{class:!0});var l=$(d);_(z.$$.fragment,l),He=s(l),ne=i(l,"P",{"data-svelte-h":!0}),u(ne)!=="svelte-17nn7p8"&&(ne.textContent=ut),Oe=s(l),re=i(l,"P",{"data-svelte-h":!0}),u(re)!=="svelte-17ygm8u"&&(re.innerHTML=pt),Se=s(l),C=i(l,"DIV",{class:!0});var oe=$(C);_(X.$$.fragment,oe),Ge=s(oe),ie=i(oe,"P",{"data-svelte-h":!0}),u(ie)!=="svelte-1d0rkng"&&(ie.textContent=mt),oe.forEach(n),Ee=s(l),N=i(l,"DIV",{class:!0});var Ue=$(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),ze=s(l),y=i(l,"DIV",{class:!0});var H=$(y);_(K.$$.fragment,H),Xe=s(H),de=i(H,"P",{"data-svelte-h":!0}),u(de)!=="svelte-4p7kn0"&&(de.innerHTML=gt),qe=s(H),le=i(H,"P",{"data-svelte-h":!0}),u(le)!=="svelte-1t9gjdi"&&(le.textContent=ht),Ke=s(H),ce=i(H,"P",{"data-svelte-h":!0}),u(ce)!=="svelte-tw05zf"&&(ce.innerHTML=bt),H.forEach(n),Be=s(l),U=i(l,"DIV",{class:!0});var De=$(U);_(B.$$.fragment,De),Re=s(De),fe=i(De,"P",{"data-svelte-h":!0}),u(fe)!=="svelte-1wpn5tm"&&(fe.innerHTML=vt),De.forEach(n),Je=s(l),D=i(l,"DIV",{class:!0});var Fe=$(D);_(R.$$.fragment,Fe),Qe=s(Fe),ue=i(Fe,"P",{"data-svelte-h":!0}),u(ue)!=="svelte-os6vgi"&&(ue.textContent=$t),Fe.forEach(n),We=s(l),M=i(l,"DIV",{class:!0});var be=$(M);_(J.$$.fragment,be),Ye=s(be),pe=i(be,"P",{"data-svelte-h":!0}),u(pe)!=="svelte-1254b9i"&&(pe.textContent=At),Ze=s(be),_(F.$$.fragment,be),be.forEach(n),et=s(l),L=i(l,"DIV",{class:!0});var Le=$(L);_(Q.$$.fragment,Le),tt=s(Le),me=i(Le,"P",{"data-svelte-h":!0}),u(me)!=="svelte-1o77hl2"&&(me.textContent=yt),Le.forEach(n),ot=s(l),I=i(l,"DIV",{class:!0});var Ie=$(I);_(W.$$.fragment,Ie),st=s(Ie),_e=i(Ie,"P",{"data-svelte-h":!0}),u(_e)!=="svelte-1lxcwhv"&&(_e.textContent=Pt),Ie.forEach(n),nt=s(l),x=i(l,"DIV",{class:!0});var ve=$(x);_(Y.$$.fragment,ve),rt=s(ve),ge=i(ve,"P",{"data-svelte-h":!0}),u(ge)!=="svelte-1vhtc74"&&(ge.textContent=wt),it=s(ve),_(V.$$.fragment,ve),ve.forEach(n),l.forEach(n),xe=s(e),_(Z.$$.fragment,e),Te=s(e),T=i(e,"DIV",{class:!0});var Ve=$(T);_(ee.$$.fragment,Ve),at=s(Ve),he=i(Ve,"P",{"data-svelte-h":!0}),u(he)!=="svelte-1jk17pf"&&(he.innerHTML=Mt),Ve.forEach(n),ke=s(e),_(te.$$.fragment,e),Ce=s(e),$e=i(e,"P",{}),$($e).forEach(n),this.h()},h(){A(c,"name","hf:doc:metadata"),A(c,"content",Ht),A(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),A(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,w,a),f(e,p,a),f(e,k,a),g(O,e,a),f(e,Ae,a),f(e,S,a),f(e,ye,a),f(e,G,a),f(e,Pe,a),f(e,E,a),f(e,we,a),g(j,e,a),f(e,Me,a),f(e,d,a),g(z,d,null),t(d,He),t(d,ne),t(d,Oe),t(d,re),t(d,Se),t(d,C),g(X,C,null),t(C,Ge),t(C,ie),t(d,Ee),t(d,N),g(q,N,null),t(N,je),t(N,ae),t(d,ze),t(d,y),g(K,y,null),t(y,Xe),t(y,de),t(y,qe),t(y,le),t(y,Ke),t(y,ce),t(d,Be),t(d,U),g(B,U,null),t(U,Re),t(U,fe),t(d,Je),t(d,D),g(R,D,null),t(D,Qe),t(D,ue),t(d,We),t(d,M),g(J,M,null),t(M,Ye),t(M,pe),t(M,Ze),g(F,M,null),t(d,et),t(d,L),g(Q,L,null),t(L,tt),t(L,me),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(V,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,$e,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}),V.$set(oe)},i(e){Ne||(h(O.$$.fragment,e),h(j.$$.fragment,e),h(z.$$.fragment,e),h(X.$$.fragment,e),h(q.$$.fragment,e),h(K.$$.fragment,e),h(B.$$.fragment,e),h(R.$$.fragment,e),h(J.$$.fragment,e),h(F.$$.fragment,e),h(Q.$$.fragment,e),h(W.$$.fragment,e),h(Y.$$.fragment,e),h(V.$$.fragment,e),h(Z.$$.fragment,e),h(ee.$$.fragment,e),h(te.$$.fragment,e),Ne=!0)},o(e){b(O.$$.fragment,e),b(j.$$.fragment,e),b(z.$$.fragment,e),b(X.$$.fragment,e),b(q.$$.fragment,e),b(K.$$.fragment,e),b(B.$$.fragment,e),b(R.$$.fragment,e),b(J.$$.fragment,e),b(F.$$.fragment,e),b(Q.$$.fragment,e),b(W.$$.fragment,e),b(Y.$$.fragment,e),b(V.$$.fragment,e),b(Z.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),Ne=!1},d(e){e&&(n(w),n(p),n(k),n(Ae),n(S),n(ye),n(G),n(Pe),n(E),n(we),n(Me),n(d),n(xe),n(Te),n(T),n(ke),n(Ce),n($e)),n(c),v(O,e),v(j,e),v(z),v(X),v(q),v(K),v(B),v(R),v(J),v(F),v(Q),v(W),v(Y),v(V),v(Z,e),v(ee),v(te,e)}}}const Ht='{"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 Ot(se){return Ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Xt extends Nt{constructor(c){super(),Ut(this,c,Ot,Vt,kt,{})}}export{Xt as component};
