MCPcopy Create free account

hub / github.com/aigc3d/LHM / functions

Functions3,669 in github.com/aigc3d/LHM

↓ 3 callersMethod__init__
(self, in_channels, out_channels, depth_size=64,
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/interhand_3d_head.py:33
↓ 3 callersMethod__init__
(self, out_channels, norm_cfg=dict(type='BN'))
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:333
↓ 3 callersMethod__init__
(self, channels)
engine/BiRefNet/models/birefnet.py:233
↓ 3 callersMethod__init__
(self, in_channels=64, out_channels=None, output_stride=16)
engine/BiRefNet/models/modules/aspp.py:34
↓ 3 callersMethod__init__
(self, num_channels: int, eps: float = 1e-6)
engine/BiRefNet/models/modules/prompt_encoder.py:222
↓ 3 callersMethod__init__
(self, in_channels=3 + 1)
engine/BiRefNet/models/refinement/refiner.py:65
↓ 3 callersFunction_calc_distances
Calculate the normalized distances between preds and target. Note: batch_size: N num_keypoints: K dimension of keypoints:
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:10
↓ 3 callersFunction_create_inputs
(joint_num_in, joint_channel_in, joint_num_out, joint
engine/pose_estimation/third-party/ViTPose/tests/test_models/test_pose_lifter_forward.py:9
↓ 3 callersMethod_denormalize_joints
Denormalize joint coordinates with given statistics mean and std. Args: x (np.ndarray[N, K, 3]): Normalized joint coordinates.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:265
↓ 3 callersMethod_freeze_stages
Freeze parameters.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vit.py:249
↓ 3 callersFunction_get_multi_scale_size
Get the size for multi-scale training. Args: image: Input image. input_size (np.ndarray[2]): Size (w, h) of the image input.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/pipelines/bottom_up_transform.py:16
↓ 3 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:231
↓ 3 callersFunction_load_pose
(pose)
LHM/runners/infer/utils.py:66
↓ 3 callersFunction_make_input
Make zero inputs for AE loss. Args: t (torch.Tensor): input requires_grad (bool): Option to use requires_grad. device: to
engine/pose_estimation/third-party/ViTPose/mmpose/models/losses/multi_loss_factory.py:12
↓ 3 callersMethod_make_stage
Make stage.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/hrnet.py:476
↓ 3 callersMethod_make_transition_layer
Make transition layer.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/hrnet.py:394
↓ 3 callersMethod_parse_h36m_imgname
Parse imgname to get information of subject, action and camera. A typical h36m image filename is like: S1_Directions_1.54138969_00000
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/body3d/body3d_h36m_dataset.py:150
↓ 3 callersMethod_pixel2cam
Transform the joints from their pixel coordinates to their camera coordinates. Note: N: number of joints Args:
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/base/kpt_3d_sview_rgb_img_top_down_dataset.py:148
↓ 3 callersMethod_report_mpjpe
Cauculate mean per joint position error (MPJPE) or its variants like P-MPJPE or N-MPJPE. Args: keypoint_results (list): K
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/body3d/body3d_h36m_dataset.py:276
↓ 3 callersMethod_restore_global_position
Restore global position of the root-centered joints. Args: x (np.ndarray[N, K, 3]): root-centered joint coordinates r
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:279
↓ 3 callersFunction_run
(command)
engine/pose_estimation/dinov2/dinov2/utils/utils.py:49
↓ 3 callersFunction_xywh2xyxy
Transform the bbox format from xywh to x1y1x2y2. Args: bbox_xywh (ndarray): Bounding boxes (with scores), shaped (n, 4) or (n
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:69
↓ 3 callersFunctionall_gather_and_flatten
(tensor_rank)
engine/pose_estimation/dinov2/dinov2/eval/utils.py:86
↓ 3 callersFunctionapply_bugeye_effect
Apply bug-eye effect. Args: img (np.ndarray): Image data. pose_results (list[dict]): The pose estimation results containing:
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/effects.py:6
↓ 3 callersFunctionapply_sunglasses_effect
Apply sunglasses effect. Args: img (np.ndarray): Image data. pose_results (list[dict]): The pose estimation results containing:
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/effects.py:60
↓ 3 callersFunctionbatch_rodrigues
Convert axis-angle representation to rotation matrix. Args: theta: size = [B, 3] Returns: Rotation matrix corresponding to the
engine/pose_estimation/third-party/ViTPose/mmpose/models/utils/geometry.py:25
↓ 3 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
LHM/models/rendering/smplx_gsavatar/lbs.py:275
↓ 3 callersFunctionbuild_backbone
(bb_name, pretrained=True, params_settings="")
engine/BiRefNet/models/backbones/build_backbone.py:31
↓ 3 callersFunctionbuild_metric
(metric_type: MetricType, *, num_classes: int, ks: Optional[tuple] = None)
engine/pose_estimation/dinov2/dinov2/eval/metrics.py:43
↓ 3 callersFunctioncheck_norm_state
Check if norm layer is in correct train state.
engine/pose_estimation/third-party/ViTPose/tests/test_backbones/test_resnet.py:33
↓ 3 callersFunctioncollect_env
()
engine/pose_estimation/third-party/ViTPose/mmpose/utils/collect_env.py:8
↓ 3 callersMethodcreate_renderer
(self)
engine/pose_estimation/pose_utils/render.py:166
↓ 3 callersMethodcrop_face_image
(self, image_path)
LHM/runners/infer/human_lrm.py:495
↓ 3 callersFunctiondot
dot product (along the last dim). Args: x (Union[Tensor, ndarray]): x, [..., C] y (Union[Tensor, ndarray]): y, [..., C] Retu
LHM/models/rendering/mesh_utils.py:43
↓ 3 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
engine/pose_estimation/dinov2/dinov2/layers/drop_path.py:14
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
LHM/models/encoders/dinov2/hub/depth/encoder_decoder.py:51
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
engine/pose_estimation/dinov2/dinov2/hub/depth/encoder_decoder.py:51
↓ 3 callersFunctionevaluate
( model: nn.Module, data_loader, postprocessors: Dict[str, nn.Module], metrics: Dict[str, Metr
engine/pose_estimation/dinov2/dinov2/eval/utils.py:48
↓ 3 callersFunctionevaluate_linear_classifiers
( feature_model, linear_classifiers, data_loader, metric_type, metrics_file_path, trai
engine/pose_estimation/dinov2/dinov2/eval/linear.py:260
↓ 3 callersFunctionexists
Code modified from https://github.com/shubham-goel/4D-Humans/blob/a0def798c7eac811a63c8220fcc22d983b39785e/hmr2/models/components/pose_transformer.py#
engine/pose_estimation/blocks/cross_attn_transformer.py:60
↓ 3 callersFunctionextract_pose_sequence
Extract the target frame from 2D pose results, and pad the sequence to a fixed length. Args: pose_results (list[list[dict]]): Multi-f
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:12
↓ 3 callersMethodforward_gs
( self, gs_hidden_features: Float[Tensor, "B Np Cp"], query_points: Float[Tensor, "B N
LHM/models/rendering/gs_renderer.py:1320
↓ 3 callersFunctiongaussian_filter_1d
(data, kernel_size=3, sigma=1.0, weight=None)
engine/pose_estimation/pose_utils/postprocess.py:17
↓ 3 callersFunctiongenerate_smpl_weight_file
Generate a SMPL model weight file to initialize SMPL model, and generate a 3D joints regressor file.
engine/pose_estimation/third-party/ViTPose/tests/utils/mesh_utils.py:9
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
engine/pose_estimation/dinov2/dinov2/utils/cluster.py:31
↓ 3 callersMethodget_detection_results
Get detection results of the message. Args: tag (str, optional): If given, only the results with the tag will be
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/message.py:127
↓ 3 callersFunctionget_focalLength_from_fieldOfView
Compute the focal length of the camera lens by assuming a certain FOV for the entire image Args: - fov: float, expressed in degree
engine/pose_estimation/pose_utils/camera.py:49
↓ 3 callersFunctionget_fsdp_modules
(x)
engine/pose_estimation/dinov2/dinov2/fsdp/__init__.py:72
↓ 3 callersFunctionget_group_preds
Transform the grouped joints back to the image. Args: grouped_joints (list): Grouped person joints. center (np.ndarray[2, ]): Cen
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:293
↓ 3 callersFunctionget_image_paths_current_dir
(folder_path)
tools/metrics/compute_psnr_anigs.py:75
↓ 3 callersFunctionget_image_paths_current_dir
(folder_path)
tools/metrics/compute_psnr.py:74
↓ 3 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
engine/pose_estimation/dinov2/dinov2/models/vision_transformer.py:298
↓ 3 callersMethodget_neutral_pose_human
( self, jaw_zero_pose, use_id_info, shape_param, device, face_offset, joint_offset )
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1388
↓ 3 callersMethodget_query_points
transform_mat_neutral_pose is function to warp pre-defined posed to zero-pose
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1229
↓ 3 callersFunctionget_requirements
(path: str = HERE / "requirements.txt")
engine/pose_estimation/dinov2/setup.py:29
↓ 3 callersFunctionimshow_keypoints_3d
Draw 3D keypoints and links in 3D coordinates. Args: pose_result (list[dict]): 3D pose results containing: - "keypoints_3d" (
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/image.py:205
↓ 3 callersFunctioninfer_preprocess_image
inferece image, _, _ = preprocess_image(image_path, mask_path=None, intr=None, pad_ratio=0, bg_color=1.0,
LHM/runners/infer/human_lrm.py:152
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
LHM/models/encoders/dinov2/hub/depth/encoder_decoder.py:153
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
engine/pose_estimation/dinov2/dinov2/hub/depth/encoder_decoder.py:153
↓ 3 callersMethodinference_model
Inference function. Returns: output_regression (np.ndarray): Output regression. Args: x (torch.Tensor[N, K,
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:202
↓ 3 callersMethodinit_weights
Weight initialization for model.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:77
↓ 3 callersMethodinit_weights
Initialize model weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/misc/discriminator.py:100
↓ 3 callersMethodinit_weights
Initialize the weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:313
↓ 3 callersMethodis_set
(self, event_name: str = None, is_keyboard: Optional[bool] = False)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/event.py:33
↓ 3 callersMethodlbs
(self, xyz, transform_mat_vertex, trans)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1103
↓ 3 callersMethodmake_linear
(self, dim_in, dim_out, is_first, is_last, bias=True)
LHM/models/rendering/utils/utils.py:82
↓ 3 callersFunctionoks_nms
OKS NMS implementations. Args: kpts_db: keypoints. thr: Retain overlap < thr. sigmas: standard deviation of keypoint labe
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:89
↓ 3 callersFunctionpad
(x, padlen, dim)
engine/pose_estimation/pose_utils/tensor_manip.py:28
↓ 3 callersMethodparsing
(self, img_path)
LHM/runners/infer/human_lrm.py:505
↓ 3 callersFunctionpatches2image
( patches, grid_h=2, grid_w=2, patch_ref=None, transformation="(b hg wg) c h w -> b c (hg
engine/BiRefNet/models/birefnet.py:35
↓ 3 callersMethodpreprocess
(self, image_path: str, save_path: str, rmbg: bool = True, recenter: bool = True, size: int = 512, border_rati
LHM/utils/preprocess.py:32
↓ 3 callersMethodput_force
Force to put an item into the buffer. If the buffer is already full, the earliest item in the buffer will be remove to make room for
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/buffer.py:36
↓ 3 callersMethodquery
Query the best available model for current memory conditions. Args: model_name (str): The preferred model name to try fir
LHM/utils/model_query_utils.py:93
↓ 3 callersFunctionremove_ddp_wrapper
(m: nn.Module)
engine/pose_estimation/dinov2/dinov2/eval/linear.py:159
↓ 3 callersFunctionrender_smplx_mesh
( smplx_params, render_intrs, human_model_path="./pretrained_models/human_model_files" )
LHM/runners/infer/utils.py:308
↓ 3 callersMethodreport
Report timing information. Returns: dict: The key is the timer name and the value is the \ corresponding average
engine/pose_estimation/third-party/ViTPose/mmpose/utils/timer.py:80
↓ 3 callersFunctionresolve
(path)
LHM/models/rendering/smplx/transfer_model/write_obj.py:188
↓ 3 callersMethodsave_ply
(self, path)
LHM/models/rendering/gs_renderer.py:213
↓ 3 callersMethodset_image
Set the frame image to the message.
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/message.py:111
↓ 3 callersFunctionset_seed
(seed)
engine/BiRefNet/utils.py:94
↓ 3 callersFunctionsetup_and_build_model
(args)
engine/pose_estimation/dinov2/dinov2/eval/setup.py:70
↓ 3 callersFunctionsplit_ae_outputs
Split multi-stage outputs into heatmaps & tags. Args: outputs (list(Tensor)): Outputs of network num_joints (int): Number of join
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:9
↓ 3 callersFunctionsummary_closure
(gt_vertices, var_dict, body_model, mask_ids=None)
LHM/models/rendering/smplx/transfer_model/transfer_model.py:34
↓ 3 callersFunctiontest
()
LHM/models/rendering/gs_renderer.py:1465
↓ 3 callersMethodtimeit
Timing a code snippet with an assigned name. Args: timer_name (str): The unique name of the interested code snippet to
engine/pose_estimation/third-party/ViTPose/mmpose/utils/timer.py:60
↓ 3 callersMethodto_numpy
(self, type_mode="uint8", order="RGB")
engine/SegmentAPI/base.py:169
↓ 3 callersMethodto_xywh
(self)
LHM/utils/bbox.py:23
↓ 3 callersMethodupconv_block
(self, in_channels, out_channels)
LHM/models/encoders/xunet_wrapper.py:49
↓ 3 callersMethodupdate
(self, preds: Tensor, target: Tensor)
engine/pose_estimation/dinov2/dinov2/eval/metrics.py:87
↓ 3 callersFunctionupdate_intrinsics_from_bbox
update intrinsics for cropped images
engine/pose_estimation/pose_utils/render.py:70
↓ 3 callersMethodupdate_route_info
Append new node information to the route information. Args: node (Node, optional): An instance of Node that provides basic
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/message.py:33
↓ 3 callersMethodwait
(self, event_name: str = None, is_keyboard: Optional[bool] = False, tim
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/event.py:25
↓ 3 callersMethodworld_to_pixel
Project points from world coordinates to pixel coordinates.
engine/pose_estimation/third-party/ViTPose/mmpose/core/camera/camera_base.py:42
↓ 3 callersFunctionwrap_fp16_model
Wrap the FP32 model to FP16. 1. Convert FP32 model to FP16. 2. Remain some necessary layers to be FP32, e.g., normalization layers. Args
engine/pose_estimation/third-party/ViTPose/mmpose/core/fp16/hooks.py:109
↓ 2 callersFunctionFB_blur_fusion_foreground_estimator
(image, F, B, alpha, r=90)
engine/BiRefNet/image_proc.py:25
↓ 2 callersMethod__init__
(self, inner_dim: int, num_heads: int, eps: float, attn_drop: float = 0., attn_bias: bool = F
LHM/models/block.py:27
↓ 2 callersMethod__init__
(self, output_dim=128, only_global=False)
LHM/models/encoders/dinov2_unet.py:15
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256, 51
LHM/models/encoders/dinov2_dpt.py:41
↓ 2 callersMethod__init__
(self, n_features: int, hidden_dim: int = 64, num_layers: int = 4, activation: nn.Module = nn
LHM/models/rendering/synthesizer.py:33
↓ 2 callersMethod__init__
(self, classifiers_dict)
engine/pose_estimation/dinov2/dinov2/eval/linear.py:205
← previousnext →301–400 of 3,669, ranked by callers