MCPcopy Create free account

hub / github.com/aigc3d/LHM / functions

Functions3,669 in github.com/aigc3d/LHM

Methodforward_dummy
Used for computing network FLOPs. See ``tools/get_flops.py``. Args: img (torch.Tensor): Input image. Returns:
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/top_down_coco_plus.py:252
Methodforward_grid
(self, planes, grid_size: int, aabb: torch.Tensor = None)
LHM/models/rendering/synthesizer.py:151
Methodforward_local
(self, pose, shape)
engine/pose_estimation/blocks/smpl_layer.py:196
Methodforward_shape
( self, betas: Optional[Tensor] = None, )
LHM/models/rendering/smplx/smplx/body_models.py:320
Methodforward_shape
( self, betas: Optional[Tensor] = None, )
LHM/models/rendering/smplx_gsavatar/body_models.py:298
Methodforward_single_view
( self, gaussian_model: GaussianModel, viewpoint_camera: Camera, background_co
LHM/models/rendering/gsplat_renderer.py:62
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]): L
LHM/models/encoders/dinov2/hub/depth/decode_heads.py:134
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]): L
engine/pose_estimation/dinov2/dinov2/hub/depth/decode_heads.py:134
Methodforward_test
Defines the computation performed at testing.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/base.py:30
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
LHM/models/encoders/dinov2/hub/depth/decode_heads.py:112
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
engine/pose_estimation/dinov2/dinov2/hub/depth/decode_heads.py:112
Methodfreeze_patch_emb
(self)
engine/BiRefNet/models/backbones/pvt_v2.py:449
Methodfrom_smplh
Create a Body object from SMPLH joints.
LHM/models/rendering/smplx/smplx/joint_names.py:292
Functionfrom_torch
(x, dtype=np.float32)
LHM/models/rendering/smplx/transfer_model/utils/torch_utils.py:21
Methodgenerate_meshes
Generates meshes for each person detected in the image. This function processes the output of the detection model, which includes ro
engine/pose_estimation/model.py:338
Functiongenerate_smoothed_gt
(gts)
engine/BiRefNet/utils.py:38
Methodget
(self, key, default=None)
LHM/models/rendering/smplx_gsavatar/utils.py:38
Methodget
(self, name, block=True, timeout=None)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/buffer.py:84
FunctiongetWorld2View2
(R, t, translate=np.array([0.0, 0.0, 0.0]), scale=1.0)
LHM/models/rendering/gs_renderer.py:58
Methodget_3d_joints_from_mesh
Get 3D joints from 3D mesh using predefined joints regressor.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:282
Functionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vit_moe.py:15
Functionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vit.py:15
Methodget_accuracy
Calculate accuracy for top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/vipnas_heatmap_simple_head.py:170
Methodget_accuracy
Calculate accuracy for top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_simple_head.py:170
Methodget_accuracy
Calculate accuracy for top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:150
Methodget_accuracy
Calculate accuracy for top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:488
Methodget_accuracy
Gets the accuracy.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_base_head.py:29
Functionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
engine/pose_estimation/dinov2/dinov2/eval/setup.py:17
Methodget_arm
(self, mesh_neutral_pose, skinning_weight)
LHM/models/rendering/smpl_x.py:493
Methodget_arm
(self, mesh_neutral_pose, skinning_weight)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:463
Methodget_available_models
Get list of currently available models sorted by priority. Returns: list: Names of available models in priority order
LHM/utils/model_query_utils.py:125
Methodget_bare_model
(net)
LHM/models/arcface_utils.py:258
Methodget_body_face_mapping
(self)
LHM/models/rendering/smpl_x.py:318
Methodget_body_infos
(self)
LHM/models/rendering/smpl_x.py:547
Methodget_body_infos
(self)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:887
Methodget_camera_param
Get camera parameters of a frame by its image name.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/body3d/body3d_h36m_dataset.py:339
Methodget_camera_param
Get camera parameters of a frame by its image name.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/body3d/body3d_mpi_inf_3dhp_dataset.py:414
Methodget_checkpoint_file
Returns: str: The latest checkpoint file in target directory.
engine/pose_estimation/dinov2/dinov2/fsdp/__init__.py:126
Methodget_classifier
(self)
engine/BiRefNet/models/backbones/pvt_v2.py:462
Methodget_dense_pe
Returns the positional encoding used to encode point prompts, applied to a dense set of points the shape of the image encoding.
engine/BiRefNet/models/modules/prompt_encoder.py:60
Methodget_info
(self)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/buffer.py:99
Methodget_last_layer
(self)
LHM/models/modeling_human_lrm.py:193
Functionget_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
engine/pose_estimation/dinov2/dinov2/distributed/__init__.py:43
Functionget_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
engine/pose_estimation/dinov2/dinov2/distributed/__init__.py:54
Methodget_loss
(self, pred_cubes, gt)
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/voxelpose_head.py:122
Methodget_loss
(self, preds, targets, weights)
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/voxelpose_head.py:165
Methodget_loss
Calculate bottom-up keypoint loss. Note: - batch_size: N - num_keypoints: K - num_outputs: O
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/ae_higher_resolution_head.py:175
Methodget_loss
Calculate top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height: H
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/vipnas_heatmap_simple_head.py:146
Methodget_loss
Calculate top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height: H
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_simple_head.py:146
Methodget_loss
Calculate top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - num_outputs: O -
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:109
Methodget_loss
Calculate top-down keypoint loss. Note: - batch_size: N - num_keypoints: K - num_outputs: O -
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:446
Methodget_loss
Calculate bottom-up keypoint loss. Note: - batch_size: N - num_keypoints: K - num_outputs: O
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/ae_simple_head.py:55
Methodget_loss
Gets the loss.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_base_head.py:25
Methodget_loss
Calculate bottom-up keypoint loss. Note: - batch_size: N - num_keypoints: K - heatmaps height: H
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/ae_multi_stage_head.py:95
Methodget_lr
(self)
LHM/utils/scheduler.py:31
Methodget_num_faces
(self)
LHM/models/rendering/smplx/smplx/body_models.py:309
Methodget_num_faces
(self)
LHM/models/rendering/smplx_gsavatar/body_models.py:287
Methodget_num_layers
(self)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vit_moe.py:350
Methodget_num_layers
(self)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vit.py:306
Methodget_num_verts
(self)
LHM/models/rendering/smplx_gsavatar/body_models.py:284
Methodget_posed_blendshape
(self, smplx_param)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1070
Functionget_ray_limits_box
Author: Petr Kellnhofer Intersects rays with the [-1, 1] NDC volume. Returns min and max distance of entry. Returns -1 for no interse
LHM/models/rendering/utils/math_utils.py:46
Functionget_sha
()
engine/pose_estimation/dinov2/dinov2/utils/utils.py:46
Methodget_smpl
(self)
engine/pose_estimation/model.py:335
Methodget_subdivider
(self, subdivide_num)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:365
Methodget_teacher_output
()
engine/pose_estimation/dinov2/dinov2/train/ssl_meta_arch.py:158
Methodget_value
(self, step)
LHM/models/utils.py:37
Methodglobal_avg
(self)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:176
Methodgrid_priors
Generate grid points of multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
engine/pose_estimation/dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:50
Methodhas_checkpoint
Returns: bool: whether a checkpoint exists in the target directory.
engine/pose_estimation/dinov2/dinov2/fsdp/__init__.py:118
Methodhook
(model, input, output)
engine/pose_estimation/third-party/ViTPose/mmpose/utils/hooks.py:17
Methodhook
Hook function.
engine/pose_estimation/third-party/ViTPose/mmpose/core/utils/regularizations.py:21
Methodhook
(self, module, _input)
engine/pose_estimation/third-party/ViTPose/mmpose/core/utils/regularizations.py:77
Methodhook_type
Hook type Subclasses should overwrite this function to return a string value in. {`forward`, `forward_pre`, `backward`}
engine/pose_estimation/third-party/ViTPose/mmpose/core/utils/regularizations.py:25
Methodhook_type
(self)
engine/pose_estimation/third-party/ViTPose/mmpose/core/utils/regularizations.py:74
Methodhook_wrapper
(name)
engine/pose_estimation/third-party/ViTPose/mmpose/utils/hooks.py:15
Methodhyper_step
(self, step)
LHM/models/rendering/gs_renderer.py:841
Functionimage_pad
(img, img_size, device=torch.device('cuda'))
engine/pose_estimation/pose_utils/image.py:94
Functionimage_pad_cuda
(img, img_size, rot=0, device=torch.device('cuda'), vis=False)
engine/pose_estimation/pose_utils/image.py:108
Methodimage_to_tensor
(head_image_numpy)
LHM/models/modeling_human_lrm.py:584
Functionimages_to_video
(images, output_path, fps, gradio_codec: bool, verbose=False)
LHM/utils/video.py:21
Functionimg_center_padding
(img_np, pad_ratio=0.2)
tools/metrics/compute_metric_ssim_lipis_anigs.py:38
Methodinfer
(self)
LHM/runners/infer/human_lrm.py:815
Methodinfer
(self)
LHM/runners/infer/human_lrm.py:1048
Methodinfer_image
(self, raw_image, input_size=518)
LHM/models/encoders/dinov2_dpt.py:249
Methodinfer_single
(self, *args, **kwargs)
LHM/runners/infer/base_inferrer.py:54
Methodinfer_single_view
( self, image, head_image, source_c2ws, source_intrs, render_c
LHM/models/modeling_human_lrm.py:748
Methodinfer_video
( self, planes: torch.Tensor, frame_size: int, render_size: int, rende
LHM/runners/infer/human_lrm.py:446
Methodinference
(self, data, *args, **kwargs)
engine/pose_estimation/third-party/ViTPose/tools/deployment/mmpose_handler.py:48
Methodinference_model
Inference function. Returns: output_heatmap (np.ndarray): Output heatmaps. Args: x (torch.Tensor[N,K,H,W]):
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/vipnas_heatmap_simple_head.py:204
Methodinference_model
Inference function. Returns: output_heatmap (np.ndarray): Output heatmaps. Args: x (torch.Tensor[N,K,H,W]):
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_simple_head.py:204
Methodinference_model
Inference function. Returns: output_heatmap (np.ndarray): Output heatmaps. Args: x (List[torch.Tensor[NxKxHx
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:191
Methodinference_model
Inference function. Returns: output_heatmap (np.ndarray): Output heatmaps. Args: x (list[torch.Tensor[N,K,H,
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:538
Methodinference_model
Inference function.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_base_head.py:37
Methodinfo
Returns a dictionary of info about the object.
engine/pose_estimation/dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_sampling_result.py:53
Functioninit_preprocessor
()
app_motion.py:352
Functioninit_preprocessor
()
app_motion_ms.py:371
Functioninit_preprocessor
()
app.py:343
Methodinit_weights
(self)
engine/pose_estimation/third-party/ViTPose/mmpose/models/necks/posewarper_neck.py:212
Methodinit_weights
(self)
engine/pose_estimation/third-party/ViTPose/mmpose/models/necks/gap_neck.py:21
← previousnext →3,101–3,200 of 3,669, ranked by callers