MCPcopy Create free account

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

Functions453 in github.com/OpenMOSS/FRoM-W1

↓ 22 callersMethodupdate
( self, feats_rst: Tensor, lengths_rst: List[int], )
H-GPT/hGPT/metrics/mm.py:110
↓ 14 callersMethod__init__
( self, n_in, n_depth, dilation_growth_rate=1, reverse_dilation=True,
H-GPT/hGPT/models/evaluator.py:91
↓ 13 callersFunctioninstantiate_from_config
Instantiate object from config
H-GPT/hGPT/config.py:20
↓ 13 callersMethodload_state_dict
(self, state_dict, strict=True)
H-GPT/hGPT/models/base.py:152
↓ 10 callersMethodnormalize
(self, features)
H-GPT/hGPT/data/MotionX.py:165
↓ 9 callersFunction_sqn
(arr)
H-GPT/hGPT/metrics/utils.py:586
↓ 8 callersMethodfeats2joints
(self, features)
H-GPT/hGPT/data/MotionX.py:177
↓ 8 callersFunctionqinv
(q)
H-GPT/hGPT/data/motionx/common/quaternion.py:18
↓ 8 callersFunctionqrot
Rotate vector(s) v about the rotation described by quaternion(s) q. Expects a tensor of shape (*, 4) for q and a tensor of shape (*, 3) for v
H-GPT/hGPT/data/motionx/common/quaternion.py:56
↓ 6 callersFunctionqmul_np
(q, r)
H-GPT/hGPT/data/motionx/common/quaternion.py:137
↓ 6 callersFunctionqrot_np
(q, v)
H-GPT/hGPT/data/motionx/common/quaternion.py:143
↓ 6 callersMethodreset
Reset the losses to 0.
H-GPT/hGPT/losses/base.py:27
↓ 5 callersFunctioncollate_tensors
(batch)
H-GPT/hGPT/data/base.py:6
↓ 5 callersFunctionqmul
Multiply quaternion(s) q with quaternion(s) r. Expects two equally-sized tensors of shape (*, 4), where * denotes any number of dimensions.
H-GPT/hGPT/data/motionx/common/quaternion.py:35
↓ 4 callersFunction_copysign
Return a tensor where each element has the absolute value taken from the, corresponding element of a, with sign taken from the corresponding
H-GPT/hGPT/utils/geometry_tools.py:82
↓ 4 callersFunction_copysign
Return a tensor where each element has the absolute value taken from the, corresponding element of a, with sign taken from the corresponding
H-GPT/hGPT/utils/rotation_conversions.py:67
↓ 4 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
H-GPT/hGPT/utils/geometry_tools.py:100
↓ 4 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
H-GPT/hGPT/utils/rotation_conversions.py:85
↓ 4 callersMethod_update_loss
Update the loss and return the weighted loss.
H-GPT/hGPT/losses/base.py:33
↓ 4 callersFunctionaxis_angle_to_matrix
Convert rotations given as axis/angle to rotation matrices. Args: axis_angle: Rotations given as a vector in axis angle form,
H-GPT/hGPT/utils/geometry_tools.py:431
↓ 4 callersFunctioncalculate_top_k
(mat, top_k)
H-GPT/hGPT/metrics/utils.py:60
↓ 4 callersFunctioncont6d_to_matrix
(cont6d)
H-GPT/hGPT/data/motionx/common/quaternion.py:344
↓ 4 callersFunctioneuclidean_distance_matrix
Params: -- matrix1: N1 x D -- matrix2: N2 x D Returns: -- dist: N1 x N2 dist[i, j] == distance(matrix1[i], matrix2[j])
H-GPT/hGPT/metrics/utils.py:26
↓ 4 callersMethodget_offsets_joints_batch
(self, joints)
H-GPT/hGPT/data/motionx/common/skeleton.py:78
↓ 4 callersFunctionqnormalize
(q)
H-GPT/hGPT/data/motionx/common/quaternion.py:30
↓ 4 callersMethodrenorm4t2m
(self, features)
H-GPT/hGPT/data/MotionX.py:181
↓ 3 callersMethod__init__
(self, n_e, e_dim, beta)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:142
↓ 3 callersMethod_get_pos_ohot
(self, pos)
H-GPT/hGPT/data/default/word_vectorizer.py:143
↓ 3 callersMethodallsplit_step
(self, split: str, batch, batch_idx)
H-GPT/hGPT/models/hgpt.py:211
↓ 3 callersFunctioncalculate_frechet_distance_np
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
H-GPT/hGPT/metrics/utils.py:160
↓ 3 callersFunctionget_obj_from_str
Get object from string
H-GPT/hGPT/config.py:9
↓ 3 callersMethodinverse_kinematics_np
(self, joints, face_joint_idx, smooth_forward=False)
H-GPT/hGPT/data/motionx/common/skeleton.py:111
↓ 3 callersMethodloss_log_dict
(self, split: str)
H-GPT/hGPT/models/base.py:107
↓ 3 callersFunctionmatrix_to
(newtype, rotations)
H-GPT/hGPT/utils/easyconvert.py:50
↓ 3 callersMethodpostprocess
(self, x)
H-GPT/hGPT/models/archs/hgpt_vq.py:71
↓ 3 callersFunctionqbetween_np
find the quaternion used to rotate v0 to v1
H-GPT/hGPT/data/motionx/common/quaternion.py:430
↓ 3 callersFunctionqinv_np
(q)
H-GPT/hGPT/data/motionx/common/quaternion.py:25
↓ 3 callersFunctionquaternion_raw_multiply
Multiply two quaternions. Usual torch rules for broadcasting apply. Args: a: Quaternions as tensor of shape (..., 4), real part
H-GPT/hGPT/utils/geometry_tools.py:354
↓ 3 callersFunctionquaternion_raw_multiply
Multiply two quaternions. Usual torch rules for broadcasting apply. Args: a: Quaternions as tensor of shape (..., 4), real part
H-GPT/hGPT/utils/rotation_conversions.py:339
↓ 3 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_tools.py:51
↓ 2 callersMethod__init__
( self, nfeats, quantizer, code_num, code_dim, output_emb_widt
H-GPT/hGPT/models/archs/hgpt_vq.py:13
↓ 2 callersMethod__init__
( self, n_in, n_depth, dilation_growth_rate=1, reverse_dilation=True,
H-GPT/hGPT/models/archs/utils/resnet.py:84
↓ 2 callersFunction_angle_from_tan
Extract the first or third Euler angle from the two members of the matrix which are positive constant times its sine and cosine. Args:
H-GPT/hGPT/utils/geometry_tools.py:189
↓ 2 callersFunction_angle_from_tan
Extract the first or third Euler angle from the two members of the matrix which are positive constant times its sine and cosine. Args:
H-GPT/hGPT/utils/rotation_conversions.py:174
↓ 2 callersFunction_index_from_letter
(letter: str)
H-GPT/hGPT/utils/geometry_tools.py:222
↓ 2 callersFunction_index_from_letter
(letter: str)
H-GPT/hGPT/utils/rotation_conversions.py:207
↓ 2 callersMethod_tile
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:24
↓ 2 callersMethod_tile
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:223
↓ 2 callersFunctionalign_by_parts
(joints, align_inds=None)
H-GPT/hGPT/metrics/utils.py:333
↓ 2 callersFunctionaxis_angle_to_quaternion
Convert rotations given as axis/angle to quaternions. Args: axis_angle: Rotations given as a vector in axis angle form,
H-GPT/hGPT/utils/geometry_tools.py:463
↓ 2 callersFunctioncalculate_activation_statistics_np
Params: -- activation: num_samples x dim_feat Returns: -- mu: dim_feat -- sigma: dim_feat x dim_feat
H-GPT/hGPT/metrics/utils.py:91
↓ 2 callersFunctioncalculate_diversity_np
(activation, diversity_times)
H-GPT/hGPT/metrics/utils.py:227
↓ 2 callersFunctioncollate_tensors
(batch)
H-GPT/hGPT/utils/tensors.py:12
↓ 2 callersFunctioncollate_tensors
(batch)
H-GPT/hGPT/data/motionx/dataset.py:63
↓ 2 callersMethodcompute
(self, sanity_flag)
H-GPT/hGPT/metrics/mm.py:85
↓ 2 callersFunctioncompute_mpjpe
Mean per-joint position error (i.e. mean Euclidean distance) often referred to as "Protocol #1" in many papers.
H-GPT/hGPT/metrics/utils.py:310
↓ 2 callersFunctioncont6d_to_matrix_np
(cont6d)
H-GPT/hGPT/data/motionx/common/quaternion.py:363
↓ 2 callersFunctiondraw_to_batch_smplh
( smpl_joints_batch, kinematic_chain, title_batch=None, outname=None )
H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:415
↓ 2 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_3d_global.py:58
↓ 2 callersMethodget_offsets_joints
get global offsets given a skeleton
H-GPT/hGPT/data/motionx/common/skeleton.py:93
↓ 2 callersFunctionget_smplx_layer
(device)
H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:546
↓ 2 callersFunctioninit
()
H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:149
↓ 2 callersFunctionmatrix_to
(newtype, rotations)
H-GPT/hGPT/utils/temos_utils.py:63
↓ 2 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/geometry_tools.py:111
↓ 2 callersMethodmetrics_log_dict
(self)
H-GPT/hGPT/models/base.py:112
↓ 2 callersMethodplaceholder_fulfill
( self, prompt: str, length: int, motion_string: str, text: str, cot: str )
H-GPT/hGPT/models/archs/hgpt_lm.py:516
↓ 2 callersFunctionplot_xzPlane
(minx, maxx, miny, minz, maxz)
H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:155
↓ 2 callersMethodpreprocess
(self, x)
H-GPT/hGPT/models/archs/hgpt_vq.py:66
↓ 2 callersFunctionprocess_smplx_322_data
INPUT: smplx_data: (bs, frames, 322) RETURN: vertices: joints: pose: faces:
H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:552
↓ 2 callersFunctionqeuler
Convert quaternion(s) q to Euler angles. Expects a tensor of shape (*, 4), where * denotes any number of dimensions. Returns a tensor of
H-GPT/hGPT/data/motionx/common/quaternion.py:78
↓ 2 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as ten
H-GPT/hGPT/utils/rotation_conversions.py:36
↓ 2 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as tens
H-GPT/hGPT/data/motionx/common/quaternion.py:298
↓ 2 callersFunctionrecover_from_ric
Recover joint positions from the given motion capture data using root rotation information. Args: data (torch.Tensor): Input motion
H-GPT/hGPT/data/motionx/scripts/motion_process.py:409
↓ 2 callersFunctionrecover_root_rot_pos
Recover root rotation and position from the given motion capture data. Args: data (torch.Tensor): Input motion capture data with sha
H-GPT/hGPT/data/motionx/scripts/motion_process.py:343
↓ 2 callersFunctionset_seed
固定随机种子以确保结果可复现 参数: seed (int): 随机种子,默认为42
H-GPT/hGPT/data/default/dataset_t2m_eval.py:425
↓ 2 callersMethodstep_log_dict
(self)
H-GPT/hGPT/models/base.py:101
↓ 2 callersMethodtemplate_fulfill
(self, tasks, motion_tokens_len, motion_strings, texts, cot)
H-GPT/hGPT/models/archs/hgpt_lm.py:496
↓ 2 callersFunctionupdate
(index)
H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:147
↓ 2 callersMethodval_t2m_forward
(self, batch)
H-GPT/hGPT/models/hgpt.py:70
↓ 1 callersMethod__init__
(self, cfg, stage, num_joints, **kwargs)
H-GPT/hGPT/losses/hgpt.py:21
↓ 1 callersMethod_get_t2m_evaluator
load T2M text encoder and motion encoder for evaluating
H-GPT/hGPT/metrics/t2m.py:91
↓ 1 callersMethod_get_t2m_evaluator
load T2M text encoder and motion encoder for evaluating
H-GPT/hGPT/metrics/mm.py:38
↓ 1 callersMethod_get_t2m_evaluator
load T2M text encoder and motion encoder for evaluating
H-GPT/hGPT/metrics/m2t.py:113
↓ 1 callersMethod_get_text_embeddings
(self, texts)
H-GPT/hGPT/metrics/m2t.py:168
↓ 1 callersMethod_load_data_parallel
使用多线程并行加载数据
H-GPT/hGPT/data/default/dataset_t2m_train.py:424
↓ 1 callersFunction_mmd2_and_variance
( K_XX, K_XY, K_YY, unit_diagonal=False, mmd_est="unbiased", block_size=1024, var_
H-GPT/hGPT/metrics/utils.py:489
↓ 1 callersMethod_process_text
(self, sentence)
H-GPT/hGPT/metrics/m2t.py:152
↓ 1 callersMethod_tile
(self, x)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:340
↓ 1 callersFunctionamass_to_pose
Convert AMASS SMPL-X motion data to pose representation and save joint positions. Args: src_motion (torch.Tensor): Input SMPL-X moti
H-GPT/hGPT/data/motionx/scripts/raw_pose_processing.py:83
↓ 1 callersFunctionaxis_angle_to
(newtype, rotations)
H-GPT/hGPT/utils/easyconvert.py:29
↓ 1 callersFunctionaxis_angle_to_quaternion
Convert rotations given as axis/angle to quaternions. Args: axis_angle: Rotations given as a vector in axis angle form,
H-GPT/hGPT/utils/rotation_conversions.py:448
↓ 1 callersFunctionaxis_angle_to_quaternion
Convert rotations given as axis/angle to quaternions. Args: axis_angle: Rotations given as a vector in axis angle form,
H-GPT/hGPT/utils/geometry_conver.py:22
↓ 1 callersFunctionbatch_compute_similarity_transform_torch
Computes a similarity transform (sR, t) that takes a set of 3D points S1 (3 x N) closest to a set of 3D points S2, where R is an 3x3 rota
H-GPT/hGPT/metrics/utils.py:256
↓ 1 callersFunctionbuild_data
(cfg, phase="train")
H-GPT/hGPT/data/build_data.py:7
↓ 1 callersFunctionbuild_model
(cfg, datamodule)
H-GPT/hGPT/models/build_model.py:5
↓ 1 callersFunctioncalc_accel
Mean joint acceleration error often referred to as "Protocol #1" in many papers.
H-GPT/hGPT/metrics/utils.py:357
↓ 1 callersFunctioncalc_mpjpe
(preds, target, align_inds=[0], sample_wise=True, trans=None)
H-GPT/hGPT/metrics/utils.py:340
↓ 1 callersFunctioncalc_pampjpe
(preds, target, sample_wise=True, return_transform_mat=False)
H-GPT/hGPT/metrics/utils.py:373
↓ 1 callersFunctioncalculate_multimodality_np
(activation, multimodality_times)
H-GPT/hGPT/metrics/utils.py:240
↓ 1 callersMethodcompute_perplexity
(self, code_idx)
H-GPT/hGPT/models/archs/utils/quantize_cnn.py:43
next →1–100 of 453, ranked by callers