MCPcopy Create free account

hub / github.com/HongwenZhang/PyMAF / functions

Functions303 in github.com/HongwenZhang/PyMAF

↓ 7 callersFunctiontransform
Transform pixel location to different reference.
utils/imutils.py:38
↓ 5 callersMethod__init__
(self, *args, **kwargs)
models/smpl.py:53
↓ 5 callersFunctionbatch_rodrigues
Convert axis-angle representation to rotation matrix. Args: theta: size = [B, 3] Returns: Rotation matrix corresponding to the
utils/geometry.py:9
↓ 5 callersFunctionhmr
Constructs an HMR model with ResNet50 backbone. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
models/hmr.py:269
↓ 5 callersFunctionpymaf_net
Constructs an PyMAF model with ResNet50 backbone. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
models/pymaf_net.py:321
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
models/hmr.py:86
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
models/hmr.py:210
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
models/pose_resnet.py:143
↓ 4 callersFunctionconvert_cvimg_to_tensor
(image)
datasets/data_utils/img_utils.py:249
↓ 4 callersMethodforward
(self, *args, **kwargs)
models/smpl.py:65
↓ 4 callersFunctiongenerate_patch_image_cv
(cvimg, c_x, c_y, bb_width, bb_height, patch_width, patch_height, do_flip, scale, rot)
datasets/data_utils/img_utils.py:88
↓ 4 callersFunctionparse_args
(args)
core/cfgs.py:72
↓ 4 callersMethodparse_args
Parse input arguments.
core/train_options.py:54
↓ 4 callersMethodsave
Save dictionary state to disk
core/fits_dict.py:47
↓ 3 callersFunctioncrop
Crop image according to the supplied bounding box.
utils/imutils.py:54
↓ 3 callersFunctiondownload_url
(url, outdir)
utils/demo_utils.py:125
↓ 3 callersMethodevaluate
(self)
core/trainer.py:619
↓ 3 callersFunctionget_all_bbox_params
Finds bounding box parameters for all keypoints. Look for sequences in the middle with no predictions and linearly interpolate the bbox
utils/smooth_bbox.py:62
↓ 3 callersFunctionget_colors
()
utils/vis.py:52
↓ 3 callersFunctionget_model_faces
(type='smpl')
models/smpl.py:634
↓ 3 callersFunctionget_smpl_faces
()
models/smpl.py:610
↓ 3 callersFunctionget_smplx_tpose
()
models/smpl.py:670
↓ 3 callersFunctionperspective_projection
This function computes the perspective projection of a set of points. Input: points (bs, N, 3): 3D points rotation (bs, 3, 3)
utils/geometry.py:257
↓ 3 callersFunctionprojection
(pred_joints, pred_camera, retain_z=False)
utils/geometry.py:241
↓ 3 callersFunctionrot6d_to_rotmat
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Networks
utils/geometry.py:212
↓ 3 callersFunctionrotateY
Rotate all points in a 2D array around the y axis.
utils/renderer.py:404
↓ 3 callersFunctiontrans_point2d
(pt_2d, trans)
datasets/data_utils/img_utils.py:40
↓ 2 callersMethod__init__
(self, block, layers, smpl_mean_params)
models/hmr.py:168
↓ 2 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
models/pose_resnet.py:33
↓ 2 callersMethod_box2cs
(self, box)
datasets/coco_keypoint_dataset.py:208
↓ 2 callersFunction_print_name_value
(name_value, full_arch_name)
eval_coco.py:207
↓ 2 callersFunctioncompute_similarity_transform_batch
Batched version of compute_similarity_transform.
utils/pose_utils.py:60
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
models/pose_resnet.py:22
↓ 2 callersFunctiondo_augmentation
(scale_factor=0.3, color_factor=0.2)
datasets/data_utils/img_utils.py:30
↓ 2 callersFunctionestimate_translation
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. Input: S: (B, 49, 3) 3D joint locations
utils/geometry.py:332
↓ 2 callersFunctionflip_kp
Flip keypoints.
utils/imutils.py:140
↓ 2 callersMethodflip_pose
flip SMPL pose parameters
core/fits_dict.py:89
↓ 2 callersFunctiongen_trans_from_patch_cv
(c_x, c_y, src_width, src_height, dst_width, dst_height, scale, rot, inv=False)
datasets/data_utils/img_utils.py:53
↓ 2 callersFunctionget_3rd_point
(a, b)
utils/transforms.py:64
↓ 2 callersFunctionget_mano_faces
(hand_type='right')
models/smpl.py:620
↓ 2 callersFunctionget_model_tpose
(type='smpl')
models/smpl.py:645
↓ 2 callersFunctionget_partial_smpl
(body_model='smpl', device=torch.device('cuda'))
models/smpl.py:721
↓ 2 callersFunctionget_single_image_crop_demo
(image, bbox, kp_2d, scale=1.2, crop_size=224)
datasets/data_utils/img_utils.py:209
↓ 2 callersFunctionget_smpl_tpose
()
models/smpl.py:656
↓ 2 callersMethodimage_path_from_index
example: images / train2017 / 000000119993.jpg
datasets/coco_keypoint_dataset.py:229
↓ 2 callersMethodinit_weights
(self, pretrained='')
models/pose_resnet.py:231
↓ 2 callersFunctioniuv_img2map
(uvimages, uv_rois=None, new_size=None)
utils/iuvmap.py:67
↓ 2 callersMethodj2d_processing
Process gt 2D keypoints and apply all augmentation transforms.
datasets/base_dataset.py:177
↓ 2 callersFunctionm_l_r
(idx)
utils/vis.py:439
↓ 2 callersFunctionmain
(gpu, ngpus_per_node, options)
train.py:17
↓ 2 callersFunctionparse_args_extend
(args)
core/cfgs.py:84
↓ 2 callersFunctionrotate_2d
(pt_2d, rot_rad)
datasets/data_utils/img_utils.py:45
↓ 2 callersMethodrotate_pose
Rotate SMPL pose parameters by rot degrees
core/fits_dict.py:99
↓ 2 callersFunctionrotation_matrix_to_angle_axis
This function is borrowed from https://github.com/kornia/kornia Convert 3x4 rotation matrix to Rodrigues vector Args: rotation_
utils/geometry.py:47
↓ 2 callersMethodsampling
Given 2D points, sample the point-wise features for each point, the dimension of point-wise features will be reduced from C_s to C_p
models/maf_extractor.py:101
↓ 2 callersMethodsave_checkpoint
Save checkpoint.
utils/saver.py:26
↓ 2 callersMethodtrain
Training process.
core/trainer.py:256
↓ 2 callersFunctionuncrop
Undo' the image cropping/resizing. This function is used when evaluating mask/part segmentation.
utils/imutils.py:90
↓ 2 callersFunctionupdate_cfg
(cfg_file)
core/cfgs.py:65
↓ 2 callersMethodvalidate
(self)
core/trainer.py:531
↓ 2 callersFunctionvis_smpl_iuv
(image, cam_pred, vert_pred, face, pred_uv, vert_errors_batch, image_name, save_path, opt)
utils/uv_vis.py:68
↓ 2 callersMethodvisualize
(self, it, target, stage, preds, losses=None)
core/trainer.py:678
↓ 1 callersMethod__init__
(self, resolution=(224, 224), orig_img=False, wireframe=False, scale_ratio=1., vis_ratio=1.)
utils/renderer.py:78
↓ 1 callersMethod__init__
(self, smpl_mean_params=SMPL_MEAN_PARAMS, pretrained=True)
models/pymaf_net.py:159
↓ 1 callersMethod_check_extension
(self, filename: str)
multi_person_tracker_yolov8.py:52
↓ 1 callersMethod_coco_keypoint_results_one_category_kernel
(self, data_pack)
datasets/coco_keypoint_dataset.py:393
↓ 1 callersMethod_do_python_keypoint_eval
(self, res_file, res_folder)
datasets/coco_keypoint_dataset.py:428
↓ 1 callersMethod_get_ann_file_keypoint
self.root / annotations / person_keypoints_train2017.json
datasets/coco_keypoint_dataset.py:110
↓ 1 callersMethod_get_deconv_cfg
(self, deconv_kernel, index)
models/pose_resnet.py:160
↓ 1 callersMethod_load_coco_keypoint_annotation_kernal
coco ann: [u'segmentation', u'area', u'iscrowd', u'image_id', u'bbox', u'category_id', u'id'] iscrowd: crowd instances ar
datasets/coco_keypoint_dataset.py:141
↓ 1 callersMethod_load_coco_keypoint_annotations
ground truth bbox and keypoints
datasets/coco_keypoint_dataset.py:134
↓ 1 callersMethod_load_coco_person_detection_results
(self)
datasets/coco_keypoint_dataset.py:244
↓ 1 callersMethod_load_image_set_index
image id: int
datasets/coco_keypoint_dataset.py:120
↓ 1 callersMethod_make_deconv_layer
(self, num_layers, num_filters, num_kernels)
models/pose_resnet.py:173
↓ 1 callersMethod_make_deconv_layer
Deconv_layer used in Simple Baselines: Xiao et al. Simple Baselines for Human Pose Estimation and Tracking https://github.com
models/pymaf_net.py:214
↓ 1 callersMethod_prepare_output_tracks
Put results into a dictionary consists of detected people :param trackers (ndarray): input tracklets of shape Nx5 [x1,y1,
multi_person_tracker_yolov8.py:55
↓ 1 callersMethod_write_coco_keypoint_results
(self, keypoints, res_file)
datasets/coco_keypoint_dataset.py:365
↓ 1 callersMethod_xywh2cs
(self, x, y, w, h)
datasets/coco_keypoint_dataset.py:212
↓ 1 callersFunctionaffine_transform
(pt, t)
utils/transforms.py:58
↓ 1 callersMethodaugm_params
Get augmentation parameters.
datasets/base_dataset.py:132
↓ 1 callersMethodbarycentric_coordinates
(self, P0, P1, P2, P)
utils/densepose_methods.py:81
↓ 1 callersMethodbarycentric_coordinates_exists
(self, P0, P1, P2, P)
utils/densepose_methods.py:59
↓ 1 callersMethodbody_uv_losses
(self, u_pred, v_pred, index_pred, ann_pred, uvia_list, has_iuv=None)
core/trainer.py:211
↓ 1 callersMethodcamera_matrix
(self, cam)
utils/renderer.py:553
↓ 1 callersFunctioncolormap
(rgb=False)
utils/colormap.py:26
↓ 1 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
utils/pose_utils.py:10
↓ 1 callersFunctionconvert_crop_cam_to_orig_img
Convert predicted camera from cropped image coordinates to original image coordinates :param cam (ndarray, shape=(3,)): weak perspective
utils/demo_utils.py:163
↓ 1 callersFunctionconvert_from_cls_format
Convert from the class boxes/segms/keyps format generated by the testing code.
utils/vis.py:93
↓ 1 callersFunctionconvert_to_full_img_cam
( pare_cam, bbox_height, bbox_center, img_w, img_h, focal_length)
utils/geometry.py:432
↓ 1 callersFunctionestimate_translation_np
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. Input: S: (25, 3) 3D joint locations jo
utils/geometry.py:291
↓ 1 callersMethodevaluate
(self, cfg, preds, output_dir, all_boxes, img_path, ckp_name, *args, **kwargs)
datasets/coco_keypoint_dataset.py:287
↓ 1 callersMethodexists_checkpoint
Check if a checkpoint exists in the current directory.
utils/saver.py:19
↓ 1 callersMethodfit
(self)
core/trainer.py:507
↓ 1 callersFunctionflip_img
Flip rgb images or masks. channels come last, e.g. (256,256,3).
utils/imutils.py:133
↓ 1 callersFunctionflip_pose
Flip pose. The flipping is based on SMPL parameters.
utils/imutils.py:156
↓ 1 callersMethodforward_init
(self, x, init_pose=None, init_shape=None, init_cam=None, n_iter=1, J_regressor=None)
models/pymaf_net.py:105
↓ 1 callersFunctionget_affine_transform
( center, scale, rot, output_size, shift=np.array([0, 0], dtype=np.float32), inv=0 )
utils/transforms.py:23
↓ 1 callersFunctionget_cfg_defaults
Get a yacs CfgNode object with default values for my_project.
core/cfgs.py:58
↓ 1 callersFunctionget_class_string
(class_index, score, dataset)
utils/vis.py:125
↓ 1 callersFunctionget_default_transform
()
datasets/data_utils/img_utils.py:318
next →1–100 of 303, ranked by callers