MCPcopy Create free account

hub / github.com/OpenMOSS/FRoM-W1 / functions

Functions453 in github.com/OpenMOSS/FRoM-W1

↓ 1 callersMethodcompute_perplexity
(self, code_idx)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:241
↓ 1 callersMethodcompute_perplexity
(self, code_idx)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:359
↓ 1 callersFunctionconfig_logger
(final_output_dir, time_str, phase, head)
H-GPT/hGPT/logger.py:58
↓ 1 callersMethodconfigure_metrics
(self)
H-GPT/hGPT/models/base.py:157
↓ 1 callersFunctioncreate_logger
(cfg, phase)
H-GPT/hGPT/logger.py:10
↓ 1 callersMethoddecode
(self, z)
H-GPT/hGPT/models/archs/hgpt_vq.py:108
↓ 1 callersMethoddenormalize
(self, features)
H-GPT/hGPT/data/MotionX.py:171
↓ 1 callersMethoddequantize
(self, code_idx)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:105
↓ 1 callersMethoddequantize
(self, indices)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:197
↓ 1 callersMethoddequantize
(self, code_idx)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:292
↓ 1 callersMethoddequantize
(self, code_idx)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:417
↓ 1 callersFunctiondraw_to_batch_smplh
( smpl_joints_batch, kinematic_chain, title_batch=None, outname=None )
H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:241
↓ 1 callersFunctiondraw_to_batch_smplh
( smpl_joints_batch, kinematic_chain, title_batch=None, outname=None )
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:242
↓ 1 callersMethodencode
( self, features, )
H-GPT/hGPT/models/archs/hgpt_vq.py:92
↓ 1 callersFunctionestimate_translation_np
This function is borrowed from https://github.com/nkolot/SPIN/utils/geometry.py Find camera translation that brings 3D joints S closest to 2
H-GPT/hGPT/utils/geometry_conver.py:421
↓ 1 callersFunctionfindAllFile
Recursively find all files in the specified directory. Args: base (str): The base directory to start the search. Returns:
H-GPT/hGPT/data/motionx/dataset.py:45
↓ 1 callersFunctionfindAllFile
Recursively find all files in the specified directory. Args: base (str): The base directory to start the search. Returns:
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:263
↓ 1 callersFunctionfindAllFile
Recursively find all files in the specified directory. Args: base (str): The base directory to start the search. Returns:
H-GPT/hGPT/data/motionx/scripts/cal_mean_variance.py:8
↓ 1 callersFunctionfindAllFile
Recursively find all files in the specified directory. Args: base (str): The base directory to start the search. Returns:
H-GPT/hGPT/data/motionx/scripts/motion_process.py:59
↓ 1 callersFunctionfindAllFile
(base)
H-GPT/hGPT/data/motionx/smplx2smpl/transfer_to_body_only_joints.py:35
↓ 1 callersFunctionfindAllFile
(base)
H-GPT/hGPT/data/motionx/smplx2smpl/add_face_vectors.py:41
↓ 1 callersFunctionfindAllFile
(base)
H-GPT/hGPT/data/motionx/smplx2smpl/transfer_to_body_only_vectors.py:35
↓ 1 callersFunctionfixseed
(seed)
H-GPT/hGPT/utils/fixseed.py:6
↓ 1 callersFunctionfoot_detect
(positions, thres)
H-GPT/hGPT/data/motionx/scripts/motion_process.py:179
↓ 1 callersMethodforward_dec
( self, texts: List[str], motion_tokens: Tensor, motion_tokens_len: List[int],
H-GPT/hGPT/models/archs/hgpt_lm.py:180
↓ 1 callersMethodforward_encdec
( self, texts: List[str], motion_tokens: Tensor, lengths: List[int], t
H-GPT/hGPT/models/archs/hgpt_lm.py:170
↓ 1 callersMethodforward_kinematics_cont6d
( self, cont6d_params, root_pos, skel_joints=None, do_root_R=True )
H-GPT/hGPT/data/motionx/common/skeleton.py:252
↓ 1 callersMethodforward_kinematics_np
Input: quat_params:(seq, j, 4) local quternion rotation of each joint root_pos: (seq, 3), root global postion after r
H-GPT/hGPT/data/motionx/common/skeleton.py:192
↓ 1 callersMethodgenerate_conditional
( self, texts: Optional[List[str]] = None, motion_tokens: Optional[Tensor] = None,
H-GPT/hGPT/models/archs/hgpt_lm.py:311
↓ 1 callersMethodgenerate_direct
( self, texts: List[str], max_length: int, num_beams: int = 1, do_samp
H-GPT/hGPT/models/archs/hgpt_lm.py:355
↓ 1 callersFunctiongetCheckpointCallback
(cfg, logger=None, **kwargs)
H-GPT/hGPT/callback.py:87
↓ 1 callersFunctionget_cont6d_params
Computes continuous 6D parameters, root linear velocity, and root angular velocity based on the input motion capture data. A
H-GPT/hGPT/data/motionx/scripts/motion_process.py:259
↓ 1 callersMethodget_middle_str
(self, content, startStr, endStr)
H-GPT/hGPT/models/archs/hgpt_lm.py:479
↓ 1 callersFunctionget_module_config
Load yaml config files from subfolders
H-GPT/hGPT/config.py:29
↓ 1 callersMethodget_motion_embeddings
(self, feats: Tensor, lengths: List[int])
H-GPT/hGPT/metrics/mm.py:132
↓ 1 callersFunctionget_rifke
Adjusts the motion capture data to a local pose representation and ensures that all poses face in the Z+ direction. Args:
H-GPT/hGPT/data/motionx/scripts/motion_process.py:203
↓ 1 callersFunctioninit
()
H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:146
↓ 1 callersFunctioninit
()
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:147
↓ 1 callersMethodinit_codebook
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:35
↓ 1 callersMethodinit_codebook
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:234
↓ 1 callersMethodinit_codebook
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:351
↓ 1 callersFunctionlengths_to_mask
(lengths)
H-GPT/hGPT/utils/tensors.py:4
↓ 1 callersMethodload_cache
(self, cache_path)
H-GPT/hGPT/data/motionx/dataset.py:147
↓ 1 callersFunctionload_example_input
(txt_path, task, model)
H-GPT/scripts/demo.py:41
↓ 1 callersMethodloss2logname
Convert the loss name to a log name.
H-GPT/hGPT/losses/base.py:58
↓ 1 callersFunctionmain
()
H-GPT/scripts/demo.py:137
↓ 1 callersMethodmake_hand_regressor
(self)
H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:504
↓ 1 callersFunctionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
H-GPT/hGPT/utils/geometry_tools.py:447
↓ 1 callersFunctionmatrix_to_quat
https://github.com/duolu/pyrotation/blob/master/pyrotation/pyrotation.py Convert a rotation matrix to a unit quaternion. This uses the Sh
H-GPT/hGPT/data/motionx/common/quaternion.py:456
↓ 1 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
H-GPT/hGPT/utils/rotation_conversions.py:96
↓ 1 callersFunctionmatrix_to_rotation_6d
Converts rotation matrices to 6D rotation representation by Zhou et al. [1] by dropping the last row. Note that 6D representation is not uniq
H-GPT/hGPT/utils/geometry_tools.py:550
↓ 1 callersFunctionmean_variance
(data_dir, save_dir, joints_num, add_face=False)
H-GPT/hGPT/data/motionx/scripts/cal_mean_variance.py:35
↓ 1 callersMethodmotion_string_to_token
(self, motion_string: List[str])
H-GPT/hGPT/models/archs/hgpt_lm.py:448
↓ 1 callersFunctionmotion_token_to_string
(motion_token, lengths, codebook_size=2048)
H-GPT/scripts/demo.py:22
↓ 1 callersMethodmotion_token_to_string
( self, motion_token: Tensor, motion_tokens_len: List[int], pkeep: float )
H-GPT/hGPT/models/archs/hgpt_lm.py:417
↓ 1 callersFunctionnew_dir
(cfg, phase, time_str, final_output_dir)
H-GPT/hGPT/logger.py:36
↓ 1 callersFunctionparse_args
Parse arguments and load config files
H-GPT/hGPT/config.py:63
↓ 1 callersFunctionplot_3d_motion
Plot 3D motion data. Parameters: - joints (numpy array): 3D motion data of joints, shape (frame_number, joint_number, 3). - out_name
H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:76
↓ 1 callersFunctionplot_3d_motion_smplh
Plot 3D motion data of SMPL-H model. Parameters: - joints (numpy array): 3D motion data of joints, shape (frame_number, joint_number, 3)
H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:247
↓ 1 callersFunctionplot_3d_motion_smplh
( joints, out_name, title, kinematic_chain, figsize=(10, 10), fps=120, radius=4 )
H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:106
↓ 1 callersFunctionplot_3d_motion_smplh
( joints, out_name, title, kinematic_chain, figsize=(10, 10), fps=120, radius=4 )
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:107
↓ 1 callersFunctionplot_xzPlane
(minx, maxx, miny, minz, maxz)
H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:152
↓ 1 callersFunctionplot_xzPlane
(minx, maxx, miny, minz, maxz)
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:153
↓ 1 callersFunctionpolynomial_mmd
( codes_g, codes_r, degree=3, gamma=None, coef0=1, var_at_m=None, ret_var=True )
H-GPT/hGPT/metrics/utils.py:472
↓ 1 callersFunctionpolynomial_mmd_averages
( codes_g, codes_r, n_subsets=50, subset_size=1000, ret_var=True, output=sys.stdout,
H-GPT/hGPT/metrics/utils.py:443
↓ 1 callersMethodpreprocess
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:88
↓ 1 callersMethodpreprocess
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:204
↓ 1 callersMethodpreprocess
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:275
↓ 1 callersMethodpreprocess
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:400
↓ 1 callersMethodpreprocess_state_dict
(self, state_dict)
H-GPT/hGPT/models/base.py:134
↓ 1 callersFunctionprocess_file
Processes motion capture data, including downsampling, skeleton normalization, floor alignment, and feature extraction. Args: po
H-GPT/hGPT/data/motionx/scripts/motion_process.py:117
↓ 1 callersFunctionprocess_file_multithread
( idx, source_file, body_joints_id, hand_joints_id, joints_num )
H-GPT/hGPT/data/motionx/scripts/motion_process.py:442
↓ 1 callersFunctionprocess_file_parallel
(idx, file_path, body_joints, joints)
H-GPT/hGPT/data/motionx/smplx2smpl/transfer_to_body_only_joints.py:44
↓ 1 callersFunctionprocess_file_parallel
(idx, file_path)
H-GPT/hGPT/data/motionx/smplx2smpl/add_face_vectors.py:50
↓ 1 callersFunctionprocess_file_parallel
(idx, file_path, body_joints, joints)
H-GPT/hGPT/data/motionx/smplx2smpl/transfer_to_body_only_vectors.py:44
↓ 1 callersFunctionqbetween
find the quaternion used to rotate v0 to v1
H-GPT/hGPT/data/motionx/common/quaternion.py:416
↓ 1 callersFunctionqfix
Enforce quaternion continuity across the time dimension by selecting the representation (q or -q) with minimal distance (or, equivalently, ma
H-GPT/hGPT/data/motionx/common/quaternion.py:158
↓ 1 callersFunctionqpow
q0 : tensor of quaternions t: tensor of powers
H-GPT/hGPT/data/motionx/common/quaternion.py:368
↓ 1 callersMethodquantize
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:94
↓ 1 callersMethodquantize
(self, z)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:183
↓ 1 callersMethodquantize
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:281
↓ 1 callersMethodquantize
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:406
↓ 1 callersFunctionquat2mat
This function is borrowed from https://github.com/MandyMo/pytorch_HMR/blob/master/src/util.py#L50 Convert quaternion coefficients to rotatio
H-GPT/hGPT/utils/geometry_conver.py:177
↓ 1 callersFunctionquaternion_invert
Given a quaternion representing rotation, get the quaternion representing its inverse. Args: quaternion: Quaternions as tensor o
H-GPT/hGPT/utils/geometry_tools.py:392
↓ 1 callersFunctionquaternion_invert
Given a quaternion representing rotation, get the quaternion representing its inverse. Args: quaternion: Quaternions as tensor o
H-GPT/hGPT/utils/rotation_conversions.py:377
↓ 1 callersFunctionquaternion_to_angle_axis
This function is borrowed from https://github.com/kornia/kornia Convert quaternion vector to angle axis of rotation. Adapted from ceres
H-GPT/hGPT/utils/geometry_conver.py:249
↓ 1 callersFunctionquaternion_to_axis_angle
Convert rotations given as quaternions to axis/angle. Args: quaternions: quaternions with real part first, as tensor of
H-GPT/hGPT/utils/geometry_tools.py:495
↓ 1 callersFunctionquaternion_to_axis_angle
Convert rotations given as quaternions to axis/angle. Args: quaternions: quaternions with real part first, as tensor of
H-GPT/hGPT/utils/rotation_conversions.py:480
↓ 1 callersFunctionquaternion_to_cont6d
(quaternions)
H-GPT/hGPT/data/motionx/common/quaternion.py:338
↓ 1 callersFunctionquaternion_to_cont6d_np
(quaternions)
H-GPT/hGPT/data/motionx/common/quaternion.py:332
↓ 1 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as ten
H-GPT/hGPT/utils/geometry_conver.py:54
↓ 1 callersFunctionquaternion_to_matrix_np
(quaternions)
H-GPT/hGPT/data/motionx/common/quaternion.py:327
↓ 1 callersFunctionrandom_quaternions
Generate random quaternions representing rotations, i.e. versors with nonnegative real part. Args: n: Number of quaternions in a
H-GPT/hGPT/utils/geometry_tools.py:273
↓ 1 callersFunctionrandom_quaternions
Generate random quaternions representing rotations, i.e. versors with nonnegative real part. Args: n: Number of quaternions in a
H-GPT/hGPT/utils/rotation_conversions.py:258
↓ 1 callersFunctionrandom_rotations
Generate random rotations as 3x3 rotation matrices. Args: n: Number of rotation matrices in a batch to return. dtype: Type t
H-GPT/hGPT/utils/geometry_tools.py:297
↓ 1 callersFunctionrandom_rotations
Generate random rotations as 3x3 rotation matrices. Args: n: Number of rotation matrices in a batch to return. dtype: Type t
H-GPT/hGPT/utils/rotation_conversions.py:282
↓ 1 callersFunctionrecover_from_ric
(data, joints_num)
H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:57
↓ 1 callersFunctionrecover_from_ric
(data, joints_num)
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:57
↓ 1 callersFunctionrecover_root_rot_pos
(data)
H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:84
↓ 1 callersFunctionrecover_root_rot_pos
(data)
H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:85
← previousnext →101–200 of 453, ranked by callers