MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 4 callersMethod_convert
Multiple with alpha and add beta with clip. Args: img (np.ndarray): The image array. alpha (float): The random multip
sapiens/pose/mmpose/datasets/transforms/common_transforms.py:811
↓ 4 callersFunction_convert_input_type_range
Convert the type and range of the input image. It converts the input image to np.float32 type and range of [0, 1]. It is mainly used for pre-
sapiens/cv/mmcv/image/colorspace.py:114
↓ 4 callersFunction_convert_output_type_range
Convert the type and range of the image according to dst_type. It converts the image to desired type and range. If `dst_type` is np.uint8, im
sapiens/cv/mmcv/image/colorspace.py:142
↓ 4 callersMethod_dispatch_kwargs
Dispatch kwargs to preprocess(), forward(), visualize() and postprocess() according to the actual demands. Returns: Tuple
sapiens/pretrain/mmpretrain/apis/base.py:368
↓ 4 callersMethod_draw_depth_map
Draws a depth map on a given image. This function takes an image and a depth map as input, renders the depth map, and concatenates it
sapiens/seg/mmseg/visualization/local_visualizer.py:224
↓ 4 callersMethod_draw_sem_seg
Draw semantic seg of GT or prediction. Args: image (np.ndarray): The image to draw. sem_seg (:obj:`PixelData`): Data
sapiens/seg/mmseg/visualization/local_visualizer.py:129
↓ 4 callersFunction_flip_axis_angle
Flip axis_angle horizontally. Args: r (np.ndarray([3])) Returns: f_flipped
mmhuman3d/data/datasets/pipelines/transforms.py:256
↓ 4 callersMethod_format_output
(self, x, hw, with_cls_token: bool)
sapiens/pretrain/mmpretrain/models/backbones/xcit.py:779
↓ 4 callersMethod_get_predictions
Post-process the output of retriever. Args: result (torch.Tensor): Score matrix of single retrieve, either from i
sapiens/pretrain/mmpretrain/models/multimodal/blip/blip_retrieval.py:670
↓ 4 callersMethod_get_prefix
Get the prefix of the target log level. Args: level (str): log level. color (bool): Whether to get colorful prefix.
sapiens/engine/mmengine/logging/logger.py:112
↓ 4 callersMethod_get_unserialized_subset
Get subset of data information list. Args: indices (int or Sequence[int]): If type of indices is int, indices rep
sapiens/engine/mmengine/dataset/base_dataset.py:738
↓ 4 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch. Code is modified from <https://github.com/facebookresearch/detectron2/blob/main/dete
sapiens/det/mmdet/utils/memory.py:90
↓ 4 callersFunction_indicate_uncalled_modules
If a module is in the set of uncalled modules, replace its statistics with the specified indicator, instead of using the existing string. Ass
sapiens/engine/mmengine/analysis/print_helper.py:128
↓ 4 callersMethod_keypoint_conf_to_limb_conf
(self, keypoint_conf)
blade/models/losses/prior_loss.py:128
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
DAv2/depth_anything_v2/dpt.py:35
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
DAv2/metric_depth/depth_anything_v2/dpt.py:35
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
blade/models/layers/fpn.py:123
↓ 4 callersMethod_make_layer
(self, block, inplanes, planes, num_blocks, stride=1)
sapiens/seg/mmseg/models/backbones/ddrnet.py:178
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
sapiens/pretrain/mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:213
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing. Args: x (tuple[Tensor]): Tuple of multi-level img features.
sapiens/det/mmdet/models/roi_heads/standard_roi_head.py:285
↓ 4 callersFunction_maybe_get_const
(value, desc)
mmcv/mmcv/onnx/onnx_utils/symbolic_helper.py:88
↓ 4 callersFunction_named_modules_with_dup
The same as `model.named_modules()`, except that it includes duplicated modules that have more than one name.
sapiens/engine/mmengine/analysis/jit_analysis.py:129
↓ 4 callersFunction_ntuple
(n)
mmcv/mmcv/utils/misc.py:37
↓ 4 callersFunction_ntuple
(n)
sapiens/engine/mmengine/utils/misc.py:46
↓ 4 callersFunction_ntuple
A `to_tuple` function generator. It returns a function, this function will repeat the input to a tuple of length ``n`` if the input is not an
sapiens/pretrain/mmpretrain/models/utils/helpers.py:58
↓ 4 callersMethod_parse_result
Parse results.
aios_repo/detrsmpl/data/datasets/human_hybrik_dataset.py:308
↓ 4 callersMethod_parse_result
Parse results.
mmhuman3d/data/datasets/human_hybrik_dataset.py:307
↓ 4 callersMethod_parse_result
Parse results.
mmhuman3d/data/datasets/human_image_dataset.py:344
↓ 4 callersFunction_plot_line_on_fig
Draw line on fig with matplotlib.
aios_repo/detrsmpl/core/renderer/matplotlib3d_renderer.py:408
↓ 4 callersFunction_plot_line_on_fig
Draw line on fig with matplotlib.
mmhuman3d/core/renderer/matplotlib3d_renderer.py:415
↓ 4 callersFunction_random_float
(a, b)
mmcv/tests/test_cnn/test_weight_init.py:80
↓ 4 callersMethod_refine_roi
Multi-stage refinement of RoI. Args: x (tuple[Tensor]): List of multi-level img features. rois (Tensor): shape (n, 5)
sapiens/det/mmdet/models/roi_heads/cascade_roi_head.py:474
↓ 4 callersMethod_register_module
Register a module. Args: module (type): Module to be registered. Typically a class or a function, but generally a
sapiens/engine/mmengine/registry/registry.py:614
↓ 4 callersFunction_release_lock
Release the module-level lock acquired by calling _accquire_lock().
sapiens/engine/mmengine/utils/manager.py:49
↓ 4 callersMethod_remove_prefix
Remove the prefix ``train``, ``val`` and ``test`` of the key.
sapiens/engine/mmengine/runner/log_processor.py:445
↓ 4 callersMethod_report_3d_auc
Cauculate the Area Under the Curve (AUC) computed for a range of 3DPCK thresholds. Args: keypoint_results (list): Keypoint
aios_repo/detrsmpl/data/datasets/human_image_dataset.py:557
↓ 4 callersMethod_report_3d_pck
Cauculate Percentage of Correct Keypoints (3DPCK) w. or w/o Procrustes alignment. Args: keypoint_results (list): Keypoint
aios_repo/detrsmpl/data/datasets/human_image_dataset.py:526
↓ 4 callersMethod_report_pve
Cauculate per vertex error.
aios_repo/detrsmpl/data/datasets/human_image_dataset.py:587
↓ 4 callersMethod_resize
(self, x, size)
mmcv/mmcv/ops/merge_cells.py:116
↓ 4 callersFunction_rotate_joints_3d
Rotate the 3D joints in the local coordinates. Notes: Joints number: K Args: joints_3d (np.ndarray([K, 3])): Coordinates of k
aios_repo/detrsmpl/data/datasets/pipelines/transforms.py:317
↓ 4 callersFunction_rotate_joints_3d
Rotate the 3D joints in the local coordinates. Notes: Joints number: K Args: joints_3d (np.ndarray([K, 3])): Coordinates of k
mmhuman3d/data/datasets/pipelines/transforms.py:309
↓ 4 callersMethod_save_image_gts_results
Display or save image with groung truths and predictions from a model. Args: dataset (Dataset): A PyTorch dataset.
sapiens/det/tools/analysis_tools/analyze_results.py:121
↓ 4 callersFunction_scale_size
Rescale a size by a ratio. Args: size (tuple[int]): (w, h). scale (float | int | tuple(float) | tuple(int)): Scaling factor.
sapiens/cv/mmcv/image/geometric.py:45
↓ 4 callersMethod_set_randomness
Set random seed to guarantee reproducible results. Args: seed (int, optional): A number to set random modules. De
sapiens/engine/mmengine/_strategy/base.py:280
↓ 4 callersMethod_set_range
Set the range of magnitudes.
sapiens/pretrain/mmpretrain/datasets/transforms/processing.py:956
↓ 4 callersMethod_set_real_position
(self, frame_id)
mmcv/mmcv/video/io.py:149
↓ 4 callersMethod_set_real_position
(self, frame_id)
sapiens/cv/mmcv/video/io.py:153
↓ 4 callersMethod_shape
(self, tensor: Tensor, seq_len: int, bsz: int)
sapiens/det/mmdet/models/utils/vlfuse_helper.py:146
↓ 4 callersFunction_to_tuple
(x, ndim)
sapiens/cv/mmcv/ops/conv2d_gradfix.py:134
↓ 4 callersFunctionadd
mmcv/mmcv/ops/csrc/pytorch/cpu/roi_align_rotated.cpp:268
↓ 4 callersFunctionadd
sapiens/cv/mmcv/ops/csrc/pytorch/cpu/roi_align_rotated.cpp:268
↓ 4 callersFunctionadd
sapiens/cv/mmcv/ops/csrc/pytorch/cpu/bezier_align.cpp:276
↓ 4 callersMethodadd_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/seg/mmseg/visualization/local_visualizer.py:296
↓ 4 callersMethodadd_meter
(self, name, meter)
aios_repo/util/misc.py:255
↓ 4 callersMethodadd_pred_to_datasample
Add predictions to `DetDataSample`. Args: data_samples (list[:obj:`DetDataSample`], optional): A batch of data sa
sapiens/det/mmdet/models/detectors/base.py:158
↓ 4 callersMethodadd_scalars
Record the scalars' data. Args: scalar_dict (dict): Key-value pair storing the tag and corresponding values.
sapiens/engine/mmengine/visualization/visualizer.py:1142
↓ 4 callersFunctionaffine_transform
Apply an affine transformation to the points. Args: pt (np.ndarray): a 2 dimensional point to be transformed trans_mat (np.ndarra
mmhuman3d/data/datasets/pipelines/transforms.py:93
↓ 4 callersFunctionanchor_ctr_inside_region_flags
Get the flag indicate whether anchor centers are inside regions.
sapiens/det/mmdet/models/task_modules/assigners/region_assigner.py:63
↓ 4 callersFunctionannealing_cos
Calculate annealing cos learning rate. Cosine anneal from `weight * start + (1 - weight) * end` to `end` as percentage goes from 0.0 to 1.0.
mmcv/mmcv/runner/hooks/lr_updater.py:728
↓ 4 callersFunctionargmin
(X, dim)
sapiens/seg/mmseg/utils/nearest_neighbours.py:53
↓ 4 callersFunctionassert_allclose
Asserts that ``actual`` and ``expected`` are close. A wrapper function of ``torch.testing.assert_allclose``. Args: actual (Any): Actu
sapiens/engine/mmengine/testing/compare.py:45
↓ 4 callersFunctionattention_pool
Pooling the feature tokens. Args: x (torch.Tensor): The input tensor, should be with shape ``(B, num_heads, L, C)`` or ``(B,
sapiens/pretrain/mmpretrain/models/backbones/mvit.py:151
↓ 4 callersFunctionaugmentation_keep_size
(img, bbox, data_split)
aios_repo/util/preprocessing.py:196
↓ 4 callersMethodaverage
Get the average value of current window.
aios_repo/detrsmpl/utils/demo_utils.py:756
↓ 4 callersMethodbackward
(ctx, a=None)
sapiens/cv/mmcv/ops/knn.py:105
↓ 4 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
smplx_repo/smplx/lbs.py:322
↓ 4 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
sapiens/det/mmdet/structures/bbox/transforms.py:98
↓ 4 callersFunctionbbox_project
Geometric transformation for bbox. Args: bboxes (Union[torch.Tensor, np.ndarray]): Shape (n, 4) for bboxes. homography_matrix (Un
sapiens/det/mmdet/structures/bbox/transforms.py:349
↓ 4 callersFunctionbox2corners
Convert rotated 2d box coordinate to corners. Args: box (Tensor): (B, N, 5) with x, y, w, h, alpha. Returns: Tensor: (B, N,
mmcv/mmcv/ops/diff_iou_rotated.py:250
↓ 4 callersFunctionbox2corners
Convert rotated 2d box coordinate to corners. Args: box (Tensor): (B, N, 5) with x, y, w, h, alpha. Returns: Tensor: (B, N,
sapiens/cv/mmcv/ops/diff_iou_rotated.py:255
↓ 4 callersFunctionbox_cxcywh_to_xyxy
(x)
aios_repo/util/box_ops.py:28
↓ 4 callersFunctionbuild_architecture
Build framework.
blade/models/architectures/builder.py:29
↓ 4 callersFunctionbuild_dataset
Build dataset by the given config.
mmhuman3d/data/datasets/builder.py:51
↓ 4 callersFunctionbuild_dataset
Build dataset. Examples: >>> from mmpretrain.datasets import build_dataset >>> mnist_train = build_dataset( ... dict(
sapiens/pretrain/mmpretrain/datasets/builder.py:33
↓ 4 callersFunctionbuild_optimizer
Creates the optimizer
smplx_repo/transfer_model/optimizers/optim_factory.py:52
↓ 4 callersFunctionbuild_plugin_layer
Build plugin layer. Args: cfg (dict): cfg should contain: - type (str): identify plugin layer type. - layer args
sapiens/cv/mmcv/cnn/bricks/plugin.py:86
↓ 4 callersMethodbuild_project
Build projection layer for key/query/value/out.
blade/models/utils/self_attention_block.py:129
↓ 4 callersMethodby_module
Returns the statistics for all submodules, aggregated over all operators. Returns: Counter(str): statistics counter group
sapiens/engine/mmengine/analysis/jit_analysis.py:334
↓ 4 callersFunctioncalc_region
Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args: bbox (Tensor
sapiens/det/mmdet/models/task_modules/prior_generators/utils.py:73
↓ 4 callersFunctioncalc_region
Calculate region of the box defined by the ratio, the ratio is from the center of the box to every edge.
sapiens/det/mmdet/models/task_modules/assigners/region_assigner.py:42
↓ 4 callersFunctioncam2pixel
Convert coordinates from camera to image frame given f and c Args: cam_coord (np.ndarray): Coordinates in camera frame f (list): f
mmhuman3d/data/datasets/pipelines/hybrik_transforms.py:191
↓ 4 callersMethodcanonical_module_name
Returns the canonical module name of the given ``name``, which might be different from the given ``name`` if the module is shared. Th
sapiens/engine/mmengine/analysis/jit_analysis.py:424
↓ 4 callersMethodcheck_keypoints_compressed
Check whether the keypoints are compressed. Returns: bool: Whether the keypoints are compressed.
aios_repo/detrsmpl/data/data_structures/human_data.py:248
↓ 4 callersFunctionclamp_values
Clamp the values of a vector to the range [-MAX_CLAMP_VALUE, MAX_CLAMP_VALUE]. Args: vector (Tensor): Tensor of shape (N, C, H, W).
sapiens/det/mmdet/models/utils/vlfuse_helper.py:85
↓ 4 callersMethodclear_output
(self)
mmcv/mmcv/runner/log_buffer.py:43
↓ 4 callersMethodcompress_keypoints_by_mask
If a key contains 'keypoints', and f'{key}_mask' is in self.keys(), invalid zeros will be removed and f'{key}_mask' will be locked. R
aios_repo/detrsmpl/data/data_structures/human_data.py:1035
↓ 4 callersFunctionconcat_images
Concat images of different size.
mmhuman3d/models/utils/SMPLX.py:210
↓ 4 callersMethodcontains
(self)
mmcv/tests/test_fileclient.py:119
↓ 4 callersFunctionconvert_to_one_hot
This function converts target class indices to one-hot vectors, given the number of classes. Args: targets (Tensor): The ground truth
sapiens/pretrain/mmpretrain/models/losses/utils.py:131
↓ 4 callersFunctionconvert_world_view
Convert between view_to_world and world_to_view defined extrinsic matrix. Args: R (Union[torch.Tensor, np.ndarray]): extrinsic rotati
aios_repo/detrsmpl/core/conventions/cameras/convert_convention.py:638
↓ 4 callersFunctionconvert_world_view
Convert between view_to_world and world_to_view defined extrinsic matrix. Args: R (Union[torch.Tensor, np.ndarray]): extrinsic rotati
mmhuman3d/core/conventions/cameras/convert_convention.py:640
↓ 4 callersFunctioncoordinate_to_encoding
Convert coordinate tensor to positional encoding. Args: coord_tensor (Tensor): Coordinate tensor to be converted to positiona
sapiens/det/mmdet/models/layers/transformer/utils.py:77
↓ 4 callersMethodcpu
Convert all tensors to CPU in data.
sapiens/engine/mmengine/structures/base_data_element.py:520
↓ 4 callersMethodcrop
See :func:`BaseInstanceMasks.crop`.
sapiens/det/mmdet/structures/mask/structures.py:375
↓ 4 callersMethodcrop_imgs
Crop the images according to some bounding boxes. Typically for re- identification sub-module. Args: img (Tensor): of sha
sapiens/det/mmdet/models/trackers/base_tracker.py:214
↓ 4 callersMethodcurrent
Return the recently updated values in log histories. Returns: np.ndarray: Recently updated values in log histories.
sapiens/engine/mmengine/logging/history_buffer.py:228
↓ 4 callersMethodcvt2frames
Convert a video to frame images. Args: frame_dir (str): Output directory to store all the frame images. file_start (i
mmcv/mmcv/video/io.py:220
↓ 4 callersFunctiondatafrombytes
Data decoding from bytes. Args: content (bytes): The data bytes got from files or other streams. backend (str): The data decoding
sapiens/seg/mmseg/utils/io.py:38
↓ 4 callersMethoddecoder_norm
The normalization layer of decoder.
sapiens/pretrain/mmpretrain/models/necks/mae_neck.py:135
↓ 4 callersMethoddecompose
(self)
aios_repo/util/misc.py:454
← previousnext →1,101–1,200 of 19,095, ranked by callers