MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 19 callersFunctioncheck_input_path
Check input folder or file. Args: input_path (str): input folder or file path. allowed_suffix (List[str], optional):
mmhuman3d/utils/path_utils.py:213
↓ 19 callersMethodfrom_cfg
Build a runner from config. Args: cfg (ConfigType): A config used for building runner. Keys of ``cfg`` can see :m
sapiens/engine/mmengine/runner/runner.py:464
↓ 19 callersFunctionget_different_colors
Get a numpy of colors of shape (N, 3).
mmhuman3d/utils/demo_utils.py:699
↓ 19 callersFunctionget_keypoint_idx
(name: str, convention: str = 'smplx', approximate: bool = False,
blade/models/body_models/mappings/__init__.py:172
↓ 19 callersFunctionis_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
sapiens/engine/mmengine/utils/misc.py:63
↓ 19 callersMethodload_checkpoint
Load checkpoint from given ``filename``. Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
sapiens/engine/mmengine/runner/runner.py:2129
↓ 19 callersFunctionrevert_sync_batchnorm
Helper function to convert all `SyncBatchNorm` (SyncBN) and `mmcv.ops.sync_bn.SyncBatchNorm`(MMSyncBN) layers in the model to `BatchNormXd` la
sapiens/engine/mmengine/model/utils.py:184
↓ 19 callersFunctionselect_single_mlvl
Extract a multi-scale single image tensor from a multi-scale batch tensor based on batch index. Note: The default value of detach is True, be
sapiens/det/mmdet/models/utils/misc.py:305
↓ 18 callersFunctionbuild_from_cfg_with_wrapper
Build a module from config dict and wrap module with "wrapper_func". Args: cfg (dict): Config dict. It should at least contain the key "t
mmcv/mmcv/device/ipu/utils.py:212
↓ 18 callersMethoddecode
Decode the keypoint coordinates from heatmaps and displacements. The decoded keypoint coordinates are in the input image space. Args:
sapiens/pose/mmpose/codecs/spr.py:250
↓ 18 callersMethodinit_weights
(self)
mmcv/tests/test_runner/test_basemodule.py:123
↓ 18 callersFunctionis_module_wrapper
Check if a module is a module wrapper. The following 3 modules in MMCV (and their subclasses) are regarded as module wrappers: DataParallel,
mmcv/mmcv/parallel/utils.py:28
↓ 18 callersMethoditems
Returns: iterator: An iterator object whose element is (key, value) tuple pairs for ``data``.
sapiens/engine/mmengine/structures/base_data_element.py:394
↓ 18 callersFunctionproject_points_new
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:416
↓ 17 callersFunctionbox_iou_rotated
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x_center, y_center, width, height, angle)
mmcv/mmcv/ops/box_iou_rotated.py:32
↓ 17 callersFunctioncast_tensor_type
Recursively convert Tensor in inputs from src_type to dst_type. Note: In v1.4.4 and later, ``cast_tersor_type`` will only convert the
mmcv/mmcv/runner/fp16_utils.py:49
↓ 17 callersFunctionget_device
Returns the currently existing device type. Returns: str: cuda | npu | mlu | mps | cpu.
sapiens/engine/mmengine/device/utils.py:124
↓ 17 callersFunctionget_keypoint_idx
Get keypoint index from specified convention with keypoint name. Args: name (str): keypoint name convention (str): data type from
mmhuman3d/core/conventions/keypoints_mapping/__init__.py:364
↓ 17 callersMethodinfer_client
Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optional): Arguments to instantiate a
mmcv/mmcv/fileio/file_client.py:896
↓ 17 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical overflow. Defaults
sapiens/det/mmdet/models/layers/transformer/utils.py:128
↓ 17 callersMethodloss_and_target
Calculate the loss based on the features extracted by the DIIHead. Args: cls_score (Tensor): Classification prediction
sapiens/det/mmdet/models/roi_heads/bbox_heads/dii_head.py:234
↓ 17 callersFunctionnms
Dispatch to either CPU or GPU NMS implementations. The input can be either torch tensor or numpy array. GPU NMS will be used if the input is
mmcv/mmcv/ops/nms.py:148
↓ 17 callersFunctionprepare_output_path
Check output folder or file. Args: output_path (str): could be folder or file. allowed_suffix (List[str], optional):
aios_repo/detrsmpl/utils/path_utils.py:143
↓ 17 callersFunctionsave_checkpoint
Save checkpoint to file. The checkpoint will have 3 fields: ``meta``, ``state_dict`` and ``optimizer``. By default ``meta`` will contain vers
mmcv/mmcv/runner/checkpoint.py:751
↓ 17 callersMethodset_dataset_meta
Assign dataset_meta to the visualizer. The default visualization settings will be overridden. Args: dataset_meta (dict):
sapiens/pose/mmpose/visualization/local_visualizer.py:169
↓ 17 callersMethodset_field
Special method for set union field, used as property.setter functions.
sapiens/engine/mmengine/structures/base_data_element.py:481
↓ 17 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
aios_repo/detrsmpl/core/post_processing/bbox/samplers/sampling_result.py:78
↓ 17 callersMethodupdate
(self, num_tasks=1)
mmcv/mmcv/utils/progressbar.py:58
↓ 16 callersMethod__init__
(self, config, layer_num)
sapiens/pretrain/mmpretrain/models/multimodal/blip/language_model.py:493
↓ 16 callersFunctionempty_instances
Handle predicted instances when RoI is empty. Note: If ``instance_results`` is not None, it will be modified in place internally, and then re
sapiens/det/mmdet/models/utils/misc.py:153
↓ 16 callersMethodget_data_info
Get annotation by index. Args: idx (int): Global index of ``ConcatDataset``. Returns: dict: The idx-th annot
sapiens/det/mmdet/datasets/dataset_wrappers.py:129
↓ 16 callersFunctionget_rank
()
aios_repo/util/distribute_utils.py:120
↓ 16 callersMethodget_targets
Get targets for PAA head. This method is almost the same as `AnchorHead.get_targets()`. We direct return the results from _get_target
sapiens/det/mmdet/models/dense_heads/paa_head.py:413
↓ 16 callersFunctionkeypoint_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints for coordinates. Note:
sapiens/pose/mmpose/evaluation/functional/keypoint_eval.py:95
↓ 16 callersMethodload_state_dict
Loads log scalars, runtime information and resumed keys from ``state_dict`` or ``message_hub``. If ``state_dict`` is a dictionary ret
sapiens/engine/mmengine/logging/message_hub.py:410
↓ 16 callersMethodvalues
(self, )
mmhuman3d/core/conventions/segmentation/__init__.py:52
↓ 16 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Optional[Tensor], optional): Element-w
sapiens/det/mmdet/models/losses/utils.py:58
↓ 16 callersFunctionxavier_init
(module: nn.Module, gain: float = 1, bias: float = 0, distribu
mmcv/mmcv/cnn/utils/weight_init.py:79
↓ 15 callersMethod__init__
(self, magnitude: Union[int, float, None] = None, pad_val: Union[int, Sequen
sapiens/pretrain/mmpretrain/datasets/transforms/auto_augment.py:424
↓ 15 callersMethod_format_path
Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows enviro
sapiens/engine/mmengine/fileio/backends/petrel_backend.py:96
↓ 15 callersFunction_map
(src, mapping: dict)
sapiens/pose/mmpose/datasets/datasets/utils.py:232
↓ 15 callersMethod_map_path
Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str or Path
sapiens/engine/mmengine/fileio/backends/petrel_backend.py:83
↓ 15 callersMethod_report_mpjpe
Cauculate mean per joint position error (MPJPE) or its variants PA- MPJPE. Report mean per joint position error (MPJPE) and mean per
mmhuman3d/data/datasets/human_image_dataset.py:479
↓ 15 callersMethod_xyxy2xywh
Obtain bbox in xywh format given bbox in xyxy format Args: bbox_xyxy (List[float]): Bounding box in xyxy format Returns:
mmhuman3d/data/data_converters/base_converter.py:71
↓ 15 callersFunctionaa_to_rotmat
Convert axis_angle to rotation matrixs. Args: axis_angle (Union[torch.Tensor, numpy.ndarray]): input shape should be
mmhuman3d/utils/transforms.py:97
↓ 15 callersFunctionbatched_nms
r"""Performs non-maximum suppression in a batched fashion. Modified from `torchvision/ops/boxes.py#L39 <https://github.com/pytorch/vision/blo
sapiens/cv/mmcv/ops/nms.py:245
↓ 15 callersFunctionbbox_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
sapiens/det/mmdet/structures/bbox/transforms.py:307
↓ 15 callersFunctionbuild_body_model
Build body_models.
mmhuman3d/models/body_models/builder.py:52
↓ 15 callersFunctionbuild_from_cfg
Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration. If
sapiens/engine/mmengine/registry/build_functions.py:45
↓ 15 callersFunctioncat_pose_list
(pose_list, dim=1)
blade/utils/torch_utils.py:43
↓ 15 callersFunctioncheck_input_path
Check input folder or file. Args: input_path (str): input folder or file path. allowed_suffix (List[str], optional):
aios_repo/detrsmpl/utils/path_utils.py:213
↓ 15 callersMethodformat_pose
(self, pose, name, batch_size=1, pose2rot=True)
blade/models/body_models/base.py:103
↓ 15 callersMethodforward_plugin
(self, x, plugin_names)
sapiens/det/mmdet/models/backbones/resnet.py:270
↓ 15 callersFunctionget
Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. backend_args (dict, optiona
sapiens/engine/mmengine/fileio/io.py:188
↓ 15 callersMethodget_raw_value
Get raw value from the dict. It acts the same as dict.__getitem__(k). Args: key (_KT): Key in dict.
aios_repo/detrsmpl/data/data_structures/human_data.py:491
↓ 15 callersFunctionget_shape
Get the shapes from a jit value object. Args: val (torch._C.Value): jit value object. Returns: list(int): return a list of i
sapiens/engine/mmengine/analysis/jit_handles.py:54
↓ 15 callersFunctioninit_dist
(launcher: str, backend: str = 'nccl', **kwargs)
mmcv/mmcv/runner/dist_utils.py:60
↓ 15 callersFunctionis_tuple_of
Check whether it is a tuple of some type. A partial method of :func:`is_seq_of`.
sapiens/engine/mmengine/utils/misc.py:202
↓ 15 callersFunctionkaiming_init
(module, a=0, mode='fan_out', nonlinearity='relu',
sapiens/engine/mmengine/model/weight_init.py:119
↓ 15 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmhuman3d/models/backbones/resnet.py:565
↓ 15 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmhuman3d/models/backbones/resnet.py:84
↓ 15 callersMethodrandom
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
aios_repo/models/utils.py:250
↓ 15 callersMethodrandom_disable
Randomly disable the transform.
sapiens/pretrain/mmpretrain/datasets/transforms/auto_augment.py:362
↓ 15 callersMethodshape
(self, )
mmhuman3d/core/renderer/torch3d_renderer/meshes.py:437
↓ 15 callersMethodshape
(self)
sapiens/det/mmdet/structures/bbox/base_boxes.py:253
↓ 15 callersMethodshow
Show the drawn image. Args: drawn_img (np.ndarray, optional): The image to show. If drawn_img is None, it will sh
sapiens/pose/mmpose/visualization/opencv_backend_visualizer.py:455
↓ 15 callersMethodtext
get config text.
sapiens/engine/mmengine/config/config.py:1386
↓ 15 callersMethodto
Overrides this method to call :meth:`BaseDataPreprocessor.to` additionally. Returns: nn.Module: The model itself.
sapiens/engine/mmengine/model/base_model/base_model.py:208
↓ 15 callersFunctionto_tensor
(array: Union[Array, Tensor], dtype=torch.float32)
aios_repo/util/smplx/smplx/utils.py:119
↓ 15 callersFunctionto_tensor
( array: Union[Array, Tensor], dtype=torch.float32 )
smplx_repo/smplx/utils.py:122
↓ 15 callersMethodtrain
(self, mode: bool = True)
mmcv/mmcv/cnn/vgg.py:184
↓ 14 callersMethod_match_init_batch_size
A helper function to ensure body model parameters have the same batch size as the input keypoints. Args: init_param: inpu
aios_repo/detrsmpl/models/registrants/smplify.py:680
↓ 14 callersMethod_match_init_batch_size
A helper function to ensure body model parameters have the same batch size as the input keypoints. Args: init_param: inpu
mmhuman3d/models/registrants/smplify.py:680
↓ 14 callersMethod_report_3d_auc
Cauculate the Area Under the Curve (AUC) computed for a range of 3DPCK thresholds. Args: keypoint_results (list): Keypoint
mmhuman3d/data/datasets/human_image_dataset.py:537
↓ 14 callersMethod_report_3d_pck
Cauculate Percentage of Correct Keypoints (3DPCK) w. or w/o Procrustes alignment. Args: keypoint_results (list): Keypoint
mmhuman3d/data/datasets/human_image_dataset.py:506
↓ 14 callersMethod_report_pve
Cauculate per vertex error.
mmhuman3d/data/datasets/human_image_dataset.py:567
↓ 14 callersMethodattention
Attention function.
sapiens/pretrain/mmpretrain/models/utils/clip_generator_helper.py:93
↓ 14 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
mmhuman3d/data/datasets/builder.py:69
↓ 14 callersFunctionbuild_runner
(cfg: dict, default_args: Optional[dict] = None)
mmcv/mmcv/runner/builder.py:38
↓ 14 callersMethoddecode
(self, memory, memory_mask, memory_pos, tgt, tgt_mask, tgt_pos)
mmhuman3d/core/post_processing/speed_up/deciwatch.py:446
↓ 14 callersMethodfrom_pretrained
( cls, pretrained_model_name_or_path, *init_inputs, **kwargs, )
sapiens/pretrain/mmpretrain/models/utils/tokenizer.py:126
↓ 14 callersMethodget_image_size
Returns the image size, if provided, expected in the form of (height, width) The image size is used for conversion of projected points
aios_repo/detrsmpl/core/cameras/cameras.py:207
↓ 14 callersMethodget_image_size
Returns the image size, if provided, expected in the form of (height, width) The image size is used for conversion of projected points
mmhuman3d/core/cameras/cameras.py:210
↓ 14 callersFunctioninitialize
r"""Initialize a module. Args: module (``torch.nn.Module``): the module will be initialized. init_cfg (dict | list[dict]): initia
mmcv/mmcv/cnn/utils/weight_init.py:596
↓ 14 callersMethodmatch
Calculate the dist matrixes for loss measurement. Args: key_embeds (Tensor): Embeds of positive bboxes in sampling results
sapiens/det/mmdet/models/tracking_heads/quasi_dense_embed_head.py:231
↓ 14 callersMethodmodel
(self)
sapiens/engine/mmengine/_strategy/deepspeed.py:94
↓ 14 callersMethodprint_gradients
(self, name)
aios_repo/models/aios/aios_smplx_controlnet.py:1899
↓ 14 callersMethodrandom_negative
Randomly negative the value.
sapiens/pretrain/mmpretrain/datasets/transforms/auto_augment.py:383
↓ 14 callersMethodreset_parameters
(self)
sapiens/cv/mmcv/ops/sync_bn.py:268
↓ 14 callersMethodscatter
(self, inputs, kwargs, device_ids)
mmcv/mmcv/parallel/data_parallel.py:75
↓ 14 callersMethodset_image
Set the image to draw. Args: image (np.ndarray): The image to draw. backend (str): The backend to save the image.
sapiens/pose/mmpose/visualization/opencv_backend_visualizer.py:72
↓ 14 callersMethodset_param
Set requires_grad and collect parameters for optimization. Args: fit_param: whether to optimize this body model parameter
aios_repo/detrsmpl/models/registrants/smplify.py:45
↓ 14 callersMethodset_param
Set requires_grad and collect parameters for optimization. Args: fit_param: whether to optimize this body model parameter
mmhuman3d/models/registrants/smplify.py:45
↓ 14 callersMethodset_pred_score
Set ``pred_label``.
sapiens/pretrain/mmpretrain/structures/data_sample.py:131
↓ 13 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
sapiens/engine/mmengine/runner/checkpoint.py:563
↓ 13 callersMethod_run_forward
Unpacks data for :meth:`forward` Args: data (dict or tuple or list): Data sampled from dataset. mode (str): Mode of f
sapiens/engine/mmengine/model/base_model/base_model.py:362
↓ 13 callersMethod_test_bilinear_grid_sample
(self, dtype=torch.float, align_corners=
mmcv/tests/test_ops/test_bilinear_grid_sample.py:32
↓ 13 callersMethodadd_image
Record the image. Args: name (str): The image identifier. image (np.ndarray, optional): The image to be saved. The fo
sapiens/engine/mmengine/visualization/visualizer.py:1113
↓ 13 callersMethodcast_data
Copying data to the target device. Args: data (dict): Data returned by ``DataLoader``. Returns: CollatedResu
sapiens/engine/mmengine/model/base_model/data_preprocessor.py:69
↓ 13 callersFunctioncfg2options
Parse dictionary to ipu options. Args: cfg (dict): A dictionary of ipu settings. Returns: dict[str, poptorch.Options]: Train
mmcv/mmcv/device/ipu/utils.py:54
← previousnext →301–400 of 19,095, ranked by callers