MCPcopy Create free account

hub / github.com/MotrixLab/ADHMR / functions

Functions2,101 in github.com/MotrixLab/ADHMR

↓ 6 callersFunctiondigit_version
(version_str)
HMR-Scorer/main/transformer_utils/mmpose/__init__.py:7
↓ 6 callersMethoderror
(self, msg)
HMR-Scorer/common/logger.py:48
↓ 6 callersFunctionflip_thetas
Flip thetas. Parameters ---------- thetas : numpy.ndarray Joints in shape (num_thetas, 3) theta_pairs : list List of
ADHMR/lib/utils/transforms.py:1015
↓ 6 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/basic_block.py:90
↓ 6 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/basic_block.py:95
↓ 6 callersFunctionprocess_db_coord
(joint_img, joint_cam, joint_valid, do_flip, img_shape, flip_pairs, img2bb_trans, rot, sr
HMR-Scorer/common/utils/preprocessing.py:201
↓ 6 callersMethodstate_dict
(self)
HMR-Scorer/common/nets/ema.py:104
↓ 6 callersMethodtrain
(self)
ADHMR/lib/runners/hyponet.py:58
↓ 5 callersMethod__init__
(self, input_channels, output_channels, mid_channels=32)
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/v2v_net.py:227
↓ 5 callersMethod__init__
(self, embed_dims, feedforward_channels, act_cfg=dict(type=
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/pvt.py:47
↓ 5 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrformer.py:277
↓ 5 callersFunction_get_max_preds
Get keypoint predictions from score maps. Note: batch_size: N num_keypoints: K heatmap height: H heatmap width: W
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/top_down_eval.py:63
↓ 5 callersFunctionchannel_shuffle
Channel Shuffle operation. This function enables cross-group information flow for multiple groups convolution layers. Args: x (T
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/utils/channel_shuffle.py:5
↓ 5 callersMethodcumsum
(sequence)
ADHMR/lib/dataset/mix_dataset.py:176
↓ 5 callersFunctionget_bbox
(joint_img)
ADHMR/lib/utils/bbox.py:39
↓ 5 callersFunctionkeypoint_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints for coordinates. Note:
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/top_down_eval.py:179
↓ 5 callersMethodload_data
(self)
HMR-Scorer/data/PW3D/PW3D.py:30
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrt_checkpoint.py:109
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/utils/utils.py:117
↓ 5 callersFunctionmake_deconv_layers
(feat_dims, bnrelu_final=True)
HMR-Scorer/common/nets/layer.py:34
↓ 5 callersFunctionmake_folder
(folder_name)
HMR-Scorer/common/utils/dir.py:4
↓ 5 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrformer.py:18
↓ 5 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/bottleneck_block.py:87
↓ 5 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
HMR-Scorer/main/transformer_utils/setup.py:31
↓ 5 callersMethodremove
(self)
HMR-Scorer/main/transformer_utils/mmpose/utils/hooks.py:42
↓ 5 callersFunctiontoken2map
Transform vision tokens to feature map. This function only works when the resolution of the feature map is not higher than the initial grid st
HMR-Scorer/main/transformer_utils/mmpose/models/utils/tcformer_utils.py:68
↓ 5 callersFunctiontransform_joint_to_other_db
(src_joint, src_name, dst_name)
ADHMR/lib/utils/transforms_humandata.py:81
↓ 5 callersMethodwith_pos_embed
(self, tensor, pos)
ADHMR/lib/models/hyponet.py:306
↓ 4 callersMethod__init__
(self, in_features, out_features, rank=4)
ADHMR/lib/models/hyponet.py:78
↓ 4 callersMethod__init__
(self, embed_dims, hiddem_dims)
HMR-Scorer/main/transformer_utils/mmpose/ops/multi_scale_deform_attn.py:351
↓ 4 callersMethod__init__
(self, embed_dims, num_heads, window_size,
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/swin.py:39
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/resnet.py:486
↓ 4 callersMethod__init__
(self, fc_layers, use_dropout, drop_prob, use_activation)
HMR-Scorer/main/transformer_utils/mmpose/models/misc/discriminator.py:29
↓ 4 callersMethod__init__
(self, log_name='logs.txt')
HMR-Scorer/common/base.py:54
↓ 4 callersFunctionadd_pypath
(path)
HMR-Scorer/common/utils/dir.py:7
↓ 4 callersMethodapply_lora
(self, proj_weight, lora_A, lora_B)
ADHMR/lib/models/hyponet.py:254
↓ 4 callersMethodbackward
GPU version of backward function. Args: grad_output (Tensor): Gradient of output tensor of forward. Return
HMR-Scorer/main/transformer_utils/mmpose/ops/multi_scale_deform_attn.py:56
↓ 4 callersFunctionbatch_rigid_align
mesh_out: [bs, multi_n, 10475, 3] gt_mesh: [bs, 1, 10475, 3]
HMR-Scorer/common/utils/transforms.py:95
↓ 4 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
HMR-Scorer/common/utils/smplx/smplx/lbs.py:1162
↓ 4 callersFunctionerror_2_score
(error, min=10, max=300)
HMR-Scorer/common/nets/loss.py:61
↓ 4 callersMethodextra_repr
(self)
ADHMR/lib/utils/smplx/smplx/body_models.py:279
↓ 4 callersMethodextra_repr
(self)
ADHMR/lib/dataset/humandata_utils/smplx/smplx/body_models.py:280
↓ 4 callersMethodextra_repr
(self)
HMR-Scorer/common/utils/smplx/smplx/body_models_origin.py:280
↓ 4 callersMethodextra_repr
(self)
HMR-Scorer/common/utils/smplx/smplx/body_models.py:280
↓ 4 callersFunctionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks To do so, we first compute the rotation of the neck around the y-axis
ADHMR/lib/utils/smplx/smplx/lbs.py:30
↓ 4 callersFunctionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks To do so, we first compute the rotation of the neck around the y-axis
ADHMR/lib/dataset/humandata_utils/smplx/smplx/lbs.py:30
↓ 4 callersFunctionfind_joint_kin_chain
(joint_id, kinematic_tree)
HMR-Scorer/common/utils/smplx/smplx/utils.py:89
↓ 4 callersFunctionflip_cam_xyz_joints_3d
Flip 3d xyz joints. Parameters ---------- joints_3d : numpy.ndarray Joints in shape (num_joints, 3) joint_pairs : list
ADHMR/lib/utils/transforms.py:985
↓ 4 callersFunctionget_dataloader
(config, is_train = True)
ADHMR/lib/utils/function.py:31
↓ 4 callersFunctionget_dir
Rotate the point by `rot_rad` degree.
ADHMR/lib/utils/transforms.py:334
↓ 4 callersMethodinference_model
Inference function. Returns: output_regression (np.ndarray): Output regression. Args: x (torch.Tensor[N, K,
HMR-Scorer/main/transformer_utils/mmpose/models/heads/poseur_head.py:675
↓ 4 callersMethodinit_mask
Only support locally_connected
ADHMR/lib/models/hyponet.py:388
↓ 4 callersMethodinit_mask
Only support locally_connected
ADHMR/lib/models/scorenet.py:168
↓ 4 callersMethodinit_mask
Only support locally_connected
HMR-Scorer/common/nets/scorernet.py:181
↓ 4 callersMethodload
(self, load_path)
HMR-Scorer/data/humandata.py:52
↓ 4 callersMethodload_cache
(self, annot_path_cache)
HMR-Scorer/data/InstaVariety_DPO.py:64
↓ 4 callersMethodload_data
(self, train_sample_interval=1, test_sample_interval=1)
ADHMR/lib/dataset/humandata.py:205
↓ 4 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrt_checkpoint.py:41
↓ 4 callersMethodmask_weights
(self, layer,mask,mshape)
ADHMR/lib/models/hyponet.py:395
↓ 4 callersMethodmulti_head_attention_forward
( self, query: Tensor, key: Tensor, value: Tensor, embed_dim_to_check:
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/multihead_isa_attention.py:127
↓ 4 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrformer.py:35
↓ 4 callersFunctionpixel2cam
(pixel_coord, f, c)
ADHMR/lib/utils/pose_utils.py:293
↓ 4 callersFunctionpose_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from heatmaps. Note: P
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/top_down_eval.py:136
↓ 4 callersFunctionprocess_db_coord_w_cam
(joint_img, joint_cam, princpt, cam_trans, joint_valid, do_flip, img_shape, flip_pairs,
HMR-Scorer/common/utils/preprocessing.py:256
↓ 4 callersFunctionprocess_output
(output_m, labels, smpl, process=False)
ADHMR/lib/utils/pose_utils.py:147
↓ 4 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the original op
ADHMR/lib/models/ema.py:89
↓ 4 callersFunctionrotmat_to_quat_numpy
Convert quaternion coefficients to rotation matrix. Args: Rotation matrix corresponding to the quaternion -- size = [B, 3, 3] Returns:
ADHMR/lib/utils/transforms.py:1434
↓ 4 callersFunctionsample_joint_features
(img_feat, joint_xy)
HMR-Scorer/common/utils/transforms.py:158
↓ 4 callersMethodsmpl_forward
Apply a specific SMPL model with given model parameters. Note: B: batch size V: number of vertices K: num
HMR-Scorer/main/transformer_utils/mmpose/models/utils/smpl.py:63
↓ 4 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be temp
ADHMR/lib/models/ema.py:79
↓ 4 callersFunctiontorch_to_im
Transform torch tensor to ndarray image. Parameters ---------- img: torch.Tensor A tensor with shape: `(3, H, W)`. Returns
ADHMR/lib/utils/transforms.py:96
↓ 4 callersFunctiontransform_preds
Get final keypoint predictions from heatmaps and apply scaling and translation to map them back to the image. Note: num_keypoints: K
HMR-Scorer/main/transformer_utils/mmpose/core/post_processing/post_transforms.py:150
↓ 4 callersFunctionvertices2joints
Calculates the 3D joint locations from the vertices Parameters ---------- J_regressor : torch.tensor JxV The regressor array tha
HMR-Scorer/common/utils/smplx/smplx/lbs.py:1142
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32
ADHMR/lib/utils/smplx/smplx/lbs.py:108
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32
ADHMR/lib/dataset/humandata_utils/smplx/smplx/lbs.py:108
↓ 3 callersMethod__init__
(self,cfg)
ADHMR/lib/models/loss.py:67
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
ADHMR/lib/models/hrnet.py:33
↓ 3 callersMethod__init__
(self, depth, groups=1, width_per_group=4,
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/resnest.py:315
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/modules/ffn_block.py:13
↓ 3 callersMethod__init__
(self, out_channels, norm_cfg=dict(type='BN'))
HMR-Scorer/main/transformer_utils/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:333
↓ 3 callersMethod__init__
(self, OUTPUT_3D=False, size_average=True)
HMR-Scorer/main/transformer_utils/mmpose/models/losses/rle_loss.py:156
↓ 3 callersMethod__init__
(self)
HMR-Scorer/common/nets/loss.py:34
↓ 3 callersFunction_calc_distances
Calculate the normalized distances between preds and target. Note: batch_size: N num_keypoints: K dimension of keypoints:
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/top_down_eval.py:10
↓ 3 callersMethod_freeze_stages
Freeze parameters.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/vit.py:229
↓ 3 callersMethod_get_deconv_cfg
Get configurations for deconv layers.
HMR-Scorer/main/transformer_utils/mmpose/models/heads/poseur_head.py:324
↓ 3 callersMethod_integral_xyz_target_generator
(self, joints_3d, joints_3d_vis, num_joints)
ADHMR/lib/utils/presets/simple_transform_3d_smpl_cam.py:222
↓ 3 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/utils/utils.py:233
↓ 3 callersFunction_make_input
Make zero inputs for AE loss. Args: t (torch.Tensor): input requires_grad (bool): Option to use requires_grad. device: to
HMR-Scorer/main/transformer_utils/mmpose/models/losses/multi_loss_factory.py:12
↓ 3 callersMethod_make_stage
(self, layer_config, num_inchannels, multi_scale_output=True)
ADHMR/lib/models/hrnet.py:495
↓ 3 callersMethod_make_stage
Make stage.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrnet.py:476
↓ 3 callersMethod_make_stage
Make each stage.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrt.py:562
↓ 3 callersMethod_make_transition_layer
( self, num_channels_pre_layer, num_channels_cur_layer)
ADHMR/lib/models/hrnet.py:418
↓ 3 callersMethod_make_transition_layer
Make transition layer.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrnet.py:394
↓ 3 callersMethod_make_transition_layer
Make transition layer.
HMR-Scorer/main/transformer_utils/mmpose/models/backbones/hrt.py:441
↓ 3 callersFunctionaugmentation_seg
(img, seg_img, bbox, data_split)
HMR-Scorer/common/utils/preprocessing.py:119
↓ 3 callersFunctionbatch_get_pelvis_orient
(rel_pose_skeleton, rel_rest_pose, parents, children, dtype)
ADHMR/lib/models/layers/smpl/lbs.py:1456
↓ 3 callersFunctionbatch_rigid_transform
Applies a batch of rigid transformations to the joints Parameters ---------- rot_mats : torch.tensor BxNx3x3 Tensor of rotat
ADHMR/lib/models/layers/smpl/lbs.py:596
↓ 3 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.py:1186
↓ 3 callersFunctioncam2pixel
(cam_coord, f, c)
ADHMR/lib/utils/transforms_humandata.py:9
↓ 3 callersFunctioncompute_similarity_transform
Computes a similarity transform (sR, t) that takes a set of 3D points source_points (N x 3) closest to a set of 3D points target_points, where R
HMR-Scorer/main/transformer_utils/mmpose/core/evaluation/mesh_eval.py:9
← previousnext →101–200 of 2,101, ranked by callers