MCPcopy Create free account

hub / github.com/aigc3d/LHM / functions

Functions3,669 in github.com/aigc3d/LHM

↓ 5 callersMethodforward_dummy
Used for computing network FLOPs. See ``tools/get_flops.py``. Args: img (torch.Tensor[N,C,imgH,imgW], or list|tuple of t
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/posewarper.py:211
↓ 5 callersMethodforward_dummy
Used for computing network FLOPs.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/multiview_pose.py:681
↓ 5 callersFunctionget_eye_keypoint_ids
A helpfer function to get the keypoint indices of left and right eyes from the model config. Args: model_cfg (Config): pose model con
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/pose.py:9
↓ 5 callersMethodget_single_view_smpl_data
(self, smpl_data, vidx)
LHM/models/rendering/gs_renderer.py:1303
↓ 5 callersFunctionget_warp_matrix
Calculate the transformation matrix under the constraint of unbiased. Paper ref: Huang et al. The Devil is in the Details: Delving into Unbiased
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:312
↓ 5 callersFunctionimages_to_video
(images, output_path, fps, gradio_codec: bool, verbose=False, bitrate="10M")
LHM/utils/ffmpeg_utils.py:41
↓ 5 callersFunctioninverse_perspective_projection
This function computes the inverse perspective projection of a set of points given an estimated distance. Input: points (bs, N, 2): 2
engine/pose_estimation/pose_utils/camera.py:28
↓ 5 callersFunctionkeypoint_3d_auc
Calculate the Area Under the Curve (3DAUC) computed for a range of 3DPCK thresholds. Paper ref: `Monocular 3D Human Pose Estimation In The Wi
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/pose3d_eval.py:114
↓ 5 callersFunctionkeypoint_mpjpe
Calculate the mean per-joint position error (MPJPE) and the error after rigid alignment with the ground truth (P-MPJPE). Note: - batc
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/pose3d_eval.py:7
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:115
↓ 5 callersFunctionmultilabel_classification_accuracy
Get multi-label classification accuracy. Note: - batch size: N - label number: L Args: pred (np.ndarray[N, L, 2]): m
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:658
↓ 5 callersFunctionoks_iou
Calculate oks ious. Args: g: Ground truth keypoints. d: Detected keypoints. a_g: Area of the ground truth object.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:51
↓ 5 callersMethodparse
Group keypoints into poses given heatmap and tag. Note: batch size: N number of keypoints: K heatmap heig
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/group.py:360
↓ 5 callersFunctionpose_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from heatmaps. Note: P
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:136
↓ 5 callersFunctionprepare_motion_seqs
Prepare motion sequences for rendering. Args: motion_seqs_dir (str): Directory path of motion sequences. image_folder (str):
LHM/runners/infer/utils.py:385
↓ 5 callersMethodquery
Query model path with prioritized local checks: 1. Check local ModelScope cache. 2. Check local Hugging Face cache. 3
LHM/utils/model_download_utils.py:175
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
LHM/models/encoders/dinov2/hub/depth/ops.py:11
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
engine/pose_estimation/dinov2/dinov2/hub/depth/ops.py:11
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
engine/pose_estimation/third-party/ViTPose/mmpose/models/utils/ops.py:8
↓ 5 callersFunctionrotation_6d_to_axis_angle
(d6: torch.Tensor)
engine/pose_estimation/pose_utils/rot6d.py:424
↓ 5 callersMethodscale
(self, scale, width, height)
engine/SegmentAPI/base.py:115
↓ 5 callersFunctionscale_intrs
(intrs, ratio_x, ratio_y)
LHM/runners/infer/utils.py:34
↓ 5 callersMethodsetdefault
(self, *args, **kwargs)
LHM/outputs/base.py:69
↓ 5 callersMethodsetdefault
(self, *args, **kwargs)
engine/ouputs.py:69
↓ 5 callersFunctionsetup_logging
Setup logging. Args: output: A file name or a directory to save log files. If None, log files will not be saved. If outp
engine/pose_estimation/dinov2/dinov2/logging/__init__.py:82
↓ 5 callersMethodupdate
(self, *args, **kwargs)
engine/ouputs.py:79
↓ 5 callersMethodupdate
(self, val, n=1)
engine/pose_estimation/pose_utils/training.py:214
↓ 4 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None, use_se=True)
LHM/models/arcface_utils.py:87
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:486
↓ 4 callersMethod__init__
(self, fc_layers, use_dropout, drop_prob, use_activation)
engine/pose_estimation/third-party/ViTPose/mmpose/models/misc/discriminator.py:29
↓ 4 callersFunction_block_cls
(**kwargs)
LHM/models/encoders/dinov2/models/vision_transformer.py:376
↓ 4 callersFunction_box2cs
This encodes bbox(x,y,w,h) into (center, scale) Args: x, y, w, h Returns: tuple: A tuple containing center and scale.
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:86
↓ 4 callersMethod_cal_distance
calculate the distance of points p1 and p2.
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/nodes/valentinemagic_node.py:68
↓ 4 callersFunction_chunked_feed_forward
( ff: nn.Module, hidden_states: torch.Tensor, chunk_dim: int, chunk_size: int )
LHM/models/transformer_dit.py:170
↓ 4 callersMethod_get_deconv_cfg
Get configurations for deconv layers.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/deconv_head.py:232
↓ 4 callersFunction_get_joints
(anno, ann_info, int_sigma)
engine/pose_estimation/third-party/ViTPose/tests/test_pipelines/test_bottom_up_pipelines.py:40
↓ 4 callersMethod_get_scale
(self, image_size, resized_size)
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/pipelines/bottom_up_transform.py:427
↓ 4 callersFunction_make_dinov2_dpt_depther
( *, arch_name: str = "vit_large", pretrained: bool = True, weights: Union[Weights, str] = Wei
LHM/models/encoders/dinov2/hub/depthers.py:180
↓ 4 callersFunction_make_dinov2_dpt_depther
( *, arch_name: str = "vit_large", pretrained: bool = True, weights: Union[Weights, str] = Wei
engine/pose_estimation/dinov2/dinov2/hub/depthers.py:180
↓ 4 callersFunction_make_dinov2_linear_depther
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
LHM/models/encoders/dinov2/hub/depthers.py:70
↓ 4 callersFunction_make_dinov2_linear_depther
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
engine/pose_estimation/dinov2/dinov2/hub/depthers.py:70
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None, use_conv1=True)
LHM/models/encoders/dinov2_dpt.py:13
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride=1)
LHM/models/arcface_utils.py:277
↓ 4 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/base.py:38
↓ 4 callersMethod_sort_and_unique_bboxes
sort kpts and remove the repeated ones.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/top_down/topdown_mpii_dataset.py:267
↓ 4 callersFunction_xyxy2xywh
Transform the bbox format from x1y1x2y2 to xywh. Args: bbox_xyxy (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:51
↓ 4 callersFunctionaggregate_scale
Aggregate multi-scale outputs. Note: batch size: N keypoints num : K heatmap width: W heatmap height: H Args
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:254
↓ 4 callersFunctionall_zeros
Check if the weight(and bias) is all zero.
engine/pose_estimation/third-party/ViTPose/tests/test_backbones/test_resnet.py:20
↓ 4 callersMethodanimation_infer
Inference code avoid repeat forward.
LHM/models/modeling_human_lrm.py:789
↓ 4 callersFunctionavaliable_device
()
engine/SegmentAPI/SAM.py:37
↓ 4 callersFunctionbuild_optimizer
Creates the optimizer
LHM/models/rendering/smplx/transfer_model/optimizers/optim_factory.py:29
↓ 4 callersFunctioncheck_state_dict
(state_dict, unwanted_prefixes=['_orig_mod.', 'module.'])
engine/BiRefNet/utils.py:29
↓ 4 callersMethodclose
(self)
engine/BiRefNet/utils.py:59
↓ 4 callersFunctioncompose_extrinsic_RT
Compose the standard form extrinsic matrix from RT. Batched I/O.
LHM/datasets/cam_utils.py:36
↓ 4 callersFunctionconv3x3
A simple wrapper for 3x3 convolution with padding. Args: inplanes (int): Channel number of inputs. outplanes (int): Channel numbe
LHM/models/arcface_utils.py:20
↓ 4 callersMethoddetect_face
(self, image_tensor)
LHM/utils/face_detector.py:107
↓ 4 callersFunctiondownload_from_url
(url, save_path)
LHM/utils/download_utils.py:71
↓ 4 callersMethodextra_repr
(self)
LHM/models/rendering/smplx/smplx/body_models.py:312
↓ 4 callersMethodextra_repr
(self)
LHM/models/rendering/smplx_gsavatar/body_models.py:290
↓ 4 callersFunctionextract_features
(model, dataset, batch_size, num_workers, gather_on_cpu=False)
engine/pose_estimation/dinov2/dinov2/eval/utils.py:98
↓ 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 a
LHM/models/rendering/smplx/smplx/lbs.py:29
↓ 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
LHM/models/rendering/smplx_gsavatar/lbs.py:30
↓ 4 callersFunctionfliplr_joints
Flip human joints horizontally. Note: - num_keypoints: K Args: joints_3d (np.ndarray([K, 3])): Coordinates of keypoints.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:13
↓ 4 callersMethodforward_dummy
(self, x)
engine/pose_estimation/third-party/ViTPose/tests/test_onnx.py:20
↓ 4 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
engine/pose_estimation/dinov2/dinov2/run/submit.py:24
↓ 4 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
LHM/models/encoders/dinov2/models/vision_transformer.py:331
↓ 4 callersFunctioninference_interhand_3d_model
Inference a single image with a list of hand bounding boxes. Note: - num_bboxes: N - num_keypoints: K Args: model (n
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:469
↓ 4 callersMethodinit_weights
Weight initialization for model.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/top_down.py:82
↓ 4 callersMethodinit_weights
Initialize model weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/interhand_3d_head.py:176
↓ 4 callersMethodisOpened
(self)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/misc.py:326
↓ 4 callersFunctionis_enabled
Returns: True if distributed training is enabled
engine/pose_estimation/dinov2/dinov2/distributed/__init__.py:19
↓ 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
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:47
↓ 4 callersMethodlog_every
(self, iterable, print_freq, header=None, n_iterations=None, start_iteration=0)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:66
↓ 4 callersFunctionminimize
Helper function for running an optimization process Args: - optimizer: The PyTorch optimizer object - closure: The fu
LHM/models/rendering/smplx/transfer_model/optimizers/minimize.py:26
↓ 4 callersMethodnms
Non-Maximum Suppression for heatmaps. Args: heatmap(torch.Tensor): Heatmaps before nms. Returns: torch.Tenso
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/group.py:155
↓ 4 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
engine/pose_estimation/third-party/ViTPose/setup.py:31
↓ 4 callersFunctionpath_to_image
(path, size=(1024, 1024), color_type=['rgb', 'gray'][0])
engine/BiRefNet/utils.py:11
↓ 4 callersFunctionperspective_projection
This function computes the perspective projection of a set of points assuming the extrinsinc params have already been applied Args: -
engine/pose_estimation/pose_utils/camera.py:12
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
LHM/models/encoders/dinov2/models/vision_transformer.py:236
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
engine/pose_estimation/dinov2/dinov2/models/vision_transformer.py:213
↓ 4 callersFunctionrankstr
()
engine/pose_estimation/dinov2/dinov2/fsdp/__init__.py:81
↓ 4 callersMethodregister
(self, module)
engine/pose_estimation/third-party/ViTPose/mmpose/utils/hooks.py:13
↓ 4 callersMethodrelease
(self)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/misc.py:332
↓ 4 callersFunctionrender_mesh
(mesh, face, cam_param, bkg, blend_ratio=1.0, return_bg_mask=False)
LHM/models/rendering/smplx/vis_utils.py:73
↓ 4 callersMethodrender_mesh
(self, vertices, background, colors=[0.8, 0.8, 0.8])
engine/pose_estimation/pose_utils/render.py:219
↓ 4 callersMethodresize
(self, img)
tools/metrics/compute_metric_ssim_lipis_anigs.py:110
↓ 4 callersFunctionrotation_6d_to_matrix
Converts 6D rotation representation by Zhou et al. [1] to rotation matrix using Gram--Schmidt orthogonalisation per Section B of [1]. Arg
engine/pose_estimation/pose_utils/rot6d.py:378
↓ 4 callersMethodscale
scale bbox with scale factor
LHM/utils/bbox.py:100
↓ 4 callersFunctionsetup
Create configs and perform basic setups.
engine/pose_estimation/dinov2/dinov2/utils/config.py:63
↓ 4 callersMethodshow_result
Visualize the results.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/base.py:129
↓ 4 callersMethodsmpl_forward
Apply a specific SMPL model with given model parameters. Note: B: batch size V: number of vertices K: num
engine/pose_estimation/third-party/ViTPose/mmpose/models/utils/smpl.py:63
↓ 4 callersMethodssim
(self, pred: np.ndarray, gt: np.ndarray)
engine/BiRefNet/evaluation/metrics.py:321
↓ 4 callersFunctionsubmit_jobs
(task_class, args, name: str)
engine/pose_estimation/dinov2/dinov2/run/submit.py:92
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32 The t
LHM/models/rendering/smplx/smplx/lbs.py:105
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32
LHM/models/rendering/smplx_gsavatar/lbs.py:108
↓ 4 callersFunctionvis_3d_pose_result
Visualize the 3D pose estimation results. Args: model (nn.Module): The loaded model. result (list[dict])
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:359
↓ 4 callersFunctionwarp_affine_joints
Apply affine transformation defined by the transform matrix on the joints. Args: joints (np.ndarray[..., 2]): Origin coordinate of jo
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:343
↓ 3 callersMethod__init__
( self, dim: int, num_heads: int, # num_attention_heads: int, # attent
LHM/models/transformer_dit.py:64
↓ 3 callersMethod__init__
(self, depth, groups=1, width_per_group=4,
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnest.py:315
↓ 3 callersMethod__init__
Project layer to get voxel feature. Adapted from https://github.com/microsoft/voxelpose- pytorch/blob/main/lib/models/project_layer.py
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/multiview_pose.py:17
← previousnext →201–300 of 3,669, ranked by callers