MCPcopy Create free account

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

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

Methodget_queue
(self)
magicanimate/models/mutual_self_attention.py:109
Functionget_total_steps
( scheduler, timesteps: List[int], num_steps: Optional[int] = None, num_frames: int = ...,
magicanimate/pipelines/context.py:52
Methodhack_CrossAttnDownBlock2D_forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor
magicanimate/models/mutual_self_attention.py:343
Methodhack_CrossAttnDownBlock2D_forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor
magicanimate/models/stable_diffusion_controlnet_reference.py:498
Methodhacked_CrossAttnUpBlock2D_forward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[t
magicanimate/models/mutual_self_attention.py:439
Methodhacked_CrossAttnUpBlock2D_forward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[t
magicanimate/models/stable_diffusion_controlnet_reference.py:594
Methodhacked_DownBlock2D_forward
(self, hidden_states, temb=None)
magicanimate/models/mutual_self_attention.py:399
Methodhacked_DownBlock2D_forward
(self, hidden_states, temb=None)
magicanimate/models/stable_diffusion_controlnet_reference.py:554
Methodhacked_UpBlock2D_forward
(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None)
magicanimate/models/mutual_self_attention.py:495
Methodhacked_UpBlock2D_forward
(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None)
magicanimate/models/stable_diffusion_controlnet_reference.py:650
Methodhacked_basic_transformer_inner_forward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.F
magicanimate/models/mutual_self_attention.py:199
Methodhacked_basic_transformer_inner_forward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.F
magicanimate/models/stable_diffusion_controlnet_reference.py:380
Methodhacked_mid_forward
(self, *args, **kwargs)
magicanimate/models/mutual_self_attention.py:319
Methodhacked_mid_forward
(self, *args, **kwargs)
magicanimate/models/stable_diffusion_controlnet_reference.py:474
Functionimages2video
(video, path, fps=8)
magicanimate/utils/util.py:111
Methodinvert
Adapted from: https://github.com/Yujun-Shi/DragDiffusion/blob/main/drag_pipeline.py#L440 invert a real image into noise map with dete
magicanimate/pipelines/pipeline_animation.py:399
Functionlinear
(v1, v2, t)
magicanimate/utils/util.py:125
Methodmutual_self_attn
(self, q, k, v, num_heads, **kwargs)
magicanimate/models/mutual_self_attention.py:88
Methodmutual_self_attn_wq
(self, q, k, v, sim, attn, is_cross, place_in_unet, num_heads, **kwargs)
magicanimate/models/mutual_self_attention.py:100
Methodread_frames
(self, frame_indices)
magicanimate/utils/videoreader.py:141
Functionread_image
(image, size=512)
demo/gradio_animate.py:59
Functionread_image
(image, size=512)
demo/gradio_animate_dist.py:80
Functionread_video
(video)
demo/gradio_animate.py:54
Functionread_video
(video, size=512)
demo/gradio_animate_dist.py:69
Methodreset
(self)
magicanimate/models/mutual_self_attention.py:48
Functionsave_images_grid
(images: torch.Tensor, path: str)
magicanimate/utils/util.py:35
Methodset_attention_slice
(self, slice_size)
magicanimate/models/orig_attention.py:592
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
magicanimate/models/appearance_encoder.py:693
Methodset_lora_layer
(self, lora_layer: Optional[LoRALinearLayer])
magicanimate/models/appearance_encoder.py:100
Methodset_queue
(self, attn_queue)
magicanimate/models/mutual_self_attention.py:112
Functionset_tensor_interpolation_method
(is_slerp)
magicanimate/utils/util.py:121
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, *args, **kwargs)
magicanimate/models/orig_attention.py:296
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, *args, **kwargs)
magicanimate/models/orig_attention.py:458
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, *args, **kwargs)
magicanimate/models/attention.py:248
Functionslerp
( v0: torch.Tensor, v1: torch.Tensor, t: float, DOT_THRESHOLD: float = 0.9995 )
magicanimate/utils/util.py:128
Functionsynchronize
()
magicanimate/utils/dist_tools.py:76
Functionuniform
( step: int = ..., num_steps: Optional[int] = None, num_frames: int = ..., context_size: Optio
magicanimate/pipelines/context.py:20
Functionvideo2images
(path, step=4, length=16, start=0)
magicanimate/utils/util.py:102
Functionwarn
(*args, **kwargs)
magicanimate/utils/dist_tools.py:98
← previous201–239 of 239, ranked by callers