MCPcopy Create free account

hub / github.com/arielshaulov/FlowMo / functions

Functions271 in github.com/arielshaulov/FlowMo

↓ 1 callersMethodgenerate
Generates video frames from text prompt using diffusion process. Modified to use memory-efficient motion optimization with manual gra
wan/text2video.py:122
↓ 1 callersFunctionget_video_reader_backend
()
wan/utils/qwen_vl_utils.py:261
↓ 1 callersMethodinit_weights
Initialize model parameters
wan/modules/model.py:939
↓ 1 callersFunctionis_decord_available
()
wan/utils/qwen_vl_utils.py:215
↓ 1 callersMethodload_state
Restore saved state to model. Args: model: Model to restore state to key: Identifier for the saved s
motion_optimizer.py:328
↓ 1 callersMethodload_video
(self, data_key, crop_box=None, seed=2024, **kwargs)
wan/utils/vace_processor.py:220
↓ 1 callersMethodload_video_pair
(self, data_key, data_key2, crop_box=None, seed=2024, **kwargs)
wan/utils/vace_processor.py:223
↓ 1 callersMethodmultistep_dpm_solver_second_order_update
One step for the second-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The di
wan/utils/fm_solvers.py:486
↓ 1 callersMethodmultistep_dpm_solver_third_order_update
One step for the third-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The dir
wan/utils/fm_solvers.py:596
↓ 1 callersMethodmultistep_uni_c_bh_update
One step for the UniC (B(h) version). Args: this_model_output (`torch.Tensor`): The model outputs at `x_
wan/utils/fm_solvers_unipc.py:488
↓ 1 callersMethodmultistep_uni_p_bh_update
One step for the UniP (B(h) version). Alternatively, `self.solver_p` is used if is specified. Args: model_output (`torch
wan/utils/fm_solvers_unipc.py:352
↓ 1 callersMethodoptimize_noise_prediction
Memory-efficient sample optimization to minimize motion variance. Args: model: The transformer-based diffusion m
motion_optimizer.py:177
↓ 1 callersFunctionpad_freqs
(original_tensor, target_len)
wan/distributed/xdit_context_parallel.py:12
↓ 1 callersFunctionplot_variances
(file_path, output_image_path, seed)
generate.py:663
↓ 1 callersFunctionpos_interpolate
(pos, seq_len)
wan/modules/clip.py:22
↓ 1 callersMethodprepare_source
(self, src_video, src_mask, src_ref_images, num_frames, image_size, device)
wan/vace.py:193
↓ 1 callersFunctionrand_name
(length=8, suffix='')
wan/utils/utils.py:14
↓ 1 callersMethodreparameterize
(self, mu, log_var)
wan/modules/vae.py:570
↓ 1 callersMethodresize_crop
Resize, center crop and normalize for decord loaded video (torch.Tensor type) Parameters: video - video to process (torch.
wan/utils/vace_processor.py:107
↓ 1 callersMethodsave_state
Save the current state of model parameters without keeping computation graph. Args: model: Model to save state f
motion_optimizer.py:307
↓ 1 callersMethodset_area
(self, area)
wan/utils/vace_processor.py:99
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
wan/utils/fm_solvers_unipc.py:657
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
wan/utils/fm_solvers.py:337
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
wan/utils/fm_solvers_unipc.py:276
↓ 1 callersFunctionumt5_xxl
(**kwargs)
wan/modules/t5.py:456
Method__call__
(self, sequence, **kwargs)
wan/modules/tokenizers.py:49
Method__call__
(self, texts, device)
wan/modules/t5.py:506
Method__call__
(self, prompt, system_prompt=None, tar_lang="zh",
wan/utils/prompt_extend.py:190
Method__init__
(self, model)
motion_optimizer.py:15
Method__init__
Args: iterations: Number of optimization iterations per step lr: Learning rate for optimization start_aft
motion_optimizer.py:72
Method__init__
(self, device="cuda:0")
motion_optimizer.py:303
Method__init__
r""" Initializes the image-to-video generation model components. Args: config (EasyDict): Object containi
wan/first_last_frame2video.py:31
Method__init__
r""" Initializes the image-to-video generation model components. Args: config (EasyDict): Object containi
wan/image2video.py:31
Method__init__
r""" Initializes the Wan text-to-video generation model components. Args: config (EasyDict): Object conta
wan/text2video.py:29
Method__init__
r""" Initializes the Wan text-to-video generation model components. Args: config (EasyDict): Object conta
wan/vace.py:30
Method__init__
( self, config, checkpoint_dir, use_usp=False, uly
wan/vace.py:436
Method__init__
(self, name, seq_len=None, clean=None, **kwargs)
wan/modules/tokenizers.py:39
Method__init__
(self, dim, num_heads, causal=False, attn_
wan/modules/clip.py:55
Method__init__
(self, dim, mlp_ratio, num_heads, post_nor
wan/modules/clip.py:114
Method__init__
(self, dim, mlp_ratio, num_heads, activati
wan/modules/clip.py:158
Method__init__
(self, image_size=224, patch_size=16, dim=768,
wan/modules/clip.py:211
Method__init__
(self, **kwargs)
wan/modules/clip.py:305
Method__init__
(self, embed_dim=1024, image_size=224, patch_size=14,
wan/modules/clip.py:330
Method__init__
(self, dtype, device, checkpoint_path, tokenizer_path)
wan/modules/clip.py:503
Method__init__
(self, dim, eps=1e-6)
wan/modules/t5.py:55
Method__init__
(self, dim, dim_attn, num_heads, dropout=0.1)
wan/modules/t5.py:71
Method__init__
(self, dim, dim_ffn, dropout=0.1)
wan/modules/t5.py:125
Method__init__
(self, dim, dim_attn, dim_ffn, num_heads,
wan/modules/t5.py:146
Method__init__
(self, dim, dim_attn, dim_ffn, num_heads,
wan/modules/t5.py:180
Method__init__
(self, num_buckets, num_heads, bidirectional, max_dist=128)
wan/modules/t5.py:223
Method__init__
(self, vocab, dim, dim_attn, dim_ffn,
wan/modules/t5.py:269
Method__init__
(self, vocab, dim, dim_attn, dim_ffn,
wan/modules/t5.py:317
Method__init__
( self, text_len, dtype=torch.bfloat16, device=torch.cuda.current_device(),
wan/modules/t5.py:474
Method__init__
(self, *args, **kwargs)
wan/modules/vae.py:22
Method__init__
(self, dim, channel_first=True, images=True, bias=False)
wan/modules/vae.py:41
Method__init__
(self, dim, mode)
wan/modules/vae.py:68
Method__init__
(self, in_dim, out_dim, dropout=0.0)
wan/modules/vae.py:188
Method__init__
(self, dim)
wan/modules/vae.py:228
Method__init__
(self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4],
wan/modules/vae.py:267
Method__init__
(self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4],
wan/modules/vae.py:371
Method__init__
(self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4],
wan/modules/vae.py:485
Method__init__
( self, cross_attn_type, dim, ffn_dim, num_heads,
wan/modules/vace_model.py:10
Method__init__
( self, cross_attn_type, dim, ffn_dim, num_heads, window_size=
wan/modules/vace_model.py:42
Method__init__
(self, dim, num_heads, dropout=0.1, eps=1e-5)
wan/modules/xlm_roberta.py:12
Method__init__
(self, dim, num_heads, post_norm, dropout=0.1, eps=1e-5)
wan/modules/xlm_roberta.py:51
Method__init__
(self, dim, eps=1e-5)
wan/modules/model.py:136
Method__init__
(self, dim, eps=1e-6, elementwise_affine=False)
wan/modules/model.py:157
Method__init__
(self, dim, num_heads, window_size=(-1, -1),
wan/modules/model.py:190
Method__init__
(self, dim, num_heads, window_size=(-1, -1),
wan/modules/model.py:304
Method__init__
(self, cross_attn_type, dim, ffn_dim, num_
wan/modules/model.py:370
Method__init__
(self, in_dim, out_dim)
wan/modules/model.py:533
Method__init__
(self, model_type='t2v', patch_size=(1, 2, 2), text_len=512
wan/modules/model.py:586
Method__init__
Args: api_key: The API key for Dash Scope authentication and access to related services. model_name: Model name, 'qwe
wan/utils/prompt_extend.py:216
Method__init__
Args: model_name: Use predefined model names such as 'QwenVL2.5_7B' and 'Qwen2.5_14B', which are specific version
wan/utils/prompt_extend.py:371
Method__init__
(self, downsample=None, seq_len=None)
wan/utils/vace_processor.py:10
Method__init__
(self, downsample, min_area, max_area, min_fps, max_fps, zero_start, seq_len, keep_last, **kwargs)
wan/utils/vace_processor.py:88
Method__init__
( self, num_train_timesteps: int = 1000, solver_order: int = 2, prediction_typ
wan/utils/fm_solvers.py:129
Method__init__
( self, num_train_timesteps: int = 1000, solver_order: int = 2,
wan/utils/fm_solvers_unipc.py:77
Method__len__
(self)
wan/utils/fm_solvers.py:856
Method__len__
(self)
wan/utils/fm_solvers_unipc.py:951
Method_print_gpu_info
Print information about available GPUs
wan/modules/model.py:674
Method_print_memory_status
Print current GPU memory status
wan/modules/model.py:907
Function_read_video_decord
read video using decord.VideoReader Args: ele (dict): a dict contains the configuration of video. support keys: - vid
wan/utils/qwen_vl_utils.py:221
Function_read_video_torchvision
read video using torchvision.io.read_video Args: ele (dict): a dict contains the configuration of video. support keys:
wan/utils/qwen_vl_utils.py:177
Method_sigma_to_t
(self, sigma)
wan/utils/fm_solvers.py:330
Method_sigma_to_t
(self, sigma)
wan/utils/fm_solvers_unipc.py:269
Methodadd_custom_field
(self, key: str, value)
wan/utils/prompt_extend.py:161
Methodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
wan/utils/fm_solvers.py:815
Methodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
wan/utils/fm_solvers_unipc.py:910
Functionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0., softmax_scale=None, q_scale
wan/modules/attention.py:133
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
wan/utils/fm_solvers.py:209
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
wan/utils/fm_solvers_unipc.py:142
Methodcheckpointed_forward
Wrapped forward function with gradient checkpointing
motion_optimizer.py:25
Methodcustom_forward
(x, timestep)
motion_optimizer.py:30
Functiondevice_safe_linear
(input, weight, bias=None)
generate.py:35
Methodensure_image
(_image)
wan/utils/prompt_extend.py:297
Methodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
wan/utils/prompt_extend.py:253
Methodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
wan/utils/prompt_extend.py:428
Methodextend_with_img
(self, prompt, system_prompt, image: U
wan/utils/prompt_extend.py:289
Methodextend_with_img
(self, prompt, system_prompt, image: U
wan/utils/prompt_extend.py:459
← previousnext →101–200 of 271, ranked by callers