Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/animate-anything
/ functions
Functions
387 in github.com/alibaba/animate-anything
⨍
Functions
387
◇
Types & classes
40
↓ 1 callers
Function
set_mode_group
(models, train)
stable_lora/lora.py:384
↓ 1 callers
Function
set_processors
(attentions)
train_lora.py:127
↓ 1 callers
Function
set_processors
(attentions)
train.py:124
↓ 1 callers
Function
set_processors
(attentions)
train_transparent_i2v_stage2.py:150
↓ 1 callers
Function
set_processors
(attentions)
train_svd.py:122
↓ 1 callers
Method
set_selector_from_diag
(self, diag: torch.Tensor)
utils/lora.py:67
↓ 1 callers
Function
set_torch_2_attn
(unet)
train_lora.py:130
↓ 1 callers
Function
set_torch_2_attn
(unet)
train.py:127
↓ 1 callers
Function
set_torch_2_attn
(unet)
train_transparent_i2v_stage2.py:153
↓ 1 callers
Function
set_torch_2_attn
(unet)
train_svd.py:125
↓ 1 callers
Function
should_sample
(global_step, validation_steps, validation_data)
train_lora.py:288
↓ 1 callers
Function
should_sample
(global_step, validation_steps, validation_data)
train.py:265
↓ 1 callers
Function
should_sample
(global_step, validation_steps, validation_data)
train_svd.py:294
↓ 1 callers
Method
single_video_batch
(self, index)
utils/dataset.py:324
↓ 1 callers
Function
tensor_to_vae_latent
(t, vae)
train_transparent_i2v_stage2.py:304
↓ 1 callers
Method
train_data_batch
(self, index)
utils/dataset.py:204
↓ 1 callers
Function
train_patch_pipe
(pipe, patch_unet, patch_text)
utils/lora.py:1222
↓ 1 callers
Function
transformer_g_c
(transformer, sample, num_frames)
models/unet_3d_blocks.py:65
↓ 1 callers
Function
ui
(controller)
app_svd.py:170
↓ 1 callers
Function
ui
(controller)
app.py:120
↓ 1 callers
Function
unet_and_text_g_c
(unet, text_encoder, unet_enable, text_enable)
train_lora.py:109
↓ 1 callers
Function
unet_and_text_g_c
(unet, text_encoder, unet_enable, text_enable)
train.py:106
↓ 1 callers
Function
unet_and_text_g_c
(unet, text_encoder, unet_enable, text_enable)
train_svd.py:105
↓ 1 callers
Function
up_down_bucket
(m_size, in_size, direction)
utils/bucketing.py:5
↓ 1 callers
Function
use_temporal
(module, num_frames, x)
models/unet_3d_blocks.py:25
Function
DDPM_forward_mask
larger step -> smaller t -> smaller alphas[t:] -> smaller xt -> smaller x0
utils/common.py:50
Method
__call__
(self, attn, is_cross: bool, place_in_unet: str)
utils/ptp_utils.py:192
Method
__call__
(self, attn: CrossAttention, hidden_states, encoder_hidden_states=None, attention_mask=None)
utils/ptp_utils.py:280
Method
__call__
( self, clean_latents=None, # [b, c, f, h, w] vae_alpha_decoder=None, prompt
models/pipeline_stage2.py:173
Method
__call__
( self, prompt = None, height= None, width= None, num_frames: int = 16
models/pipeline_stage2.py:341
Method
__call__
(self, x)
models/layerdiffuse_VAE.py:40
Method
__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/pipeline.py:14
Method
__call__
r""" The call function to the pipeline for generation. Args: image (`PIL.Image.Image` or `List[PIL.Image.Image]` or `torc
models/pipeline.py:225
Method
__call__
r""" The call function to the pipeline for generation. Args: image (`PIL.Image.Image` or `List[PIL.Image.Image]` or `torc
models/pipeline.py:470
Method
__getitem__
(self, index)
utils/dataset.py:241
Method
__getitem__
(self, index)
utils/dataset.py:345
Method
__getitem__
(self, index)
utils/dataset.py:431
Method
__getitem__
(self, index)
utils/dataset.py:514
Method
__getitem__
(self, index)
utils/dataset.py:582
Method
__getitem__
(self, index)
utils/dataset.py:622
Method
__init__
(self, pretrained_model_path: str, validation_data, output_dir, motion_mask = False, motion_strength =
app_svd.py:30
Method
__init__
(self, pretrained_model_path: str, validation_data, output_dir, motion_mask = False, motion_strength =
app.py:34
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size: int, r: in
stable_lora/lora.py:130
Method
__init__
(self, in_channels, out_channels, groups=1)
utils/lama.py:55
Method
__init__
(self, in_channels, out_channels, stride=1, groups=1)
utils/lama.py:94
Method
__init__
( self, in_channels, out_channels, kernel_size, ratio_gin=0, r
utils/lama.py:191
Method
__init__
(self, dim, ratio_gin, ratio_gout)
utils/lama.py:229
Method
__init__
(self, input_nc=4, output_nc=3, ngf=64, n_downsampling=3, n_blocks=18, max_features=1024)
utils/lama.py:259
Method
__init__
(self)
utils/ptp_utils.py:208
Method
__init__
(self, controller, place_in_unet)
utils/ptp_utils.py:275
Method
__init__
(self, gap, match, mismatch)
utils/seq_aligner.py:20
Method
__init__
( self, tokenizer = None, width: int = 256, height: int = 256,
utils/dataset.py:122
Method
__init__
( self, tokenizer = None, width: int = 256, height: int = 256,
utils/dataset.py:249
Method
__init__
( self, tokenizer = None, width: int = 256, height: int = 256, base_wi
utils/dataset.py:360
Method
__init__
( self, tokenizer=None, width: int = 256, height: int = 256, n_sample_
utils/dataset.py:444
Method
__init__
( self, tokenizer=None, width: int = 256, height: int = 256, n_sample_
utils/dataset.py:534
Method
__init__
(self,cache_dir: str = '')
utils/dataset.py:611
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size, stride=1,
utils/lora.py:78
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size: (3, 1, 1), p
utils/lora.py:163
Method
__init__
( self, version: LORA_VERSIONS = LoraVersions.cloneofsimo, use_unet_lora: bool = Fal
utils/lora_handler.py:70
Method
__init__
(self, *args, **kwargs)
models/layerdiffuse_VAE.py:18
Method
__init__
( self, sample_size: Optional[int] = None, in_channels: int = 4, out_channels:
models/unet_3d_condition_mask.py:87
Method
__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0, nu
models/unet_3d_blocks.py:235
Method
__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
models/unet_3d_blocks.py:390
Method
__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
models/unet_3d_blocks.py:540
Method
__init__
( self, in_channels: int, out_channels: int, prev_output_channel: int,
models/unet_3d_blocks.py:623
Method
__len__
(self)
utils/dataset.py:235
Method
__len__
(self)
utils/dataset.py:341
Method
__len__
(self)
utils/dataset.py:511
Method
__len__
(self)
utils/dataset.py:579
Method
__len__
(self)
utils/dataset.py:619
Function
_find_children
Find all modules of a certain class (or union of classes). Returns all matching modules, along with the parent of those moduless and the
utils/lora.py:252
Function
_find_modules_old
( model, ancestor_class: Set[str] = DEFAULT_TARGET_REPLACE, search_class: List[Type[nn.Module]] =
utils/lora.py:316
Function
_find_modules_v2
Find all modules of a certain class (or union of classes) that are direct or indirect descendants of other modules of a certain class (or uni
utils/lora.py:269
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
models/unet_3d_condition_mask.py:333
Function
accelerate_set_verbose
(accelerator)
train_transparent_i2v_stage2.py:82
Function
add_lora_to
( model, target_module=UNET_REPLACE, search_class=[torch.nn.Linear], r=32, dropout=0,
stable_lora/lora.py:257
Method
animate
( self, init_img, input_video, sample_step_slider, seed_textbox,
app_svd.py:41
Method
animate
( self, init_img, motion_scale, prompt_textbox, negative_prompt_textbo
app.py:45
Method
between_steps
(self)
utils/ptp_utils.py:227
Function
check_overlap
(rect1, rect2)
utils/common.py:143
Function
compress
(paras)
compress_video.py:20
Function
convert_loras_to_safeloras
( modelmap: Dict[str, Tuple[str, Set[str], int]] = {}, outpath="./lora.safetensors", )
utils/lora.py:676
Function
convert_svd
(pretrained_model_path, out_path)
train_svd.py:93
Function
create_logging
(logging, logger, accelerator)
train_transparent_i2v_stage2.py:74
Function
create_optimizer_params
(model_list, lr)
train_transparent_i2v_stage2.py:217
Function
create_output_folders
(output_dir, config)
train_transparent_i2v_stage2.py:98
Function
custom_forward
(hidden_states, temb)
models/unet_3d_blocks.py:37
Function
diffusion_step
(model,latents, context, t, guidance_scale, control_img,low_resource=False, control=False)
utils/ptp_utils.py:110
Function
enforce_zero_terminal_snr
Corrects noise in diffusion schedulers. From: Common Diffusion Noise Schedules and Sample Steps are Flawed https://arxiv.org/pdf/2305.088
train_svd.py:263
Method
fn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
models/unet_3d_condition_mask.py:284
Method
fn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
models/unet_3d_condition_mask.py:322
Method
forward
(self, x: torch.Tensor)
stable_lora/lora.py:190
Method
forward
(self, x)
utils/lama.py:70
Method
forward
(self, x)
utils/lama.py:110
Method
forward
(self, x)
utils/lama.py:221
Method
forward
(self, x)
utils/lama.py:238
Method
forward
(self, x)
utils/lama.py:249
Method
forward
(self, img, mask)
utils/lama.py:304
Method
forward
(self, attn, is_cross: bool, place_in_unet: str)
utils/ptp_utils.py:221
← previous
next →
201–300 of 387, ranked by callers