MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 2 callersFunctionget_max_preds
get predictions from score maps heatmaps: numpy.ndarray([batch_size, num_joints, height, width])
sapiens/pose/mmpose/engine/hooks/pose3d_visualization_hook.py:292
↓ 2 callersFunctionget_model_parameters_number
Calculate parameter number of a model. Args: model (nn.module): The model for parameter number calculation. Returns: float:
mmcv/mmcv/cnn/utils/flops_counter.py:336
↓ 2 callersFunctionget_model_parameters_number
Calculate parameter number of a model. Args: model (nn.module): The model for parameter number calculation. Returns: float:
sapiens/cv/mmcv/cnn/utils/flops_counter.py:343
↓ 2 callersFunctionget_modules_mapping
()
mmcv/mmcv/cnn/utils/flops_counter.py:580
↓ 2 callersFunctionget_modules_mapping
()
sapiens/cv/mmcv/cnn/utils/flops_counter.py:587
↓ 2 callersMethodget_momentum
(self, runner, base_momentum)
mmcv/mmcv/runner/hooks/momentum_updater.py:75
↓ 2 callersMethodget_momentum
(self, runner, param_group)
mmcv/mmcv/runner/hooks/momentum_updater.py:561
↓ 2 callersMethodget_momentum
Get the momentum of the optimizer. Provide unified interface to get momentum of optimizer. Returns: Dict[str, List[float
sapiens/engine/mmengine/optim/optimizer/base.py:140
↓ 2 callersMethodget_pad_shape
(self, input_shape)
blade/models/utils/embed.py:86
↓ 2 callersMethodget_pad_shape
Calculate the padding size of input. Args: input_shape (:obj:`torch.Size`): arrange as (H, W). Returns: Tupl
mmcv/mmcv/cnn/bricks/transformer.py:134
↓ 2 callersMethodget_pad_shape
Calculate the padding size of input. Args: input_shape (:obj:`torch.Size`): arrange as (H, W). Returns: Tupl
sapiens/cv/mmcv/cnn/bricks/transformer.py:140
↓ 2 callersMethodget_pad_shape
(self, input_shape)
sapiens/seg/mmseg/models/utils/embed.py:86
↓ 2 callersMethodget_pad_shape
(self, input_shape)
sapiens/det/mmdet/models/layers/transformer/utils.py:191
↓ 2 callersMethodget_pad_shape
Get horizontal and vertical padding shapes.
sapiens/pose/mmpose/models/utils/transformer.py:117
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
sapiens/seg/mmseg/utils/tokenizer.py:83
↓ 2 callersFunctionget_pointcloud_mesh
(verts_padded, level=0, radius=0.01, colors=None)
blade/utils/mesh_utils.py:42
↓ 2 callersFunctionget_pose_est_results
(args, pose_estimator, frame, bboxes, pose_est_results_last, next_id, pose_lift_datas
sapiens/pose/demo/body3d_pose_lifter_demo.py:182
↓ 2 callersFunctionget_pose_lift_results
(args, visualizer, pose_lifter, pose_est_results_list, frame, frame_idx, pose_est_re
sapiens/pose/demo/body3d_pose_lifter_demo.py:240
↓ 2 callersMethodget_positive_infos
Get positive information from sampling results. Returns: list[:obj:`InstanceData`]: Positive Information of each image,
sapiens/det/mmdet/models/dense_heads/yolact_head.py:355
↓ 2 callersMethodget_regular_lr
(self, runner: 'runner.BaseRunner')
mmcv/mmcv/runner/hooks/lr_updater.py:96
↓ 2 callersMethodget_regular_momentum
(self, runner)
mmcv/mmcv/runner/hooks/momentum_updater.py:78
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Borrowed from https://github.com/facebookresea
sapiens/pretrain/mmpretrain/models/backbones/vit_sam.py:106
↓ 2 callersMethodget_rel_pos_bias
(self, x, idx)
sapiens/pretrain/mmpretrain/models/multimodal/ofa/ofa_modules.py:1290
↓ 2 callersFunctionget_root_logger
(log_file=None, log_level=logging.INFO)
aios_repo/detrsmpl/utils/logger.py:29
↓ 2 callersFunctionget_root_logger
(log_file=None, log_level=logging.INFO)
mmhuman3d/utils/logger.py:29
↓ 2 callersMethodget_sampled_approxs
Get sampled approxs and inside flags according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map s
sapiens/det/mmdet/models/dense_heads/guided_anchor_head.py:282
↓ 2 callersFunctionget_samples
Make dataset by walking all images under a root. Args: root (string): root directory of folders folder_to_idx (dict): the map fro
sapiens/pretrain/mmpretrain/datasets/custom.py:71
↓ 2 callersMethodget_scalar
Get ``HistoryBuffer`` instance by key. Note: Considering the large memory footprint of history buffers in the post-tr
sapiens/engine/mmengine/logging/message_hub.py:313
↓ 2 callersMethodget_subset
Return a subset of dataset. This method will return a subset of original dataset. If type of indices is int, ``get_subset_`` will ret
sapiens/pretrain/mmpretrain/datasets/_airstore_base_dataset.py:622
↓ 2 callersMethodget_subset_idx
(self, total_num)
sapiens/pretrain/mmpretrain/datasets/flamingo.py:76
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[Tensor]): Multi level p
sapiens/det/mmdet/models/dense_heads/reppoints_head.py:521
↓ 2 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Args: sampling_results (List[obj
sapiens/det/mmdet/models/tracking_heads/roi_embed_head.py:211
↓ 2 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results.". Args: sampling_results (List[:
sapiens/det/mmdet/models/roi_heads/mask_heads/grid_head.py:292
↓ 2 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Almost the same as the implementation in bbo
sapiens/det/mmdet/models/roi_heads/bbox_heads/dii_head.py:390
↓ 2 callersFunctionget_text_sine_pos_embed
generate sine position embedding from a position tensor Args: pos_tensor (torch.Tensor): shape: [..., n]. num_pos_feats (int): pro
sapiens/det/mmdet/models/layers/transformer/utils.py:907
↓ 2 callersMethodget_tokens_positive_and_prompts
Get the tokens positive and prompts for the caption. Args: original_caption (str): The original caption, e.g. 'bench . car .'
sapiens/det/mmdet/models/detectors/grounding_dino.py:149
↓ 2 callersMethodget_tokens_positive_and_prompts
( self, original_caption: Union[str, list, tuple], custom_entities: bool =
sapiens/det/mmdet/models/detectors/glip.py:278
↓ 2 callersMethodget_triggered_stages
(self)
mmcv/mmcv/runner/hooks/hook.py:96
↓ 2 callersMethodget_triggered_stages
Get all triggered stages with method name of the hook. Returns: list: List of triggered stages.
sapiens/engine/mmengine/hooks/hook.py:449
↓ 2 callersFunctionget_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_preds' for t
sapiens/det/mmdet/models/utils/point_sample.py:35
↓ 2 callersMethodget_warmup_lr
(self, cur_iters: int)
mmcv/mmcv/runner/hooks/lr_updater.py:110
↓ 2 callersMethodget_warmup_momentum
(self, cur_iters)
mmcv/mmcv/runner/hooks/momentum_updater.py:94
↓ 2 callersFunctionget_wrist_local
(body_pose, lhand_orient, rhand_orient, pose_forma
blade/models/body_models/utils.py:159
↓ 2 callersMethodget_zero_center_bbox_tensor
Get a tensor of bboxes centered at (0, 0). Returns: Tensor: Tensor of bboxes with shape (num_bboxes, 4) in [xmin, ymi
sapiens/det/tools/analysis_tools/optimize_anchors.py:157
↓ 2 callersFunctiongetattr_recursive
Return nested attribute of obj Example: getattr_recursive(obj, 'a.b.c') is equivalent to obj.a.b.c
sapiens/pretrain/mmpretrain/models/multimodal/flamingo/utils.py:70
↓ 2 callersFunctiongrid_sampler_compute_source_index
mmcv/mmcv/ops/csrc/onnxruntime/cpu/gridSample.cpp:86
↓ 2 callersMethodgt_to_coco_json
Convert ground truth to coco format json file. Args: gt_dicts (Sequence[dict]): Ground truth of the dataset. outfile_
sapiens/det/mmdet/evaluation/metrics/coco_metric.py:302
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
sapiens/det/mmdet/models/task_modules/samplers/ohem_sampler.py:62
↓ 2 callersFunctionhard_voxelize_forward
mmcv/mmcv/ops/csrc/parrots/voxelization.cpp:36
↓ 2 callersFunctionhard_voxelize_forward
sapiens/cv/mmcv/ops/csrc/parrots/voxelization.cpp:36
↓ 2 callersMethodhas_batch_norm
(self, module)
mmcv/mmcv/runner/hooks/optimizer.py:147
↓ 2 callersMethodhas_overflow
Check if params contain overflow.
mmcv/mmcv/runner/fp16_utils.py:397
↓ 2 callersMethodhbox2corner
Convert box coordinates from (x1, y1, x2, y2) to corners ((x1, y1), (x2, y1), (x1, y2), (x2, y2)). Args: boxes (Tensor):
sapiens/det/mmdet/structures/bbox/horizontal_boxes.py:233
↓ 2 callersFunctionimages_to_gif
Convert series of images to a video, similar to images_to_video, but provide more suitable parameters. Args: input_folder (str): inpu
mmhuman3d/utils/ffmpeg_utils.py:799
↓ 2 callersFunctionimages_to_sorted_images
Copy and rename a folder of images into a new folder following the `img_format`. Args: input_folder (str): input folder. outp
aios_repo/detrsmpl/utils/ffmpeg_utils.py:370
↓ 2 callersFunctionimages_to_sorted_images
Copy and rename a folder of images into a new folder following the `img_format`. Args: input_folder (str): input folder. outp
mmhuman3d/utils/ffmpeg_utils.py:369
↓ 2 callersFunctionimrenormalize
Re-normalize the image. Args: img (Tensor | ndarray): Input image. If the input is a Tensor, the shape is (1, C, H, W). If th
sapiens/det/mmdet/models/utils/image.py:38
↓ 2 callersMethodinfer_image
(self, raw_image, input_size=518)
DAv2/metric_depth/depth_anything_v2/dpt.py:211
↓ 2 callersFunctioninference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str, ndarray, Sequence[str/ndarray]):
sapiens/lite/demo/detector_utils.py:72
↓ 2 callersMethodinit
(m)
sapiens/engine/mmengine/model/weight_init.py:253
↓ 2 callersFunctioninit_conversion
(smpl_repo_path, device, from_model, to_model)
blade/datasets/utils.py:103
↓ 2 callersMethodinit_weights
(self)
mmcv/mmcv/ops/modulated_deform_conv.py:216
↓ 2 callersMethodinit_weights
Default initialization for Parameters of Module.
mmcv/mmcv/ops/multi_scale_deform_attn.py:251
↓ 2 callersMethodinit_weights
Initialize the weights.
sapiens/engine/mmengine/model/base_module.py:94
↓ 2 callersMethodinit_weights
(self, rec_state_dict)
sapiens/seg/mmseg/models/decode_heads/san_head.py:390
↓ 2 callersFunctioninitialize
r"""Initialize a module. Args: module (``torch.nn.Module``): the module will be initialized. init_cfg (dict | list[dict]): initia
sapiens/engine/mmengine/model/weight_init.py:579
↓ 2 callersFunctioninput_constructor
(x)
mmcv/tests/test_cnn/test_flops_counter.py:86
↓ 2 callersFunctionipu_model_wrapper
Convert torch model to IPU model. Args: model (nn.Module): The target model to be converted. options (dict[str, poptorch.Options]
mmcv/mmcv/device/ipu/model_wrapper.py:647
↓ 2 callersFunctionis_custom_op_loaded
()
mmcv/mmcv/onnx/info.py:31
↓ 2 callersFunctionis_dist_avail_and_initialized
()
aios_repo/util/distribute_utils.py:106
↓ 2 callersFunctionis_filepath
(x)
mmcv/mmcv/utils/path.py:32
↓ 2 callersFunctionis_installed
Check package whether installed. Args: package (str): Name of package to be checked.
sapiens/engine/mmengine/utils/package_utils.py:34
↓ 2 callersFunctionis_list_of
Check whether it is a list of some type. A partial method of :func:`is_seq_of`.
mmcv/mmcv/utils/misc.py:175
↓ 2 callersFunctionis_located_in
Are points located in bboxes. Args: points (Tensor): Points, shape: (m, 2). bboxes (Tensor): Bounding boxes, shape: (n, 4).
sapiens/det/mmdet/models/task_modules/assigners/center_region_assigner.py:69
↓ 2 callersFunctionis_method_overridden
Check if a method of base class is overridden in derived class. Args: method (str): the method name to check. base_class (type):
mmcv/mmcv/utils/misc.py:371
↓ 2 callersFunctionis_mps_available
Return True if mps devices exist. It's specialized for mac m1 chips and require torch version 1.12 or higher.
sapiens/engine/mmengine/device/utils.py:92
↓ 2 callersFunctionis_oom_error
(exception: BaseException)
sapiens/seg/tools/analysis_tools/memory_error_utils.py:37
↓ 2 callersFunctionis_oom_error
(exception: BaseException)
sapiens/pose/tools/analysis_tools/memory_error_utils.py:37
↓ 2 callersMethodis_perspective
Boolean of whether is perspective.
blade/cameras/pytorch3d_wrapper/cameras.py:673
↓ 2 callersFunctionis_tensorrt_plugin_loaded
Check if TensorRT plugins library is loaded or not. Returns: bool: plugin_is_loaded flag
mmcv/mmcv/tensorrt/init_plugins.py:57
↓ 2 callersMethodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
sapiens/engine/mmengine/fileio/backends/local_backend.py:150
↓ 2 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
sapiens/engine/mmengine/fileio/backends/petrel_backend.py:250
↓ 2 callersFunctioniter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type.
mmcv/mmcv/utils/misc.py:110
↓ 2 callersFunctioniter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type.
sapiens/engine/mmengine/utils/misc.py:119
↓ 2 callersMethodjoin_path
Concatenate all file paths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result
mmcv/mmcv/fileio/file_client.py:305
↓ 2 callersMethodjs
Jensen-Shannon Divergence.
sapiens/pose/mmpose/models/losses/classification_loss.py:114
↓ 2 callersMethodk_step_observation
return the observation k step away before.
sapiens/det/mmdet/models/trackers/ocsort_tracker.py:171
↓ 2 callersFunctionkeypoint_3d_auc
Calculate the Area Under the Curve (3DAUC) computed for a range of 3DPCK thresholds. Paper ref: `Monocular 3D Human Pose Estimation In The Wil
mmhuman3d/core/evaluation/eval_utils.py:193
↓ 2 callersFunctionkeypoint_3d_pck
Calculate the Percentage of Correct Keypoints (3DPCK) w. or w/o rigid alignment. Paper ref: `Monocular 3D Human Pose Estimation In The Wild Us
mmhuman3d/core/evaluation/eval_utils.py:143
↓ 2 callersFunctionkeypoint_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
mmhuman3d/core/evaluation/eval_utils.py:32
↓ 2 callersFunctionkeypoint_mpjpe
Calculate the mean per-joint position error (MPJPE) and the error after rigid alignment with the ground truth (P-MPJPE). Note: - batc
sapiens/pose/mmpose/evaluation/functional/keypoint_eval.py:352
↓ 2 callersFunctionkeypoint_nme
Calculate the normalized mean error (NME). Note: - instance number: N - keypoint number: K Args: pred (np.ndarray[N,
sapiens/pose/mmpose/evaluation/functional/keypoint_eval.py:170
↓ 2 callersMethodkl
Kullback-Leibler Divergence.
sapiens/pose/mmpose/models/losses/classification_loss.py:107
↓ 2 callersMethodkmeans_maximization
Maximization part of EM algorithm(Expectation-Maximization)
sapiens/det/tools/analysis_tools/optimize_anchors.py:239
↓ 2 callersFunctionl2_loss
L2 loss. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning target of the prediction. Returns:
sapiens/det/mmdet/models/losses/l2_loss.py:42
↓ 2 callersFunctionlast_zero_init
(m)
mmcv/mmcv/cnn/bricks/context_block.py:32
↓ 2 callersFunctionlast_zero_init
(m: Union[nn.Module, nn.Sequential])
sapiens/cv/mmcv/cnn/bricks/context_block.py:38
↓ 2 callersMethodlist
(self, dir_path)
mmcv/tests/test_fileclient.py:125
↓ 2 callersMethodln_final
(self)
sapiens/seg/mmseg/models/text_encoder/clip_text_encoder.py:145
↓ 2 callersMethodload_cats
(self, ids)
sapiens/det/mmdet/datasets/api_wrappers/coco_api.py:69
← previousnext →2,701–2,800 of 19,095, ranked by callers