MCPcopy Create free account

hub / github.com/Robbyant/lingbot-world / functions

Functions576 in github.com/Robbyant/lingbot-world

↓ 139 callersMethodto
(self, *args, **kwargs)
wan/modules/animate/animate_utils.py:36
↓ 120 callersMethodsize
(self, dim)
wan/modules/animate/animate_utils.py:39
↓ 29 callersMethodsqueeze
(self, dim)
wan/modules/animate/animate_utils.py:46
↓ 21 callersFunctionget_world_size
()
wan/distributed/util.py:16
↓ 20 callersMethoddevice
(self)
wan/modules/animate/animate_utils.py:67
↓ 17 callersMethodtype_as
(self, other)
wan/modules/animate/animate_utils.py:55
↓ 15 callersFunctionflash_attention
q: [B, Lq, Nq, C1]. k: [B, Lk, Nk, C1]. v: [B, Lk, Nk, C2]. Nq must be divisible by Nk. q_lens
wan/modules/attention.py:23
↓ 13 callersFunctionget_rank
()
wan/distributed/util.py:12
↓ 12 callersMethod_apply
(self, other, op)
wan/modules/animate/animate_utils.py:126
↓ 12 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
wan/modules/s2v/motioner.py:30
↓ 11 callersMethod__init__
( self, in_channels: int, out_channels: int, factor_t, factor_s=1,
wan/modules/vae2_2.py:371
↓ 11 callersMethod__init__
(self, kernel, pad, upsample_factor=1)
wan/modules/animate/motion_encoder.py:64
↓ 11 callersMethodpow
(self, *args, **kwargs)
wan/modules/animate/animate_utils.py:43
↓ 10 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
wan/utils/fm_solvers.py:335
↓ 10 callersMethodresize
(self, width, height)
wan/modules/animate/preprocess/pose2d_utils.py:85
↓ 10 callersFunctionrope_apply
(x, grid_sizes, freqs, start=None)
wan/modules/s2v/motioner.py:41
↓ 8 callersMethod__init__
(self, vocab_size, dim, dim_attn, dim_ffn,
wan/modules/t5.py:372
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
wan/utils/fm_solvers_unipc.py:274
↓ 8 callersFunctionall_to_all
`scatter` along one dimension and `gather` along another.
wan/distributed/util.py:20
↓ 8 callersFunctionqkv_fn
(x)
wan/modules/s2v/model_s2v.py:110
↓ 7 callersMethod__init__
(self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4],
wan/modules/vae2_1.py:484
↓ 6 callersMethod__init__
(self, dim, mid_dim)
wan/modules/animate/clip.py:96
↓ 6 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
wan/modules/s2v/motioner.py:381
↓ 6 callersFunctiondraw_handpose
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
wan/modules/animate/preprocess/human_visualization.py:14
↓ 6 callersMethodencode
(self, x, scale)
wan/modules/vae2_2.py:782
↓ 6 callersFunctiongather_forward
(input, dim)
wan/distributed/util.py:42
↓ 6 callersFunctionget_handpose_meta
(keypoints, delta, src_H, src_W)
wan/modules/animate/preprocess/retarget_pose.py:80
↓ 6 callersFunctionget_length
(skeleton, limb)
wan/modules/animate/preprocess/retarget_pose.py:60
↓ 6 callersFunctionhalf
(x)
wan/modules/attention.py:58
↓ 6 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
wan/modules/model.py:29
↓ 5 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
wan/modules/model.py:280
↓ 5 callersFunction_get_max_preds
Get keypoint predictions from score maps. Note: batch_size: N num_keypoints: K heatmap height: H heatmap width: W
wan/modules/animate/preprocess/pose2d_utils.py:379
↓ 5 callersMethoddecode
(self, z, scale)
wan/modules/vae2_2.py:811
↓ 5 callersFunctionfp16_clamp
(x)
wan/modules/t5.py:18
↓ 5 callersFunctionpadding_resize
(img_ori, height=512, width=512, padding_color=(0, 0, 0), interpolation=cv2.INTER_LINEAR)
wan/modules/animate/preprocess/utils.py:158
↓ 5 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
wan/utils/fm_solvers.py:228
↓ 5 callersMethodtype
(self, *args, **kwargs)
wan/modules/animate/animate_utils.py:52
↓ 5 callersFunctionzero_module
Zero out the parameters of a module and return it.
wan/modules/s2v/model_s2v.py:34
↓ 4 callersMethod__init__
Initialize the RMSNorm normalization layer. Args: dim (int): The dimension of the input tensor. eps (float,
wan/modules/animate/face_blocks.py:181
↓ 4 callersFunctionceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
wan/utils/qwen_vl_utils.py:44
↓ 4 callersMethodclear_cache
(self)
wan/modules/vae2_2.py:852
↓ 4 callersMethodclear_cache
(self)
wan/modules/vae2_1.py:580
↓ 4 callersFunctiondraw_aapose
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
wan/modules/animate/preprocess/human_visualization.py:586
↓ 4 callersFunctionfix_lack_keypoints_use_sym
(skeleton)
wan/modules/animate/preprocess/retarget_pose.py:369
↓ 4 callersFunctionmerge_video_audio
Merge the video and audio into a new video, with the duration set to the shorter of the two, and overwrite the original video file. Para
wan/utils/utils.py:26
↓ 4 callersFunctionrope_precompute
(x, grid_sizes, freqs, start=None)
wan/modules/s2v/s2v_utils.py:5
↓ 4 callersFunctionround_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
wan/utils/qwen_vl_utils.py:39
↓ 4 callersFunctionround_to_64
(value, round_up=False, divisor=64)
wan/modules/animate/preprocess/utils.py:103
↓ 4 callersFunctionsinusoidal_embedding_1d
(dim, position)
wan/modules/model.py:15
↓ 4 callersFunctionsmart_resize
Rescales the image so that the following conditions are met: 1. Both dimensions (height and width) are divisible by 'factor'. 2. The to
wan/utils/qwen_vl_utils.py:54
↓ 3 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
wan/modules/model_fast.py:326
↓ 3 callersMethod__init__
(self, in_dim, out_dim)
wan/modules/animate/model_animate.py:231
↓ 3 callersFunction_calc_distances
Calculate the normalized distances between preds and target. Note: batch_size: N num_keypoints: K dimension of keypoints:
wan/modules/animate/preprocess/pose2d_utils.py:326
↓ 3 callersFunctionbasic_clean
(text)
wan/modules/tokenizers.py:11
↓ 3 callersFunctiondraw_aapose_by_meta_new
(img, meta: AAPoseMeta, threshold=0.5, stickwidth_type='v2', draw_hand=True, draw_head=True)
wan/modules/animate/preprocess/human_visualization.py:218
↓ 3 callersFunctiondraw_rounded_rectangle
Draw a rounded rectangle with transparency.
wan/utils/vis_utils.py:5
↓ 3 callersMethodencode
(self, x, scale)
wan/modules/vae2_1.py:515
↓ 3 callersFunctionfloor_by_factor
Returns the largest integer less than or equal to 'number' that is divisible by 'factor'.
wan/utils/qwen_vl_utils.py:49
↓ 3 callersFunctionhalf
(x)
wan/modules/s2v/model_s2v.py:106
↓ 3 callersFunctionhalf
(x)
wan/distributed/sequence_parallel.py:221
↓ 3 callersFunctioninit_distributed_group
r initialize sequence parallel group.
wan/distributed/util.py:5
↓ 3 callersFunctionload_image
(img, reverse=False)
wan/modules/animate/preprocess/human_visualization.py:1051
↓ 3 callersFunctionrope_apply
(x, grid_sizes, freqs, start=None)
wan/modules/s2v/model_s2v.py:61
↓ 3 callersFunctionsave_video
(tensor, save_file=None, fps=30, suffix='.mp4', nr
wan/utils/utils.py:90
↓ 3 callersMethodset_device
(self, device)
wan/modules/animate/preprocess/pose2d.py:56
↓ 3 callersFunctiontransform_preds
Get final keypoint predictions from heatmaps and apply scaling and translation to map them back to the image. Note: num_keypoints: K
wan/modules/animate/preprocess/pose2d_utils.py:279
↓ 3 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
wan/modules/model.py:549
↓ 2 callersFunctionSE3_inverse
(T: torch.Tensor)
wan/utils/cam_utils.py:43
↓ 2 callersMethod__init__
(self, vocab_size=250002, max_seq_len=514, type_size=1,
wan/modules/animate/xlm_roberta.py:81
↓ 2 callersMethod__init__
(self, all_modules, all_modules_names, dim=2048,
wan/modules/s2v/audio_utils.py:54
↓ 2 callersMethod__len__
(self)
wan/modules/animate/animate_utils.py:77
↓ 2 callersMethod_configure_model
Configures a model object. This includes setting evaluation modes, applying distributed parallel strategy, and handling device placem
wan/image2video.py:144
↓ 2 callersFunction_gaussian_blur
Modulate heatmap distribution with Gaussian. sigma = 0.3*((kernel_size-1)*0.5-1)+0.8 sigma~=3 if k=17 sigma=2 if k=11; sigma~=1.5
wan/modules/animate/preprocess/pose2d_utils.py:715
↓ 2 callersMethod_initialize_crossattn_cache
Initialize a per-GPU cross-attention cache.
wan/image2video_fast.py:702
↓ 2 callersMethod_initialize_self_kv_cache
Initialize a Per-GPU KV cache for the SelfAttn.
wan/image2video_fast.py:686
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
wan/utils/fm_solvers.py:294
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
wan/utils/fm_solvers_unipc.py:232
↓ 2 callersFunctionbbox_from_detector
Get center and scale of bounding box from bounding box. The expected format is [min_x, min_y, max_x, max_y].
wan/modules/animate/preprocess/pose2d_utils.py:1044
↓ 2 callersFunctioncalculate_scale_ratio
(skeleton, skeleton_edit, scale_ratio_flag)
wan/modules/animate/preprocess/retarget_pose.py:551
↓ 2 callersFunctioncausal_rope_apply
(x, grid_sizes, freqs, start_frame=0)
wan/modules/model_fast.py:22
↓ 2 callersFunctioncausal_rope_apply
(x, grid_sizes, freqs, start_frame=0)
wan/distributed/sequence_parallel.py:67
↓ 2 callersFunctioncheck_full_body
(keypoints, threshold = 0.4)
wan/modules/animate/preprocess/retarget_pose.py:481
↓ 2 callersFunctioncompute_relative_poses
( c2ws_mat: torch.Tensor, framewise: bool = False, normalize_trans: bool = True, )
wan/utils/cam_utils.py:54
↓ 2 callersFunctioncount_conv3d
(model)
wan/modules/vae2_2.py:725
↓ 2 callersFunctioncount_conv3d
(model)
wan/modules/vae2_1.py:474
↓ 2 callersFunctioncrop
Crop image according to the supplied bounding box. res: [rows, cols]
wan/modules/animate/preprocess/pose2d_utils.py:1069
↓ 2 callersMethoddecode
(self, z, scale)
wan/modules/vae2_1.py:542
↓ 2 callersFunctiondistributed_attention
Performs distributed attention based on DeepSpeed Ulysses attention mechanism. please refer to https://arxiv.org/pdf/2309.14509 Args:
wan/distributed/ulysses.py:8
↓ 2 callersFunctiondraw_handpose_new
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
wan/modules/animate/preprocess/human_visualization.py:93
↓ 2 callersFunctionextract_rotation_directions
(c2w_poses, threshold=0.005)
wan/utils/vis_utils.py:244
↓ 2 callersFunctionextract_translation_wasd
Extract WASD actions from translation in c2w poses. Args: c2ws: Array of shape (N, 4, 4) threshold: Minimum translation
wan/utils/vis_utils.py:263
↓ 2 callersFunctionfetch_image
(ele: dict[str, str | Image.Image], size_factor: int = IMAGE_FACTOR)
wan/utils/qwen_vl_utils.py:85
↓ 2 callersMethodforward
(self, x: torch.Tensor, first_chunk=False)
wan/modules/vae2_2.py:389
↓ 2 callersMethodforward
(self, x)
wan/modules/vae2_1.py:509
↓ 2 callersMethodforward
(self, x)
wan/modules/animate/clip.py:106
↓ 2 callersMethodforward
(self, x)
wan/modules/s2v/motioner.py:393
↓ 2 callersMethodfrom_humanapi_meta
(meta)
wan/modules/animate/preprocess/pose2d_utils.py:128
↓ 2 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
wan/modules/animate/motion_encoder.py:15
↓ 2 callersMethodgenerate
r""" Generates video frames from input image and text prompt using diffusion process. Args: input_prompt (`str`):
wan/image2video_fast.py:370
↓ 2 callersFunctiongenerate_and_save_trajectory
(arrow_actions)
wan/utils/wasd_ijkl_to_c2ws.py:148
next →1–100 of 576, ranked by callers