Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/magic-research/magic-animate
/ functions
Functions
239 in github.com/magic-research/magic-animate
⨍
Functions
239
◇
Types & classes
57
Method
get_queue
(self)
magicanimate/models/mutual_self_attention.py:109
Function
get_total_steps
( scheduler, timesteps: List[int], num_steps: Optional[int] = None, num_frames: int = ...,
magicanimate/pipelines/context.py:52
Method
hack_CrossAttnDownBlock2D_forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor
magicanimate/models/mutual_self_attention.py:343
Method
hack_CrossAttnDownBlock2D_forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor
magicanimate/models/stable_diffusion_controlnet_reference.py:498
Method
hacked_CrossAttnUpBlock2D_forward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[t
magicanimate/models/mutual_self_attention.py:439
Method
hacked_CrossAttnUpBlock2D_forward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[t
magicanimate/models/stable_diffusion_controlnet_reference.py:594
Method
hacked_DownBlock2D_forward
(self, hidden_states, temb=None)
magicanimate/models/mutual_self_attention.py:399
Method
hacked_DownBlock2D_forward
(self, hidden_states, temb=None)
magicanimate/models/stable_diffusion_controlnet_reference.py:554
Method
hacked_UpBlock2D_forward
(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None)
magicanimate/models/mutual_self_attention.py:495
Method
hacked_UpBlock2D_forward
(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None)
magicanimate/models/stable_diffusion_controlnet_reference.py:650
Method
hacked_basic_transformer_inner_forward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.F
magicanimate/models/mutual_self_attention.py:199
Method
hacked_basic_transformer_inner_forward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.F
magicanimate/models/stable_diffusion_controlnet_reference.py:380
Method
hacked_mid_forward
(self, *args, **kwargs)
magicanimate/models/mutual_self_attention.py:319
Method
hacked_mid_forward
(self, *args, **kwargs)
magicanimate/models/stable_diffusion_controlnet_reference.py:474
Function
images2video
(video, path, fps=8)
magicanimate/utils/util.py:111
Method
invert
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
Function
linear
(v1, v2, t)
magicanimate/utils/util.py:125
Method
mutual_self_attn
(self, q, k, v, num_heads, **kwargs)
magicanimate/models/mutual_self_attention.py:88
Method
mutual_self_attn_wq
(self, q, k, v, sim, attn, is_cross, place_in_unet, num_heads, **kwargs)
magicanimate/models/mutual_self_attention.py:100
Method
read_frames
(self, frame_indices)
magicanimate/utils/videoreader.py:141
Function
read_image
(image, size=512)
demo/gradio_animate.py:59
Function
read_image
(image, size=512)
demo/gradio_animate_dist.py:80
Function
read_video
(video)
demo/gradio_animate.py:54
Function
read_video
(video, size=512)
demo/gradio_animate_dist.py:69
Method
reset
(self)
magicanimate/models/mutual_self_attention.py:48
Function
save_images_grid
(images: torch.Tensor, path: str)
magicanimate/utils/util.py:35
Method
set_attention_slice
(self, slice_size)
magicanimate/models/orig_attention.py:592
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
magicanimate/models/appearance_encoder.py:693
Method
set_lora_layer
(self, lora_layer: Optional[LoRALinearLayer])
magicanimate/models/appearance_encoder.py:100
Method
set_queue
(self, attn_queue)
magicanimate/models/mutual_self_attention.py:112
Function
set_tensor_interpolation_method
(is_slerp)
magicanimate/utils/util.py:121
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, *args, **kwargs)
magicanimate/models/orig_attention.py:296
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, *args, **kwargs)
magicanimate/models/orig_attention.py:458
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, *args, **kwargs)
magicanimate/models/attention.py:248
Function
slerp
( v0: torch.Tensor, v1: torch.Tensor, t: float, DOT_THRESHOLD: float = 0.9995 )
magicanimate/utils/util.py:128
Function
synchronize
()
magicanimate/utils/dist_tools.py:76
Function
uniform
( step: int = ..., num_steps: Optional[int] = None, num_frames: int = ..., context_size: Optio
magicanimate/pipelines/context.py:20
Function
video2images
(path, step=4, length=16, start=0)
magicanimate/utils/util.py:102
Function
warn
(*args, **kwargs)
magicanimate/utils/dist_tools.py:98
← previous
201–239 of 239, ranked by callers