MCPcopy Create free account

hub / github.com/aigc3d/LHM / functions

Functions3,669 in github.com/aigc3d/LHM

↓ 2 callersMethodinit_weights
Initialize model weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/hmr_head.py:90
↓ 2 callersMethodinitialize_tracking
(self, )
engine/pose_estimation/blocks/detector.py:48
↓ 2 callersFunctioninverse_sigmoid
(x)
LHM/models/rendering/gs_renderer.py:40
↓ 2 callersMethodis_empty
(self, name)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/buffer.py:88
↓ 2 callersFunctionis_norm
Check if is one of the norms.
engine/pose_estimation/third-party/ViTPose/tests/test_backbones/test_mobilenet_v2.py:18
↓ 2 callersFunctionkeypoint_auc
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints for coordinates. Note:
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:218
↓ 2 callersFunctionkeypoints_from_heatmaps3d
Get final keypoint predictions from 3d heatmaps and transform them back to the image. Note: - batch size: N - num keypoints:
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:625
↓ 2 callersFunctionlimit_max_fps
(fps: Optional[float])
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/misc.py:17
↓ 2 callersFunctionlinear
Create a linear module.
LHM/models/utils.py:4
↓ 2 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:312
↓ 2 callersFunctionload_config
(config_name: str)
engine/pose_estimation/dinov2/dinov2/configs/__init__.py:11
↓ 2 callersFunctionload_model
(checkpoint, use_torchscript=False)
LHM/models/encoders/sapiens_warpper.py:121
↓ 2 callersFunctionload_model
Open a checkpoint, build Multi-HMR using saved arguments, load the model weigths.
engine/pose_estimation/model.py:44
↓ 2 callersMethodload_obj
load an ``obj`` mesh. Args: path (str): path to mesh. albedo_path (str, optional): path to the albedo texture image,
LHM/models/rendering/mesh_utils.py:275
↓ 2 callersMethodload_trimesh
load a mesh using ``trimesh.load()``. Can load various formats like ``glb`` and serves as a fallback. Note: We will try
LHM/models/rendering/mesh_utils.py:453
↓ 2 callersFunctionmake_2tuple
(x)
LHM/models/encoders/dinov2/layers/patch_embed.py:16
↓ 2 callersFunctionmake_2tuple
(x)
engine/pose_estimation/dinov2/dinov2/layers/patch_embed.py:16
↓ 2 callersMethodmake_activation
(self, activation)
LHM/models/rendering/utils/utils.py:86
↓ 2 callersFunctionmake_eval_data_loader
(test_dataset_str, batch_size, num_workers, metric_type)
engine/pose_estimation/dinov2/dinov2/eval/linear.py:411
↓ 2 callersMethodmake_res_layer
Make a ResLayer.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:564
↓ 2 callersMethodmapper
Dictionary mapper. Renames keys according to keymap provided. Args: d (dict): old dict keymap (dict): {'old_
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/pipelines/shared_transform.py:271
↓ 2 callersMethodmask_to_boundary
(self, mask)
engine/BiRefNet/evaluation/metrics.py:749
↓ 2 callersFunctionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
engine/pose_estimation/pose_utils/rot6d.py:109
↓ 2 callersFunctionmkdir_or_exist
(dir_name, mode=0o777)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/misc.py:67
↓ 2 callersFunctionmodel_forward
()
LHM/models/rendering/smplx/transfer_model/transfer_model.py:71
↓ 2 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:92
↓ 2 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:227
↓ 2 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:97
↓ 2 callersFunctionnormalize_rgb_tensor
(img, imgenet_normalization=True)
engine/pose_estimation/pose_utils/image.py:46
↓ 2 callersMethodnumel_excluding_first_dim
(self, x)
LHM/losses/tvloss.py:30
↓ 2 callersMethodobtain_facesr
(self, head_image)
LHM/models/modeling_human_lrm.py:574
↓ 2 callersMethodon_exit
This method will be invoked on event `_exit_`. Subclasses should override this method to specifying the exiting behavior.
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/nodes/node.py:293
↓ 2 callersFunctionparse_require_file
(fpath)
engine/pose_estimation/third-party/ViTPose/setup.py:83
↓ 2 callersFunctionpost_dark_udp
DARK post-pocessing. Implemented by udp. Paper ref: Huang et al. The Devil is in the Details: Delving into Unbiased Data Processing for Human
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:335
↓ 2 callersMethodpost_process
(self)
LHM/models/ESRGANer_utils.py:233
↓ 2 callersMethodpre_process
Pre-process, such as pre-pad and mod pad, so that the images can be divisible
LHM/models/ESRGANer_utils.py:128
↓ 2 callersFunctionprepare_dataloader
(dataset: torch.utils.data.Dataset, batch_size: int, to_be_distributed=False, is_train=True)
engine/BiRefNet/train.py:71
↓ 2 callersMethodprocess
(self)
LHM/models/ESRGANer_utils.py:154
↓ 2 callersFunctionprocess_mmdet_results
Process mmdet results, and return a list of bboxes. Args: mmdet_results (list|tuple): mmdet results. cat_id (int): category id (d
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:938
↓ 2 callersMethodproject_joints
Project 3D joint coordinates to 2D image plane using camera intrinsic parameters. Args: x (torch.Tensor[N, K, 3]): 3D joi
engine/pose_estimation/third-party/ViTPose/mmpose/models/losses/regression_loss.py:396
↓ 2 callersMethodproject_points
Perform orthographic projection of 3D points using the camera parameters, return projected 2D points in image plane. Note:
engine/pose_estimation/third-party/ViTPose/mmpose/models/losses/mesh_loss.py:148
↓ 2 callersFunctionpytorch2onnx
Convert pytorch model to onnx model. Args: model (:obj:`nn.Module`): The pytorch model to be exported. input_shape (tuple[int]):
engine/pose_estimation/third-party/ViTPose/tools/deployment/pytorch2onnx.py:44
↓ 2 callersMethodquery_huggingface_model
Queries Hugging Face, optionally checking local cache only.
LHM/utils/model_download_utils.py:94
↓ 2 callersMethodquery_modelscope_model
Queries ModelScope, optionally checking local cache only.
LHM/utils/model_download_utils.py:127
↓ 2 callersMethodquery_voxel_skinning_weights
using voxel-based skinning method vs: [B n c]
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:933
↓ 2 callersFunctionread_smplx_param
(smplx_data_root, shape_param_file, batch_size=1, device="cuda")
LHM/models/rendering/smpl_x.py:1082
↓ 2 callersMethodrebuild_mesh
(self, v, vertices_id, faces_id, num_dense_samples)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:513
↓ 2 callersFunctionregression_mlp
Return a fully connected network.
engine/pose_estimation/model.py:796
↓ 2 callersFunctionresolve
(path)
LHM/models/rendering/smplx/transfer_model/view_pkl.py:130
↓ 2 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
engine/pose_estimation/third-party/ViTPose/mmcv_custom/apex_runner/apex_iter_based_runner.py:68
↓ 2 callersFunctionrotate_point
Rotate a point by an angle. Args: pt (list[float]): 2 dimensional point to be rotated angle_rad (float): rotation angle by radian
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:293
↓ 2 callersFunctionrow
(A)
LHM/models/rendering/smplx/transfer_model/utils/mesh_utils.py:21
↓ 2 callersMethodrun_model
(self, planes, decoder, sample_coordinates, sample_directions, options)
LHM/models/rendering/utils/renderer.py:186
↓ 2 callersMethods_object
(self, pred: np.ndarray, gt: np.ndarray)
engine/BiRefNet/evaluation/metrics.py:268
↓ 2 callersFunctionsafe_normalize
normalize an array (along the last dim). Args: x (Union[Tensor, ndarray]): x, [..., C] eps (float, optional): eps. Defaults to 1e
LHM/models/rendering/mesh_utils.py:30
↓ 2 callersMethodsample_stratified
Return depths of approximately uniformly spaced samples along rays.
LHM/models/rendering/utils/renderer.py:219
↓ 2 callersFunctionscan_files_in_dir
(directory, postfix=None, progress_bar=None)
tools/metrics/compute_metric_ssim_lipis.py:53
↓ 2 callersFunctionscan_files_in_dir
(directory, postfix=None, progress_bar=None)
tools/metrics/compute_metric_ssim_lipis_anigs.py:54
↓ 2 callersFunctionset_requires_grad
Set requies_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:14
↓ 2 callersMethodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_iterations=3)
engine/pose_estimation/dinov2/dinov2/loss/dino_clstoken_loss.py:35
↓ 2 callersFunctionsmoothing_factor
(t_e, cutoff)
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/one_euro_filter.py:10
↓ 2 callersMethodsmoothing_factor
(self, cutoff)
engine/pose_estimation/pose_utils/postprocess.py:82
↓ 2 callersFunctionsoft_oks_nms
Soft OKS NMS implementations. Args: kpts_db thr: retain oks overlap < thr. max_dets: max number of detections to keep.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:155
↓ 2 callersMethodsoftmax_center_teacher
(self, teacher_output, teacher_temp)
engine/pose_estimation/dinov2/dinov2/loss/dino_clstoken_loss.py:29
↓ 2 callersMethodsynchronize_between_processes
(self)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:46
↓ 2 callersMethodtile_process
It will first crop input images to tiles, and then process each tile. Finally, all the processed tiles are merged into one images. Mo
LHM/models/ESRGANer_utils.py:158
↓ 2 callersMethodto_whwh
(self)
engine/SegmentAPI/base.py:91
↓ 2 callersMethodto_xywh
(self)
engine/SegmentAPI/base.py:77
↓ 2 callersMethodtrain
Convert the model into training mode.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/hrnet.py:597
↓ 2 callersMethodtrain
Convert the model into training mode.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/litehrnet.py:978
↓ 2 callersMethodtrain
Convert the model into training mode while keep layers freezed.
engine/BiRefNet/models/backbones/swin_v1.py:734
↓ 2 callersFunctiontrain_for_C
(*, C, max_iter, train_features, train_labels, dtype=torch.float64, device=_CPU_DEVICE)
engine/pose_estimation/dinov2/dinov2/eval/log_regression.py:153
↓ 2 callersMethodtrain_step
Train step function. In this function, the detector will finish the train step following the pipeline: 1. get fake and r
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:84
↓ 2 callersMethodtransform_to_posed_verts
_summary_ Args: smplx_data (_type_): e.g., body_pose:[B*Nv, 21, 3], betas:[B*Nv, 100]
LHM/models/rendering/smpl_x.py:1059
↓ 2 callersMethodtransform_to_posed_verts_from_neutral_pose
Transform the mean 3D vertices to posed vertices from the neutral pose. mean_3d (torch.Tensor): Mean 3D vertices with shape [B*N
LHM/models/rendering/smpl_x.py:934
↓ 2 callersMethodtransform_to_posed_verts_from_neutral_pose
Transform the mean 3D vertices to posed vertices from the neutral pose. mean_3d (torch.Tensor): Mean 3D vertices with shape [B*N
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1122
↓ 2 callersFunctionunpatch
(data, patch_size=14, c=3, img_size=224)
engine/pose_estimation/pose_utils/image.py:79
↓ 2 callersMethodupdate
(self, value, num=1)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:146
↓ 2 callersMethodupdate
(self, val, n=1)
engine/BiRefNet/utils.py:75
↓ 2 callersMethodupdate_center
(self, teacher_output)
engine/pose_estimation/dinov2/dinov2/loss/dino_clstoken_loss.py:77
↓ 2 callersMethodval_step
Forward function for evaluation. Args: data_batch (dict): Contain data for forward. Returns: dict: Contain t
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:207
↓ 2 callersFunctionvertices2joints
Calculates the 3D joint locations from the vertices Parameters ---------- J_regressor : torch.tensor JxV The regressor array that
LHM/models/rendering/smplx/smplx/lbs.py:268
↓ 2 callersMethodwait_and_handle
(self, event_name: str = None, is_keyboard: Optional[bool] = F
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/event.py:52
↓ 2 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:411
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
engine/BiRefNet/models/backbones/swin_v1.py:48
↓ 1 callersFunctionFB_blur_fusion_foreground_estimator_2
(image, alpha, r=90)
engine/BiRefNet/image_proc.py:17
↓ 1 callersFunctionRGB2SH
(rgb)
LHM/models/rendering/utils/sh_utils.py:123
↓ 1 callersFunctionSH2RGB
(sh)
LHM/models/rendering/utils/sh_utils.py:127
↓ 1 callersFunctionSSIM
(x, y)
engine/BiRefNet/loss.py:223
↓ 1 callersMethod__init__
(self, model_path, device)
LHM/utils/face_detector.py:159
↓ 1 callersMethod__init__
( self, transformer_dim: int, transformer_layers: int, transformer_heads: int,
LHM/models/modeling_human_lrm.py:40
↓ 1 callersMethod__init__
(self, in_channels=3, cond_channels=0, hidden_channels=512, depth=6)
LHM/models/discriminator.py:19
↓ 1 callersMethod__init__
(self, opt, que, qid)
LHM/models/ESRGANer_utils.py:368
↓ 1 callersMethod__init__
( self, in_channels, inner_channels, use_clstoken=False, out_channel=1
LHM/models/encoders/dinov2_fusion_wrapper.py:28
↓ 1 callersMethod__init__
(self, model_name="swin_base_patch4_window12_384_in22k", encoder_feat_dim=384)
LHM/models/encoders/xunet_wrapper.py:24
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
LHM/models/encoders/dpt_util/blocks.py:33
↓ 1 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
LHM/models/encoders/dinov2/layers/block.py:50
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
LHM/models/encoders/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
SMPLX using pytorch3d subdivsion
LHM/models/rendering/smpl_x.py:55
↓ 1 callersMethod__init__
SMPLX using dense sampling
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:59
← previousnext →601–700 of 3,669, ranked by callers