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
↓ 13 callers
Method
clip_
Clip boxes according to the image shape in-place. Args: img_shape (Tuple[int, int]): A tuple of image height and width.
sapiens/det/mmdet/structures/bbox/base_boxes.py:437
↓ 13 callers
Method
copyfile
Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the fi
sapiens/engine/mmengine/fileio/backends/local_backend.py:230
↓ 13 callers
Method
decode
Decode keypoints from outputs. Args: heatmaps (Tuple[Tensor]): The output heatmaps inferred from one image or mul
sapiens/pose/mmpose/models/heads/hybrid_heads/dekr_head.py:504
↓ 13 callers
Method
get
(self, key, default=None)
smplx_repo/smplx/utils.py:61
↓ 13 callers
Function
get_ori_model
Get original model if the input model is a model wrapper. Args: model (nn.Module): A model may be a model wrapper. Returns:
sapiens/pretrain/mmpretrain/utils/misc.py:34
↓ 13 callers
Method
get_raw_value
Get raw value from the dict. It acts the same as dict.__getitem__(k). Args: key (_KT): Key in dict.
mmhuman3d/data/data_structures/human_data.py:466
↓ 13 callers
Method
infer_client
Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optional): Arguments to instantiate a
sapiens/engine/mmengine/fileio/file_client.py:192
↓ 13 callers
Function
lbs
Performs Linear Blend Skinning with the given shape and pose parameters Parameters ---------- betas : torch.tensor BxNB
smplx_repo/smplx/lbs.py:179
↓ 13 callers
Function
levels_to_images
Concat multi-level feature maps by image. [feature_level0, feature_level1...] -> [feature_image0, feature_image1...] Convert the shape of eac
sapiens/det/mmdet/models/utils/misc.py:428
↓ 13 callers
Function
load_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
sapiens/engine/mmengine/runner/checkpoint.py:87
↓ 13 callers
Function
normal_init
(module: nn.Module, mean: float = 0, std: float = 1, bias: flo
mmcv/mmcv/cnn/utils/weight_init.py:93
↓ 13 callers
Method
remove
Remove a file. Args: filepath (str, Path): Path to be removed.
sapiens/engine/mmengine/fileio/file_client.py:373
↓ 13 callers
Function
rotmat_to_aa
Convert rotation matrixs to axis angles. Args: matrix (Union[torch.Tensor, numpy.ndarray]): input shape should be (..., 3
mmhuman3d/utils/transforms.py:375
↓ 13 callers
Function
scatter
Scatters tensor across multiple GPUs.
mmcv/mmcv/parallel/_functions.py:29
↓ 13 callers
Method
set_pred_label
Set ``pred_label``.
sapiens/pretrain/mmpretrain/structures/data_sample.py:126
↓ 13 callers
Method
set_value
Set a parameter to value. Args: key (str): Name of the parameter. value (object): New
mmhuman3d/core/cameras/camera_parameters.py:247
↓ 13 callers
Method
show
Show the drawn image. Args: drawn_img (np.ndarray, optional): The image to show. If drawn_img is None, it will sh
sapiens/engine/mmengine/visualization/visualizer.py:258
↓ 13 callers
Method
to_dict
Convert all data in the config to a builtin ``dict``. Args: keep_imported (bool): Whether to keep the imported field.
sapiens/engine/mmengine/config/config.py:1727
↓ 13 callers
Function
to_tensor
Convert value to torch.Tensor.
sapiens/pretrain/mmpretrain/evaluation/metrics/single_label.py:42
↓ 13 callers
Function
trunc_normal_init
(module: nn.Module, mean: float = 0, std: float = 1,
sapiens/engine/mmengine/model/weight_init.py:100
↓ 13 callers
Function
vertices2joints
Calculates the 3D joint locations from the vertices Parameters ---------- J_regressor : torch.tensor JxV The regressor array tha
smplx_repo/smplx/lbs.py:278
↓ 12 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None
sapiens/pretrain/mmpretrain/models/backbones/vig.py:508
↓ 12 callers
Method
_bbox_expand
Expand bbox in xyxy format by scale factor Args: bbox_xyxy (List[float]): Bounding box in xyxy format scale_factor (fl
mmhuman3d/data/data_converters/base_converter.py:52
↓ 12 callers
Function
add
sapiens/cv/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:266
↓ 12 callers
Method
add_datasample
Draw datasample and save to all backends. - If GT and prediction are plotted at the same time, they are displayed in a stitched image
sapiens/pose/mmpose/visualization/local_visualizer.py:495
↓ 12 callers
Function
build_2d_sincos_position_embedding
The function is to build position embedding for model to obtain the position information of the image patches. Args: patches_resoluti
sapiens/pretrain/mmpretrain/models/utils/position_encoding.py:151
↓ 12 callers
Function
build_activation_layer
Build activation layer. Args: cfg (dict): The activation layer config, which should contain: - type (str): Layer type.
mmcv/mmcv/cnn/bricks/activation.py:130
↓ 12 callers
Method
criterion
Criterion of wingloss. Note: - batch_size: N - num_keypoints: K - dimension of keypoints: D (D=2 or D=3)
sapiens/pose/mmpose/models/losses/regression_loss.py:276
↓ 12 callers
Method
end
sapiens/cv/mmcv/ops/csrc/common/utils/spconv/prettyprint.h:434
↓ 12 callers
Method
every_n_inner_iters
Test whether current inner iteration can be evenly divided by n. Args: batch_idx (int): Current batch index of the training, vali
sapiens/engine/mmengine/hooks/hook.py:382
↓ 12 callers
Method
extra_repr
Extra repr string when auto-generating magnitude is enabled.
sapiens/pretrain/mmpretrain/datasets/transforms/auto_augment.py:390
↓ 12 callers
Function
floordiv
(dividend, divisor, rounding_mode='trunc')
sapiens/det/mmdet/models/utils/misc.py:492
↓ 12 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/resnet.py:309
↓ 12 callers
Method
get_image_size
Returns the image size, if provided, expected in the form of (height, width) The image size is used for conversion of projected points
blade/cameras/pytorch3d_wrapper/cameras.py:199
↓ 12 callers
Function
get_onnxruntime_op_path
()
mmcv/mmcv/ops/info.py:50
↓ 12 callers
Method
in_ndc
Boolean of whether in NDC.
blade/cameras/pytorch3d_wrapper/cameras.py:677
↓ 12 callers
Method
in_ndc
Boolean of whether in NDC.
aios_repo/detrsmpl/core/cameras/cameras.py:668
↓ 12 callers
Method
in_ndc
Boolean of whether in NDC.
mmhuman3d/core/cameras/cameras.py:682
↓ 12 callers
Function
is_abs
Check if path is an absolute path in different backends. Args: path (str): path of directory or file. Returns: bool: whether
sapiens/engine/mmengine/utils/path.py:132
↓ 12 callers
Method
join_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and
mmcv/mmcv/fileio/file_client.py:1124
↓ 12 callers
Function
kaiming_init
(module: nn.Module, a: float = 0, mode: str = 'fan_out', no
mmcv/mmcv/cnn/utils/weight_init.py:125
↓ 12 callers
Method
loadRes
Load result file and return a result api object. :param resFile (str) : file name of result file :return: res (obj) : r
sapiens/det/mmdet/evaluation/functional/ytvis.py:252
↓ 12 callers
Function
match_name_keywords
(n: str, name_keywords: list)
aios_repo/util/get_param_dicts.py:29
↓ 12 callers
Function
merge_data_samples
Merge the given data samples into a single data sample. This function can be used to merge the top-down predictions with bboxes from the same
sapiens/pose/mmpose/structures/utils.py:43
↓ 12 callers
Method
predict_by_feat
Adjust the predicted bboxes from bbox head. Args: grid_preds (dict[str, Tensor]): dictionary outputted by forward
sapiens/det/mmdet/models/roi_heads/mask_heads/grid_head.py:395
↓ 12 callers
Function
process_bbox
(bbox, img_width, img_height, ratio=1.)
aios_repo/util/preprocessing.py:118
↓ 12 callers
Method
random
Generate random bitmap masks for demo / testing purposes. Example: >>> from mmdet.data_elements.mask.structures import BitmapMask
sapiens/det/mmdet/structures/mask/structures.py:588
↓ 12 callers
Method
random_choice
Random select some elements from the gallery. If `gallery` is a Tensor, the returned indices will be a Tensor; If `gallery` is a ndar
sapiens/det/mmdet/models/task_modules/samplers/random_sampler.py:68
↓ 12 callers
Method
random_magnitude
Randomly generate magnitude.
sapiens/pretrain/mmpretrain/datasets/transforms/auto_augment.py:367
↓ 12 callers
Method
run
Start running. Args: data_loaders (list[:obj:`DataLoader`]): Dataloaders for training and validation.
mmcv/mmcv/runner/epoch_based_runner.py:98
↓ 12 callers
Method
scatter
(feats, index)
sapiens/pretrain/mmpretrain/apis/feature_extractor.py:99
↓ 12 callers
Method
setLevel
Set the logging level of this logger. If ``logging.Logger.selLevel`` is called, all ``logging.Logger`` instances managed by ``logging
sapiens/engine/mmengine/logging/logger.py:336
↓ 12 callers
Method
show
Show cameras as well as axis arrow by vedo.show() Args: with_axis (bool, optional): Whether to show the axis arro
mmhuman3d/core/renderer/vedo_render.py:115
↓ 12 callers
Method
start
Start the timer.
sapiens/engine/mmengine/utils/timer.py:84
↓ 12 callers
Method
update_scalar
Update :attr:_log_scalars. Update ``HistoryBuffer`` in :attr:`_log_scalars`. If corresponding key ``HistoryBuffer`` has been created,
sapiens/engine/mmengine/logging/message_hub.py:123
↓ 12 callers
Method
upsample
Upsample mesh.
blade/structures/meshes/utils.py:405
↓ 12 callers
Function
xavier_init
(module, gain=1, bias=0, distribution='normal')
sapiens/engine/mmengine/model/weight_init.py:82
↓ 11 callers
Method
__init__
(self, by_epoch: bool = True, warmup: Optional[str] = None,
mmcv/mmcv/runner/hooks/lr_updater.py:50
↓ 11 callers
Method
_bbox_forward
Box head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
sapiens/det/mmdet/models/roi_heads/scnet_roi_head.py:156
↓ 11 callers
Method
_format_path
Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows enviro
mmcv/mmcv/fileio/file_client.py:158
↓ 11 callers
Method
_get_chunk_data
Get batch data from dataset. Args: inputs (Iterable): An iterable dataset. chunk_size (int): Equivalent to batch size
sapiens/pretrain/mmpretrain/apis/base.py:345
↓ 11 callers
Method
_load_metainfo
Collect meta information from the dictionary of meta. Args: metainfo (dict): Meta information dict. If ``metainfo``
sapiens/engine/mmengine/dataset/base_dataset.py:502
↓ 11 callers
Method
_map_path
Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str): Path
mmcv/mmcv/fileio/file_client.py:145
↓ 11 callers
Function
autocast
A wrapper of ``torch.autocast`` and ``toch.cuda.amp.autocast``. Pytorch 1.5.0 provide ``torch.cuda.amp.autocast`` for running in mixed precis
sapiens/engine/mmengine/runner/amp.py:44
↓ 11 callers
Function
batch_rodrigues
Convert axis-angle representation to rotation matrix. Args: theta: size = [B, 3] Returns: Rotation matrix corresponding to th
aios_repo/detrsmpl/utils/geometry.py:29
↓ 11 callers
Function
bbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1 (ndarray): Shape (n, 4) bboxes2 (ndarray): Shape (k, 4
sapiens/det/mmdet/evaluation/functional/bbox_overlaps.py:33
↓ 11 callers
Function
bbox_xyxy_to_cxcyah
Convert bbox coordinates from (x1, y1, x2, y2) to (cx, cy, ratio, h). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns:
sapiens/det/mmdet/structures/bbox/transforms.py:498
↓ 11 callers
Function
check_path_existence
Check whether a file or a directory exists at the expected path. Args: path_str (str): Path to check. path_type (Lite
mmhuman3d/utils/path_utils.py:87
↓ 11 callers
Function
check_type
Check whether the type of value is in ``valid_type``. Args: name (str): value name. value (Any): value. valid_type (Type,
sapiens/engine/mmengine/visualization/utils.py:73
↓ 11 callers
Method
device
(self)
sapiens/engine/mmengine/model/base_model/data_preprocessor.py:109
↓ 11 callers
Method
extract_feat
Extract features. Args: inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]: Multi
sapiens/pose/mmpose/models/pose_estimators/base.py:205
↓ 11 callers
Function
flops_to_string
Convert FLOPs number into a string. Note that Here we take a multiply-add counts as one FLOP. Args: flops (float): FLOPs number to b
mmcv/mmcv/cnn/utils/flops_counter.py:143
↓ 11 callers
Method
forward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
sapiens/seg/mmseg/models/segmentors/base.py:88
↓ 11 callers
Function
get_affine_transform
Get the affine transform matrix, given the center/scale/rot/output_size. Args: center (np.ndarray[2, ]): Center of the bounding box (x, y
mmhuman3d/data/datasets/pipelines/transforms.py:36
↓ 11 callers
Method
get_info
Get runtime information by key. If the key does not exist, this method will return default information. Args: key (str):
sapiens/engine/mmengine/logging/message_hub.py:333
↓ 11 callers
Method
get_iter
Get the current training iteration step.
mmcv/mmcv/runner/hooks/logger/base.py:111
↓ 11 callers
Method
get_mean
Get mean value of params.
aios_repo/detrsmpl/models/heads/expose_head.py:300
↓ 11 callers
Method
get_mean
Get mean value of params.
mmhuman3d/models/heads/expose_head.py:301
↓ 11 callers
Method
get_res
(self, key)
blade/datasets/pipelines/transforms.py:605
↓ 11 callers
Method
get_value
Get a parameter by key. Args: key (str): Name of the parameter. Raises: KeyError: key not in
aios_repo/detrsmpl/core/cameras/camera_parameters.py:259
↓ 11 callers
Method
get_value
Get a parameter by key. Args: key (str): Name of the parameter. Raises: KeyError: key not in
mmhuman3d/core/cameras/camera_parameters.py:259
↓ 11 callers
Function
init_detector
Initialize a detector from config file. Args: config (str, :obj:`Path`, or :obj:`mmengine.Config`): Config file path, :obj:`P
sapiens/det/mmdet/apis/inference.py:54
↓ 11 callers
Method
list_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
sapiens/engine/mmengine/fileio/file_client.py:464
↓ 11 callers
Function
list_models
List all models available in MMPretrain. Args: pattern (str | None): A wildcard pattern to match model names. Defaults to Non
sapiens/pretrain/mmpretrain/apis/model.py:275
↓ 11 callers
Method
new
Construct a HumanData instance from a dict. Args: source_dict (dict, optional): A dict with items in HumanData fa
mmhuman3d/data/data_structures/human_data.py:176
↓ 11 callers
Function
parse_pose_metainfo
Load meta information of pose dataset and check its integrity. Args: metainfo (dict): Raw data of pose meta information, which should
sapiens/pose/mmpose/datasets/datasets/utils.py:37
↓ 11 callers
Method
register_backend
Register a backend to FileClient. This method can be used as a normal class method or a decorator. .. code-block:: python
mmcv/mmcv/fileio/file_client.py:967
↓ 11 callers
Method
register_checkpoint_hook
(self, checkpoint_config)
mmcv/mmcv/runner/base_runner.py:476
↓ 11 callers
Function
reset_string_io
(io)
mmcv/tests/test_utils/test_progressbar.py:33
↓ 11 callers
Method
to_tensor
See :func:`BaseInstanceMasks.to_tensor`.
sapiens/det/mmdet/structures/mask/structures.py:583
↓ 11 callers
Method
track
Tracking forward function. Args: model (nn.Module): MOT model. img (Tensor): of shape (T, C, H, W) encoding input ima
sapiens/det/mmdet/models/trackers/sort_tracker.py:138
↓ 10 callers
Method
__init__
(self, in_channels, out_channels, kernel_size,
mmcv/mmcv/ops/sparse_conv.py:403
↓ 10 callers
Method
__init__
(self, in_channels, out_channels, kernel_size,
sapiens/cv/mmcv/ops/sparse_conv.py:409
↓ 10 callers
Method
__setattr__
(self, name, value)
mmcv/mmcv/utils/config.py:547
↓ 10 callers
Method
_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually with_nms is Fa
sapiens/det/mmdet/models/dense_heads/paa_head.py:632
↓ 10 callers
Function
_isArrayLike
(obj)
sapiens/det/mmdet/evaluation/functional/ytvis.py:68
↓ 10 callers
Method
_make_layers
Initialize conv sequential for CornerHead.
sapiens/det/mmdet/models/dense_heads/corner_head.py:191
↓ 10 callers
Method
_mask_forward
Mask head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
sapiens/det/mmdet/models/roi_heads/scnet_roi_head.py:201
↓ 10 callers
Function
aa_to_rotmat
Convert axis_angle to rotation matrixs. Args: axis_angle (Union[torch.Tensor, numpy.ndarray]): input shape should be
aios_repo/detrsmpl/utils/transforms.py:96
↓ 10 callers
Function
accuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class)
sapiens/det/mmdet/models/losses/accuracy.py:33
← previous
next →
401–500 of 19,095, ranked by callers