MCPcopy Create free account

hub / github.com/magic-research/magic-animate / functions

Functions239 in github.com/magic-research/magic-animate

Method__init__
( self, num_attention_heads: int = 16, attention_head_dim: int = 88, in_channe
magicanimate/models/orig_attention.py:892
Method__init__
( self, dim: int, num_attention_heads: int, attention_head_dim: int, d
magicanimate/models/attention.py:165
Method__init__
( self, sample_size: Optional[int] = None, in_channels: int = 4, out_channels:
magicanimate/models/unet_controlnet.py:58
Method__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0, nu
magicanimate/models/unet_3d_blocks.py:182
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
magicanimate/models/unet_3d_blocks.py:287
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
magicanimate/models/unet_3d_blocks.py:427
Method__init__
( self, in_channels: int, out_channels: int, prev_output_channel: int,
magicanimate/models/unet_3d_blocks.py:523
Method__init__
( self, height=224, width=224, patch_size=16, in_channels=3, e
magicanimate/models/embeddings.py:124
Method__init__
( self, in_channels: int, time_embed_dim: int, act_fn: str = "silu", o
magicanimate/models/embeddings.py:162
Method__init__
( self, embedding_size: int = 256, scale: float = 1.0, set_W_to_weight=True, log=True, flip_sin_to_cos
magicanimate/models/embeddings.py:241
Method__init__
( self, num_embed: int, height: int, width: int, embed_dim: int, )
magicanimate/models/embeddings.py:292
Method__init__
(self, num_classes, hidden_size, dropout_prob)
magicanimate/models/embeddings.py:343
Method__init__
(self, num_classes, embedding_dim, class_dropout_prob=0.1)
magicanimate/models/embeddings.py:370
Method__init__
(self, channels, use_conv=False, out_channels=None, padding=1, name="conv")
magicanimate/models/resnet.py:88
Method__init__
( self, *, in_channels, out_channels=None, conv_shortcut=False,
magicanimate/models/resnet.py:114
Method__init__
( self, in_channels, num_attention_heads = 8, num_transformer_b
magicanimate/models/motion_module.py:54
Method__init__
( self, in_channels, num_attention_heads, attention_head_dim, num_lay
magicanimate/models/motion_module.py:91
Method__init__
( self, dim, num_attention_heads, attention_head_dim, attention_block_
magicanimate/models/motion_module.py:167
Method__init__
( self, attention_mode = None, cross_frame_attention_m
magicanimate/models/motion_module.py:252
Method__init__
(self, config="configs/prompts/animation.yaml")
demo/animate.py:46
Method__init__
(self, args)
demo/animate_dist.py:43
Method_execution_device
(self)
magicanimate/pipelines/pipeline_animation.py:172
Method_fuse_lora
(self)
magicanimate/models/appearance_encoder.py:103
Method_set_gradient_checkpointing
(self, module, value=False)
magicanimate/models/unet.py:327
Method_set_gradient_checkpointing
(self, module, value=False)
magicanimate/models/appearance_encoder.py:773
Method_set_gradient_checkpointing
(self, module, value=False)
magicanimate/models/controlnet.py:449
Method_set_gradient_checkpointing
(self, module, value=False)
magicanimate/models/unet_controlnet.py:324
Method_unfuse_lora
(self)
magicanimate/models/appearance_encoder.py:106
Functionanimate
(reference_image, motion_sequence_state, seed, steps, guidance_scale)
demo/gradio_animate.py:21
Functionanimate
(reference_image, motion_sequence, seed, steps, guidance_scale)
demo/gradio_animate_dist.py:23
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
magicanimate/models/appearance_encoder.py:636
Methodclear_queue
(self)
magicanimate/models/mutual_self_attention.py:115
Methodcreate_custom_forward
(module, return_dict=None)
magicanimate/models/unet_3d_blocks.py:390
Methodcreate_custom_forward
(module)
magicanimate/models/unet_3d_blocks.py:496
Methodcreate_custom_forward
(module, return_dict=None)
magicanimate/models/unet_3d_blocks.py:633
Methodcreate_custom_forward
(module)
magicanimate/models/unet_3d_blocks.py:734
Methodcustom_forward
(*inputs)
magicanimate/models/unet_3d_blocks.py:391
Methodcustom_forward
(*inputs)
magicanimate/models/unet_3d_blocks.py:497
Methodcustom_forward
(*inputs)
magicanimate/models/unet_3d_blocks.py:634
Methodcustom_forward
(*inputs)
magicanimate/models/unet_3d_blocks.py:735
Functionddim_inversion
(pipeline, ddim_scheduler, video_latent, num_inv_steps, prompt="")
magicanimate/utils/util.py:97
Methoddisable_vae_slicing
(self)
magicanimate/pipelines/pipeline_animation.py:155
Functiondistributed_main
(device_id, args)
magicanimate/pipelines/animation.py:246
Functiondistributed_main
(device_id, args)
demo/animate_dist.py:190
Methodenable_sequential_cpu_offload
(self, gpu_id=0)
magicanimate/pipelines/pipeline_animation.py:158
Methodenable_vae_slicing
(self)
magicanimate/pipelines/pipeline_animation.py:152
Methodextra_repr
(self)
magicanimate/models/motion_module.py:272
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
magicanimate/models/appearance_encoder.py:645
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
magicanimate/models/appearance_encoder.py:680
Methodfn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
magicanimate/models/unet.py:278
Methodfn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
magicanimate/models/unet_controlnet.py:275
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
magicanimate/models/appearance_encoder.py:724
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
magicanimate/models/controlnet.py:400
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
magicanimate/models/unet.py:316
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
magicanimate/models/appearance_encoder.py:762
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
magicanimate/models/controlnet.py:438
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
magicanimate/models/unet_controlnet.py:313
Methodforward
r""" Args: sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor timestep (`torch.FloatTen
magicanimate/models/unet.py:331
Methodforward
Attention forward function
magicanimate/models/mutual_self_attention.py:121
Methodforward
(self, input, *args, **kwargs)
magicanimate/models/appearance_encoder.py:86
Methodforward
(self, hidden_states, scale=None, lora_scale: int = 1)
magicanimate/models/appearance_encoder.py:109
Methodforward
r""" The [`UNet2DConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input ten
magicanimate/models/appearance_encoder.py:777
Methodforward
(self, conditioning)
magicanimate/models/controlnet.py:81
Methodforward
( self, sample: torch.FloatTensor, timestep: Union[torch.Tensor, float, int],
magicanimate/models/controlnet.py:453
Methodforward
Args: hidden_states ( When discrete, `torch.LongTensor` of shape `(batch size, num latent pixels)`. When continou
magicanimate/models/orig_attention.py:184
Methodforward
(self, hidden_states)
magicanimate/models/orig_attention.py:334
Methodforward
(self, hidden_states, encoder_hidden_states=None, timestep=None, attention_mask=None)
magicanimate/models/orig_attention.py:485
Methodforward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None)
magicanimate/models/orig_attention.py:598
Methodforward
(self, hidden_states)
magicanimate/models/orig_attention.py:778
Methodforward
(self, hidden_states)
magicanimate/models/orig_attention.py:799
Methodforward
(self, hidden_states)
magicanimate/models/orig_attention.py:825
Methodforward
(self, x)
magicanimate/models/orig_attention.py:841
Methodforward
(self, x, timestep)
magicanimate/models/orig_attention.py:858
Methodforward
Args: hidden_states ( When discrete, `torch.LongTensor` of shape `(batch size, num latent pixels)`. When continuo
magicanimate/models/orig_attention.py:941
Methodforward
(self, hidden_states, encoder_hidden_states=None, timestep=None, return_dict: bool = True)
magicanimate/models/attention.py:112
Methodforward
(self, hidden_states, encoder_hidden_states=None, timestep=None, attention_mask=None, video_length=None)
magicanimate/models/attention.py:276
Methodforward
r""" Args: sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor timestep (`torch.FloatTen
magicanimate/models/unet_controlnet.py:328
Methodforward
(self, hidden_states, temb=None, encoder_hidden_states=None, attention_mask=None)
magicanimate/models/unet_3d_blocks.py:276
Methodforward
(self, hidden_states, temb=None, encoder_hidden_states=None, attention_mask=None)
magicanimate/models/unet_3d_blocks.py:384
Methodforward
(self, hidden_states, temb=None, encoder_hidden_states=None)
magicanimate/models/unet_3d_blocks.py:491
Methodforward
( self, hidden_states, res_hidden_states_tuple, temb=None, encoder_hid
magicanimate/models/unet_3d_blocks.py:616
Methodforward
(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None, encoder_hidden_states=None,)
magicanimate/models/unet_3d_blocks.py:726
Methodforward
(self, latent)
magicanimate/models/embeddings.py:152
Methodforward
(self, sample, condition=None)
magicanimate/models/embeddings.py:206
Methodforward
(self, timesteps)
magicanimate/models/embeddings.py:228
Methodforward
(self, x)
magicanimate/models/embeddings.py:255
Methodforward
(self, index)
magicanimate/models/embeddings.py:310
Methodforward
(self, labels, force_drop_ids=None)
magicanimate/models/embeddings.py:361
Methodforward
(self, timestep, class_labels, hidden_dtype=None)
magicanimate/models/embeddings.py:377
Methodforward
(self, x)
magicanimate/models/resnet.py:31
Methodforward
(self, hidden_states, output_size=None)
magicanimate/models/resnet.py:56
Methodforward
(self, hidden_states)
magicanimate/models/resnet.py:102
Methodforward
(self, input_tensor, temb)
magicanimate/models/resnet.py:177
Methodforward
(self, input_tensor, temb, encoder_hidden_states, attention_mask=None, anchor_frame_idx=None)
magicanimate/models/motion_module.py:82
Methodforward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None)
magicanimate/models/motion_module.py:139
Methodforward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None, video_length=None)
magicanimate/models/motion_module.py:215
Methodforward
(self, x)
magicanimate/models/motion_module.py:246
Methodforward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None, video_length=None)
magicanimate/models/motion_module.py:275
Methodfrom_pretrained_2d
(cls, pretrained_model_path, subfolder=None, unet_additional_kwargs=None)
magicanimate/models/unet_controlnet.py:486
Methodfrom_unet
r""" Instantiate Controlnet class from UNet2DConditionModel. Parameters: unet (`UNet2DConditionModel`): U
magicanimate/models/controlnet.py:267
← previousnext →101–200 of 239, ranked by callers