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
↓ 3 callers
Function
convert_ndc_to_screen
Convert intrinsic matrix from ndc to screen. Args: K (Union[torch.Tensor, np.ndarray]): Input 4x4 intrinsic matrix, left mm d
mmhuman3d/core/conventions/cameras/convert_convention.py:504
↓ 3 callers
Function
convert_overlay_heatmap
Convert feat_map to heatmap and overlay on image, if image is not None. Args: feat_map (np.ndarray, torch.Tensor): The feat_map to conver
sapiens/engine/mmengine/visualization/utils.py:167
↓ 3 callers
Function
convert_screen_to_ndc
Convert intrinsic matrix from screen to ndc. Args: K (Union[torch.Tensor, np.ndarray]): input intrinsic matrix. resolution (Union
blade/cameras/convert_convention.py:580
↓ 3 callers
Function
convert_screen_to_ndc
Convert intrinsic matrix from screen to ndc. Args: K (Union[torch.Tensor, np.ndarray]): input intrinsic matrix. resolution (Union
aios_repo/detrsmpl/core/conventions/cameras/convert_convention.py:570
↓ 3 callers
Function
convert_screen_to_ndc
Convert intrinsic matrix from screen to ndc. Args: K (Union[torch.Tensor, np.ndarray]): input intrinsic matrix. resolution (Union
mmhuman3d/core/conventions/cameras/convert_convention.py:572
↓ 3 callers
Method
convert_to
Convert self to another box type. Args: dst_type (str or type): destination box type. Returns: :obj:`BaseBox
sapiens/det/mmdet/structures/bbox/base_boxes.py:110
↓ 3 callers
Function
convert_video
Convert a video with ffmpeg. This provides a general api to ffmpeg, the executed command is:: `ffmpeg -y <pre_options> -i <in_file> <opt
mmcv/mmcv/video/processing.py:35
↓ 3 callers
Function
convert_video
Convert a video with ffmpeg. This provides a general api to ffmpeg, the executed command is:: `ffmpeg -y <pre_options> -i <in_file> <opt
sapiens/cv/mmcv/video/processing.py:40
↓ 3 callers
Function
convert_world_view
Convert between view_to_world and world_to_view defined extrinsic matrix. Args: R (Union[torch.Tensor, np.ndarray]): extrinsic rotati
blade/cameras/convert_convention.py:664
↓ 3 callers
Method
createIndex
(self)
sapiens/det/mmdet/evaluation/functional/ytvis.py:102
↓ 3 callers
Method
create_conv_bn
(self, kernel_size, dilation=1, padding=0)
sapiens/pretrain/mmpretrain/models/backbones/repvgg.py:139
↓ 3 callers
Method
create_conv_bn
cearte a (conv + bn) Sequential layer.
sapiens/pretrain/mmpretrain/models/backbones/mobileone.py:141
↓ 3 callers
Function
create_figure
Create a independent figure. Different from the :func:`plt.figure`, the figure from this function won't be managed by matplotlib. And it has
sapiens/pretrain/mmpretrain/visualization/utils.py:61
↓ 3 callers
Method
criterion
Criterion function.
sapiens/pose/mmpose/models/losses/classification_loss.py:173
↓ 3 callers
Method
crop
Crop from ``img`` Args: img (np.ndarray): Original input image. crop_bbox (tuple): Coordinates of the cropped image.
sapiens/seg/mmseg/datasets/transforms/transforms.py:331
↓ 3 callers
Method
current_lr
Get current learning rates. Returns: list[float] | dict[str, list[float]]: Current learning rates of all param groups
mmcv/mmcv/runner/base_runner.py:230
↓ 3 callers
Function
dataset_meta_from_config
Get dataset metainfo from the model config. Args: config (str, :obj:`Path`, or :obj:`mmengine.Config`): Config file path, :ob
sapiens/pose/mmpose/apis/inference.py:50
↓ 3 callers
Method
decompress_keypoints
If a key contains 'keypoints', and f'{key}_mask' is in self.keys(), invalid zeros will be inserted to the right places and f'{key}_mask'
aios_repo/datasets/humandata.py:1268
↓ 3 callers
Function
deform_conv_shape_check
mmcv/mmcv/ops/csrc/pytorch/deform_conv.cpp:45
↓ 3 callers
Function
deform_conv_shape_check
mmcv/mmcv/ops/csrc/parrots/deform_conv.cpp:45
↓ 3 callers
Function
deform_conv_shape_check
sapiens/cv/mmcv/ops/csrc/pytorch/deform_conv.cpp:45
↓ 3 callers
Function
deform_conv_shape_check
sapiens/cv/mmcv/ops/csrc/parrots/deform_conv.cpp:45
↓ 3 callers
Method
detach
Modified from pytorch3d and add `model_type` in __class__.__init__.
aios_repo/detrsmpl/core/renderer/torch3d_renderer/meshes.py:234
↓ 3 callers
Function
dict2tensor
(input_dict, device=None, use_float=True)
blade/utils/torch_utils.py:80
↓ 3 callers
Method
dict2tensor
Convert smpl pose dict to full pose tensor. Args: smpl_dict (dict): smpl pose dict. Returns: torch: full pos
mmhuman3d/models/body_models/smpl.py:207
↓ 3 callers
Function
digit_version
(version_str)
aios_repo/detrsmpl/__init__.py:29
↓ 3 callers
Function
digit_version
(version_str)
mmhuman3d/__init__.py:29
↓ 3 callers
Function
dist_func
(A, B)
sapiens/seg/mmseg/utils/nearest_neighbours.py:50
↓ 3 callers
Method
draw_bboxes
Draw single or multiple bboxes. Args: bboxes (Union[np.ndarray, torch.Tensor]): The bboxes to draw with the forma
sapiens/pose/mmpose/visualization/opencv_backend_visualizer.py:293
↓ 3 callers
Method
draw_texts
Draw single or multiple text boxes. Args: texts (Union[str, List[str]]): Texts to draw. positions (Union[np.ndarray,
sapiens/pose/mmpose/visualization/opencv_backend_visualizer.py:176
↓ 3 callers
Function
dynamic_voxelize_forward_impl
sapiens/cv/mmcv/ops/csrc/pytorch/voxelization.cpp:38
↓ 3 callers
Function
ee_to_rotmat
Convert euler angle to rotation matrixs. Args: euler_angle (Union[torch.Tensor, numpy.ndarray]): input shape should be (.
aios_repo/detrsmpl/utils/transforms.py:133
↓ 3 callers
Function
enc_camera_convention
convert camera convention to axis direction and order.
aios_repo/detrsmpl/core/conventions/cameras/convert_convention.py:84
↓ 3 callers
Function
enc_camera_convention
convert camera convention to axis direction and order.
mmhuman3d/core/conventions/cameras/convert_convention.py:84
↓ 3 callers
Method
encode
(self, src, src_mask, pos_embed)
aios_repo/detrsmpl/core/post_processing/speed_up/deciwatch.py:438
↓ 3 callers
Function
estimate_translation
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. Input: S: (B, 49, 3) 3D joint locations
aios_repo/detrsmpl/utils/geometry.py:352
↓ 3 callers
Function
estimate_translation
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. Input: S: (B, 49, 3) 3D joint locations
mmhuman3d/utils/geometry.py:337
↓ 3 callers
Function
eval_recalls
Calculate recalls. Args: gts (list[ndarray]): a list of arrays of shape (n, 4) proposals (list[ndarray]): a list of arrays of sha
sapiens/det/mmdet/evaluation/functional/recall.py:93
↓ 3 callers
Method
evaluate
Evaluate fitted parameters through loss computation. This function serves two purposes: 1) internally, for loss backpropagation 2) ext
aios_repo/detrsmpl/models/registrants/smplify.py:410
↓ 3 callers
Method
evaluate
Evaluate fitted parameters through loss computation. This function serves two purposes: 1) internally, for loss backpropagation 2) ext
mmhuman3d/models/registrants/smplify.py:410
↓ 3 callers
Method
every_n_epochs
Test whether current epoch can be evenly divided by n. Args: runner (Runner): The runner of the training, validation or testing
sapiens/engine/mmengine/hooks/hook.py:366
↓ 3 callers
Method
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
sapiens/engine/mmengine/fileio/backends/petrel_backend.py:195
↓ 3 callers
Function
expanduser
Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.
sapiens/pretrain/mmpretrain/datasets/airstore_base_dataset.py:40
↓ 3 callers
Function
expanduser
Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.
sapiens/pretrain/mmpretrain/datasets/base_dataset.py:41
↓ 3 callers
Function
expanduser
(path)
sapiens/pretrain/mmpretrain/datasets/multi_task.py:42
↓ 3 callers
Method
extend
(self, N)
blade/render/explicit/pytorch3d_wrapper/lights/lights.py:72
↓ 3 callers
Method
extend
(self, N)
aios_repo/detrsmpl/core/renderer/torch3d_renderer/lights/lights.py:71
↓ 3 callers
Method
extend
(self, N)
mmhuman3d/core/renderer/torch3d_renderer/lights/lights.py:72
↓ 3 callers
Method
extract_feat
(self, inputs1: Tensor, inputs2: Tensor, batch_
sapiens/seg/mmseg/models/segmentors/stereo_pointmap_estimator.py:216
↓ 3 callers
Method
extract_feat
(self, inputs1: Tensor, inputs2: Tensor, batch_
sapiens/seg/mmseg/models/segmentors/stereo_correspondences_estimator.py:143
↓ 3 callers
Method
extract_feat
Extract features from images.
sapiens/seg/mmseg/models/segmentors/pointmap_estimator.py:71
↓ 3 callers
Method
extract_feat
Extract features from images.
sapiens/seg/mmseg/models/segmentors/depth_estimator.py:126
↓ 3 callers
Method
extract_feat
Extract features from images.
sapiens/seg/mmseg/models/segmentors/encoder_decoder.py:148
↓ 3 callers
Method
extract_feat
Extract features from images.
sapiens/seg/mmseg/models/segmentors/hdri_estimator.py:71
↓ 3 callers
Method
extract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor, has shape (bs, dim, H, W). Returns: tuple[Tenso
sapiens/det/mmdet/models/detectors/base_detr.py:255
↓ 3 callers
Method
extract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
sapiens/det/mmdet/models/detectors/two_stage.py:128
↓ 3 callers
Method
extract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
sapiens/det/mmdet/models/detectors/single_stage_instance_seg.py:79
↓ 3 callers
Method
extract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
sapiens/det/mmdet/models/detectors/single_stage.py:164
↓ 3 callers
Method
extract_feat
Extract features from the input tensor with shape (N, C, ...). Args: inputs (Tensor): A batch of inputs. The shape of it should b
sapiens/pretrain/mmpretrain/models/classifiers/image.py:156
↓ 3 callers
Method
extract_feat
Extract features from the input tensor with shape (N, C, ...). Args: inputs (Tensor): A batch of inputs. The shape of it should b
sapiens/pretrain/mmpretrain/models/retrievers/image2image.py:187
↓ 3 callers
Method
extract_feat
Extract features from the input tensor with shape (N, C, ..). Args: images (Tensor): A batch of images. The shape of it should be
sapiens/pretrain/mmpretrain/models/multimodal/blip/blip_vqa.py:119
↓ 3 callers
Method
extract_feat
Extract features from the input dict. Args: images (tensor, optional): The images to extract features. Defaults t
sapiens/pretrain/mmpretrain/models/multimodal/blip/blip_retrieval.py:278
↓ 3 callers
Method
extract_feat
Extract features. Args: inputs (Tensor): Image tensor with shape (N, K, C, T). Returns: tuple[Tensor]: Multi
sapiens/pose/mmpose/models/pose_estimators/pose_lifter.py:151
↓ 3 callers
Method
extract_image_feat
The function to extract image latent features.
sapiens/pretrain/mmpretrain/models/multimodal/clip/clip.py:199
↓ 3 callers
Method
extract_image_feat
The function to extract image latent features.
sapiens/pretrain/mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:332
↓ 3 callers
Method
extract_roi_feats
Extract roi features. Args: feats (list[Tensor]): list of multi-level image features. bboxes (list[Tensor]): list of
sapiens/det/mmdet/models/tracking_heads/quasi_dense_track_head.py:91
↓ 3 callers
Method
extract_roi_feats
Extract roi features. Args: feats (list[Tensor]): list of multi-level image features. bboxes (list[Tensor]): list of
sapiens/det/mmdet/models/tracking_heads/roi_track_head.py:97
↓ 3 callers
Method
extract_text_feat
The function to extract text latent features.
sapiens/pretrain/mmpretrain/models/multimodal/clip/clip.py:203
↓ 3 callers
Method
extract_text_feat
The function to extract text latent features.
sapiens/pretrain/mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:338
↓ 3 callers
Method
filter
Filter the repeated warning message. Args: record (LogRecord): The log record. Returns: bool: Whether to out
sapiens/engine/mmengine/logging/logger.py:58
↓ 3 callers
Function
find_latest_checkpoint
Find the latest checkpoint from the given path. Refer to https://github.com/facebookresearch/fvcore/blob/main/fvcore/common/checkpoint.py # noqa
sapiens/engine/mmengine/runner/checkpoint.py:828
↓ 3 callers
Method
flat_params_to_dict
Turn param tensors to dict.
aios_repo/detrsmpl/models/heads/expose_head.py:287
↓ 3 callers
Method
flat_params_to_dict
Turn param tensors to dict.
mmhuman3d/models/heads/expose_head.py:288
↓ 3 callers
Function
flip_coordinates
Flip normalized coordinates for test-time augmentation. Args: coords (Tensor): The coordinates to flip. Should be a tensor in shape
sapiens/pose/mmpose/models/utils/tta.py:119
↓ 3 callers
Function
format_label
Convert various python types to label-format tensor. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`Sequence`, :
sapiens/pretrain/mmpretrain/structures/utils.py:52
↓ 3 callers
Method
forward
Forward function. Args: inputs (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
sapiens/det/mmdet/models/necks/fpn.py:189
↓ 3 callers
Method
forward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
sapiens/det/mmdet/models/dense_heads/ssd_head.py:218
↓ 3 callers
Method
forward
The unified entry for a forward process in both training and test. The method currently accepts two modes: "tensor" and "loss": - "t
sapiens/pretrain/mmpretrain/models/selfsup/mae.py:326
↓ 3 callers
Method
forward_plugin
(self, x, plugin_names)
aios_repo/detrsmpl/models/backbones/resnet.py:260
↓ 3 callers
Method
forward_plugin
(self, x, plugin_names)
mmhuman3d/models/backbones/resnet.py:262
↓ 3 callers
Method
forward_transformer
Forward process of Transformer, which includes four steps: 'pre_transformer' -> 'encoder' -> 'pre_decoder' -> 'decoder'. We summarized
sapiens/det/mmdet/models/detectors/base_detr.py:195
↓ 3 callers
Function
fp16_clamp
(x, min=None, max=None)
sapiens/det/mmdet/structures/bbox/bbox_overlaps.py:33
↓ 3 callers
Method
full_init
Fully initialize all sub datasets.
sapiens/seg/mmseg/datasets/dataset_wrappers.py:146
↓ 3 callers
Function
fuse_bn
fuse conv and bn.
sapiens/pretrain/mmpretrain/models/backbones/repmlp.py:43
↓ 3 callers
Function
gather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index. mask (Tenso
sapiens/det/mmdet/models/utils/gaussian_target.py:262
↓ 3 callers
Function
gaussian_blur
Modulate heatmap distribution with Gaussian. Note: - num_keypoints: K - heatmap height: H - heatmap width: W Args:
sapiens/pose/mmpose/codecs/utils/post_processing.py:170
↓ 3 callers
Function
gen_gaussian_target
Generate 2D gaussian heatmap. Args: heatmap (Tensor): Input heatmap, the gaussian kernel will cover on it and maintain the ma
sapiens/det/mmdet/models/utils/gaussian_target.py:60
↓ 3 callers
Method
getVidIds
Get vid ids that satisfy given filter conditions. :param vidIds (int array) : get vids for given ids :param catIds (int array) : get
sapiens/det/mmdet/evaluation/functional/ytvis.py:198
↓ 3 callers
Method
get_accuracy
Get custom accuracy w.r.t. cls_score and labels. Args: cls_score (Tensor): The prediction with shape (N, C + 2). labe
sapiens/det/mmdet/models/losses/seesaw_loss.py:217
↓ 3 callers
Function
get_box_wh
Get the width and height of boxes with type of tensor or box type. Args: boxes (Tensor or :obj:`BaseBoxes`): boxes with type of tensor
sapiens/det/mmdet/structures/bbox/transforms.py:445
↓ 3 callers
Method
get_camera_param
Build camera param.
aios_repo/detrsmpl/models/heads/expose_head.py:265
↓ 3 callers
Method
get_camera_param
Build camera param.
mmhuman3d/models/heads/expose_head.py:266
↓ 3 callers
Method
get_cls_channels
Get custom classification channels. Args: num_classes (int): The number of classes. Returns: int: The custom
sapiens/det/mmdet/models/losses/seesaw_loss.py:185
↓ 3 callers
Function
get_crop_info
Get the transformation of points on the cropped image to the points on the original image.
aios_repo/detrsmpl/models/utils/SMPLX.py:160
↓ 3 callers
Function
get_crop_info
Get the transformation of points on the cropped image to the points on the original image.
mmhuman3d/models/utils/SMPLX.py:160
↓ 3 callers
Function
get_crop_info_heatmap
Get the transformation of points on the cropped image to the points on the original image.
blade/models/body_models/utils.py:508
↓ 3 callers
Method
get_current_instance
Get latest created default scope. Since default_scope is an optional argument for ``Registry.build``. ``get_current_instance`` should
sapiens/engine/mmengine/registry/default_scope.py:77
↓ 3 callers
Method
get_data_info
Get annotation by index and automatically call ``full_init`` if the dataset has not been fully initialized. Args: idx (in
sapiens/engine/mmengine/dataset/base_dataset.py:275
↓ 3 callers
Method
get_default_projection_matrix
Class method. Calculate the projective transformation matrix by default parameters. Args: **kwargs: parameters for the pr
aios_repo/detrsmpl/core/cameras/cameras.py:269
↓ 3 callers
Method
get_default_projection_matrix
Class method. Calculate the projective transformation matrix by default parameters. Args: **kwargs: parameters for the pr
mmhuman3d/core/cameras/cameras.py:274
← previous
next →
1,601–1,700 of 19,095, ranked by callers