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
↓ 7 callers
Function
find_joint_global_rotation
Computes the absolute rotation of a joint from the kinematic chain.
mmhuman3d/models/utils/SMPLX.py:235
↓ 7 callers
Function
find_joint_kin_chain
(joint_id, kinematic_tree)
aios_repo/util/smplx/smplx/utils.py:110
↓ 7 callers
Method
finish
Shutdown the pool and clean-up threads.
sapiens/lite/demo/worker_pool.py:113
↓ 7 callers
Function
flip_rotmat
Flip function. Flip rotmat.
mmhuman3d/models/utils/SMPLX.py:224
↓ 7 callers
Method
fromfile
Construct a HumanData instance from an npz file. Args: npz_path (str): Path to a dumped npz file. Return
mmhuman3d/data/data_structures/human_data.py:160
↓ 7 callers
Function
get_heatmap_maximum
Get maximum response location and value from heatmaps. Note: batch_size: B num_keypoints: K heatmap height: H hea
sapiens/pose/mmpose/codecs/utils/post_processing.py:125
↓ 7 callers
Function
get_model_complexity_info
Get complexity information of a model. This method can calculate FLOPs and parameter counts of a model with corresponding input shape. It can
mmcv/mmcv/cnn/utils/flops_counter.py:61
↓ 7 callers
Method
get_num_verts
(self)
aios_repo/util/smplx/smplx/body_models.py:286
↓ 7 callers
Function
inference_topdown
Inference image with a top-down pose estimator. Args: model (nn.Module): The top-down pose estimator img (np.ndarray | str): The
sapiens/pose/mmpose/apis/inference.py:162
↓ 7 callers
Method
init
(m)
mmcv/mmcv/cnn/utils/weight_init.py:264
↓ 7 callers
Function
is_npu_available
Returns True if Ascend PyTorch and npu devices exist.
sapiens/engine/mmengine/device/utils.py:82
↓ 7 callers
Method
isdir
(self)
mmcv/tests/test_fileclient.py:122
↓ 7 callers
Function
keypoint_mpjpe
Calculate the mean per-joint position error (MPJPE) and the error after rigid alignment with the ground truth (PA-MPJPE). batch_size: N nu
aios_repo/detrsmpl/core/evaluation/eval_utils.py:32
↓ 7 callers
Function
label_to_onehot
Convert a label to onehot format tensor. Args: label (LABEL_TYPE): Label value. num_classes (int): The number of classes. Re
sapiens/pretrain/mmpretrain/structures/utils.py:159
↓ 7 callers
Method
loadCats
Load cats with the specified ids. :param ids (int array) : integer ids specifying cats :return: cats (object array) : loaded ca
sapiens/det/mmdet/evaluation/functional/ytvis.py:230
↓ 7 callers
Method
load_cache
(self, annot_path_cache)
aios_repo/datasets/humandata.py:145
↓ 7 callers
Function
load_img
(path, order='RGB')
aios_repo/util/preprocessing.py:35
↓ 7 callers
Function
make_divisible
Make divisible function. This function rounds the channel number down to the nearest value that can be divisible by the divisor. Args:
sapiens/pretrain/mmpretrain/models/utils/make_divisible.py:30
↓ 7 callers
Method
metainfo_items
Returns: iterator: An iterator object whose element is (key, value) tuple pairs for ``metainfo``.
sapiens/engine/mmengine/structures/base_data_element.py:403
↓ 7 callers
Method
norm1
(self)
sapiens/seg/mmseg/models/backbones/beit.py:409
↓ 7 callers
Method
norm2
nn.Module: the normalization layer named "norm2"
sapiens/pose/mmpose/models/backbones/hrnet.py:434
↓ 7 callers
Function
norm_vec
(vec)
blade/cameras/pytorch3d_wrapper/cameras.py:1411
↓ 7 callers
Function
norm_vec
(vec)
aios_repo/detrsmpl/core/cameras/cameras.py:1387
↓ 7 callers
Function
norm_vec
(vec)
mmhuman3d/core/cameras/cameras.py:1405
↓ 7 callers
Method
numpy
Convert all tensors to np.ndarray in data.
sapiens/engine/mmengine/structures/base_data_element.py:574
↓ 7 callers
Function
obsolete_torch_version
(torch_version, version_threshold)
mmcv/mmcv/cnn/bricks/wrappers.py:47
↓ 7 callers
Method
partition
(self, x, h_parts, w_parts)
sapiens/pretrain/mmpretrain/models/backbones/repmlp.py:217
↓ 7 callers
Function
register_extra_symbolics
(opset=11)
mmcv/mmcv/onnx/symbolic.py:493
↓ 7 callers
Method
register_training_hooks
Register default and custom hooks for training. Default and custom hooks include: +----------------------+-------------------------+
mmcv/mmcv/runner/base_runner.py:528
↓ 7 callers
Function
remove_transform
Remove the target transform type from the pipeline. Args: pipeline (List[dict] | List[BaseTransform]): The transforms list. targe
sapiens/pretrain/mmpretrain/datasets/transforms/utils.py:63
↓ 7 callers
Function
rigid_align
(A, B)
aios_repo/util/transforms.py:97
↓ 7 callers
Function
rowArrayIdx
mmcv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:378
↓ 7 callers
Function
rowArrayIdx
sapiens/cv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:379
↓ 7 callers
Method
sample
Sample pixels that have high loss or with low prediction confidence. Args: seg_logit (torch.Tensor): segmentation logits, shape (
sapiens/seg/mmseg/structures/sampler/ohem_pixel_sampler.py:60
↓ 7 callers
Method
save_cache
(self, annot_path_cache, datalist)
aios_repo/datasets/humandata.py:152
↓ 7 callers
Function
scandir
Scan a directory to find the interested files. Args: dir_path (str | :obj:`Path`): Path of the directory. suffix (str | tuple(str
sapiens/engine/mmengine/utils/path.py:67
↓ 7 callers
Method
set_extra_property
Set user-defined new property.
sapiens/det/mmdet/models/task_modules/assigners/assign_result.py:83
↓ 7 callers
Method
to_dict
Dump camera name and parameters to dict. Returns: dict: Put self.name and self.parameters_dict in
mmhuman3d/core/cameras/camera_parameters.py:308
↓ 7 callers
Function
track_progress
Track the progress of tasks execution with a progress bar. Tasks are done with a simple for-loop. Args: func (callable): The functio
sapiens/engine/mmengine/utils/progressbar.py:118
↓ 7 callers
Method
transform_points_screen
(self, points, eps: Optional[float] = None,
aios_repo/detrsmpl/core/cameras/cameras.py:785
↓ 7 callers
Method
transpose_for_scores
Transpose the dimensions of `x`.
sapiens/det/mmdet/models/utils/vlfuse_helper.py:622
↓ 7 callers
Method
transpose_for_scores
(self, x)
sapiens/pretrain/mmpretrain/models/multimodal/blip/language_model.py:222
↓ 7 callers
Function
trunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
mmcv/mmcv/cnn/utils/weight_init.py:709
↓ 7 callers
Method
unpatchify
r"""Combine non-overlapped patches into images. Args: x (torch.Tensor): The shape is :math:`(B, L, \text{patch_si
sapiens/pretrain/mmpretrain/models/selfsup/mae_sapiens2.py:208
↓ 7 callers
Function
upfirdn2d
Pad, upsample, filter, and downsample a batch of 2D images. Performs the following sequence of operations for each channel: 1. Upsample the
sapiens/cv/mmcv/ops/upfirdn2d.py:87
↓ 7 callers
Function
weight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
sapiens/pretrain/mmpretrain/models/losses/utils.py:56
↓ 7 callers
Function
xyxy2xywh
Transform the bbox format from x1y1x2y2 to xywh. Args: bbox_xyxy (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or
mmhuman3d/utils/demo_utils.py:40
↓ 6 callers
Method
Get
(self, filepath)
mmcv/tests/test_fileclient.py:96
↓ 6 callers
Method
__init__
Initlialize without blend_params.
blade/render/explicit/pytorch3d_wrapper/shaders/shader.py:149
↓ 6 callers
Method
__init__
(self, num_select=100, nms_iou_threshold=-1, num_body_point
aios_repo/models/aios/postprocesses.py:52
↓ 6 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None
aios_repo/models/aios/backbones/swin_transformer.py:35
↓ 6 callers
Method
__init__
Initialize BaseModule, inherited from `torch.nn.Module`
mmcv/mmcv/runner/base_module.py:56
↓ 6 callers
Method
__init__
(self, embed_dims=256, feedforward_channels=1024, num_fcs=2
mmcv/mmcv/cnn/bricks/transformer.py:606
↓ 6 callers
Method
__init__
(self, embed_dims=256, feedforward_channels=1024, num_fcs=2
sapiens/cv/mmcv/cnn/bricks/transformer.py:614
↓ 6 callers
Method
__init__
Initialize BaseModule, inherited from `torch.nn.Module`
sapiens/engine/mmengine/model/base_module.py:67
↓ 6 callers
Method
__init__
(self, in_channels, out_channels, exp_ratio=6,
sapiens/seg/mmseg/models/backbones/bisenetv2.py:229
↓ 6 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None
sapiens/seg/mmseg/models/backbones/mscan.py:61
↓ 6 callers
Method
__init__
(self, in_channels=3, embed_dims=[64, 128, 256], patch_size
sapiens/seg/mmseg/models/backbones/twins.py:575
↓ 6 callers
Method
__init__
(self, prob: float = 1.0, level: Optional[int] = None, min_
sapiens/det/mmdet/datasets/transforms/colorspace.py:160
↓ 6 callers
Method
__init__
(self, linear: bool = False, eps: float = 1e-6, reduction:
sapiens/det/mmdet/models/losses/iou_loss.py:453
↓ 6 callers
Method
__init__
(self, )
sapiens/pretrain/mmpretrain/models/backbones/efficientformer.py:126
↓ 6 callers
Method
__init__
(self, depth, *args, **kwargs)
sapiens/pretrain/mmpretrain/models/multimodal/ofa/ofa_modules.py:258
↓ 6 callers
Method
__init__
(self, in_channels, out_channels, num_steps=4,
sapiens/pose/mmpose/models/backbones/rsn.py:65
↓ 6 callers
Method
__init__
(self, unit_channels=256, num_stages=4, num_units=4,
sapiens/pose/mmpose/models/backbones/mspn.py:478
↓ 6 callers
Method
__setattr__
(self, name: str, value: Any)
sapiens/cv/mmcv/ops/bias_act.py:64
↓ 6 callers
Method
_draw_instances_kpts
Draw keypoints and skeletons (optional) of GT or prediction. Args: image (np.ndarray): The image to draw. instances (
sapiens/pose/mmpose/visualization/local_visualizer.py:264
↓ 6 callers
Function
_flip_keypoints
Flip human joints horizontally. Note: num_keypoints: K num_dimension: D Args: keypoints (np.ndarray([K, D])): Coordin
aios_repo/detrsmpl/data/datasets/pipelines/transforms.py:284
↓ 6 callers
Function
_get_bases_name
(m: nn.Module)
mmcv/mmcv/cnn/utils/weight_init.py:161
↓ 6 callers
Function
_get_bases_name
(m)
sapiens/engine/mmengine/model/weight_init.py:155
↓ 6 callers
Function
_get_filter_size
get width and height of filter kernel.
sapiens/cv/mmcv/ops/upfirdn2d.py:74
↓ 6 callers
Method
_init_rule
Initialize rule, key_indicator, comparison_func, and best score. Here is the rule to determine which rule is used for key indicator w
mmcv/mmcv/runner/hooks/evaluation.py:176
↓ 6 callers
Method
_is_posion_valid
Judge whether the position is in image. Args: position (np.ndarray): The position to judge which last dim must be
sapiens/engine/mmengine/visualization/visualizer.py:396
↓ 6 callers
Function
_is_value
(x)
mmcv/mmcv/onnx/onnx_utils/symbolic_helper.py:172
↓ 6 callers
Method
_make_layer
Make layer for PIDNet backbone. Args: block (BasicBlock): Basic block. in_channels (int): Number of input channels.
sapiens/seg/mmseg/models/backbones/pidnet.py:402
↓ 6 callers
Method
_parse_result
Parse results.
aios_repo/detrsmpl/data/datasets/human_image_dataset.py:348
↓ 6 callers
Method
_parse_result
Parse results.
aios_repo/detrsmpl/data/datasets/multi_human_image_dataset.py:428
↓ 6 callers
Function
_parse_scaling
parse scaling into list [x, y]
sapiens/cv/mmcv/ops/upfirdn2d.py:50
↓ 6 callers
Method
_prepared_components
(self)
sapiens/engine/mmengine/_strategy/base.py:1000
↓ 6 callers
Function
_print
(result, ap=1, iouThr=None, areaRng='all', maxDets=100)
sapiens/det/tools/analysis_tools/robustness_eval.py:39
↓ 6 callers
Method
_report_ihmr
Calculate IHMR metric. https://arxiv.org/abs/2203.16427
aios_repo/detrsmpl/data/datasets/human_image_dataset.py:604
↓ 6 callers
Method
_report_miou
Cauculate mean per joint position error (MPJPE) or its variants PA- MPJPE. Report mean per joint position error (MPJPE) and mean per
blade/datasets/human_image_dataset_smplx.py:607
↓ 6 callers
Function
_rotate_smpl_pose
Rotate SMPL pose parameters. SMPL (https://smpl.is.tue.mpg.de/) is a 3D human model. Args: pose (np.ndarray([72])): SMPL pose par
aios_repo/detrsmpl/data/datasets/pipelines/transforms.py:344
↓ 6 callers
Method
_test_syncbn_empty_train
(self, size=1, half=False)
mmcv/tests/test_ops/test_syncbn.py:169
↓ 6 callers
Method
_test_syncbn_train
(self, size=1, half=False)
mmcv/tests/test_ops/test_syncbn.py:58
↓ 6 callers
Method
_update_resolution
(self, cameras, **kwargs)
aios_repo/detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:224
↓ 6 callers
Method
_update_resolution
(self, cameras, **kwargs)
mmhuman3d/core/renderer/torch3d_renderer/base_renderer.py:222
↓ 6 callers
Function
align_tensor
Pad each input to `max_len`, then stack them. If `max_len` is None, then it is the max size of the first dimension of each input. https:/
sapiens/det/mmdet/models/utils/misc.py:706
↓ 6 callers
Method
anchor_offset
Get offset for deformable conv based on anchor shape NOTE: currently support deformable kernel_size=3 and dilation=1 Args:
sapiens/det/mmdet/models/dense_heads/cascade_rpn_head.py:451
↓ 6 callers
Function
assert_image_almost_equal
(x, y, atol=1)
mmcv/tests/test_image/test_colorspace.py:149
↓ 6 callers
Function
batch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
smplx_repo/transfer_model/utils/pose_utils.py:85
↓ 6 callers
Function
bbox_overlaps
Calculate overlap between two set of bboxes. If ``aligned`` is ``False``, then calculate the ious between each bbox of bboxes1 and bboxes2, o
mmcv/mmcv/ops/bbox.py:73
↓ 6 callers
Function
bbox_xywh2xyxy
Transform the bbox format from xywh to x1y1x2y2. Args: bbox_xywh (ndarray): Bounding boxes (with scores), shaped (n, 4) or (n
sapiens/pose/mmpose/structures/bbox/transforms.py:55
↓ 6 callers
Function
box2cs
Convert xywh coordinates to center and scale. Args: bbox_xywh (numpy.ndarray): the height of the bbox_xywh aspect_ratio (int, optional):
aios_repo/detrsmpl/utils/demo_utils.py:86
↓ 6 callers
Function
box2cs
Convert xywh coordinates to center and scale. Args: bbox_xywh (numpy.ndarray): the height of the bbox_xywh aspect_ratio (int, optional):
mmhuman3d/utils/demo_utils.py:82
↓ 6 callers
Function
build_backbone
Build backbone.
mmhuman3d/models/backbones/builder.py:41
↓ 6 callers
Function
build_cameras
Build cameras.
aios_repo/detrsmpl/core/cameras/builder.py:29
↓ 6 callers
Function
build_head
Build head.
aios_repo/detrsmpl/models/heads/builder.py:46
↓ 6 callers
Function
build_neck
Build neck.
aios_repo/detrsmpl/models/necks/builder.py:35
↓ 6 callers
Function
build_padding_layer
Build padding layer. Args: cfg (None or dict): The padding layer config, which should contain: - type (str): Layer type.
mmcv/mmcv/cnn/bricks/padding.py:34
↓ 6 callers
Function
build_renderer
Build renderers.
aios_repo/detrsmpl/core/renderer/torch3d_renderer/builder.py:66
← previous
next →
701–800 of 19,095, ranked by callers