MCPcopy Create free account

hub / github.com/MotrixLab/ViMoGen / functions

Functions457 in github.com/MotrixLab/ViMoGen

↓ 9 callersFunctionload_dimension_info
Load video list and prompt information based on a specified dimension from a JSON file. Parameters: - json_dir (str): The directory
mbench/utils.py:142
↓ 8 callersMethod__init__
(self, )
datasets/bucket_config.py:223
↓ 8 callersMethod__init__
(self, vocab_size, dim, dim_attn, dim_ffn,
models/transformer/wan/modules/t5.py:374
↓ 8 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
models/transformer/wan/modules/tm2m_model.py:498
↓ 8 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
models/transformer/wan/modules/t2m_model.py:456
↓ 8 callersFunctionget_logger
Returns a `logging.Logger` for `name` that can handle multiprocessing.
parallel/logging.py:68
↓ 6 callersFunctionhalf
(x)
models/transformer/wan/modules/tm2m_model.py:65
↓ 6 callersFunctionhalf
(x)
models/transformer/wan/modules/attention.py:59
↓ 6 callersFunctionhalf
(x)
models/transformer/wan/modules/t2m_model.py:64
↓ 6 callersFunctionhash_state_dict_keys
(state_dict, with_shape=True)
models/transformer/wan/modules/utils.py:205
↓ 6 callersMethodload_state_dict
(self, state_dict)
trainer/base_trainer.py:341
↓ 6 callersFunctionsample_from_range
Sample a float from a provided range description.
utils.py:22
↓ 5 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
models/transformer/wan/modules/t2m_model.py:29
↓ 5 callersFunctionfp16_clamp
(x)
models/transformer/wan/modules/t5.py:20
↓ 5 callersFunctionload_joints
Load joints from either .npy or .pt file format. Args: evaluation_file: Path to the evaluation file (.npy or .pt) device
mbench/motion_quality.py:11
↓ 5 callersFunctionmotion_rep_to_SMPL
Convert 276-dim global (aligned) motion representation back to SMPL params + joints. The representation layout follows collect_motion_rep_DAR
motion_rep/retarget_motion.py:39
↓ 5 callersFunctionsummarize_scores
Return mean/std/count summary for a list of scalar values.
mbench/motion_quality.py:115
↓ 4 callersFunctioncollate_tensors
(batch: list)
datasets/dataloader.py:170
↓ 4 callersFunctionestimate_focal_length
Compute focal length based on FOV.
motion_rep/motion_checker.py:101
↓ 4 callersMethodget_batch_size
(self, bucket_id)
datasets/bucket.py:139
↓ 4 callersMethodlog
Delegates logger call after checking if we should log. Accepts a new kwarg of `main_process_only`, which will dictate whether it will be logg
parallel/logging.py:21
↓ 4 callersMethodstep
( xt, v_pred, sigma, sigma_next, cache_dtype=torch.float32, re
trainer/sd3_scheduler.py:87
↓ 3 callersFunction_get_value
(key: str, default: float)
utils.py:174
↓ 3 callersFunctionbasic_clean
(text)
models/transformer/wan/modules/tokenizers.py:12
↓ 3 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
models/transformer/wan/modules/tm2m_model.py:30
↓ 3 callersMethodget_category
Get mapping of dimensions to their categories Returns: mapping category name
mbench/__init__.py:60
↓ 3 callersFunctionget_device_mesh
(use_hybrid: bool = False, tp_size: int = None)
parallel/utils.py:60
↓ 3 callersMethodget_snr
(self, timesteps)
trainer/scheduler.py:12
↓ 3 callersFunctionlengths_to_mask
(lengths: list[int], device: torch.device, max_len: int = None)
datasets/dataloader.py:183
↓ 3 callersFunctionload_json
Load data from JSON file Args: filepath: Path to the JSON file Returns: Loaded data
mbench/utils.py:46
↓ 3 callersFunctionmat3x3_to_rot6d
(R)
motion_rep/rotation_transform.py:5
↓ 3 callersMethodpreprocess
process original height width, sample a (height, width) in bucket_config with the closed aspect ratio.
datasets/bucket_config.py:244
↓ 3 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
models/transformer/wan/modules/tm2m_model.py:225
↓ 3 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
models/transformer/wan/modules/t2m_model.py:224
↓ 3 callersFunctionrot6d_to_axis_angle
Convert 6d rotation representation to 3d vector of axis-angle rotation. Shape: - Input: :Torch:`(N, 6)` - Output: :Torch:`(N, 3)`
motion_rep/rotation_transform.py:37
↓ 3 callersFunctionrot6d_to_mat3x3
Convert 6d rotation representation to 3x3 rotation matrix. Shape: - Input: :Torch:`(N, 6)` - Output: :Torch:`(N, 3, 3)`
motion_rep/rotation_transform.py:9
↓ 3 callersFunctionsave_json
Save data to JSON file Args: data: Data to save filepath: Path to save the JSON file
mbench/utils.py:33
↓ 3 callersMethodset_timesteps
(self, num_inference_steps=100, denoising_strength=1.0, training=False)
trainer/scheduler.py:166
↓ 3 callersMethodsigma_shift_given_shift_scale
(t, shift_scale)
trainer/sd3_scheduler.py:82
↓ 2 callersMethod__init__
(self, dataset: Dataset, **kwargs)
datasets/sampler.py:335
↓ 2 callersMethod_find_source_video_path
Locate an already rendered video for a given category/id.
mbench/__init__.py:120
↓ 2 callersMethod_get_mbench_dir
Return the directory that stores converted assets (same as evaluation path).
mbench/__init__.py:85
↓ 2 callersMethod_print_bucket_info
(self, bucket_sample_dict: dict)
datasets/sampler.py:250
↓ 2 callersMethodadd_scalar
(self, tag, scalar_value, **kwargs)
parallel/logging.py:95
↓ 2 callersFunctionapply_rotation
Update SMPL parameters based on the rotation matrix R. Args: smpl_params (dict): Dictionary containing SMPL parameters ('global_orie
motion_rep/retarget_motion.py:138
↓ 2 callersFunctionaxis_angle_to_mat3x3
Convert 3d vector of axis-angle rotation to 3x3 rotation matrix. Shape: - Input: :Torch:`(N, 3)` - Output: :Torch:`(N, 3, 3)`
motion_rep/rotation_transform.py:59
↓ 2 callersFunctionaxis_angle_to_quaternion
Convert 3d vector of axis-angle rotation to 4d quaternion. Shape: - Input: :Torch:`(..., 3)` - Output: :Torch:`(..., 4)`
motion_rep/rotation_transform.py:92
↓ 2 callersFunctionaxis_angle_to_rot6d
Convert 3d vector of axis-angle rotation to 6d rotation representation. Shape: - Input: :Torch:`(N, 3)` - Output: :Torch:`(N, 6)`
motion_rep/rotation_transform.py:25
↓ 2 callersFunctioncall_gemini_api
Call Gemini API with video and text prompt. Args: video_bytes: Video file content as bytes prompt: Text prompt for the m
mbench/vlm_utils.py:21
↓ 2 callersFunctioncollect_motion_rep_DART
(smpl_params, joints)
motion_rep/retarget_motion.py:13
↓ 2 callersFunctioncount_model_parameters
(model: nn.Module)
train_eval_vimogen.py:36
↓ 2 callersMethodevaluate
Run evaluation on motion data by first rendering to videos and then evaluating Args: evaluation_path: Path conta
mbench/__init__.py:321
↓ 2 callersFunctionfind_nearest_equal_or_smaller_value
(value, sorted_arr: np.ndarray,
datasets/bucket_config.py:14
↓ 2 callersFunctionfind_nearest_value
(value, arr: np.ndarray, return_idx: bool = True)
datasets/bucket_config.py:7
↓ 2 callersFunctionfind_repo_root
(meta_path: Path)
motion_gating/render_mbench_videos.py:77
↓ 2 callersFunctionformat_numel_str
(numel: int)
utils.py:9
↓ 2 callersFunctionget_contact
Detect contact from foot velocities and height.
mbench/motion_quality.py:56
↓ 2 callersFunctionget_dataloader
( local_batch, dp_mesh, seed, dataset_args, num_workers, bucket_config_type: str = Non
datasets/dataloader.py:27
↓ 2 callersFunctionget_default_side_list
()
datasets/bucket_config.py:80
↓ 2 callersMethodget_shift_scale
( self, frames: int, height: int, width: int, )
trainer/sd3_scheduler.py:130
↓ 2 callersMethodgroup_by_bucket
(self)
datasets/sampler.py:213
↓ 2 callersMethodload_ckpt
(self, rank, load_save_dict: dict = None, model_for_opt:
trainer/base_trainer.py:238
↓ 2 callersFunctionload_pose_data
Load pose data from evaluation file. Args: evaluation_file: Path to the evaluation file (.npy or .pt) device: Target dev
mbench/pose_quality.py:54
↓ 2 callersFunctionload_safetensors
(in_path: str)
models/transformer/utils.py:102
↓ 2 callersFunctionload_safetensors_from_path
(in_path: str)
models/transformer/utils.py:111
↓ 2 callersFunctionload_safetensors_from_path
(in_path: str)
models/transformer/wan/modules/utils.py:111
↓ 2 callersFunctionmat3x3_to_axis_angle
Convert 3x3 rotation matrix to 3d vector of axis-angle rotation. Shape: - Input: :Torch:`(N, 3, 3)` - Output: :Torch:`(N, 3)`
motion_rep/rotation_transform.py:70
↓ 2 callersFunctionmotion_vis
Visualize motion by rendering a depth video. This mirrors depth_render.motion_checker.motion_vis with a narrowed dependency surface.
motion_rep/motion_checker.py:403
↓ 2 callersMethodnet_size
(self, t, h, w)
datasets/bucket_config.py:141
↓ 2 callersFunctionremove_global_translation
Remove global translation by subtracting the root joint's position.
mbench/motion_quality.py:108
↓ 2 callersFunctionrendering_batches
Render depth maps for all frames in batches.
motion_rep/motion_checker.py:185
↓ 2 callersFunctionresolve_repo_path
(meta_path: Path, raw_path: str)
motion_gating/apply_quality_gate.py:103
↓ 2 callersFunctionsample_data
(loader, sampler, start_epoch, start_iter)
train_eval_vimogen.py:41
↓ 2 callersMethodset_epoch
different from DistributedSampler, you don't need to call this function at the start of each epoch, because the return Iterator of __i
datasets/multi_resolution_sampler.py:140
↓ 2 callersFunctionsummarize_scores
Return mean/std/count summary for scalar values.
mbench/pose_quality.py:11
↓ 2 callersFunctionto_train_mode
()
train_eval_vimogen.py:230
↓ 2 callersFunctionvisualize_depth_map
Normalize depth map to uint8 images (white is closer).
motion_rep/motion_checker.py:109
↓ 2 callersFunctionwhitespace_clean
(text)
models/transformer/wan/modules/tokenizers.py:18
↓ 1 callersMethod__init__
(self, test_json_file_list, motion_mean_path, motion_std_path, null_context_path, use_global_orient=True, text
datasets/video_datasets.py:222
↓ 1 callersMethod__iter__
(self)
datasets/sampler.py:339
↓ 1 callersMethod_clean
(self, text)
models/transformer/wan/modules/tokenizers.py:75
↓ 1 callersFunction_default_smpl_model_path
Resolve SMPL/SMPLX family model path with sensible defaults. Env overrides: - SMPLX_MODEL_PATH for smplx - SMPLH_MODEL_PATH for smplh
motion_rep/motion_checker.py:31
↓ 1 callersMethod_fetch_motion_sample
(self, index)
datasets/video_datasets.py:98
↓ 1 callersMethod_find_source_motion_path
Locate the raw motion file for a given category/id.
mbench/__init__.py:104
↓ 1 callersMethod_load_data_list
(self, train_json_file_list, test_json_file_list, duplicate_meta, is_test)
datasets/video_datasets.py:84
↓ 1 callersMethod_load_motion_array
Load motion data from a supported file into a numpy array.
mbench/__init__.py:134
↓ 1 callersMethod_load_motion_tensor
(self, motion_path)
datasets/video_datasets.py:117
↓ 1 callersMethod_maybe_disable_ref_motion
(self, ref_motion_local, motion_path)
datasets/video_datasets.py:166
↓ 1 callersMethod_maybe_mask_motion_dim
(self, motion_dim_mask, motion_path, joint_num, attend_to_text_mask)
datasets/video_datasets.py:176
↓ 1 callersMethod_motion_candidates
Return ordered candidate motion file paths to probe.
mbench/__init__.py:91
↓ 1 callersMethod_norm
(self, x)
models/transformer/wan/modules/tm2m_model.py:246
↓ 1 callersMethod_norm
(self, x)
models/transformer/wan/modules/t2m_model.py:245
↓ 1 callersMethod_normalize_motion_tensor
(self, motion)
datasets/video_datasets.py:128
↓ 1 callersMethod_pad_prompt_embedding
(self, prompt_emb)
datasets/video_datasets.py:193
↓ 1 callersMethod_prepare_ref_motion
(self, data, motion, motion_dim_mask, motion_path)
datasets/video_datasets.py:132
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
models/transformer/wan/modules/t5.py:245
↓ 1 callersMethod_resolve_prompt_embedding
(self, data)
datasets/video_datasets.py:181
↓ 1 callersMethod_resolve_sample_id
(self, data, index)
datasets/video_datasets.py:199
↓ 1 callersMethod_select_motion_path
(self, data)
datasets/video_datasets.py:109
↓ 1 callersMethod_should_log
Check if log should be performed.
parallel/logging.py:13
next →1–100 of 457, ranked by callers