MCPcopy Create free account

hub / github.com/bharat-b7/RVH_Mesh_Registration / functions

Functions181 in github.com/bharat-b7/RVH_Mesh_Registration

↓ 6 callersMethodbackward_step
(loss_dict, weight_dict, it)
smpl_registration/base_fitter.py:190
↓ 6 callersFunctionbatch_sparse_dense_matmul
Batch sparse-dense matrix multiplication :param torch.SparseTensor S: a sparse tensor of size (batch_size, p, q) :param torch.Tensor D:
lib/torch_functions.py:39
↓ 6 callersFunctionget_prior
(model_root, gender='male', precomputed=True)
lib/smpl/priors/th_smpl_prior.py:13
↓ 5 callersFunctioncreate_prior_from_samples
(samples)
utils/build_prior.py:14
↓ 5 callersMethodget_landmarks
Computes body25 joints for SMPL along with hand and facial landmarks
lib/smpl/wrapper_pytorch.py:71
↓ 5 callersFunctionload_config
(config_path)
utils/configs.py:5
↓ 5 callersFunctionposemap
(s)
lib/smpl/smplpytorch/smplpytorch/native/webuser/posemapper.py:42
↓ 4 callersFunctionfilter_background_detections
(detections)
utils/keypoints_3d_estimation/predict_2d_pose.py:43
↓ 4 callersFunctionfilter_background_detections
(detections)
utils/keypoints_3d_estimation/02_predict_2d_pose.py:39
↓ 4 callersFunctionfunc
Function to normalize the scans for IPNet. Ensure that the registration and body are normalized in the same way as scan.
utils/preprocess_scan.py:22
↓ 4 callersMethodgenerate_mesh
Convert voxelized continous occupancy to mesh
smpl_registration/models/generator.py:52
↓ 4 callersMethodinit_smpl
initialize a smpl batch model Args: batch_sz: gender: flip: rotate smpl around z-axis by 180 degr
smpl_registration/base_fitter.py:72
↓ 4 callersMethodnormalize
(self, vertices, max, min)
smpl_registration/models/generator.py:63
↓ 4 callersFunctionprepare_keypoints
(data_2d, keypoints_num, keypoints_key, device)
utils/keypoints_3d_estimation/io.py:73
↓ 4 callersFunctionprepare_keypoints
(data_2d, keypoints_num, keypoints_key, device)
utils/keypoints_3d_estimation/03_lift_keypoints.py:46
↓ 4 callersMethodsave_outputs
(self, save_path, scan_paths, smpl, th_scan_meshes, save_name='smpl')
smpl_registration/base_fitter.py:154
↓ 3 callersFunctionbatch_3djoints_loss
mse loss between lifted 3d keyjoints in pc and SMPL body joints, weighted pc_bodyjoints: (B, N, 4), the forth column is prediction score
lib/body_objectives.py:194
↓ 3 callersFunctionchamfer_distance
:param s1: B x N x 3 :param s2: B x M x 3 :param w1: weight for distance from s1 to s2 :param w2: weight for distance from s2 to s1
lib/torch_functions.py:66
↓ 3 callersMethodcompose_smpl_joints
(self, J, face, hands, th_pose_3d)
smpl_registration/fit_SMPLH.py:110
↓ 3 callersMethodcopy_smpl_params
(self, smpl, split_smpl)
smpl_registration/fit_SMPLH.py:164
↓ 3 callersMethodfit
(self, scans, pose_files, gender='male', save_path=None)
smpl_registration/fit_SMPLH.py:27
↓ 3 callersMethodfrom_smpl
construct a split smpl from a smpl module Args: smpl: Returns:
lib/smpl/wrapper_pytorch.py:194
↓ 3 callersMethodgenerate_grid_torch
(self)
smpl_registration/models/generator.py:45
↓ 3 callersMethodquery
(self, points)
lib/libmesh/inside_mesh.py:32
↓ 3 callersMethodviz_fitting
(self, smpl, th_scan_meshes, ind=0, smpl_vc=np.array([0, 1, 0]), **kwargs)
smpl_registration/base_fitter.py:240
↓ 2 callersMethod__init__
(self, hidden_dim=256, num_parts=24, tex=False)
smpl_registration/models/ipnet_models.py:19
↓ 2 callersMethod__init__
(self, model_root, betas=None, pose=None, trans=None, offsets=None, gender='male', num_betas=300)
lib/smpl/wrapper_pytorch.py:219
↓ 2 callersFunctionbatch_chamfer
simple implementation to batchify pc with different number of points verts: (B, N, 3) tensor, where len(pc_list) == B pc_list: a list of
lib/torch_functions.py:82
↓ 2 callersFunctioncheck_mesh_contains
(mesh, points, hash_resolution=512)
lib/libmesh/inside_mesh.py:6
↓ 2 callersMethodcreate_prior_from_samples
(self, samples)
lib/smpl/priors/th_smpl_prior.py:62
↓ 2 callersMethodforward_step
Performs a forward step, given smpl and scan meshes. Then computes the losses.
smpl_registration/fit_SMPLH_IPNet.py:212
↓ 2 callersMethodgenerate_parts
Predict part labels
smpl_registration/models/generator.py:111
↓ 2 callersMethodget_loss_weights
(self, phase=None)
smpl_registration/fit_SMPLH_pcloud.py:55
↓ 2 callersMethodget_loss_weights
Set loss weights
smpl_registration/fit_SMPLH.py:191
↓ 2 callersMethodget_loss_weights
Set loss weights
smpl_registration/fit_SMPLH_IPNet.py:251
↓ 2 callersMethodget_mesh_paths
(self, save_name, save_path, scan_paths)
smpl_registration/base_fitter.py:169
↓ 2 callersFunctionischumpy
(x)
lib/smpl/smplpytorch/smplpytorch/native/webuser/verts.py:28
↓ 2 callersFunctionload_grab_prior
(root_path)
lib/smpl/priors/th_hand_prior.py:21
↓ 2 callersMethodload_j3d
load 3d body keypoints Args: pose_files: json files containing the body keypoints location Returns: a list of bo
smpl_registration/base_fitter.py:205
↓ 2 callersMethodload_scans
(scans, device='cuda:0', ret_cent=False)
smpl_registration/base_fitter.py:223
↓ 2 callersFunctionmesh_laplacian_smoothing
r""" Computes the laplacian smoothing objective for a batch of meshes. This function supports three variants of Laplacian smoothing, namel
lib/mesh_laplacian.py:11
↓ 2 callersMethodmeshes2torch
convert a list of psbody meshes to pytorch3d mesh
smpl_registration/fit_SMPLH_IPNet.py:265
↓ 2 callersMethodoptimize_offsets
(self, th_scan_meshes, smpl, iterations, steps_per_iter)
smpl_registration/fit_SMPLHD.py:71
↓ 2 callersFunctionready_arguments
(fname_or_dict)
lib/smpl/smplpytorch/smplpytorch/native/webuser/serialization.py:52
↓ 2 callersMethodreplace_infs
(x)
smpl_registration/models/generator.py:123
↓ 2 callersMethodrescale
(self, array)
lib/libmesh/inside_mesh.py:111
↓ 2 callersMethodsave_meshes
(meshes, save_paths)
smpl_registration/base_fitter.py:200
↓ 2 callersMethodsave_smpl_params
(self, names, save_path, smpl, save_name)
smpl_registration/base_fitter.py:180
↓ 2 callersMethodsmpl2meshes
convert smpl batch to pytorch3d meshes
smpl_registration/base_fitter.py:163
↓ 2 callersFunctionth_with_zeros
(tensor)
lib/smpl/smplpytorch/smplpytorch/pytorch/tensutils.py:22
↓ 2 callersFunctiontorch_pose_obj_data
Keypoint operators on SMPL verts.
lib/body_objectives.py:14
↓ 2 callersMethodviz_fitting
(self, smpl, th_scan_meshes, ind=0, smpl_vc=np.array([0, 1, 0]), **kwargs)
smpl_registration/fit_SMPLH_IPNet.py:201
↓ 2 callersFunctionvoxelize
(pc, res, bounds=(-1., 1.), save_path=None)
utils/voxelized_pointcloud_sampling.py:16
↓ 1 callersFunctionbackwards_compatibility_replacements
(dd)
lib/serialization.py:26
↓ 1 callersFunctionbackwards_compatibility_replacements
(dd)
lib/smpl/smplpytorch/smplpytorch/native/webuser/serialization.py:29
↓ 1 callersFunctionbatch_reprojection_loss_vcam
Reprojection loss between 2D joints and SMPL joints projected using virtual Pytorch3D perspective cameras. Parameters: img_body
lib/body_objectives.py:101
↓ 1 callersFunctionbuild_grab_prior
build hand prior from given grab dataset Args: data_path: path to the grab dataset, e.g. ../grab_unzip/data out_path: path to
utils/build_prior.py:75
↓ 1 callersMethodcheck_triangles
(self, points, triangles)
lib/libmesh/inside_mesh.py:132
↓ 1 callersMethodcompute_intersection_depth
(self, points, triangles)
lib/libmesh/inside_mesh.py:78
↓ 1 callersFunctioncompute_j3d_confidence
compute the confidence of lifted 3d joints Args: j2d: (1, num_joints, 3*cam_views), numpy array Returns: (1, num_joints), mean o
utils/keypoints_3d_estimation/03_lift_keypoints.py:86
↓ 1 callersFunctioncreate_grid_points
(mesh, res)
lib/libmesh/implicit_waterproofing.py:67
↓ 1 callersFunctioncreate_grid_points_from_bounds
(minimun, maximum, res)
lib/libmesh/implicit_waterproofing.py:81
↓ 1 callersFunctioncreate_renderer
(input_type: str, n_views: int = 10, image_size: int = 512, elevation: float = 5.0, up=((0
utils/keypoints_3d_estimation/01_render_multiview.py:34
↓ 1 callersFunctiondisplay_model
Displays mesh batch_idx in batch of model_info, model_info as returned by generate_random_model
lib/smpl/smplpytorch/display_utils.py:7
↓ 1 callersFunctiondraw_skeleton
(joints3D, kintree_table, ax=None, with_numbers=True)
lib/smpl/smplpytorch/display_utils.py:52
↓ 1 callersMethodfit
(self, pc_files, j3d_files, pose_init=None, gender='male', save_path=None)
smpl_registration/fit_SMPLH_pcloud.py:26
↓ 1 callersMethodfit
(self, scans, pose_files, smpl_pkl, gender='male', save_path=None)
smpl_registration/fit_SMPLHD.py:22
↓ 1 callersMethodfit
(self, scans, pose_files, smpl_pkl, gender='male', save_path=None)
smpl_registration/fit_SMPLH_IPNet.py:65
↓ 1 callersMethodforward
(self)
lib/smpl/wrapper_pytorch.py:173
↓ 1 callersMethodforward
(self)
lib/smpl/wrapper_pytorch.py:242
↓ 1 callersMethodforward_pose_shape
(self, points_list, smpl, joints_3d=None, phase=None)
smpl_registration/fit_SMPLH_pcloud.py:132
↓ 1 callersMethodforward_pose_shape
(self, th_scan_meshes, smpl, th_pose_3d=None)
smpl_registration/fit_SMPLH.py:84
↓ 1 callersMethodforward_step_offset
Performs a forward step, given smpl and scan meshes. Then computes the losses.
smpl_registration/fit_SMPLHD.py:49
↓ 1 callersMethodforward_step_pose_only
Performs a forward step, given smpl and scan meshes. Then computes the losses. currently no prior weight implemented for smpl
smpl_registration/fit_SMPLH.py:170
↓ 1 callersMethodgenerate_grid
Create a uniform grid for testing
smpl_registration/models/generator.py:33
↓ 1 callersMethodgenerate_meshs_all_parts
Marching cubes requies binary logits whereas IPNet produces a multi-label output. We need to convert categorical labels to binary.
smpl_registration/models/generator.py:128
↓ 1 callersFunctionget_center
(input_data: Union[Meshes, Pointclouds])
utils/keypoints_3d_estimation/01_render_multiview.py:102
↓ 1 callersFunctionget_closest_face
NOT WORKING :param points: List of points :param mesh: pytorch3d meshes :return:
lib/torch_functions.py:122
↓ 1 callersMethodget_last_checkpoint
(self)
smpl_registration/models/generator.py:88
↓ 1 callersMethodget_loss_weights
Set loss weights
smpl_registration/fit_SMPLHD.py:106
↓ 1 callersFunctionglobal_rigid_transformation
(pose, J, kintree_table, xp)
lib/smpl/smplpytorch/smplpytorch/native/webuser/lbs.py:23
↓ 1 callersFunctiongrab_prior
(root_path)
lib/smpl/priors/th_hand_prior.py:11
↓ 1 callersFunctionimplicit_waterproofing
(mesh_source, query_points)
lib/libmesh/implicit_waterproofing.py:42
↓ 1 callersFunctioninitialize_keypoints_3d
(centers, num, smpl_models_path, device="cpu")
utils/keypoints_3d_estimation/03_lift_keypoints.py:26
↓ 1 callersFunctionlaplacian_cot
Returns the Laplacian matrix with cotangent weights and the inverse of the face areas. Args: meshes: Meshes object with a batch
lib/mesh_laplacian.py:141
↓ 1 callersMethodload_checkpoint
(self, checkpoint)
smpl_registration/models/generator.py:98
↓ 1 callersFunctionload_data
(input_path: Path, device: torch.device = "cpu", texture_path: Path = None)
utils/keypoints_3d_estimation/io.py:24
↓ 1 callersFunctionload_keypoints_2d
(keypoints_2d_file, device="cpu", tol=0.3)
utils/keypoints_3d_estimation/03_lift_keypoints.py:45
↓ 1 callersMethodload_mocap_data
load smpl pose detected by FrankMocap Args: pose_files: a list of json file containing the pose and betas detected by Fra
smpl_registration/fit_SMPLH_pcloud.py:203
↓ 1 callersMethodload_regressors
(model_root, batch_size=1)
lib/smpl/joint_regressor.py:16
↓ 1 callersMethodload_scans
load pclouds, no face information
smpl_registration/fit_SMPLH_pcloud.py:191
↓ 1 callersMethodload_smpl_params
load smpl params from file Args: pkl_files: Returns:
smpl_registration/base_fitter.py:118
↓ 1 callersMethodload_smpl_parts
(batch_size, device='cuda:0')
smpl_registration/fit_SMPLH_IPNet.py:277
↓ 1 callersFunctionmain
(args)
utils/keypoints_3d_estimation/01_render_multiview.py:114
↓ 1 callersFunctionmain
(args)
utils/keypoints_3d_estimation/predict_2d_pose.py:53
↓ 1 callersFunctionmain
(args)
utils/keypoints_3d_estimation/03_lift_keypoints.py:105
↓ 1 callersFunctionmain
(args)
utils/keypoints_3d_estimation/02_predict_2d_pose.py:49
↓ 1 callersFunctionmain
(args)
smpl_registration/fit_SMPLH_pcloud.py:230
↓ 1 callersFunctionmain
(args)
smpl_registration/fit_SMPLH.py:205
↓ 1 callersFunctionmain
(args)
smpl_registration/fit_SMPLHD.py:120
next →1–100 of 181, ranked by callers