MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 10 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: Any picklable object Returns:
aios_repo/util/distribute_utils.py:201
↓ 10 callersFunctionall_gather_concat
Gather tensors with different first-dimension size and concat to one tenosr. Note: Only the first dimension should be different.
sapiens/pretrain/mmpretrain/models/multimodal/blip/blip_retrieval.py:46
↓ 10 callersFunctionanchor_inside_flags
Check whether the anchors are inside the border. Args: flat_anchors (torch.Tensor): Flatten anchors, shape (n, 4). valid_flags (t
sapiens/det/mmdet/models/task_modules/prior_generators/utils.py:38
↓ 10 callersFunctionbatched_index_select
r"""fetches neighbors features from a given neighbor idx Args: x (Tensor): input feature Tensor :math: `\
sapiens/pretrain/mmpretrain/models/backbones/vig.py:236
↓ 10 callersMethodbuild_dataloader
Build dataloader. The method builds three components: - Dataset - Sampler - Dataloader An example of ``data
sapiens/engine/mmengine/runner/runner.py:1342
↓ 10 callersFunctionbuild_optimizer
(model, cfg: Dict)
mmcv/mmcv/runner/optimizer/builder.py:57
↓ 10 callersFunctionbuild_plugin_layer
Build plugin layer. Args: cfg (None or dict): cfg should contain: - type (str): identify plugin layer type. - la
mmcv/mmcv/cnn/bricks/plugin.py:79
↓ 10 callersFunctioncheck_path_existence
Check whether a file or a directory exists at the expected path. Args: path_str (str): Path to check. path_type (Lite
aios_repo/detrsmpl/utils/path_utils.py:87
↓ 10 callersMethodclear
(self)
mmcv/mmcv/runner/log_buffer.py:38
↓ 10 callersMethodconvert
Multiple with alpha and add beat with clip. Args: img (np.ndarray): The input image. alpha (int): Image weights, chan
sapiens/seg/mmseg/datasets/transforms/transforms.py:793
↓ 10 callersFunctionconvert_kps
( keypoints: Union[np.ndarray, torch.Tensor], src: str, dst: str, approximate: bool = False,
blade/models/body_models/mappings/__init__.py:70
↓ 10 callersMethoddump
Dump keys and items to an npz file. Args: npz_path (str): Path to a dumped npz file. overwrite (bool,
aios_repo/detrsmpl/data/data_structures/human_data.py:291
↓ 10 callersFunctionfilter_scores_and_topk
Filter results using score threshold and topk candidates. Args: scores (Tensor): The scores, shape (num_bboxes, K). score_thr (fl
sapiens/det/mmdet/models/utils/misc.py:336
↓ 10 callersMethodforward_joints
(self, smpl_output)
blade/models/body_models/base.py:69
↓ 10 callersMethodgetAnnIds
Get ann ids that satisfy given filter conditions. default skips that filter. :param vidIds (int array) : get anns for given vids
sapiens/det/mmdet/evaluation/functional/ytvis.py:133
↓ 10 callersMethodget_cat_ids
(self, cat_names=[], sup_names=[], cat_ids=[])
sapiens/det/mmdet/datasets/api_wrappers/coco_api.py:60
↓ 10 callersFunctionget_different_colors
Get a numpy of colors of shape (N, 3).
aios_repo/detrsmpl/utils/demo_utils.py:705
↓ 10 callersFunctionget_git_hash
Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defau
sapiens/engine/mmengine/utils/version_utils.py:95
↓ 10 callersMethodget_image
Get the drawn image. The format is RGB. Returns: np.ndarray: the drawn image which channel is RGB.
sapiens/engine/mmengine/visualization/visualizer.py:336
↓ 10 callersFunctionget_keypoint_num
Get number of keypoints of specified convention. Args: convention (str): data type from keypoints_factory. keypoints_factory (dic
mmhuman3d/core/conventions/keypoints_mapping/__init__.py:399
↓ 10 callersFunctionis_norm
Check if a layer is a normalization layer. Args: layer (nn.Module): The layer to be checked. exclude (type | tuple[type]): Types
mmcv/mmcv/cnn/bricks/norm.py:145
↓ 10 callersMethoditems
A generator to get the name and corresponding :obj:`OptimWrapper`
sapiens/engine/mmengine/optim/optimizer/optimizer_wrapper_dict.py:191
↓ 10 callersFunctionlbs
Performs Linear Blend Skinning with the given shape and pose parameters. Parameters ---------- betas : torch.tensor BxNB The tens
aios_repo/util/smplx/smplx/lbs.py:165
↓ 10 callersMethodload_checkpoint
(self, filename, map_location='cpu', s
mmcv/mmcv/runner/base_runner.py:357
↓ 10 callersFunctionnms
Greedily select boxes with high confidence and overlap <= thr. Args: dets (np.ndarray): [[x1, y1, x2, y2, score]]. thr (float): R
sapiens/pose/mmpose/evaluation/functional/nms.py:41
↓ 10 callersFunctionnormalize
Normalize the tensor or array and convert dtype.
aios_repo/detrsmpl/core/renderer/torch3d_renderer/utils.py:36
↓ 10 callersFunctionnormalize
Normalize the tensor or array and convert dtype.
mmhuman3d/core/renderer/torch3d_renderer/utils.py:36
↓ 10 callersFunctiononnx2trt
Convert onnx model to tensorrt engine. Arguments: onnx_model (str or onnx.ModelProto): the onnx model to convert from opt_shape_d
mmcv/mmcv/tensorrt/tensorrt_utils.py:35
↓ 10 callersMethodoptim_context
(self, model: nn.Module)
sapiens/engine/mmengine/_strategy/colossalai.py:131
↓ 10 callersFunctionpseudo_collate
Convert list of data sampled from dataset into a batch of data, of which type consistent with the type of each data_itement in ``data_batch``.
sapiens/engine/mmengine/dataset/utils.py:73
↓ 10 callersMethodsave
Save dictionary state to disk.
mmhuman3d/models/utils/fits_dict.py:88
↓ 10 callersFunctionsave_trt_engine
Serialize TensorRT engine to disk. Arguments: engine (tensorrt.ICudaEngine): TensorRT engine to serialize path (str): disk path t
mmcv/mmcv/tensorrt/tensorrt_utils.py:127
↓ 10 callersMethodscatter
Scatter function. Args: inputs (Tensor): Input Tensor. kwargs (dict): Args for ``mmcv.parallel.scatte
aios_repo/detrsmpl/core/distributed_wrapper.py:111
↓ 10 callersFunctionsplit_instances
Convert instances into a list where each element is a dict that contains information about one instance.
sapiens/pose/mmpose/structures/utils.py:146
↓ 10 callersMethodsqueeze
sapiens/cv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:360
↓ 10 callersMethodswitch_scope_and_registry
Temporarily switch default scope to the target scope, and get the corresponding registry. If the registry of the corresponding scope
sapiens/engine/mmengine/registry/registry.py:253
↓ 10 callersMethodtranslate_
Translate boxes in-place. Args: distances (Tuple[float, float]): translate distances. The first is horizontal dis
sapiens/det/mmdet/structures/bbox/base_boxes.py:427
↓ 10 callersFunctionupdate_init_info
Update the `_params_init_info` in the module if the value of parameters are changed. Args: module (obj:`nn.Module`): The module of Py
mmcv/mmcv/cnn/utils/weight_init.py:40
↓ 10 callersMethodvalues
(self)
smplx_repo/smplx/utils.py:71
↓ 10 callersFunctionvertices2joints
Calculates the 3D joint locations from the vertices. Parameters ---------- J_regressor : torch.tensor JxV The regressor array tha
aios_repo/util/smplx/smplx/lbs.py:265
↓ 10 callersFunctionxyxy2xywh
Transform the bbox format from x1y1x2y2 to xywh. Args: bbox_xyxy (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or
aios_repo/detrsmpl/utils/demo_utils.py:44
↓ 9 callersMethod__init__
(self, reduction='mean', loss_weight=1.0)
aios_repo/detrsmpl/models/losses/prior_loss.py:135
↓ 9 callersMethod__init__
SMPL model constructor. Parameters ---------- model_path: str The path to the folder or to the file where the mod
aios_repo/util/smplx/smplx/body_models.py:65
↓ 9 callersMethod__init__
SMPL model constructor Parameters ---------- model_path: str The path to the folder or to the fi
smplx_repo/smplx/body_models.py:77
↓ 9 callersMethod__init__
(self, component1=None, component2=None, component3=None,
mmcv/tests/test_runner/test_basemodule.py:91
↓ 9 callersMethod__init__
(self, reduction='mean', loss_weight=1.0)
mmhuman3d/models/losses/prior_loss.py:139
↓ 9 callersMethod__init__
(self, optimizer: OptimizerType, param_name: str, begin: in
sapiens/engine/mmengine/optim/scheduler/param_scheduler.py:79
↓ 9 callersMethod__init__
(self, use_target_weight=False, loss_weight=1.)
sapiens/pose/mmpose/models/losses/regression_loss.py:437
↓ 9 callersFunction_format_size
Formats an integer for printing in a table or model representation. Expresses the number in terms of 'kilo', 'mega', etc., using 'K', 'M', et
sapiens/engine/mmengine/analysis/print_helper.py:48
↓ 9 callersFunction_rotate_smpl_pose
Rotate SMPL pose parameters. SMPL (https://smpl.is.tue.mpg.de/) is a 3D human model. Args: pose (np.ndarray([72])): SMPL pose par
mmhuman3d/data/datasets/pipelines/transforms.py:330
↓ 9 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/det/mmdet/visualization/local_visualizer.py:421
↓ 9 callersMethodbegin
sapiens/cv/mmcv/ops/csrc/common/utils/spconv/prettyprint.h:433
↓ 9 callersFunctionbuild_loss
Build loss.
sapiens/seg/mmseg/models/builder.py:56
↓ 9 callersFunctionbuild_upsample_layer
Build upsample layer. Args: cfg (dict): The upsample layer config, which should contain: - type (str): Layer type.
mmcv/mmcv/cnn/bricks/upsample.py:73
↓ 9 callersMethodcall_hook
Call all hooks. Args: fn_name (str): The function name in each hook to be called, such as "before_train_epoch".
sapiens/engine/mmengine/runner/_flexible_runner.py:1292
↓ 9 callersFunctioncat_boxes
Concatenate boxes with type of tensor or box type. Args: data_list (List[Union[Tensor, :obj:`BaseBoxes`]]): A list of tensors
sapiens/det/mmdet/structures/bbox/transforms.py:384
↓ 9 callersMethodconvert
Args: dataset_path (str): Path to directory where raw images and annotations are stored. out_path (str):
mmhuman3d/data/data_converters/coco.py:44
↓ 9 callersMethodcpu
Overrides this method to call :meth:`BaseDataPreprocessor.cpu` additionally. Returns: nn.Module: The model itself.
sapiens/engine/mmengine/model/base_model/base_model.py:286
↓ 9 callersMethodcuda
Convert all tensors to GPU in data.
sapiens/pose/mmpose/structures/multilevel_pixel_data.py:274
↓ 9 callersMethoddense
(self, channels_first: bool = True)
sapiens/cv/mmcv/ops/sparse_structure.py:81
↓ 9 callersMethoddump
(self, file=None)
aios_repo/util/config.py:326
↓ 9 callersFunctionee_to_rotmat
Convert euler angle to rotation matrixs. Args: euler_angle (Union[torch.Tensor, numpy.ndarray]): input shape should be (.
mmhuman3d/utils/transforms.py:134
↓ 9 callersMethodempty
mmcv/mmcv/ops/csrc/common/utils/spconv/tensorview/tensorview.h:822
↓ 9 callersFunctionfind_joint_kin_chain
(joint_id, kinematic_tree)
smplx_repo/smplx/utils.py:113
↓ 9 callersMethodforward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
sapiens/det/mmdet/models/detectors/base.py:86
↓ 9 callersFunctiongetElementSize
mmcv/mmcv/ops/csrc/tensorrt/trt_plugin_helper.hpp:17
↓ 9 callersFunctionget_box_type
get both box type name and class. Args: box_type (str or type): Single box type name or class. Returns: Tuple[str, type]: A
sapiens/det/mmdet/structures/bbox/box_type.py:193
↓ 9 callersMethodget_data_info
Get annotation by index and automatically call ``full_init`` if the dataset has not been fully initialized. Args: idx (in
sapiens/pretrain/mmpretrain/datasets/humans_300m.py:192
↓ 9 callersMethodget_img_ids
(self, img_ids=[], cat_ids=[])
sapiens/det/mmdet/datasets/api_wrappers/coco_api.py:63
↓ 9 callersFunctionget_keypoint_num
Get number of keypoints of specified convention. Args: convention (str): data type from keypoints_factory. keypoints_factory (dic
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:410
↓ 9 callersFunctioninference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str, ndarray, Sequence[str/ndarray]):
sapiens/det/mmdet/apis/inference.py:150
↓ 9 callersFunctionjoin_meshes_as_batch
Join the meshes along the batch dim. Args: meshes (Union[ParametricMeshes, List[ParametricMeshes, Meshes, List[Meshes]]]): Me
blade/structures/meshes/meshes.py:437
↓ 9 callersMethodjoin_path
r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath
sapiens/engine/mmengine/fileio/backends/petrel_backend.py:277
↓ 9 callersMethodloadAnns
Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : loaded an
sapiens/det/mmdet/evaluation/functional/ytvis.py:219
↓ 9 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
aios_repo/detrsmpl/utils/misc.py:29
↓ 9 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
sapiens/det/mmdet/models/backbones/hrnet.py:431
↓ 9 callersFunctionnormalize
Normalize the tensor or array and convert dtype.
blade/render/explicit/pytorch3d_wrapper/renderers/utils.py:36
↓ 9 callersFunctionobsolete_torch_version
(torch_version, version_threshold)
sapiens/cv/mmcv/cnn/bricks/wrappers.py:51
↓ 9 callersFunctionparams_to_string
Convert parameter number into a string. Args: num_params (float): Parameter number to be converted. units (str | None): Converted
mmcv/mmcv/cnn/utils/flops_counter.py:188
↓ 9 callersFunctionprod
(*args, **kwargs)
sapiens/engine/mmengine/analysis/jit_handles.py:47
↓ 9 callersMethodput
(self, key, val)
sapiens/cv/mmcv/video/io.py:57
↓ 9 callersMethodrecord_hierarchical_data
Record a hierarchical data.
mmcv/mmcv/device/ipu/hierarchical_data_manager.py:77
↓ 9 callersFunctionsync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used
sapiens/det/mmdet/utils/dist_utils.py:176
↓ 9 callersFunctiontensor2ndarray
If the type of value is torch.Tensor, convert the value to np.ndarray. Args: value (np.ndarray, torch.Tensor): value. Returns:
sapiens/engine/mmengine/visualization/utils.py:41
↓ 9 callersMethodtest
Launch test. Returns: dict: A dict of metrics on testing set.
sapiens/engine/mmengine/runner/runner.py:1824
↓ 9 callersFunctionto_np
(array, dtype=np.float32)
aios_repo/util/smplx/smplx/utils.py:132
↓ 9 callersFunctionto_np
(array, dtype=np.float32)
smplx_repo/smplx/utils.py:137
↓ 9 callersMethodtransform_points_screen
(self, points, eps: Optional[float] = None,
mmhuman3d/core/cameras/cameras.py:800
↓ 9 callersMethodupdate_params
Update parameters in :attr:`optimizer`.
sapiens/engine/mmengine/optim/optimizer/base.py:56
↓ 9 callersMethodvalues
(self)
aios_repo/util/smplx/smplx/utils.py:68
↓ 8 callersMethod__get__
(self, obj, cls)
sapiens/cv/mmcv/transforms/utils.py:110
↓ 8 callersMethod__init__
(self, transforms: List[dict], keymap: Optional[dict] = None,
sapiens/seg/mmseg/datasets/transforms/transforms.py:2434
↓ 8 callersMethod__init__
(self, embed_dim, mlp_ratio, act_cfg=dict(type='HSwish'))
sapiens/pretrain/mmpretrain/models/backbones/levit.py:245
↓ 8 callersMethod__init__
(self, in_channels, hidden_channels=None, out_channels=None
sapiens/pretrain/mmpretrain/models/backbones/tinyvit.py:365
↓ 8 callersMethod__init__
(self, arch='t', patch_size=4, in_channels=3,
sapiens/pretrain/mmpretrain/models/backbones/davit.py:723
↓ 8 callersMethod__init__
(self, embed_dims, window_size, num_heads,
sapiens/pretrain/mmpretrain/models/utils/attention.py:104
↓ 8 callersMethod__setattr__
(self, name, value)
aios_repo/util/config.py:313
↓ 8 callersFunction_get_mmcv_home
()
mmcv/mmcv/runner/checkpoint.py:54
↓ 8 callersMethod_hook
(cls, item)
sapiens/engine/mmengine/config/config.py:146
↓ 8 callersMethod_skip_loss
Whether to skip loss computation. If loss is None, it will directly skip the loss to avoid RuntimeError. If loss is not None, the table
aios_repo/detrsmpl/models/registrants/smplify.py:825
← previousnext →501–600 of 19,095, ranked by callers