MCPcopy Create free account

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

Functions576 in github.com/Robbyant/lingbot-world

↓ 2 callersFunctionget_Ks_transformed
( Ks: torch.Tensor, height_org: int, width_org: int, height_resize: int, width_resize: int
wan/utils/cam_utils.py:120
↓ 2 callersFunctionget_face_bboxes
(kp2ds, scale, image_shape, ratio_aug)
wan/modules/animate/preprocess/utils.py:52
↓ 2 callersFunctionget_frame_indices
(frame_num, video_fps, clip_length, train_fps)
wan/modules/animate/preprocess/utils.py:191
↓ 2 callersFunctionget_plucker_embeddings
( c2ws_mat: torch.Tensor, Ks: torch.Tensor, height: int, width: int, only_rays_d: bool = F
wan/utils/cam_utils.py:86
↓ 2 callersFunctionget_retarget_pose
(tpl_pose_meta0, refer_pose_meta, tpl_pose_metas, tql_edit_pose_meta0, refer_edit_pose_meta)
wan/modules/animate/preprocess/retarget_pose.py:760
↓ 2 callersFunctionget_rotation_matrix
(axis, angle_rad)
wan/utils/wasd_ijkl_to_c2ws.py:138
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
wan/utils/fm_solvers.py:681
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
wan/utils/fm_solvers_unipc.py:630
↓ 2 callersFunctioninterpolate_camera_poses
( src_indices: np.ndarray, src_rot_mat: np.ndarray, src_trans_vec: np.ndarray, tgt_indices:
wan/utils/cam_utils.py:7
↓ 2 callersFunctionkeypoint_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints for coordinates. Note:
wan/modules/animate/preprocess/pose2d_utils.py:495
↓ 2 callersFunctionparse_action_string_segments
Parse a compact DSL like ``w-3,iw-1,none-5,ijd-5``. Each segment is ``<keys>-<duration>`` where the last ``-`` separates keys from the i
wan/utils/wasd_ijkl_to_c2ws.py:15
↓ 2 callersMethodpreprocess
Preprocesses the input image before performing inference. Returns: image_data: Preprocessed image data ready for inferen
wan/modules/animate/preprocess/pose2d.py:89
↓ 2 callersFunctionqkv_fn
(x)
wan/distributed/sequence_parallel.py:225
↓ 2 callersFunctionresize_by_area
(image, target_area, keep_aspect_ratio=True, divisor=64, padding_color=(0, 0, 0))
wan/modules/animate/preprocess/utils.py:136
↓ 2 callersFunctionrope_apply
(x, grid_sizes, freqs)
wan/modules/model.py:40
↓ 2 callersFunctionrope_apply
x: [B, L, N, C]. grid_sizes: [B, 3]. freqs: [M, C // 2].
wan/distributed/sequence_parallel.py:26
↓ 2 callersFunctionrope_apply_usp
(x, grid_sizes, freqs)
wan/modules/s2v/model_s2v.py:79
↓ 2 callersMethodsample
(self, imgs, deterministic=False)
wan/modules/vae2_2.py:845
↓ 2 callersFunctionsinusoidal_embedding_1d
(dim, position)
wan/modules/s2v/motioner.py:16
↓ 2 callersFunctionsmart_nframes
calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the configuration of video.
wan/utils/qwen_vl_utils.py:133
↓ 2 callersFunctionsplit_kp2ds_for_aa
(kp2ds, ret_face=False)
wan/modules/animate/preprocess/pose2d_utils.py:1102
↓ 2 callersFunctiontransform
Transform pixel location to different reference.
wan/modules/animate/preprocess/pose2d_utils.py:1034
↓ 2 callersMethodtranslate
(self, x0, y0)
wan/modules/animate/preprocess/pose2d_utils.py:227
↓ 2 callersFunctionwasd_array_to_frame_keys
Convert numpy arrays (representing WASD and IJKL key states, ranged 0-1) into a list of lists of pressed keys for each frame. Args:
wan/utils/wasd_ijkl_to_c2ws.py:113
↓ 2 callersFunctionwhitespace_clean
(text)
wan/modules/tokenizers.py:17
↓ 1 callersMethod__init__
(self, checkpoint, device='cuda', threshold_conf=0.05, threshold_multi_persons=0.1, input_resolution=(640, 640
wan/modules/animate/preprocess/pose2d.py:69
↓ 1 callersMethod__init__
( self, cond_dim=0, audio_dim=5120, num_audio_token=4,
wan/modules/s2v/model_s2v.py:254
↓ 1 callersMethod__init__
(self, chan_in, chan_out, kernel_size=3, s
wan/modules/s2v/auxi_blocks.py:122
↓ 1 callersMethod_clean
(self, text)
wan/modules/tokenizers.py:74
↓ 1 callersFunction_clip
(pretrained=False, pretrained_name=None, model_cls=XLMRobertaCLIP, return_transf
wan/modules/animate/clip.py:434
↓ 1 callersMethod_configure_model
Configures a model object. This includes setting evaluation modes, applying distributed parallel strategy, and handling device placem
wan/image2video_fast.py:303
↓ 1 callersMethod_convert_flow_pred_to_x0
Convert flow matching's prediction to x0 prediction. flow_pred: the prediction with shape [B, C, F, H, W] xt: the input noisy
wan/image2video_fast.py:347
↓ 1 callersFunction_distance_acc
Return the percentage below the distance threshold, while ignoring distances values with -1. Note: batch_size: N Args: di
wan/modules/animate/preprocess/pose2d_utils.py:358
↓ 1 callersFunction_get_max_preds_3d
Get keypoint predictions from 3D score maps. Note: batch size: N num keypoints: K heatmap depth size: D heatmap h
wan/modules/animate/preprocess/pose2d_utils.py:414
↓ 1 callersFunction_init_distributed
()
examples/persistent_inference.py:76
↓ 1 callersFunction_init_logging
(rank)
generate_fast.py:184
↓ 1 callersFunction_init_logging
(rank)
generate.py:249
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
wan/utils/fm_solvers.py:695
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
wan/utils/fm_solvers_unipc.py:645
↓ 1 callersFunction_load_img_v2_as_tensor
(img, image_size)
wan/modules/animate/preprocess/sam_utils.py:23
↓ 1 callersMethod_norm
(self, x)
wan/modules/model.py:85
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
wan/modules/animate/face_blocks.py:207
↓ 1 callersMethod_norm
(self, x)
wan/modules/s2v/motioner.py:124
↓ 1 callersFunction_parse_args
()
generate_fast.py:63
↓ 1 callersFunction_parse_args
()
generate.py:101
↓ 1 callersFunction_parse_args
()
wan/modules/animate/preprocess/preprocess_data.py:7
↓ 1 callersFunction_parse_args
()
examples/persistent_inference.py:60
↓ 1 callersMethod_prepare_model_for_timestep
r""" Prepares and returns the required model for the current timestep. Args: t (torch.Tensor): current ti
wan/image2video.py:188
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
wan/modules/t5.py:243
↓ 1 callersFunction_t5
(name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokeniz
wan/modules/t5.py:413
↓ 1 callersFunction_taylor
Distribution aware coordinate decoding method. Note: - heatmap height: H - heatmap width: W Args: heatmap (np.ndarra
wan/modules/animate/preprocess/pose2d_utils.py:614
↓ 1 callersFunction_validate_args
(args)
generate_fast.py:32
↓ 1 callersFunction_validate_args
(args)
generate.py:32
↓ 1 callersFunction_video_vae
(pretrained_path=None, z_dim=16, dim=160, device="cpu", **kwargs)
wan/modules/vae2_2.py:862
↓ 1 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
wan/modules/vae2_1.py:590
↓ 1 callersFunctionaction_string_to_wasd_ijkl
Convert ``action_string`` to the same layout as ``wasd_action.npy`` / ``ijkl_action.npy``. Returns: tuple: (wasd_action, ijkl_action
wan/utils/wasd_ijkl_to_c2ws.py:84
↓ 1 callersMethodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
wan/utils/fm_solvers.py:817
↓ 1 callersMethodafter_patch_embedding
(self, x: List[torch.Tensor], pose_latents, face_pixel_values)
wan/modules/animate/model_animate.py:340
↓ 1 callersMethodafter_patch_embedding
(self, x)
wan/modules/s2v/motioner.py:491
↓ 1 callersMethodafter_transformer_block
(self, block_idx, x, motion_vec, motion_masks=None)
wan/modules/animate/model_animate.py:364
↓ 1 callersMethodafter_transformer_block
(self, block_idx, hidden_states)
wan/modules/s2v/model_s2v.py:600
↓ 1 callersFunctionall_gather
(tensor)
wan/distributed/util.py:33
↓ 1 callersFunctionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0., softmax_scale=None, q_scale
wan/modules/attention.py:132
↓ 1 callersFunctionattention
Perform QKV self attention. Args: q (torch.Tensor): Query tensor with shape [b, s, a, d], where a is the number of heads. k
wan/modules/animate/face_blocks.py:32
↓ 1 callersFunctionbox_convert_simple
(box, convert_type='xyxy2xywh')
wan/modules/animate/preprocess/pose2d_utils.py:9
↓ 1 callersFunctionbuild_sam2_video_predictor
( config_file, ckpt_path=None, device="cuda", mode="eval", hydra_overrides_extra=[], a
wan/modules/animate/preprocess/sam_utils.py:122
↓ 1 callersFunctioncalculate_new_size
(orig_w, orig_h, target_area, divisor=64)
wan/modules/animate/preprocess/utils.py:87
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
wan/modules/tokenizers.py:23
↓ 1 callersFunctioncheck_full_body_both
(flag1, flag2)
wan/modules/animate/preprocess/retarget_pose.py:501
↓ 1 callersFunctioncheck_valid
(w, h)
wan/modules/animate/preprocess/utils.py:91
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
( pretrained=False, pretrained_name='open-clip-xlm-roberta-large-vit-huge-14', **kwarg
wan/modules/animate/clip.py:471
↓ 1 callersFunctioncompute_rotation_angles_batch_opencv
(c2w_a_batch, c2w_b_batch)
wan/utils/vis_utils.py:234
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
wan/utils/fm_solvers.py:343
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
wan/utils/fm_solvers_unipc.py:281
↓ 1 callersFunctioncreate_meshgrid
(n_frames: int, height: int, width: int, bias: float = 0.5, device='cuda', dtype=torch.float32)
wan/utils/cam_utils.py:77
↓ 1 callersFunctioncustom_qr
(input_tensor)
wan/modules/animate/motion_encoder.py:8
↓ 1 callersFunctiondeal_hand_keypoints
(hand_res, r_ratio, l_ratio, hand_score_th = 0.5)
wan/modules/animate/preprocess/retarget_pose.py:106
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.Tensor`): The dir
wan/utils/fm_solvers.py:417
↓ 1 callersFunctiondraw_M
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:255
↓ 1 callersFunctiondraw_aapose_by_meta
(img, meta: AAPoseMeta, threshold=0.5, stick_width_norm=200, draw_hand=True, draw_head=True)
wan/modules/animate/preprocess/human_visualization.py:211
↓ 1 callersFunctiondraw_aapose_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:750
↓ 1 callersFunctiondraw_chevron
Draw a chevron (V-shape) arrow.
wan/utils/vis_utils.py:35
↓ 1 callersFunctiondraw_ellipse_by_2kp
(img, keypoint1, keypoint2, color, threshold=0.6)
wan/modules/animate/preprocess/human_visualization.py:175
↓ 1 callersFunctiondraw_ijkl_ui
Draw IJKL rotation control UI (similar to WASD layout). Layout: I J K L I - Up, J - Left, K - Down, L - Right
wan/utils/vis_utils.py:112
↓ 1 callersFunctiondraw_nose
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:422
↓ 1 callersFunctiondraw_rotation_ui
Draw the rotation UI with two modes: - 'arrow': Chevron arrows on screen edges (only when rotating) - 'keys': IJKL keys layout in bottom-
wan/utils/vis_utils.py:170
↓ 1 callersFunctiondraw_traj
(metas: List[AAPoseMeta], threshold=0.6)
wan/modules/animate/preprocess/human_visualization.py:1168
↓ 1 callersFunctiondraw_wasd_ui
Draw the WASD UI on the frame with active keys highlighted.
wan/utils/vis_utils.py:78
↓ 1 callersFunctionextract_vision_info
( conversations: list[dict] | list[list[dict]])
wan/utils/qwen_vl_utils.py:328
↓ 1 callersFunctionfetch_video
( ele: dict, image_factor: int = IMAGE_FACTOR)
wan/utils/qwen_vl_utils.py:274
↓ 1 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, L1, C]
wan/modules/model.py:295
↓ 1 callersMethodforward
Performs inference using an ONNX model and returns the output image with drawn detections. Returns: output_img: The outp
wan/modules/animate/preprocess/pose2d.py:290
↓ 1 callersFunctiongenerate
(args)
generate_fast.py:196
↓ 1 callersFunctiongenerate
(args)
generate.py:261
↓ 1 callersMethodgenerate
r""" Generates video frames from input image and text prompt using diffusion process. Args: input_prompt (`str`):
wan/image2video.py:222
↓ 1 callersFunctionget_aug_mask
(body_mask, w_len=10, h_len=20)
wan/modules/animate/preprocess/utils.py:25
↓ 1 callersMethodget_editing_prompts
(self, tpl_pose_metas, refer_pose_meta)
wan/modules/animate/preprocess/process_pipepline.py:237
↓ 1 callersMethodget_mask
(self, frames, th_step, kp2ds_all)
wan/modules/animate/preprocess/process_pipepline.py:280
↓ 1 callersFunctionget_mask_body_img
(img_copy, hand_mask, k=7, iterations=1)
wan/modules/animate/preprocess/utils.py:44
↓ 1 callersFunctionget_mask_boxes
Args: mask: [h, w] Returns:
wan/modules/animate/preprocess/utils.py:8
← previousnext →101–200 of 576, ranked by callers