MCPcopy Create free account

hub / github.com/MotrixLab/ADHMR / functions

Functions2,101 in github.com/MotrixLab/ADHMR

↓ 3 callersFunctiondenormalize_pose_cuda
pose: [N, 17*3]
ADHMR/lib/utils/pose_utils.py:75
↓ 3 callersFunctionflip
(x)
ADHMR/lib/utils/transforms.py:509
↓ 3 callersFunctionflip_back
Flip the flipped heatmaps back to the original form. Note: - batch_size: N - num_keypoints: K - heatmap height: H
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/post_transforms.py:110
↓ 3 callersFunctiongeneralized_steps
x_0: joint gaussian noise X_T x_1: twist gaussian noise X_T
ADHMR/lib/utils/diff_utils.py:66
↓ 3 callersFunctiongenerate_patch_image
(cvimg, bbox, scale, rot, do_flip, out_shape)
HMR-Scorer/common/utils/preprocessing.py:134
↓ 3 callersMethodget
(self, key, default=None)
ADHMR/lib/dataset/humandata_utils/smplx/smplx/utils.py:37
↓ 3 callersFunctionget_beta_schedule
(beta_schedule, *, beta_start, beta_end, num_diffusion_timesteps)
ADHMR/lib/utils/diff_utils.py:5
↓ 3 callersFunctionget_model_score
(config, is_train = True, resume = False, resume_path = None)
ADHMR/lib/utils/function.py:216
↓ 3 callersFunctionget_pairwise_comp_probs
(batch_preds, batch_std_labels, sigma=None)
ADHMR/lib/utils/relation.py:7
↓ 3 callersFunctionget_pose_net
(cfg, is_train, score=False, **kwargs)
ADHMR/lib/models/hrnet.py:651
↓ 3 callersFunctionget_scorer_model
(mode)
HMR-Scorer/main/HMR_Scorer.py:375
↓ 3 callersFunctionindex_points
Sample features following the index. Note: B: batch size N: point number C: channel number of each point Ns: sampl
HMR-Scorer/main/transformer_utils/mmpose/models/utils/tcformer_utils.py:41
↓ 3 callersMethodinit_weights
Initialize model weights.
HMR-Scorer/main/transformer_utils/mmpose/models/misc/discriminator.py:100
↓ 3 callersMethodload
(self, load_path)
HMR-Scorer/data/humandata_scorer_test.py:50
↓ 3 callersMethodload_cache
(self, annot_path_cache)
ADHMR/lib/dataset/humandata.py:190
↓ 3 callersMethodload_cache
(self, annot_path_cache)
HMR-Scorer/data/Human36M_DPO.py:64
↓ 3 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number down to the nearest value that can be divisible by the divisor. Args:
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/utils/make_divisible.py:2
↓ 3 callersFunctionmulti_scale_deformable_attn_pytorch
CPU version of multi-scale deformable attention. Args: value (Tensor): The value has shape (bs, num_keys, mum_heads, embed_dim
HMR-Scorer/main/transformer_utils/mmpose/ops/multi_scale_deform_attn.py:87
↓ 3 callersFunctionprocess_bbox
保持检测框中心点位置不变调整检测框比例为cfg.input_img_size ration: 扩大检测框大小
ADHMR/lib/utils/preprocessing.py:61
↓ 3 callersMethodprocess_hand_face_bbox
(self, bbox, do_flip, img_shape, img2bb_trans)
ADHMR/lib/dataset/humandata.py:755
↓ 3 callersMethodprocess_hand_face_bbox
(self, bbox, do_flip, img_shape, img2bb_trans)
HMR-Scorer/data/humandata.py:671
↓ 3 callersFunctionrender_pose
(img, body_model_param, body_model, camera, return_mask=False)
HMR-Scorer/main/render.py:29
↓ 3 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
HMR-Scorer/main/transformer_utils/mmpose/models/utils/ops.py:8
↓ 3 callersMethodsave_cache
(self, annot_path_cache, datalist)
ADHMR/lib/dataset/humandata.py:197
↓ 3 callersMethodsave_cache
(self, annot_path_cache, datalist)
HMR-Scorer/data/InstaVariety_DPO.py:56
↓ 3 callersFunctionto_torch
(ndarray)
ADHMR/lib/utils/transforms.py:130
↓ 3 callersFunctiontrans_back
(joints, trans)
ADHMR/lib/utils/pose_utils.py:15
↓ 3 callersMethodvalidate
(self,state = None)
ADHMR/lib/runners/hyponet.py:362
↓ 3 callersMethodwith_pos_embed
(self, tensor, pos)
ADHMR/lib/models/scorenet.py:94
↓ 3 callersMethodwith_pos_embed
(self, tensor, pos)
HMR-Scorer/common/nets/scorernet.py:98
↓ 2 callersMethod__init__
(self,cfg)
ADHMR/lib/models/loss copy.py:123
↓ 2 callersMethod__init__
(self, window_size: int, output_size: int, hidden_size: int
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/temporal_filters/smoothnet_filter.py:74
↓ 2 callersMethod__init__
(self, depth, in_channels=3, num_stages=4,
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/vipnas_resnet.py:392
↓ 2 callersMethod__init__
(self, depth, **kwargs)
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/scnet.py:245
↓ 2 callersMethod__init__
(self, in_channels=3, expansion=1.0)
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/i3d.py:146
↓ 2 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/transformer_block.py:59
↓ 2 callersMethod__init__
(self, in_channel, out_channel, bias=True, norm=True)
HMR-Scorer/main/transformer_utils/mmpose/models/heads/poseur_head.py:93
↓ 2 callersMethod__init__
(self, in_channel, out_channel, bias=True, norm=True)
HMR-Scorer/main/transformer_utils/mmpose/models/heads/rle_regression_head.py:99
↓ 2 callersMethod__init__
(self, loss_type)
HMR-Scorer/main/transformer_utils/mmpose/models/losses/multi_loss_factory.py:77
↓ 2 callersMethod__init__
(self, use_target_weight=False, loss_weight=1.)
HMR-Scorer/main/transformer_utils/mmpose/models/losses/mse_loss.py:18
↓ 2 callersMethod_freeze_stages
Freeze parameters.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrnet.py:509
↓ 2 callersMethod_freeze_stages
Freeze parameters.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/vipnas_resnet.py:529
↓ 2 callersMethod_freeze_stages
Freeze parameters.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/resnet.py:619
↓ 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
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/top_down_eval.py:399
↓ 2 callersFunction_get_3rd_point
To calculate the affine matrix, three pairs of points are required. This function is used to get the 3rd point, given 2D points a & b. The 3r
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/post_transforms.py:271
↓ 2 callersFunction_get_mmcv_home
()
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrt_checkpoint.py:30
↓ 2 callersFunction_get_mmcv_home
()
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/utils/utils.py:40
↓ 2 callersMethod_has_track_id
Check if the pose results contain track_id.
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/smoother.py:153
↓ 2 callersMethod_integral_xyz_target_generator
(self, joints_3d, joints_3d_vis, num_joints)
ADHMR/lib/utils/presets/simple_transform_3d_cam_eft.py:197
↓ 2 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrt_checkpoint.py:225
↓ 2 callersMethod_make_layer
(self, block, out_channels, blocks,
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/rsn.py:180
↓ 2 callersMethod_make_layer
(self, block, out_channels, blocks, stride=1)
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/mspn.py:75
↓ 2 callersFunction_resize_concate
Resize and concatenate the feature_maps. Args: feature_maps (list[Tensor]): Feature maps. align_corners (bool): Align corners whe
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/bottom_up_eval.py:125
↓ 2 callersMethod_save_pt
(self)
ADHMR/lib/dataset/h36m_dpo.py:218
↓ 2 callersMethod_save_pt
(self)
ADHMR/lib/dataset/pw3d_dpo.py:211
↓ 2 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor] | Tensor): multi-level img features. Returns: Tenso
HMR-Scorer/main/transformer_utils/mmpose/models/necks/posewarper_neck.py:238
↓ 2 callersFunctionaxis_angle_to_rot6d
Converts axis-angle representation to 6D rotation representation. Args: axis_angle: Tensor of shape [bs, 3], where each row is a
HMR-Scorer/common/utils/transforms.py:139
↓ 2 callersFunctionbatch_rigid_transform
Applies a batch of rigid transformations to the joints Parameters ---------- rot_mats : torch.tensor BxNx3x3 Tensor of rotat
HMR-Scorer/common/utils/smplx/smplx/lbs.py:1236
↓ 2 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
ADHMR/lib/utils/transforms_humandata.py:264
↓ 2 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
ADHMR/lib/utils/smplx/smplx/lbs.py:295
↓ 2 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
ADHMR/lib/dataset/humandata_utils/smplx/smplx/lbs.py:295
↓ 2 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
ADHMR/lib/models/layers/smpl/lbs.py:549
↓ 2 callersFunctionbatch_rodrigues
Convert axis-angle representation to rotation matrix. Args: theta: size = [B, 3] Returns: Rotation matrix corresponding to the
HMR-Scorer/main/transformer_utils/mmpose/models/utils/geometry.py:25
↓ 2 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
HMR-Scorer/common/utils/smplx/smplx/lbs_origin.py:295
↓ 2 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
ADHMR/lib/utils/smplx/smplx/lbs.py:271
↓ 2 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
ADHMR/lib/dataset/humandata_utils/smplx/smplx/lbs.py:271
↓ 2 callersFunctionbuild_filter
Build filters function.
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/temporal_filters/builder.py:7
↓ 2 callersMethodcalc_cam_scale_trans2
(self, xyz_29, uvd_29, uvd_weight)
ADHMR/lib/utils/presets/simple_transform_3d_smpl_cam.py:652
↓ 2 callersFunctioncompute_alpha
(beta, t)
ADHMR/lib/utils/diff_utils.py:60
↓ 2 callersFunctioncompute_similarity_transform
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
ADHMR/lib/utils/pose_utils copy.py:193
↓ 2 callersFunctioncompute_similarity_transform
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
ADHMR/lib/utils/pose_utils.py:193
↓ 2 callersFunctioncompute_twist_rotation
Compute the twist component of given rotation and twist axis https://stackoverflow.com/questions/3684269/component-of-a-quaternion-rotation-a
ADHMR/lib/utils/transforms_humandata.py:469
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
ADHMR/lib/models/hrnet.py:24
↓ 2 callersMethodcriterion
Criterion of wingloss. Note: batch_size: N num_keypoints: K Args: pred (torch.Tensor[NxKxHxW]):
HMR-Scorer/main/transformer_utils/mmpose/models/losses/heatmap_loss.py:36
↓ 2 callersMethodcriterion
Criterion of wingloss. Note: batch_size: N num_keypoints: K dimension of keypoints: D (D=2 or D=3)
HMR-Scorer/main/transformer_utils/mmpose/models/losses/regression_loss.py:239
↓ 2 callersMethoddecode
Decode the keypoints from output regression. Args: img_metas (list(dict)): Information about data augmentation By
HMR-Scorer/main/transformer_utils/mmpose/models/heads/rle_regression_head.py:355
↓ 2 callersMethoddecompress_keypoints
If a key contains 'keypoints', and f'{key}_mask' is in self.keys(), invalid zeros will be inserted to the right places and f'{key}_mask'
HMR-Scorer/data/humandata.py:888
↓ 2 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for Ef
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/transformer_block.py:22
↓ 2 callersMethodevaluate_scorer
(self, outs)
HMR-Scorer/data/dataset.py:82
↓ 2 callersFunctionexponential_smoothing
(a, x, x_prev)
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/one_euro_filter.py:16
↓ 2 callersFunctionexponential_smoothing
(a, x, x_prev)
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/temporal_filters/one_euro_filter.py:18
↓ 2 callersFunctionfind_joint_kin_chain
(joint_id, kinematic_tree)
ADHMR/lib/utils/smplx/smplx/utils.py:89
↓ 2 callersFunctionfind_joint_kin_chain
(joint_id, kinematic_tree)
ADHMR/lib/dataset/humandata_utils/smplx/smplx/utils.py:89
↓ 2 callersMethodforward
Forward function.
HMR-Scorer/main/transformer_utils/mmpose/models/detectors/base.py:34
↓ 2 callersMethodfreeze_layers
(self)
HMR-Scorer/main/transformer_utils/mmpose/models/necks/posewarper_neck.py:205
↓ 2 callersMethodgen_mesh
(self, state, multi_n)
ADHMR/lib/runners/scorenet.py:535
↓ 2 callersFunctiongen_trans_from_patch_cv
(c_x, c_y, src_width, src_height, dst_width, dst_height, scale, rot, inv=False)
ADHMR/lib/utils/preprocessing.py:152
↓ 2 callersFunctiongen_trans_from_patch_cv
(c_x, c_y, src_width, src_height, dst_width, dst_height, scale, rot, inv=False)
HMR-Scorer/common/utils/preprocessing.py:165
↓ 2 callersFunctionget_area_of_bbox
Get the area of a bbox_xyxy. Args: (Union[list, tuple]): A list of [x1, y1, x2, y2]. bbox_convention (str, optional):
HMR-Scorer/common/utils/inference_utils.py:91
↓ 2 callersFunctionget_aug_config
()
HMR-Scorer/common/utils/preprocessing.py:89
↓ 2 callersMethodget_coord
(self, root_pose, body_pose, lhand_pose, rhand_pose, jaw_pose, shape, expr, cam_trans, mode)
HMR-Scorer/main/HMR_Scorer.py:64
↓ 2 callersFunctionget_expansion
Get the expansion of a residual block. The block expansion will be obtained by the following order: 1. If ``expansion`` is given, just retur
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/vipnas_resnet.py:175
↓ 2 callersFunctionget_grid_index
For every initial grid, get its index in the feature map. Note: [H_init, W_init]: shape of initial grid [H, W]: shape of feature m
HMR-Scorer/main/transformer_utils/mmpose/models/utils/tcformer_utils.py:17
↓ 2 callersFunctionget_group_idx
()
HMR-Scorer/common/utils/distribute_utils.py:151
↓ 2 callersFunctionget_hyponet
(cfg, neighbour_matrix, is_train, **kwargs)
ADHMR/lib/models/hyponet.py:466
↓ 2 callersFunctionget_jts_29
(vertices, jts)
ADHMR/lib/models/layers/smpl/SMPL.py:308
↓ 2 callersFunctionget_neighbour_matrix_from_hand
neighbour_matrix: 最终的邻接矩阵,表示所有关节和边之间的邻接关系 neighbour_matrix[num_joints:, num_joints:]: 仅表示边之间的邻接关系的子矩阵 neighbour_m
ADHMR/lib/utils/filter_hub.py:21
↓ 2 callersFunctionget_optimizer
(config, parameters,lr)
ADHMR/lib/utils/function.py:79
↓ 2 callersMethodget_p
(self, output_regression_sigma, p_x=0.2)
HMR-Scorer/main/transformer_utils/mmpose/models/detectors/poseur.py:248
↓ 2 callersMethodget_pad_shape
(self, input_shape)
HMR-Scorer/main/transformer_utils/mmpose/models/utils/transformer.py:134
← previousnext →201–300 of 2,101, ranked by callers