MCPcopy Create free account

hub / github.com/magic-research/magic-animate / types & classes

Types & classes57 in github.com/magic-research/magic-animate

↓ 12 callersClassTimestepEmbedding
magicanimate/models/embeddings.py:161
↓ 9 callersClassInflatedConv3d
magicanimate/models/resnet.py:30
↓ 8 callersClassReferenceAttentionControl
magicanimate/models/mutual_self_attention.py:128
↓ 6 callersClassIdentity
r"""A placeholder identity operator that is argument-insensitive. Args: args: any argument (unused) kwargs: any keyword argument
magicanimate/models/appearance_encoder.py:63
↓ 6 callersClassResnetBlock3D
magicanimate/models/resnet.py:113
↓ 6 callersClassTimesteps
magicanimate/models/embeddings.py:221
↓ 5 callersClassAdaLayerNorm
Norm layer modified to incorporate timestep embeddings.
magicanimate/models/orig_attention.py:846
↓ 5 callersClassCrossAttention
r""" A cross attention layer. Parameters: query_dim (`int`): The number of channels in the query. cross_attention_dim (`int`,
magicanimate/models/orig_attention.py:516
↓ 4 callersClassVideoReader
Simple wrapper around PyAV that exposes a few useful functions for dealing with video reading. PyAV is a pythonic binding for the ffmpeg libr
magicanimate/utils/videoreader.py:31
↓ 3 callersClassAnimationPipeline
magicanimate/pipelines/pipeline_animation.py:73
↓ 3 callersClassFeedForward
r""" A feed-forward layer. Parameters: dim (`int`): The number of channels in the input. dim_out (`int`, *optional*): The num
magicanimate/models/orig_attention.py:739
↓ 3 callersClassTransformer3DModel
magicanimate/models/attention.py:48
↓ 3 callersClass_LoRACompatibleLinear
A Linear layer that can be used with LoRA.
magicanimate/models/appearance_encoder.py:91
↓ 2 callersClassDownsample3D
magicanimate/models/resnet.py:87
↓ 2 callersClassMagicAnimate
demo/animate_dist.py:42
↓ 2 callersClassTransformer2DModelOutput
Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent
magicanimate/models/orig_attention.py:36
↓ 2 callersClassUNetMidBlock3DCrossAttn
magicanimate/models/unet_3d_blocks.py:181
↓ 2 callersClassUpsample3D
magicanimate/models/resnet.py:41
↓ 1 callersClassAnimationPipelineOutput
magicanimate/pipelines/pipeline_animation.py:69
↓ 1 callersClassApproximateGELU
The approximate form of Gaussian Error Linear Unit (GELU) For more details, see section 2: https://arxiv.org/abs/1606.08415
magicanimate/models/orig_attention.py:830
↓ 1 callersClassBasicTransformerBlock
r""" A basic Transformer block. Parameters: dim (`int`): The number of channels in the input and output. num_attention_heads
magicanimate/models/orig_attention.py:388
↓ 1 callersClassBasicTransformerBlock
magicanimate/models/attention.py:164
↓ 1 callersClassControlNetConditioningEmbedding
Quoting from https://arxiv.org/abs/2302.05543: "Stable Diffusion uses a pre-processing method similar to VQ-GAN [11] to convert the entire da
magicanimate/models/controlnet.py:49
↓ 1 callersClassControlNetOutput
magicanimate/models/controlnet.py:44
↓ 1 callersClassCrossAttnDownBlock3D
magicanimate/models/unet_3d_blocks.py:286
↓ 1 callersClassCrossAttnUpBlock3D
magicanimate/models/unet_3d_blocks.py:522
↓ 1 callersClassDownBlock3D
magicanimate/models/unet_3d_blocks.py:426
↓ 1 callersClassGEGLU
r""" A variant of the gated linear unit activation function from https://arxiv.org/abs/2002.05202. Parameters: dim_in (`int`): The nu
magicanimate/models/orig_attention.py:806
↓ 1 callersClassGELU
r""" GELU activation function
magicanimate/models/orig_attention.py:784
↓ 1 callersClassGaussianFourierProjection
Gaussian Fourier embeddings for noise levels.
magicanimate/models/embeddings.py:238
↓ 1 callersClassImagePositionalEmbeddings
Converts latent image classes into vector embeddings. Sums the vector embeddings with positional embeddings for the height and width of the l
magicanimate/models/embeddings.py:268
↓ 1 callersClassLabelEmbedding
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance. Args: num_classes (`int`):
magicanimate/models/embeddings.py:333
↓ 1 callersClassMagicAnimate
demo/animate.py:45
↓ 1 callersClassMish
magicanimate/models/resnet.py:210
↓ 1 callersClassPositionalEncoding
magicanimate/models/motion_module.py:230
↓ 1 callersClassTemporalTransformer3DModel
magicanimate/models/motion_module.py:90
↓ 1 callersClassTemporalTransformerBlock
magicanimate/models/motion_module.py:166
↓ 1 callersClassTransformer2DModel
Transformer model for image-like data. Takes either discrete (classes of vector embeddings) or continuous (actual embeddings) inputs. Wh
magicanimate/models/orig_attention.py:54
↓ 1 callersClassTransformer3DModelOutput
magicanimate/models/attention.py:37
↓ 1 callersClassUNet2DConditionOutput
The output of [`UNet2DConditionModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
magicanimate/models/appearance_encoder.py:114
↓ 1 callersClassUNet3DConditionOutput
magicanimate/models/unet.py:53
↓ 1 callersClassUNet3DConditionOutput
magicanimate/models/unet_controlnet.py:50
↓ 1 callersClassUpBlock3D
magicanimate/models/unet_3d_blocks.py:665
↓ 1 callersClassVanillaTemporalModule
magicanimate/models/motion_module.py:53
↓ 1 callersClassVersatileAttention
magicanimate/models/motion_module.py:251
ClassAppearanceEncoderModel
r""" A conditional 2D UNet model that takes a noisy sample, conditional state, and a timestep and returns a sample shaped output. This mo
magicanimate/models/appearance_encoder.py:126
ClassAttentionBase
magicanimate/models/mutual_self_attention.py:24
ClassAttentionBlock
An attention block that allows spatial positions to attend to each other. Originally ported from here, but adapted to the N-d case. https
magicanimate/models/orig_attention.py:253
ClassCombinedTimestepLabelEmbeddings
magicanimate/models/embeddings.py:369
ClassControlNetModel
magicanimate/models/controlnet.py:94
ClassDualTransformer2DModel
Dual transformer wrapper that combines two `Transformer2DModel`s for mixed inference. Parameters: num_attention_heads (`int`, *optio
magicanimate/models/orig_attention.py:865
ClassMutualSelfAttentionControl
magicanimate/models/mutual_self_attention.py:53
ClassPatchEmbed
2D Image to Patch Embedding
magicanimate/models/embeddings.py:121
ClassStableDiffusionControlNetReferencePipeline
magicanimate/models/stable_diffusion_controlnet_reference.py:72
ClassTemporalTransformer3DModelOutput
magicanimate/models/motion_module.py:31
ClassUNet3DConditionModel
magicanimate/models/unet.py:57
ClassUNet3DConditionModel
magicanimate/models/unet_controlnet.py:54