Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/blade
/ functions
Functions
19,095 in github.com/NVlabs/blade
⨍
Functions
19,095
◇
Types & classes
3,728
↳
Endpoints
57
↓ 2 callers
Method
forward_test
Forward pass during testing. Args: feats (Tensor): Input feature tensor. test_cfg (Dict): Testing configuration, incl
sapiens/pose/mmpose/models/heads/heatmap_heads/cid_head.py:188
↓ 2 callers
Method
forward_transformer
( self, img_feats: Tuple[Tensor], text_dict: Dict, batch_data_samples: OptSamp
sapiens/det/mmdet/models/detectors/grounding_dino.py:174
↓ 2 callers
Method
forward_withgrad
image_shape(target_sizes): input image shape
aios_repo/models/aios/postprocesses.py:1065
↓ 2 callers
Method
freeze_layers
(self)
sapiens/pose/mmpose/models/necks/posewarper_neck.py:233
↓ 2 callers
Method
fromfile
(filename)
aios_repo/util/config.py:174
↓ 2 callers
Method
full_init
Loop to ``full_init`` each dataset.
sapiens/engine/mmengine/dataset/dataset_wrapper.py:273
↓ 2 callers
Method
full_init
Loop to ``full_init`` each dataset.
sapiens/engine/mmengine/dataset/dataset_wrapper.py:415
↓ 2 callers
Method
full_init
Load annotation file and set ``BaseDataset._fully_initialized`` to True. If ``lazy_init=False``, ``full_init`` will be called during
sapiens/det/mmdet/datasets/base_det_dataset.py:74
↓ 2 callers
Method
full_init
Load annotation file and set ``BaseDataset._fully_initialized`` to True. If ``lazy_init=False``, ``full_init`` will be called during
sapiens/pretrain/mmpretrain/datasets/_airstore_base_dataset.py:303
↓ 2 callers
Method
full_init
fully initialize the dataset.
sapiens/pretrain/mmpretrain/datasets/dataset_wrappers.py:180
↓ 2 callers
Method
func
(oper)
mmcv/tests/test_utils/test_parrots_jit.py:91
↓ 2 callers
Function
func_a
()
mmcv/tests/test_utils/test_misc.py:98
↓ 2 callers
Function
func_b
()
mmcv/tests/test_utils/test_misc.py:102
↓ 2 callers
Function
func_c
()
mmcv/tests/test_utils/test_misc.py:106
↓ 2 callers
Function
fuse_bn
Fuse the parameters in a branch with a conv and bn. Args: conv (nn.Conv2d): The convolution module to fuse. bn (nn.BatchNorm2d):
sapiens/pretrain/mmpretrain/models/backbones/replknet.py:120
↓ 2 callers
Method
fuse_clip
Fuse CLIP feature and visual tokens.
sapiens/seg/mmseg/models/decode_heads/san_head.py:220
↓ 2 callers
Function
fuse_conv_bn
Recursively fuse conv and bn in a module. During inference, the functionary of batch norm layers is turned off but only the mean and var alon
sapiens/cv/mmcv/cnn/utils/fuse_conv_bn.py:55
↓ 2 callers
Function
garbage_collection_cuda
Garbage collection Torch (CUDA) memory.
sapiens/seg/tools/analysis_tools/memory_error_utils.py:71
↓ 2 callers
Function
garbage_collection_cuda
Garbage collection Torch (CUDA) memory.
sapiens/pose/tools/analysis_tools/memory_error_utils.py:71
↓ 2 callers
Function
gaussian_radius
r"""Generate 2D gaussian radius. This function is modified from the `official github repo <https://github.com/princeton-vl/CornerNet-Lite/blo
sapiens/det/mmdet/models/utils/gaussian_target.py:96
↓ 2 callers
Function
gem
(x: Tensor, p: Parameter, eps: float = 1e-6, clamp=True)
sapiens/pretrain/mmpretrain/models/necks/gem.py:38
↓ 2 callers
Method
gen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
sapiens/det/mmdet/models/task_modules/prior_generators/anchor_generator.py:169
↓ 2 callers
Method
gen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes. Args:
sapiens/det/mmdet/models/dense_heads/reppoints_head.py:267
↓ 2 callers
Method
gen_single_level_base_anchors
Generate base anchors of a single level. Args: base_size (int | float): Basic size of an anchor. scales (torch.Tensor
sapiens/det/mmdet/models/task_modules/prior_generators/anchor_generator.py:189
↓ 2 callers
Function
gen_trans_from_patch_cv
(c_x, c_y, src_width, src_
aios_repo/util/preprocessing.py:375
↓ 2 callers
Function
generalized_box_iou
Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where N = l
aios_repo/util/box_ops.py:57
↓ 2 callers
Function
generate_patch_image
(cvimg, bbox, scale, rot, do_flip, out_shape)
aios_repo/util/preprocessing.py:333
↓ 2 callers
Function
generate_udp_gaussian_heatmaps
Generate gaussian heatmaps of keypoints using `UDP`_. Args: heatmap_size (Tuple[int, int]): Heatmap size in [W, H] keypoints (np.
sapiens/pose/mmpose/codecs/utils/gaussian_heatmap.py:179
↓ 2 callers
Function
geometric_progression
(a, r, n)
sapiens/pretrain/mmpretrain/models/utils/embed.py:106
↓ 2 callers
Method
get
Read data from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns:
mmcv/mmcv/fileio/file_client.py:171
↓ 2 callers
Method
get
Read data from a given ``filepath`` with 'rb' mode. Note: There are two types of return values for ``get``, one is ``bytes``
sapiens/engine/mmengine/fileio/file_client.py:314
↓ 2 callers
Function
getJobLimitCapability
sapiens/cv/mmcv/ops/csrc/common/pytorch_mlu_helper.hpp:28
↓ 2 callers
Function
getMluOpDataType
Descriptors
sapiens/cv/mmcv/ops/csrc/pytorch/mlu/mlu_common_helper.cpp:15
↓ 2 callers
Function
getMluOpReduceMode
sapiens/cv/mmcv/ops/csrc/pytorch/mlu/mlu_common_helper.cpp:59
↓ 2 callers
Function
get_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
sapiens/pretrain/mmpretrain/models/backbones/vig.py:93
↓ 2 callers
Method
get_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
sapiens/det/mmdet/models/dense_heads/guided_anchor_head.py:335
↓ 2 callers
Method
get_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
sapiens/det/mmdet/models/dense_heads/sabl_retina_head.py:233
↓ 2 callers
Function
get_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
DAv2/depth_anything_v2/dinov2_layers/block.py:180
↓ 2 callers
Function
get_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
DAv2/metric_depth/depth_anything_v2/dinov2_layers/block.py:180
↓ 2 callers
Function
get_aug_config
(data_name)
aios_repo/util/preprocessing.py:135
↓ 2 callers
Function
get_bbox
(args, detector, frame)
sapiens/pose/demo/body3d_pose_lifter_demo.py:310
↓ 2 callers
Method
get_camera_plane_normals
Get the identity normal vector which stretchs out of the camera plane. Could pass `R` to override the camera extrinsic rotation matri
blade/cameras/pytorch3d_wrapper/cameras.py:146
↓ 2 callers
Method
get_camera_plane_normals
Get the identity normal vector which stretchs out of the camera plane. Could pass `R` to override the camera extrinsic rotation matri
aios_repo/detrsmpl/core/cameras/cameras.py:154
↓ 2 callers
Method
get_camera_plane_normals
Get the identity normal vector which stretchs out of the camera plane. Could pass `R` to override the camera extrinsic rotation matri
mmhuman3d/core/cameras/cameras.py:157
↓ 2 callers
Method
get_cat_ids
Get category ids of class balanced dataset by index. Args: idx (int): Index of data. Returns: List[int]: All
sapiens/engine/mmengine/dataset/dataset_wrapper.py:497
↓ 2 callers
Function
get_cls_group_ofs
Get `gt_group_of` of a certain class, which is used in Open Images. Args: annotations (list[dict]): Same as `eval_map()`. class_i
sapiens/det/mmdet/evaluation/functional/mean_ap.py:532
↓ 2 callers
Function
get_compiler_version
()
mmcv/mmcv/ops/info.py:33
↓ 2 callers
Function
get_compiling_cuda_version
()
mmcv/mmcv/ops/info.py:36
↓ 2 callers
Function
get_config
Get config from external package. Args: cfg_path (str): External relative config path. pretrained (bool): Whether to save pretrai
sapiens/engine/mmengine/hub/hub.py:42
↓ 2 callers
Function
get_conv_output_size
(input_size, kernel_size, stride, padding, dilation)
mmcv/mmcv/ops/sparse_ops.py:51
↓ 2 callers
Function
get_conv_output_size
(input_size, kernel_size, stride, padding, dilation)
sapiens/cv/mmcv/ops/sparse_ops.py:57
↓ 2 callers
Method
get_data_info
Get annotation by index. Args: idx (int): Global index of ``ConcatDataset``. Returns: dict: The idx-th annot
sapiens/engine/mmengine/dataset/dataset_wrapper.py:173
↓ 2 callers
Method
get_data_info
Get annotation by index. Args: idx (int): Global index of ``CombinedDataset``. Returns: dict: The idx-th annot
sapiens/seg/mmseg/datasets/dataset_wrappers.py:133
↓ 2 callers
Method
get_data_info_helper
(self, data_info)
sapiens/seg/mmseg/datasets/stereo_pointmap_render_people.py:128
↓ 2 callers
Method
get_data_info_helper
(self, data_info)
sapiens/seg/mmseg/datasets/stereo_correspondences_render_people.py:128
↓ 2 callers
Method
get_dataset_source
(self, idx: int)
sapiens/det/mmdet/datasets/dataset_wrappers.py:278
↓ 2 callers
Function
get_default_hmr_intrinsic
Get default hmr intrinsic, defined by how you trained. Args: num_frame (int, optional): num of frames. Defaults to 1. focal_lengt
aios_repo/detrsmpl/utils/demo_utils.py:231
↓ 2 callers
Function
get_default_hmr_intrinsic
Get default hmr intrinsic, defined by how you trained. Args: num_frame (int, optional): num of frames. Defaults to 1. focal_lengt
mmhuman3d/utils/demo_utils.py:227
↓ 2 callers
Method
get_default_projection_matrix
Class method. Calculate the projective transformation matrix by default parameters. Args: **kwargs: parameters for the pr
blade/cameras/pytorch3d_wrapper/cameras.py:265
↓ 2 callers
Function
get_deprecated_model_names
()
mmcv/mmcv/runner/checkpoint.py:204
↓ 2 callers
Function
get_diagonal_lengths
Calculate the diagonal length of instance bounding box from visible keypoints. Args: keypoints (np.ndarray): Keypoint coordinates in
sapiens/pose/mmpose/codecs/utils/instance_property.py:120
↓ 2 callers
Function
get_dim_size
mmcv/mmcv/ops/csrc/onnxruntime/cpu/reduce_ops.cpp:26
↓ 2 callers
Function
get_dim_stride
mmcv/mmcv/ops/csrc/onnxruntime/cpu/reduce_ops.cpp:21
↓ 2 callers
Method
get_dn_targets
Get targets in denoising part for a batch of images. Args: batch_gt_instances (list[:obj:`InstanceData`]): Batch of
sapiens/det/mmdet/models/dense_heads/dino_head.py:339
↓ 2 callers
Function
get_dummy_input
(training)
mmcv/tests/test_device/test_ipu/test_ipu_model.py:165
↓ 2 callers
Method
get_empty_store
Returns an empty store for holding attention values.
sapiens/seg/mmseg/models/backbones/vpd.py:151
↓ 2 callers
Method
get_encoder_reference_points
Get the reference points used in encoder. Args: spatial_shapes (Tensor): Spatial shapes of features in all levels,
sapiens/det/mmdet/models/layers/transformer/deformable_detr_layers.py:111
↓ 2 callers
Method
get_epoch
(self, runner)
mmcv/mmcv/runner/hooks/logger/base.py:99
↓ 2 callers
Function
get_expansion
Get the expansion of a residual block. The block expansion will be obtained by the following order: 1. If ``expansion`` is given, just retur
sapiens/pose/mmpose/models/backbones/vipnas_resnet.py:207
↓ 2 callers
Method
get_faces_padded
(self, N_batch, N_individual)
blade/structures/meshes/meshes.py:190
↓ 2 callers
Method
get_faces_padded
(self, N_batch, N_individual)
aios_repo/detrsmpl/core/renderer/torch3d_renderer/meshes.py:190
↓ 2 callers
Method
get_faces_padded
(self, N_batch, N_individual)
mmhuman3d/core/renderer/torch3d_renderer/meshes.py:188
↓ 2 callers
Method
get_frame
Get frame by index. Args: frame_id (int): Index of the expected frame, 0-based. Returns: ndarray or None: Re
sapiens/cv/mmcv/video/io.py:186
↓ 2 callers
Function
get_gaussian_mean
Args: x (float): Input images(BxCxHxW) axis (int): The index for weighted mean other_axis (int): The other index Re
aios_repo/util/utils.py:179
↓ 2 callers
Method
get_gt_masks
Get gt_masks originally or generated based on bboxes. If gt_masks is not contained in results, it will be generated based on gt_bboxe
sapiens/det/mmdet/datasets/transforms/transforms.py:3095
↓ 2 callers
Method
get_hook_info
(self)
mmcv/mmcv/runner/base_runner.py:334
↓ 2 callers
Function
get_host_info
Get hostname and username. Return empty string if exception raised, e.g. ``getpass.getuser()`` will lead to error in docker container
mmcv/mmcv/runner/utils.py:41
↓ 2 callers
Method
get_ignores
Get the number of ignore bboxes.
sapiens/det/mmdet/evaluation/metrics/crowdhuman_metric.py:538
↓ 2 callers
Method
get_image_rel_pos_bias
(self, image_position_ids, idx)
sapiens/pretrain/mmpretrain/models/multimodal/ofa/ofa_modules.py:1299
↓ 2 callers
Function
get_instance_bbox
Calculate the pseudo instance bounding box from visible keypoints. The bounding boxes are in the xyxy format. Args: keypoints (np.nda
sapiens/pose/mmpose/codecs/utils/instance_property.py:92
↓ 2 callers
Function
get_instance_root
Calculate the coordinates and visibility of instance roots. Args: keypoints (np.ndarray): Keypoint coordinates in shape (N, K, D)
sapiens/pose/mmpose/codecs/utils/instance_property.py:35
↓ 2 callers
Function
get_int
Convert bytes to int.
sapiens/pretrain/mmpretrain/datasets/mnist.py:209
↓ 2 callers
Method
get_iphone_intrinsics
Get intrinsics of an iPhone RGB camera by iPhone id. Args: iphone_id (int, optional): ID of an iPhone, starts fro
mmhuman3d/data/data_structures/smc_reader.py:240
↓ 2 callers
Method
get_item
(self, index, required_keys: List[str] = [])
aios_repo/detrsmpl/data/data_structures/human_data_cache.py:50
↓ 2 callers
Function
get_joints_mesh
(joints, level=0, radius=0.01, colors=None)
blade/utils/mesh_utils.py:109
↓ 2 callers
Function
get_keypoint_idxs_by_part
(part: str, convention: str = 'smplx', keypoints_f
blade/models/body_models/mappings/__init__.py:179
↓ 2 callers
Method
get_keypoints2d
Get keypoints2d projected from keypoints3d. Args: device (str): Device name, should be Kinect or iPhone.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:692
↓ 2 callers
Method
get_kinect_color
Get several frames captured by a kinect RGB camera. Args: kinect_id (int): ID of a kinect, starts from 0.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:355
↓ 2 callers
Method
get_kinect_color
Get several frames captured by a kinect RGB camera. Args: kinect_id (int): ID of a kinect, starts from 0.
mmhuman3d/data/data_structures/smc_reader.py:355
↓ 2 callers
Method
get_kinect_color_intrinsics
Get intrinsics of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from 0.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:172
↓ 2 callers
Method
get_kinect_color_resolution
Get resolution of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from 0.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:190
↓ 2 callers
Method
get_kinect_depth
Get several frames captured by a kinect depth camera. Args: kinect_id (int): ID of a kinect, starts from 0.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:406
↓ 2 callers
Method
get_kinect_depth
Get several frames captured by a kinect depth camera. Args: kinect_id (int): ID of a kinect, starts from 0.
mmhuman3d/data/data_structures/smc_reader.py:406
↓ 2 callers
Method
get_kinect_depth_extrinsics
Get extrinsics(cam2world) of a kinect depth camera by kinect id. Args: kinect_id (int): ID of a kinect, starts fr
aios_repo/detrsmpl/data/data_structures/smc_reader.py:142
↓ 2 callers
Method
get_kinect_depth_extrinsics
Get extrinsics(cam2world) of a kinect depth camera by kinect id. Args: kinect_id (int): ID of a kinect, starts fr
mmhuman3d/data/data_structures/smc_reader.py:142
↓ 2 callers
Method
get_limb_idxs
(self, convention)
blade/models/losses/smooth_loss.py:61
↓ 2 callers
Method
get_log_after_epoch
Format log string after validation or testing epoch. Args: runner (Runner): The runner of validation/testing phase. b
sapiens/engine/mmengine/runner/log_processor.py:274
↓ 2 callers
Method
get_lr
(self, runner: 'runner.BaseRunner', base_lr: float)
mmcv/mmcv/runner/hooks/lr_updater.py:93
↓ 2 callers
Method
get_mat_np
Get a a matrix-type parameter by key. Args: key (str): Name of the parameter. Raises: KeyErro
aios_repo/detrsmpl/core/cameras/camera_parameters.py:277
↓ 2 callers
Method
get_mat_np
Get a a matrix-type parameter by key. Args: key (str): Name of the parameter. Raises: KeyErro
mmhuman3d/core/cameras/camera_parameters.py:277
← previous
next →
2,601–2,700 of 19,095, ranked by callers