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
_set_output_path
(self, output_path)
blade/render/explicit/pytorch3d_wrapper/renderers/base_renderer.py:211
↓ 2 callers
Method
_set_output_path
(self, output_path)
aios_repo/detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:207
↓ 2 callers
Method
_set_output_path
(self, output_path)
mmhuman3d/core/renderer/torch3d_renderer/base_renderer.py:210
↓ 2 callers
Method
_set_resumed_keys
Set corresponding resumed keys. This method is called by ``update_scalar``, ``update_scalars`` and ``update_info`` to set the corresp
sapiens/engine/mmengine/logging/message_hub.py:271
↓ 2 callers
Method
_should_evaluate
Judge whether to perform evaluation. Here is the rule to judge whether to perform evaluation: 1. It will not perform evaluation durin
mmcv/mmcv/runner/hooks/evaluation.py:302
↓ 2 callers
Function
_should_use_custom_op
(input)
sapiens/cv/mmcv/ops/conv2d_gradfix.py:125
↓ 2 callers
Method
_swap_ema_parameters
Swap the parameter of model with parameter in ema_buffer.
mmcv/mmcv/runner/hooks/ema.py:106
↓ 2 callers
Method
_test_amp_deformconv
The function to test amp released on pytorch 1.6.0. The type of input data might be torch.float or torch.half, so we should test defo
mmcv/tests/test_ops/test_deform_conv.py:131
↓ 2 callers
Method
_test_amp_mdconv
The function to test amp released on pytorch 1.6.0. The type of input data might be torch.float or torch.half, so we should test mdco
mmcv/tests/test_ops/test_modulated_deform_conv.py:99
↓ 2 callers
Method
_test_bbox_overlaps
(self, device='cpu', dtype=torch.float)
mmcv/tests/test_ops/test_bbox.py:34
↓ 2 callers
Method
_test_sigmoid
(self, device, dtype=torch.float)
mmcv/tests/test_ops/test_focal_loss.py:86
↓ 2 callers
Method
_test_softmax
(self, dtype=torch.float)
mmcv/tests/test_ops/test_focal_loss.py:65
↓ 2 callers
Method
_to_pad
Pad the given 3d image to a certain shape with specified padding value. Args: img (ndarray): Biomedical image with shape
sapiens/seg/mmseg/datasets/transforms/transforms.py:2227
↓ 2 callers
Method
_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor] | Tensor): multi-level img features. Returns: Tenso
sapiens/pose/mmpose/models/necks/posewarper_neck.py:266
↓ 2 callers
Function
_transpose
This function is used to transpose image first tensors to level first ones.
sapiens/det/mmdet/models/dense_heads/centernet_update_head.py:49
↓ 2 callers
Method
_truncnorm
Sample from a truncated normal distribution.
sapiens/pose/mmpose/datasets/transforms/pose3d_transforms.py:174
↓ 2 callers
Function
_unimplemented
(op, msg)
mmcv/mmcv/onnx/onnx_utils/symbolic_helper.py:180
↓ 2 callers
Function
_unsqueeze_helper
(g, input, dim)
mmcv/mmcv/onnx/onnx_utils/symbolic_helper.py:223
↓ 2 callers
Method
_update
(self, model, update_fn)
aios_repo/util/utils.py:493
↓ 2 callers
Function
_upfirdn2d_cuda
Fast CUDA implementation of `upfirdn2d()` using custom ops. Args: up (int): Integer upsampling factor. Can be a single int or a
sapiens/cv/mmcv/ops/upfirdn2d.py:243
↓ 2 callers
Method
_wrap
Wrap model with :class:`ModelWrapper`.
sapiens/engine/mmengine/_strategy/colossalai.py:530
↓ 2 callers
Method
_wrap_model
(self, model: nn.Module)
sapiens/engine/mmengine/_strategy/deepspeed.py:410
↓ 2 callers
Function
aa_to_rot6d
Convert axis angles to rotation 6d representations. Args: axis_angle (Union[torch.Tensor, numpy.ndarray]): input shape sh
aios_repo/detrsmpl/utils/transforms.py:287
↓ 2 callers
Function
aa_to_rot6d
Convert axis angles to rotation 6d representations. Args: axis_angle (Union[torch.Tensor, numpy.ndarray]): input shape sh
mmhuman3d/utils/transforms.py:288
↓ 2 callers
Function
acc
(model, data_loader, device)
torch-trust-ncg/examples/SoftMaxRegression/main.py:46
↓ 2 callers
Function
accuracy
Computes the precision@k for the specified values of k.
aios_repo/util/misc.py:615
↓ 2 callers
Function
active_rotated_filter_backward
mmcv/mmcv/ops/csrc/parrots/active_rotated_filter.cpp:25
↓ 2 callers
Function
active_rotated_filter_backward
sapiens/cv/mmcv/ops/csrc/parrots/active_rotated_filter.cpp:25
↓ 2 callers
Function
active_rotated_filter_forward
mmcv/mmcv/ops/csrc/parrots/active_rotated_filter.cpp:20
↓ 2 callers
Function
active_rotated_filter_forward
sapiens/cv/mmcv/ops/csrc/parrots/active_rotated_filter.cpp:20
↓ 2 callers
Function
adapt_mmdet_pipeline
Converts pipeline types in MMDetection's test dataloader to use the 'mmdet' namespace. Args: cfg (ConfigDict): Configuration dictiona
sapiens/lite/demo/detector_utils.py:48
↓ 2 callers
Function
adaptive_avg_pool2d
Handle empty batch dimension to adaptive_avg_pool2d. Args: input (tensor): 4D tensor. output_size (int, tuple[int,int]): the targ
sapiens/det/mmdet/models/layers/brick_wrappers.py:45
↓ 2 callers
Function
addAnnItem
(annotation_id, image_id, category_id, bbox, difficult_flag)
sapiens/det/tools/dataset_converters/pascal_voc.py:135
↓ 2 callers
Method
add_camera
Add an camera to the scene. Args: camera_parameter (CameraParameter): An instance of class CameraParameter which
aios_repo/detrsmpl/core/renderer/vedo_render.py:76
↓ 2 callers
Method
add_camera
Add an camera to the scene. Args: camera_parameter (CameraParameter): An instance of class CameraParameter which
mmhuman3d/core/renderer/vedo_render.py:77
↓ 2 callers
Method
add_config
Record the config. Args: config (Config): The Config object.
sapiens/engine/mmengine/visualization/visualizer.py:1091
↓ 2 callers
Method
add_graph
Record the model graph. Args: model (torch.nn.Module): Model to draw. data_batch (Sequence[dict]): Batch of data from
sapiens/engine/mmengine/visualization/visualizer.py:1101
↓ 2 callers
Method
add_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
sapiens/det/mmdet/models/task_modules/assigners/assign_result.py:213
↓ 2 callers
Method
add_mask_to_image
( self, image: np.ndarray, data_sample: DataSample, resize: Union[int, Tuple[i
sapiens/pretrain/mmpretrain/visualization/visualizer.py:287
↓ 2 callers
Method
after_epoch
(self, runner)
mmcv/mmcv/runner/hooks/hook.py:45
↓ 2 callers
Method
after_iter
(self, runner)
mmcv/mmcv/runner/hooks/hook.py:51
↓ 2 callers
Method
after_train_iter
(self, runner)
mmcv/mmcv/runner/hooks/optimizer.py:75
↓ 2 callers
Method
albu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
sapiens/det/mmdet/datasets/transforms/transforms.py:1671
↓ 2 callers
Method
all_keys
Returns: list: Contains all keys in metainfo and data.
sapiens/engine/mmengine/structures/base_data_element.py:371
↓ 2 callers
Function
allreduce_grads
Allreduce gradients. Args: params (list[torch.nn.Parameter]): List of parameters of a model. coalesce (bool, optional): Whether a
mmcv/mmcv/runner/dist_utils.py:187
↓ 2 callers
Function
annealing_linear
Calculate annealing linear learning rate. Linear anneal from `start` to `end` as percentage goes from 0.0 to 1.0. Args: start (float
mmcv/mmcv/runner/hooks/lr_updater.py:749
↓ 2 callers
Function
autolabel
Attach a text label above each bar in *rects*, displaying its height.
sapiens/det/tools/analysis_tools/coco_error_analysis.py:82
↓ 2 callers
Method
backward
(ctx, grad_output)
blade/models/layers/graph_cnn.py:148
↓ 2 callers
Method
backward
Reversible Backward pass. Any intermediate activations from `buffer_layers` are recovered from ctx. Each layer implements its own loi
sapiens/pretrain/mmpretrain/models/backbones/revvit.py:90
↓ 2 callers
Method
backward_p
Apply mapping form the data space to the latent space and calculate the log determinant of the Jacobian matrix.
blade/models/losses/utils.py:82
↓ 2 callers
Method
backward_pass
Activation re-compute with the following equation. x2 = y2 - g(y1), g = FFN x1 = y1 - f(x2), f = MSHA
sapiens/pretrain/mmpretrain/models/backbones/revvit.py:264
↓ 2 callers
Function
basic_clean
(text)
sapiens/seg/mmseg/utils/tokenizer.py:97
↓ 2 callers
Function
batch_heatmap_nms
Apply NMS on a batch of heatmaps. Args: batch_heatmaps (Tensor): batch heatmaps in shape (B, K, H, W) kernel_size (int): The kern
sapiens/pose/mmpose/codecs/utils/post_processing.py:233
↓ 2 callers
Function
batch_label_to_onehot
Convert a concated label tensor to onehot format. Args: batch_label (torch.Tensor): A concated label tensor from multiple sam
sapiens/pretrain/mmpretrain/structures/utils.py:127
↓ 2 callers
Function
batch_rigid_transform
Applies a batch of rigid transformations to the joints. Parameters ---------- rot_mats : torch.tensor BxNx3x3 Tensor of rotation
aios_repo/util/smplx/smplx/lbs.py:359
↓ 2 callers
Function
batch_rigid_transform
Applies a batch of rigid transformations to the joints Parameters ---------- rot_mats : torch.tensor BxNx3x3 Tensor of rotat
smplx_repo/smplx/lbs.py:372
↓ 2 callers
Function
batch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
aios_repo/util/smplx/smplx/lbs.py:308
↓ 2 callers
Function
batch_rodrigues_vectors
(vec1, vec2)
blade/transforms/transform3d/geometry.py:29
↓ 2 callers
Function
batch_shuffle_ddp
Batch shuffle, for making use of BatchNorm. Args: x (torch.Tensor): Data in each GPU. Returns: Tuple[torch.Tensor, torch.Ten
sapiens/pretrain/mmpretrain/models/utils/batch_shuffle.py:37
↓ 2 callers
Function
bbox2delta
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h of proposals w.r.t ground truth bboxes to get regression t
sapiens/det/mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:242
↓ 2 callers
Function
bbox_clip
Clip bboxes to fit the image shape. Args: bboxes (ndarray): Shape (..., 4*k) img_shape (tuple[int]): (height, width) of the image
mmcv/mmcv/image/geometric.py:377
↓ 2 callers
Function
bbox_clip
Clip bboxes to fit the image shape. Args: bboxes (ndarray): Shape (..., 4*k) img_shape (tuple[int]): (height, width) of the image
sapiens/cv/mmcv/image/geometric.py:413
↓ 2 callers
Function
bbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
aios_repo/detrsmpl/core/post_processing/bbox/transforms.py:45
↓ 2 callers
Method
bbox_loss
Perform forward propagation and loss calculation of the bbox head on the features of the upstream network. Args: stage (i
sapiens/det/mmdet/models/roi_heads/sparse_roi_head.py:121
↓ 2 callers
Function
bbox_mapping
Map bboxes from the original image scale to testing scale.
sapiens/det/mmdet/structures/bbox/transforms.py:86
↓ 2 callers
Method
bbox_pred_split
Split batch bbox prediction back to each image.
sapiens/det/mmdet/models/roi_heads/bbox_heads/sabl_head.py:329
↓ 2 callers
Function
bbox_rescale
Rescale bounding box w.r.t. scale_factor. Args: bboxes (Tensor): Shape (n, 4) for bboxes or (n, 5) for rois scale_factor (float):
sapiens/det/mmdet/structures/bbox/transforms.py:261
↓ 2 callers
Function
bbox_xywh2xyxy
(bbox)
blade/utils/bbox_utils.py:344
↓ 2 callers
Function
bbox_xyxy_to_cxcywh
Convert bbox coordinates from (x1, y1, x2, y2) to (cx, cy, w, h). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
aios_repo/detrsmpl/core/post_processing/bbox/transforms.py:282
↓ 2 callers
Method
before_epoch
(self, runner)
mmcv/mmcv/runner/hooks/hook.py:42
↓ 2 callers
Method
before_iter
(self, runner)
mmcv/mmcv/runner/hooks/hook.py:48
↓ 2 callers
Function
bgr2gray
Convert a BGR image to grayscale image. Args: img (ndarray): The input image. keepdim (bool): If False (by default), then return
mmcv/mmcv/image/colorspace.py:47
↓ 2 callers
Function
bgr2gray
Convert a BGR image to grayscale image. Args: img (ndarray): The input image. keepdim (bool): If False (by default), then return
sapiens/cv/mmcv/image/colorspace.py:52
↓ 2 callers
Function
bias_act
r"""Fused bias and activation function. Adds `bias` to activation tensor `input`, and evaluates activation function `act`, and scales the res
sapiens/cv/mmcv/ops/bias_act.py:149
↓ 2 callers
Function
bilinear_interpolate_gradient
mmcv/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:217
↓ 2 callers
Function
bilinear_interpolate_gradient
sapiens/cv/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:217
↓ 2 callers
Function
blend_shapes
Calculates the per vertex displacement due to the blend shapes. Parameters ---------- betas : torch.tensor Bx(num_betas) Blend sh
aios_repo/util/smplx/smplx/lbs.py:285
↓ 2 callers
Method
bottleneck_fn
(self, xs)
sapiens/pretrain/mmpretrain/models/backbones/densenet.py:77
↓ 2 callers
Function
box1_in_box2
Check if corners of box1 lie in box2. Convention: if a corner is exactly on the edge of the other box, it's also a valid point. Args:
mmcv/mmcv/ops/diff_iou_rotated.py:98
↓ 2 callers
Function
box1_in_box2
Check if corners of box1 lie in box2. Convention: if a corner is exactly on the edge of the other box, it's also a valid point. Args:
sapiens/cv/mmcv/ops/diff_iou_rotated.py:103
↓ 2 callers
Function
box_iou
(boxes1, boxes2)
aios_repo/util/box_ops.py:40
↓ 2 callers
Function
boxes_overlap_bev
Calculate boxes BEV overlap. Args: boxes_a (torch.Tensor): Input boxes a with shape (M, 7). boxes_b (torch.Tensor): Input boxes b
mmcv/mmcv/ops/iou3d.py:39
↓ 2 callers
Function
build_architecture
Build framework.
aios_repo/detrsmpl/models/architectures/builder.py:58
↓ 2 callers
Function
build_architecture
Build framework.
mmhuman3d/models/architectures/builder.py:52
↓ 2 callers
Method
build_dataloader
(dataset)
sapiens/pretrain/mmpretrain/apis/image_retrieval.py:111
↓ 2 callers
Function
build_dropout
Builder for drop out layers.
mmcv/mmcv/cnn/bricks/drop.py:86
↓ 2 callers
Function
build_edge_closure
Builds the closure for the edge objective
smplx_repo/transfer_model/transfer_model.py:130
↓ 2 callers
Method
build_evaluator
Build evaluator. Examples of ``evaluator``:: # evaluator could be a built Evaluator instance evaluator = Evaluator(m
sapiens/engine/mmengine/runner/runner.py:1293
↓ 2 callers
Function
build_head_info
Build the head information string. Args: head_dict (Dict): Dictionary of fields in the head configuration. Returns: str: Head
sapiens/pose/mmpose/models/utils/check_and_update_config.py:226
↓ 2 callers
Function
build_layer
Method for creating a model from a path and a model type Parameters ---------- model_path: str Either the path t
smplx_repo/smplx/body_models.py:2320
↓ 2 callers
Function
build_lights
Build lights.
blade/render/explicit/pytorch3d_wrapper/lights/builder.py:37
↓ 2 callers
Function
build_lights
Build lights.
aios_repo/detrsmpl/core/renderer/torch3d_renderer/lights/builder.py:38
↓ 2 callers
Function
build_lights
Build lights.
mmhuman3d/core/renderer/torch3d_renderer/lights/builder.py:38
↓ 2 callers
Function
build_loss
(type='l2', reduction='mean', **kwargs)
smplx_repo/transfer_model/losses/losses.py:68
↓ 2 callers
Function
build_match_cost
Builder of IoU calculator.
aios_repo/detrsmpl/core/post_processing/bbox/match_costs/builder.py:30
↓ 2 callers
Function
build_matcher
(args)
aios_repo/models/aios/matcher.py:158
↓ 2 callers
Function
build_model
(args)
mmhuman3d/core/post_processing/speed_up/deciwatch.py:714
↓ 2 callers
Function
build_model_forward_closure
( body_model: nn.Module, var_dict: Dict[str, Tensor], per_part: bool = True, part_key: Optiona
smplx_repo/transfer_model/transfer_model.py:79
↓ 2 callers
Method
build_optim_wrapper
Build optimizer wrapper. If ``optim_wrapper`` is a config dict for only one optimizer, the keys must contain ``optimizer``, and ``typ
sapiens/engine/mmengine/runner/runner.py:1001
↓ 2 callers
Method
build_param_scheduler
Build parameter schedulers. ``build_param_scheduler`` should be called after ``build_optim_wrapper`` because the building logic will
sapiens/engine/mmengine/runner/runner.py:1204
← previous
next →
2,301–2,400 of 19,095, ranked by callers