MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 37 callersFunctionload
Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. ``load`` supports loading
sapiens/engine/mmengine/fileio/io.py:820
↓ 37 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
sapiens/engine/mmengine/runner/checkpoint.py:643
↓ 36 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval. :param p: input params for evaluation :return: Non
sapiens/det/mmdet/evaluation/functional/ytviseval.py:401
↓ 36 callersMethodassign
Assign gt to priors. The assignment is done in following steps 1. compute iou between all prior (prior of all pyramid levels) and gt
sapiens/det/mmdet/models/task_modules/assigners/atss_assigner.py:102
↓ 36 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
sapiens/pretrain/mmpretrain/models/backbones/hrnet.py:436
↓ 35 callersFunctionbuild_body_model
Build body_models.
aios_repo/detrsmpl/models/body_models/builder.py:52
↓ 35 callersMethodclone
mmcv/mmcv/ops/csrc/tensorrt/plugins/trt_nms.cpp:53
↓ 35 callersFunctionmluOpGetCurrentHandle
sapiens/cv/mmcv/ops/csrc/pytorch/mlu/mlu_common_helper.cpp:135
↓ 35 callersMethodset_with_layout
sapiens/cv/mmcv/ops/csrc/pytorch/mlu/mlu_common_helper.cpp:88
↓ 35 callersMethodstate_dict
Returns the state of the scaler as a :class:`dict`.
mmcv/mmcv/runner/fp16_utils.py:433
↓ 34 callersMethodremove
(self)
sapiens/pose/mmpose/utils/hooks.py:70
↓ 33 callersFunctionbbox_overlaps
Calculate overlap between two set of bboxes. FP16 Contributed by https://github.com/open-mmlab/mmdetection/pull/4889 Note: Assume bbo
sapiens/det/mmdet/structures/bbox/bbox_overlaps.py:41
↓ 33 callersMethodcls_seg
Classify each pixel with fc.
sapiens/seg/mmseg/models/decode_heads/point_head.py:147
↓ 33 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this function can *only* be applied on the default parameter setting
sapiens/det/mmdet/evaluation/functional/ytviseval.py:517
↓ 32 callersFunctionbuild_loss
Build loss.
mmhuman3d/models/losses/builder.py:69
↓ 32 callersFunctioncheck_path_suffix
Check whether the suffix of the path is allowed. Args: path_str (str): Path to check. allowed_suffix (List[str], opti
mmhuman3d/utils/path_utils.py:36
↓ 32 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding
mmcv/mmcv/utils/registry.py:234
↓ 32 callersFunctionget_box_tensor
Get tensor data from box type boxes. Args: boxes (Tensor or BaseBoxes): boxes with type of tensor or box type. If its type is
sapiens/det/mmdet/structures/bbox/transforms.py:465
↓ 32 callersFunctioninit_default_scope
Initialize the given default scope. Args: scope (str): The name of the default scope.
sapiens/engine/mmengine/registry/utils.py:125
↓ 32 callersMethodload
Load data from npz_path and update them to self. Args: npz_path (str): Path to a dumped npz file.
aios_repo/detrsmpl/data/data_structures/human_data.py:257
↓ 32 callersMethodto
(self, device)
blade/render/explicit/pytorch3d_wrapper/renderers/uv_renderer.py:122
↓ 31 callersFunctionget_keypoint_idxs_by_part
Get part keypoints indices from specified part and convention. Args: part (str): part to search from convention (str): data type
mmhuman3d/core/conventions/keypoints_mapping/__init__.py:341
↓ 31 callersFunctionget_local_path
Download data from ``filepath`` and write the data to local path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It can
sapiens/engine/mmengine/fileio/io.py:400
↓ 31 callersMethodparameters
Returns parameters. Compatible with mmcv's build_parameters() Returns: opt_params: a list of body model parameters for optimizati
aios_repo/detrsmpl/models/registrants/smplify.py:61
↓ 31 callersFunctionprint_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used.
mmcv/mmcv/utils/logging.py:108
↓ 30 callersFunctionconvert_kps
Convert keypoints following the mapping correspondence between src and dst keypoints definition. Supported conventions by now: agora, coco, smplx,
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:108
↓ 30 callersFunctiondeserialize_value
mmcv/mmcv/ops/csrc/tensorrt/trt_serialize.hpp:101
↓ 30 callersMethodget
Read data from a given ``filepath`` with 'rb' mode. Note: There are two types of return values for ``get``, one is ``bytes``
mmcv/mmcv/fileio/file_client.py:1021
↓ 30 callersFunctionis_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type or tuple): Exp
sapiens/engine/mmengine/utils/misc.py:160
↓ 30 callersFunctionserialize_value
mmcv/mmcv/ops/csrc/tensorrt/trt_serialize.hpp:96
↓ 29 callersFunctionexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. backend_args (dict, optional):
sapiens/engine/mmengine/fileio/io.py:293
↓ 29 callersMethodexport
Export output video if need.
mmhuman3d/core/renderer/torch3d_renderer/base_renderer.py:230
↓ 29 callersMethodextend
(self, N_batch: int, N_scene: int = 1)
blade/structures/meshes/meshes.py:201
↓ 29 callersMethodget_image
Get the drawn image. The format is RGB. Returns: np.ndarray: the drawn image which channel is RGB.
sapiens/pose/mmpose/visualization/opencv_backend_visualizer.py:101
↓ 29 callersMethodget_instance
Get subclass instance by name if the name exists. If corresponding name instance has not been created, ``get_instance`` will create a
sapiens/engine/mmengine/utils/manager.py:109
↓ 29 callersFunctionis_model_wrapper
Check if a module is a model wrapper. The following 4 model in MMEngine (and their subclasses) are regarded as model wrappers: DataParallel,
sapiens/engine/mmengine/model/wrappers/utils.py:35
↓ 29 callersMethodplot
Draw a confusion matrix by matplotlib. Modified from `Scikit-Learn <https://github.com/scikit-learn/scikit-learn/blob/dc580a8ef/sklea
sapiens/pretrain/mmpretrain/evaluation/metrics/single_label.py:733
↓ 29 callersMethodpush_back
mmcv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:147
↓ 28 callersFunctionassert_tensor_equal
(tensor_a, tensor_b)
mmcv/tests/test_runner/test_checkpoint.py:79
↓ 28 callersMethodcompare
Match the detection results with the ground_truth. Args: samples (dict[Image]): The detection result packaged by Image.
sapiens/det/mmdet/evaluation/metrics/crowdhuman_metric.py:276
↓ 28 callersMethodkeys
(self)
smplx_repo/smplx/utils.py:67
↓ 27 callersMethodchunk
Reload ``chunk`` from self.tensor.
sapiens/det/mmdet/structures/bbox/base_boxes.py:320
↓ 27 callersFunctionget_logger
Initialize and get a logger by name. If the logger has not been initialized, this method will initialize the logger by adding one or two hand
mmcv/mmcv/utils/logging.py:32
↓ 27 callersMethodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
mmcv/mmcv/fileio/file_client.py:1039
↓ 27 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
sapiens/pretrain/mmpretrain/models/backbones/hrnet.py:441
↓ 26 callersFunctionbbox_cxcywh_to_xyxy
Convert bbox coordinates from (cx, cy, w, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
sapiens/det/mmdet/structures/bbox/transforms.py:293
↓ 26 callersFunctionsize
(g, self, dim=None)
mmcv/mmcv/onnx/symbolic.py:277
↓ 26 callersMethodstate_dict
Returns a dictionary containing log scalars, runtime information and resumed keys, which should be resumed. The returned ``state_dict
sapiens/engine/mmengine/logging/message_hub.py:377
↓ 25 callersMethod__setitem__
Set self[key] to value. Only be called when using human_data[key] = val. Methods like update won't call __setitem__. In keypoints_comp
aios_repo/detrsmpl/data/data_structures/human_data.py:692
↓ 25 callersMethodbuild
Build an instance. Build an instance by calling :attr:`build_func`. Args: cfg (dict): Config dict needs to be built.
sapiens/engine/mmengine/registry/registry.py:576
↓ 25 callersFunctionbuild_dropout
Builder for drop out layers.
sapiens/cv/mmcv/cnn/bricks/drop.py:93
↓ 25 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
mmhuman3d/data/data_structures/human_data.py:1003
↓ 25 callersMethodevaluate
Run evaluation for each partition.
sapiens/pose/mmpose/evaluation/metrics/keypoint_partition_metric.py:222
↓ 25 callersMethodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
mmcv/mmcv/fileio/file_client.py:1171
↓ 25 callersMethodnew
Return a new data element with same type. If ``metainfo`` and ``data`` are None, the new data element will have same metainfo and data
sapiens/engine/mmengine/structures/base_data_element.py:292
↓ 25 callersMethodregister_hook_from_cfg
Register a hook from its cfg. Args: hook_cfg (dict): Hook config. It should have at least keys 'type' and 'priority
mmcv/mmcv/runner/base_runner.py:308
↓ 25 callersFunctionresize_pos_embed
Resize pos_embed weights. Args: pos_embed (torch.Tensor): Position embedding weights with shape [1, L, C]. src_shape
sapiens/pretrain/mmpretrain/models/utils/embed.py:44
↓ 25 callersMethodupdate
update progressbar. Args: num_tasks (int): Update step size.
sapiens/engine/mmengine/utils/progressbar.py:84
↓ 25 callersFunctionwrapper
(*args, **kwargs)
mmcv/tests/test_ops/test_tensorrt_preprocess.py:42
↓ 24 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
sapiens/seg/mmseg/utils/misc.py:39
↓ 24 callersMethodmerge
Merge another dictionary into current dictionary. Args: other (dict): Another dictionary.
sapiens/engine/mmengine/config/config.py:267
↓ 24 callersMethodprocess_hand_face_bbox
(self, bbox, do_flip, img_shape, img2bb_trans, input_img_shape)
aios_repo/datasets/humandata.py:937
↓ 23 callersMethodclear
(self)
aios_repo/util/misc.py:325
↓ 23 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. batch_i
sapiens/det/mmdet/models/dense_heads/vfnet_head.py:605
↓ 23 callersFunctionget_keypoint_idx
Get keypoint index from specified convention with keypoint name. Args: name (str): keypoint name convention (str): data type from
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:375
↓ 23 callersFunctionget_keypoint_idxs_by_part
Get part keypoints indices from specified part and convention. Args: part (str): part to search from convention (str): data type
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:352
↓ 23 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
sapiens/cv/mmcv/ops/point_sample.py:274
↓ 23 callersFunctionprint_log
Print a log message.
sapiens/det/mmdet/utils/benchmark.py:67
↓ 23 callersMethodstem
(x)
sapiens/pretrain/mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:224
↓ 23 callersMethodto
Since teacher_model is registered as a plain object, it is necessary to put the teacher model to other device when calling ``to`` func
sapiens/det/mmdet/models/detectors/kd_one_stage.py:124
↓ 22 callersMethod__setattr__
(self, name, value)
sapiens/engine/mmengine/config/config.py:1522
↓ 22 callersFunctioncheck_path_suffix
Check whether the suffix of the path is allowed. Args: path_str (str): Path to check. allowed_suffix (List[str], opti
aios_repo/detrsmpl/utils/path_utils.py:36
↓ 22 callersMethodextract_feat
Extract features from images.
sapiens/det/mmdet/models/detectors/base.py:154
↓ 22 callersMethodgrid_priors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
sapiens/det/mmdet/models/task_modules/prior_generators/anchor_generator.py:258
↓ 22 callersFunctionis_list_of
Check whether it is a list of some type. A partial method of :func:`is_seq_of`.
sapiens/engine/mmengine/utils/misc.py:194
↓ 22 callersFunctionis_main_process
()
aios_repo/util/distribute_utils.py:150
↓ 22 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
mmcv/mmcv/runner/checkpoint.py:614
↓ 22 callersMethodmodule
(self)
sapiens/engine/mmengine/config/lazy.py:229
↓ 22 callersFunctionunpack_gt_instances
Unpack ``gt_instances``, ``gt_instances_ignore`` and ``img_metas`` based on ``batch_data_samples`` Args: batch_data_samples (List[:ob
sapiens/det/mmdet/models/utils/misc.py:117
↓ 22 callersMethodupdate_info
Update runtime information. The key corresponding runtime information will be overwritten each time calling ``update_info``.
sapiens/engine/mmengine/logging/message_hub.py:210
↓ 21 callersMethodaverage
Get the average value of current window.
sapiens/pose/mmpose/utils/timer.py:54
↓ 21 callersMethodencode
Encode deltas between bboxes and ground truth boxes.
sapiens/det/mmdet/models/task_modules/coders/base_bbox_coder.py:48
↓ 21 callersFunctionimread
Read an image. Args: img_or_path (ndarray or str or Path): Either a numpy array or str or pathlib.Path. If it is a numpy arra
sapiens/cv/mmcv/image/io.py:172
↓ 21 callersFunctionlist_from_file
Load a text file and parse the content as a list of strings. ``list_from_file`` supports loading a text file which can be storaged in differe
sapiens/engine/mmengine/fileio/parse.py:37
↓ 21 callersFunctionrigid_align_batch
(A, B)
aios_repo/util/transforms.py:102
↓ 20 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
mmcv/mmcv/runner/checkpoint.py:555
↓ 20 callersMethodadd
(self, module, name=None)
mmcv/mmcv/ops/sparse_modules.py:144
↓ 20 callersMethodbn
(self, x: Tensor)
sapiens/det/mmdet/models/task_modules/tracking/aflink.py:64
↓ 20 callersFunctioncaffe2_xavier_init
(module, bias=0)
sapiens/engine/mmengine/model/weight_init.py:137
↓ 20 callersMethodcall_hook
Call all hooks. Args: fn_name (str): The function name in each hook to be called, such as "before_train_epoch".
mmcv/mmcv/runner/base_runner.py:324
↓ 20 callersFunctionconstant_init
(module: nn.Module, val: float, bias: float = 0)
mmcv/mmcv/cnn/utils/weight_init.py:72
↓ 20 callersMethodfc
Full connected layer.
sapiens/pretrain/mmpretrain/models/heads/stacked_head.py:154
↓ 20 callersFunctionformat_bbox
( bbox: Union[np.ndarray, torch.Tensor])
blade/utils/bbox_utils.py:186
↓ 20 callersFunctionhas_method
Check whether the object has a method. Args: method (str): The method name to check. obj (object): The object to check. Retu
mmcv/mmcv/utils/misc.py:390
↓ 20 callersFunctionkeypoint_xyzxyz_to_xyxyzz
_summary_ Args: keypoints (torch.Tensor): ..., 51
aios_repo/util/keypoint_ops.py:43
↓ 20 callersFunctionprepare_output_path
Check output folder or file. Args: output_path (str): could be folder or file. allowed_suffix (List[str], optional):
mmhuman3d/utils/path_utils.py:143
↓ 20 callersMethodtest_step
Get predictions of each enhanced data, a multiple predictions. Args: data (DataBatch): Enhanced data batch sampled from dataloade
sapiens/engine/mmengine/model/test_time_aug.py:143
↓ 20 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
sapiens/seg/mmseg/models/losses/utils.py:76
↓ 19 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to a given probability value.
sapiens/engine/mmengine/model/weight_init.py:149
↓ 19 callersFunctionbuild_upsample_layer
Build upsample layer. Args: cfg (dict): The upsample layer config, which should contain: - type (str): Layer type.
sapiens/cv/mmcv/cnn/bricks/upsample.py:81
← previousnext →201–300 of 19,095, ranked by callers