MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 3 callersFunctionmkdir_or_exist
(dir_name, mode=0o777)
mmcv/mmcv/utils/path.py:49
↓ 3 callersFunctionmmcv_full_available
Check whether mmcv-full is installed. Returns: bool: True if mmcv-full is installed else False.
sapiens/engine/mmengine/utils/dl_utils/misc.py:127
↓ 3 callersFunctionmodulated_deform_conv_backward_fallthrough
sapiens/cv/mmcv/ops/csrc/pytorch/modulated_deform_conv.cpp:136
↓ 3 callersFunctionmodulated_deform_conv_forward_fallthrough
sapiens/cv/mmcv/ops/csrc/pytorch/modulated_deform_conv.cpp:58
↓ 3 callersFunctionmse_loss
A Wrapper of MSE loss. Args: pred (Tensor): The prediction. target (Tensor): The learning target of the prediction. Returns:
sapiens/det/mmdet/models/losses/mse_loss.py:41
↓ 3 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmhuman3d/apis/test.py:61
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
sapiens/seg/mmseg/models/utils/shape_convert.py:47
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
sapiens/det/mmdet/models/layers/transformer/utils.py:64
↓ 3 callersFunctionnew_array_func
(shape, value, device_data, if_uint8)
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:146
↓ 3 callersFunctionnew_array_func
(shape, value, device_data, if_uint8)
mmhuman3d/core/conventions/keypoints_mapping/__init__.py:135
↓ 3 callersFunctionnms_impl
sapiens/cv/mmcv/ops/csrc/pytorch/nms.cpp:16
↓ 3 callersMethodnorm
(self)
sapiens/cv/mmcv/cnn/bricks/conv_module.py:257
↓ 3 callersMethodnorm1
(self)
sapiens/seg/mmseg/models/backbones/vit.py:131
↓ 3 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
sapiens/det/mmdet/models/backbones/resnet.py:277
↓ 3 callersMethodnorm2
(self)
sapiens/seg/mmseg/models/backbones/vit.py:135
↓ 3 callersMethodoffline_evaluate
Offline evaluate the dumped predictions on the given data . Args: data_samples (Sequence): All predictions and ground truth of th
sapiens/engine/mmengine/evaluator/evaluator.py:120
↓ 3 callersFunctionoks_iou
Calculate oks ious. Note: - number of keypoints: K - number of instances: N Args: g (np.ndarray): The instance to c
sapiens/pose/mmpose/evaluation/functional/nms.py:83
↓ 3 callersMethodoverwrite_default_scope
overwrite the current default scope with `scope_name`
sapiens/engine/mmengine/registry/default_scope.py:111
↓ 3 callersFunctionparse
(x)
sapiens/engine/mmengine/utils/misc.py:48
↓ 3 callersFunctionparse_data
(name, typ, default_value=0)
mmcv/mmcv/tensorrt/preprocess.py:88
↓ 3 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
sapiens/engine/setup.py:55
↓ 3 callersMethodpatchify
r"""Split images into non-overlapped patches. Args: imgs (torch.Tensor): A batch of images. The shape should be :
sapiens/pretrain/mmpretrain/models/selfsup/mae_sapiens2.py:188
↓ 3 callersFunctionpoint_sample
A wrapper around :func:`grid_sample` to support 3D point_coords tensors Unlike :func:`torch.nn.functional.grid_sample` it assumes point_coords to
mmcv/mmcv/ops/point_sample.py:281
↓ 3 callersMethodpop_info
Remove runtime information by key. If the key does not exist, this method will return the default value. Args: key (str):
sapiens/engine/mmengine/logging/message_hub.py:233
↓ 3 callersFunctionpose_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from heatmaps. Note: P
sapiens/pose/mmpose/evaluation/functional/keypoint_eval.py:219
↓ 3 callersMethodpostprocess
Process the predictions and visualization results from ``forward`` and ``visualize``. This method should be responsible for the follo
sapiens/pose/mmpose/apis/inferencers/base_mmpose_inferencer.py:404
↓ 3 callersMethodpre_logits
The process before the final classification head. The input ``feats`` is a tuple of tensor, and each tensor is the feature of a backb
sapiens/pretrain/mmpretrain/models/heads/cls_head.py:71
↓ 3 callersMethodpredict
(self, inputs1: Tensor, inputs2: Tensor, data_samples1: OptSam
sapiens/seg/mmseg/models/segmentors/stereo_pointmap_estimator.py:334
↓ 3 callersMethodpredict
(self, inputs1: Tensor, inputs2: Tensor, data_samples1: OptSam
sapiens/seg/mmseg/models/segmentors/stereo_correspondences_estimator.py:255
↓ 3 callersMethodpredict
Predict results from a batch of inputs and data samples with post- processing. Args: batch_inputs (Tensor): Inputs with s
sapiens/det/mmdet/models/detectors/glip.py:344
↓ 3 callersMethodpredict_all
(self, feats, data_samples, num_images=None,
sapiens/pretrain/mmpretrain/models/multimodal/blip/blip_retrieval.py:527
↓ 3 callersMethodpredict_by_feat
predict_by_feat() is implemented in StageCascadeRPNHead.
sapiens/det/mmdet/models/dense_heads/cascade_rpn_head.py:975
↓ 3 callersMethodprepare_for_dn2
(self, targets)
aios_repo/models/aios/aios_smplx_controlnet.py:875
↓ 3 callersMethodpreprocess
Process the inputs into a model-feedable format. Args: inputs (InputsType): Inputs given by user. batch_size (int): b
sapiens/pose/mmpose/apis/inferencers/mmpose_inferencer.py:122
↓ 3 callersFunctionpreprocess_onnx
Modify onnx model to match with TensorRT plugins in mmcv. There are some conflict between onnx node definition and TensorRT limit. This funct
mmcv/mmcv/tensorrt/preprocess.py:31
↓ 3 callersFunctionprint_coco_results
(results)
sapiens/det/tools/analysis_tools/robustness_eval.py:37
↓ 3 callersFunctionproject_points
Perform orthographic projection of 3D points using the camera parameters, return projected 2D points in image plane. Notes: batch siz
aios_repo/detrsmpl/utils/geometry.py:383
↓ 3 callersMethodput_text
Write data to a given ``filepath`` with 'w' mode. Note: ``put_text`` should create a directory if the directory of ``
sapiens/engine/mmengine/fileio/file_client.py:358
↓ 3 callersMethodquick
(self)
mmcv/mmcv/device/ipu/hierarchical_data_manager.py:66
↓ 3 callersMethodrandom_masking
Generate the mask for MAE Pre-training. Args: x (torch.Tensor): Image with data augmentation applied, which is of
sapiens/pretrain/mmpretrain/models/selfsup/mae.py:94
↓ 3 callersMethodrefine_bboxes
Refine bboxes through stages.
sapiens/det/mmdet/models/dense_heads/cascade_rpn_head.py:779
↓ 3 callersFunctionrefine_keypoints
Refine keypoint predictions by moving from the maximum towards the second maximum by 0.25 pixel. The operation is in-place. Note: -
sapiens/pose/mmpose/codecs/utils/refinement.py:37
↓ 3 callersFunctionregister_all_modules
Register all modules in mmseg into the registries. Args: init_default_scope (bool): Whether initialize the mmseg default scope.
sapiens/seg/mmseg/utils/set_env.py:36
↓ 3 callersFunctionregister_hf_tokenizer
Register HuggingFace-style PreTrainedTokenizerBase class.
sapiens/pretrain/mmpretrain/models/utils/huggingface.py:41
↓ 3 callersMethodregister_logger_hooks
(self, log_config)
mmcv/mmcv/runner/base_runner.py:486
↓ 3 callersFunctionrel_roi_point_to_rel_img_point
Convert roi based relative point coordinates to image based absolute point coordinates. Args: rois (torch.Tensor): RoIs or BBoxes, sh
sapiens/cv/mmcv/ops/point_sample.py:247
↓ 3 callersFunctionrename_loss_dict
Rename the key names in loss dict by adding a prefix. Args: prefix (str): The prefix for loss components. losses (dict): A dicti
sapiens/det/mmdet/models/utils/misc.py:569
↓ 3 callersMethodrender_segmask
Compute loss for part segmentations.
blade/models/architectures/blade.py:2492
↓ 3 callersFunctionreplace_ann
(pipeline)
sapiens/det/mmdet/testing/_utils.py:471
↓ 3 callersFunctionreplace_img
(pipeline)
sapiens/det/mmdet/testing/_utils.py:467
↓ 3 callersMethodrescale
See :func:`BaseInstanceMasks.rescale`.
sapiens/det/mmdet/structures/mask/structures.py:326
↓ 3 callersFunctionresize
Resize a given input tensor using specified size or scale_factor. Args: input (torch.Tensor): The input tensor to be resized. siz
sapiens/pose/mmpose/models/utils/ops.py:37
↓ 3 callersFunctionresolve
(path)
smplx_repo/transfer_model/write_obj.py:211
↓ 3 callersFunctionreweight_loss_dict
Reweight losses in the dict by weight. Args: losses (dict): A dictionary of loss components. weight (float): Weight for loss com
sapiens/det/mmdet/models/utils/misc.py:582
↓ 3 callersFunctionrm_suffix
(s, suffix=None)
sapiens/pretrain/mmpretrain/datasets/utils.py:49
↓ 3 callersFunctionroi_align_backward_impl
sapiens/cv/mmcv/ops/csrc/pytorch/roi_align.cpp:26
↓ 3 callersFunctionroi_align_forward_impl
sapiens/cv/mmcv/ops/csrc/pytorch/roi_align.cpp:16
↓ 3 callersFunctionrot6d_to_rotmat
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Net
mmhuman3d/utils/geometry.py:76
↓ 3 callersMethodrotate_global_orient
Transform global orientation given rotation matrix. Args: rotMat: rotation matrix global_orient: original global orie
mmhuman3d/data/data_converters/agora.py:147
↓ 3 callersFunctionrotated_feature_align
(features, best_rbboxes, spatial_scale=1 / 8,
mmcv/mmcv/ops/rotated_feature_align.py:110
↓ 3 callersFunctionround_float
(items)
aios_repo/engine.py:45
↓ 3 callersMethodrun
Launch val.
sapiens/pretrain/mmpretrain/engine/runners/retrieval_loop.py:51
↓ 3 callersFunctionrun_fitting
Runs fitting
smplx_repo/transfer_model/transfer_model.py:280
↓ 3 callersFunctionsamplelist_boxtype2tensor
(batch_data_samples: SampleList)
sapiens/det/mmdet/models/utils/misc.py:471
↓ 3 callersFunctionsave_file_list
(filepath, file_list)
sapiens/pose/tools/process/check_valid_videos.py:115
↓ 3 callersFunctionscale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
sapiens/det/mmdet/models/task_modules/assigners/center_region_assigner.py:42
↓ 3 callersMethodscatter
(self, inputs, kwargs, device_ids)
mmcv/mmcv/parallel/distributed_deprecated.py:75
↓ 3 callersFunctionscatter_kwargs
Scatter with support for kwargs dictionary.
mmcv/mmcv/device/mlu/scatter_gather.py:72
↓ 3 callersMethodscheduler_state_dict
Get parameter scheduler state dict.
sapiens/engine/mmengine/_strategy/base.py:802
↓ 3 callersFunctionsearch_limbs
Search the corresponding limbs following the basis human_data limbs. The mask could mask out the incorrect keypoints. Args: data_sour
blade/utils/keypoint_utils.py:35
↓ 3 callersMethodseed_cuda
Fix seeds to allow for stochastic elements such as dropout to be reproduced exactly in activation recomputation in the backward pass.
sapiens/pretrain/mmpretrain/models/backbones/revvit.py:211
↓ 3 callersMethodset
(self, model)
aios_repo/util/utils.py:506
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_cummaxmin.cpp:161
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_scatternd.cpp:158
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_corner_pool.cpp:133
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_modulated_deform_conv.cpp:207
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_roi_align.cpp:184
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_nms.cpp:189
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_deform_conv.cpp:205
↓ 3 callersMethodsetPluginNamespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_grid_sampler.cpp:178
↓ 3 callersMethodsetPluginNamespace
Set plugin namespace
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_instance_norm.cpp:155
↓ 3 callersMethodset_KRT
Set intrinsic and extrinsic of a camera. Args: K_mat (np.ndarray): In shape [3, 3]. R_mat (np.ndarray
mmhuman3d/core/cameras/camera_parameters.py:150
↓ 3 callersMethodset_dataset_meta
Set meta information to visualizer. Args: classes (list, optional): Input classes for result rendering, as the pr
sapiens/seg/mmseg/visualization/local_visualizer.py:263
↓ 3 callersFunctionset_default_dataloader_cfg
(cfg, field)
sapiens/pretrain/tools/train.py:152
↓ 3 callersMethodset_gt_label
Set ``gt_label``.
sapiens/pretrain/mmpretrain/structures/data_sample.py:108
↓ 3 callersMethodset_model
set model based on config. Args: model (nn.Module): pytorch model config (Dict): config file search_op (s
sapiens/cv/mmcv/cnn/rfsearch/search.py:213
↓ 3 callersMethodset_randomness
Set random seed to guarantee reproducible results. Args: seed (int): A number to set random modules. diff_rank_seed (
sapiens/engine/mmengine/runner/runner.py:711
↓ 3 callersFunctionset_requires_grad
Set requies_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network. requires
blade/models/architectures/blade_helper.py:196
↓ 3 callersFunctionshow_result_pyplot
Visualize the segmentation results on the image. Args: model (nn.Module): The loaded segmentor. img (str or np.ndarray): Image fi
sapiens/seg/mmseg/apis/inference.py:163
↓ 3 callersFunctionsigmoid_focal_loss_backward_impl
sapiens/cv/mmcv/ops/csrc/pytorch/focal_loss.cpp:21
↓ 3 callersFunctionsigmoid_focal_loss_forward_impl
sapiens/cv/mmcv/ops/csrc/pytorch/focal_loss.cpp:15
↓ 3 callersFunctionsingle_gpu_test
Test with single gpu.
mmhuman3d/apis/test.py:36
↓ 3 callersMethodsize
mmcv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:864
↓ 3 callersMethodsize
sapiens/cv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:865
↓ 3 callersFunctionsoft_nms
Dispatch to only CPU Soft NMS implementations. The input can be either a torch tensor or numpy array. The returned type will always be the sa
mmcv/mmcv/ops/nms.py:208
↓ 3 callersFunctionstack_batch
Stack multiple tensors to form a batch and pad the tensor to the max shape use the right bottom padding mode in these images. If ``pad_size_di
sapiens/engine/mmengine/model/utils.py:42
↓ 3 callersFunctionstack_batch
Stack multiple inputs to form a batch and pad the images and gt_sem_segs to the max shape use the right bottom padding mode. Args: in
sapiens/seg/mmseg/utils/misc.py:58
↓ 3 callersMethodstart
Start the timer.
mmcv/mmcv/utils/timer.py:79
↓ 3 callersFunctionsummary_closure
(gt_vertices, var_dict, body_model, mask_ids=None)
smplx_repo/transfer_model/transfer_model.py:57
↓ 3 callersFunctiontensor2array
Convert image tensor to array.
blade/render/explicit/pytorch3d_wrapper/renderers/utils.py:66
← previousnext →1,801–1,900 of 19,095, ranked by callers