MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 4 callersFunctionmulti_scale_deformable_attn_pytorch
CPU version of multi-scale deformable attention. Args: value (torch.Tensor): The value has shape (bs, num_keys, num_heads, em
mmcv/mmcv/ops/multi_scale_deform_attn.py:115
↓ 4 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/pose/mmpose/models/backbones/hrformer.py:61
↓ 4 callersFunctionnested_tensor_from_tensor_list
(tensor_list: List[Tensor])
aios_repo/util/misc.py:468
↓ 4 callersMethodnew
Construct a HumanData instance from a dict. Args: source_dict (dict, optional): A dict with items in HumanData fa
aios_repo/detrsmpl/data/data_structures/human_data.py:201
↓ 4 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
sapiens/seg/mmseg/models/utils/shape_convert.py:30
↓ 4 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
sapiens/det/mmdet/models/layers/transformer/utils.py:47
↓ 4 callersFunctionnms_match
Matched dets into different groups by NMS. NMS match is Similar to NMS but when a bbox is suppressed, nms match will record the indice of sup
mmcv/mmcv/ops/nms.py:407
↓ 4 callersFunctionnms_rotated
Performs non-maximum suppression (NMS) on the rotated boxes according to their intersection-over-union (IoU). Rotated NMS iteratively removes
mmcv/mmcv/ops/nms.py:445
↓ 4 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
sapiens/det/mmdet/models/backbones/hrnet.py:436
↓ 4 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
aios_repo/detrsmpl/models/backbones/resnet.py:277
↓ 4 callersFunctionnorm_flop_counter
Args: affine_arg_index: index of the affine argument in inputs
sapiens/engine/mmengine/analysis/jit_handles.py:259
↓ 4 callersFunctionone_hot
(g, self, num_classes)
mmcv/mmcv/onnx/symbolic.py:313
↓ 4 callersFunctionparameter_count
Count parameters of a model and its submodules. Adopted from https://github.com/facebookresearch/fvcore/blob/main/fvcore/nn/parameter_count.p
sapiens/engine/mmengine/analysis/complexity_analysis.py:298
↓ 4 callersMethodpoints2bbox
Converting the points set into bounding box. Args: pts (Tensor): the input points sets (fields), each points set
sapiens/det/mmdet/models/dense_heads/reppoints_head.py:212
↓ 4 callersMethodpostprocess_train_result
Convert results list to `SegDataSample`. Args: seg_logits (Tensor): The segmentation results, seg_logits from mod
sapiens/seg/mmseg/models/segmentors/base.py:231
↓ 4 callersMethodpredict
Perform forward propagation of the tracking head and predict tracking results on the features of the upstream network. Args:
sapiens/det/mmdet/models/tracking_heads/roi_embed_head.py:379
↓ 4 callersMethodpredict_bbox
Perform forward propagation of the bbox head and predict detection results on the features of the upstream network. Args:
sapiens/det/mmdet/models/roi_heads/grid_roi_head.py:258
↓ 4 callersMethodpredict_by_feat
Transform a batch of output features extracted from the head into bbox results. This method is same as `BaseDenseHead.get_results()`.
sapiens/det/mmdet/models/dense_heads/paa_head.py:522
↓ 4 callersMethodprepare
Prepare model and some components. Args: model (:obj:`torch.nn.Module` or dict): The model to be run. It can be a
sapiens/engine/mmengine/_strategy/base.py:165
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
DAv2/depth_anything_v2/dinov2.py:235
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
DAv2/metric_depth/depth_anything_v2/dinov2.py:235
↓ 4 callersMethodprocess
Process one batch of data samples. The processed results should be stored in ``self.results``, which will be used to computed the met
sapiens/pretrain/mmpretrain/evaluation/metrics/ANLS.py:66
↓ 4 callersFunctionprocess_human_model_output_batch_simplify
(human_model_param, do_flip, rot,
aios_repo/util/preprocessing.py:714
↓ 4 callersMethodput
Write data to a given ``filepath`` with 'wb' mode. Note: ``put`` should create a directory if the directory of ``filepath``
sapiens/engine/mmengine/fileio/file_client.py:345
↓ 4 callersMethodput
Write bytes to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data.
sapiens/engine/mmengine/fileio/backends/petrel_backend.py:157
↓ 4 callersMethodregister_momentum_hook
(self, momentum_config)
mmcv/mmcv/runner/base_runner.py:445
↓ 4 callersMethodrel_pos_bias
Add relative position bias.
sapiens/pose/mmpose/models/utils/rtmcc_block.py:250
↓ 4 callersMethodrender
Show time remaining.
sapiens/engine/mmengine/utils/progressbar_rich.py:63
↓ 4 callersFunctionreplace_cfg_vals
Replace the string "${key}" with the corresponding value. Replace the "${key}" with the value of ori_cfg.key in the config. And support repla
sapiens/det/mmdet/utils/replace_cfg_vals.py:35
↓ 4 callersMethodresize_feats
Downsample the first feat and upsample last feat in feats. Args: x (tuple[Tensor]): Features from the upstream network, each is
sapiens/det/mmdet/models/dense_heads/solo_head.py:175
↓ 4 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
mmcv/mmcv/runner/base_runner.py:370
↓ 4 callersFunctionrgb2bgr
Convert color channels.
aios_repo/detrsmpl/core/renderer/torch3d_renderer/utils.py:86
↓ 4 callersFunctionrot6d_to_rotmat
Convert rotation 6d representations to rotation matrixs. Args: rotation_6d (Union[torch.Tensor, numpy.ndarray]): input shape
aios_repo/detrsmpl/utils/transforms.py:245
↓ 4 callersFunctionrot6d_to_rotmat
Convert rotation 6d representations to rotation matrixs. Args: rotation_6d (Union[torch.Tensor, numpy.ndarray]): input shape
mmhuman3d/utils/transforms.py:246
↓ 4 callersFunctionrotmat_to_ee
Convert rotation matrixs to euler angle. Args: matrix (Union[torch.Tensor, numpy.ndarray]): input shape should be (..., 3
mmhuman3d/utils/transforms.py:153
↓ 4 callersFunctionrotmat_to_rot6d
Convert rotation matrixs to rotation 6d representations. Args: matrix (Union[torch.Tensor, numpy.ndarray]): input shape s
aios_repo/detrsmpl/utils/transforms.py:188
↓ 4 callersFunctionrotmat_to_rot6d
Convert rotation matrixs to rotation 6d representations. Args: matrix (Union[torch.Tensor, numpy.ndarray]): input shape s
mmhuman3d/utils/transforms.py:189
↓ 4 callersMethodrun_iter
Iterate one mini-batch. Args: data_batch (Sequence[dict]): Batch of data from dataloader.
sapiens/engine/mmengine/runner/loops.py:404
↓ 4 callersFunctionsave_meshes_as_objs
Save meshes as .obj files. Pytorch3D will not save vertex color for. .obj, please use `save_meshes_as_plys`. Args: files (List[str])
mmhuman3d/utils/mesh_utils.py:222
↓ 4 callersFunctionsave_obj
(v, f, file_name='output.obj')
aios_repo/util/vis.py:184
↓ 4 callersFunctionscale_boxes
Scale boxes with type of tensor or box type. Args: boxes (Tensor or :obj:`BaseBoxes`): boxes need to be scaled. Its type can
sapiens/det/mmdet/structures/bbox/transforms.py:422
↓ 4 callersFunctionscandir
Scan a directory to find the interested files. Args: dir_path (str | :obj:`Path`): Path of the directory. suffix (str | tuple(str
mmcv/mmcv/utils/path.py:62
↓ 4 callersMethodscatter
Scatter function. Args: inputs (Tensor): Input Tensor. kwargs (dict): Args for ``mmcv.parallel.scatte
mmhuman3d/core/distributed_wrapper.py:113
↓ 4 callersMethodset_data
Set or change key-value pairs in ``data_field`` by parameter ``data``. Args: data (dict): A dict contains annotations of
sapiens/pose/mmpose/structures/multilevel_pixel_data.py:131
↓ 4 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.
aios_repo/detrsmpl/models/architectures/mesh_estimator.py:49
↓ 4 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.
mmhuman3d/models/architectures/mesh_estimator.py:49
↓ 4 callersMethodside_aware_split
Split side-aware features aligned with orders of bucketing targets.
sapiens/det/mmdet/models/roi_heads/bbox_heads/sabl_head.py:317
↓ 4 callersMethodsince_last_check
Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns:
mmcv/mmcv/utils/timer.py:97
↓ 4 callersMethodslide_inference
Inference by sliding-window with overlap. If h_crop > h_img or w_crop > w_img, the small patch will be used to decode without padding
sapiens/seg/mmseg/models/segmentors/encoder_decoder.py:273
↓ 4 callersFunctionspmm
(sparse, dense)
blade/structures/meshes/utils.py:285
↓ 4 callersMethodstart
(self)
mmcv/mmcv/utils/progressbar.py:49
↓ 4 callersMethodsummary
(self)
aios_repo/util/utils.py:538
↓ 4 callersMethodtemplate_encode
Prompt engineering.
sapiens/seg/mmseg/models/text_encoder/clip_text_encoder.py:206
↓ 4 callersMethodto_dict
Dump camera name and parameters to dict. Returns: dict: Put self.name and self.parameters_dict in
aios_repo/detrsmpl/core/cameras/camera_parameters.py:308
↓ 4 callersFunctionto_string
sapiens/cv/mmcv/ops/csrc/pytorch/mlu/mlu_common_helper.h:50
↓ 4 callersFunctionto_tensor
(array_or_tensor, device=None)
blade/utils/torch_utils.py:131
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
aios_repo/detrsmpl/data/datasets/pipelines/formatting.py:35
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
aios_repo/util/formatting.py:33
↓ 4 callersMethodtrain
Launch training. Returns: nn.Module: The model after training.
sapiens/engine/mmengine/runner/runner.py:1709
↓ 4 callersMethodtransform_points_screen
(self, points, eps: Optional[float] = None,
blade/cameras/pytorch3d_wrapper/cameras.py:809
↓ 4 callersFunctiontrunc_normal_init
(module: nn.Module, mean: float = 0, std: float = 1,
mmcv/mmcv/cnn/utils/weight_init.py:103
↓ 4 callersFunctionunfold_wo_center
unfold_wo_center, used in original implement in BoxInst: https://github.com/aim-uofa/AdelaiDet/blob/\ 4a3a1f7372c35b48ebf5f6adc59f135a0fa28d6
sapiens/det/mmdet/models/utils/misc.py:658
↓ 4 callersFunctionuniform_init
(module: nn.Module, a: float = 0, b: float = 1, bias: float
mmcv/mmcv/cnn/utils/weight_init.py:115
↓ 4 callersMethodupdate
update the log history. If the length of the buffer exceeds ``self._max_length``, the oldest element will be removed from the buffer.
sapiens/engine/mmengine/logging/history_buffer.py:88
↓ 4 callersFunctionupdate_data_root
Update data root according to env MMDET_DATASETS. If set env MMDET_DATASETS, update cfg.data_root according to MMDET_DATASETS. Otherwise, usi
sapiens/det/mmdet/utils/misc.py:80
↓ 4 callersMethodupdate_face_uv_pixel
(self)
blade/render/explicit/pytorch3d_wrapper/renderers/uv_renderer.py:180
↓ 4 callersMethodupdate_fragments
Update pix_to_face, bary_coords.
blade/render/explicit/pytorch3d_wrapper/renderers/uv_renderer.py:129
↓ 4 callersMethodvalidate_item
Check whether the key and its value matches definition in CameraParameter.SUPPORTED_KEYS. Args: key (Any):
aios_repo/detrsmpl/core/cameras/camera_parameters.py:539
↓ 4 callersMethodvalidate_item
Check whether the key and its value matches definition in CameraParameter.SUPPORTED_KEYS. Args: key (Any):
mmhuman3d/core/cameras/camera_parameters.py:539
↓ 4 callersMethodvalidate_within_img_batch
( self, img_wh, points)
aios_repo/datasets/humandata.py:1260
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation. Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32 The
aios_repo/util/smplx/smplx/lbs.py:126
↓ 4 callersFunctionvideo_to_array
Read a video/gif as an array of (f * h * w * 3). Args: input_path (str): input path. resolution (Optional[Union[Tuple[int, i
mmhuman3d/utils/ffmpeg_utils.py:280
↓ 4 callersFunctionvis_smpl
Render SMPL or SMPL-X mesh or silhouette into differentiable tensors, and export video or images. Args: # smpl parameters: po
blade/utils/visualize_smpl.py:399
↓ 4 callersMethodvisualize_cls
Visualize image classification result. This method will draw an text box on the input image to visualize the information about image
sapiens/pretrain/mmpretrain/visualization/visualizer.py:72
↓ 4 callersMethodvisualize_single_image
Args: img_data_sample (DetDataSample): single image output. step (int): The index of the current image.
sapiens/det/mmdet/engine/hooks/visualization_hook.py:314
↓ 4 callersMethodwhole_inference
Inference with full image. Args: inputs (Tensor): The tensor should have a shape NxCxHxW, which contains all imag
sapiens/seg/mmseg/models/segmentors/encoder_decoder.py:326
↓ 4 callersFunctionxywh2xyxy
Transform the bbox format from xywh to x1y1x2y2. Args: bbox_xywh (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or (n,
aios_repo/detrsmpl/utils/demo_utils.py:65
↓ 3 callersFunctionGetDeviceStr
mmcv/mmcv/ops/csrc/common/pytorch_device_registry.hpp:15
↓ 3 callersFunctionGetDeviceStr
sapiens/cv/mmcv/ops/csrc/common/pytorch_device_registry.hpp:15
↓ 3 callersMethod__get_sliced_result__
Slice input_data along slice_dim with slice_range. Args: input_data (Union[np.ndarray, list, tuple]): Data to be
aios_repo/detrsmpl/data/data_structures/human_data.py:1427
↓ 3 callersMethod__get_sliced_result__
Slice input_data along slice_dim with slice_range. Args: input_data (Union[np.ndarray, list, tuple]): Data to be
mmhuman3d/data/data_structures/human_data.py:1391
↓ 3 callersMethod__getattr__
(self, name: str)
sapiens/pretrain/mmpretrain/models/peft/lora.py:229
↓ 3 callersMethod__getitem__
(self, index: Union[int, slice])
blade/render/explicit/pytorch3d_wrapper/lights/lights.py:63
↓ 3 callersMethod__getitem__
(self, index: Union[int, slice])
aios_repo/detrsmpl/core/renderer/torch3d_renderer/lights/lights.py:62
↓ 3 callersMethod__getitem__
(self, index: Union[int, slice])
mmhuman3d/core/renderer/torch3d_renderer/lights/lights.py:63
↓ 3 callersMethod__init__
(self, A, ref_vertices, num_layers=5, num_channels=512)
blade/models/layers/graph_cnn.py:162
↓ 3 callersMethod__init__
( self, in_channels, out_channels, init_cfg=None, )
blade/models/layers/conv.py:153
↓ 3 callersMethod__init__
(self, reduction='mean', loss_weight=1.0, **kwargs)
blade/models/losses/mesh_loss.py:35
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
aios_repo/detrsmpl/models/backbones/resnet.py:382
↓ 3 callersMethod__init__
(self, backbone, position_embedding)
aios_repo/models/aios/backbones/backbone.py:142
↓ 3 callersMethod__init__
(self)
mmcv/mmcv/ops/points_sampler.py:192
↓ 3 callersMethod__init__
(self, *args, **kwargs)
mmcv/mmcv/ops/deprecated_wrappers.py:34
↓ 3 callersMethod__init__
(self, in_channels, out_channels, **kwargs)
mmcv/mmcv/ops/merge_cells.py:157
↓ 3 callersMethod__init__
(self, grad_clip=None, detect_anomalous_params=False)
mmcv/mmcv/runner/hooks/optimizer.py:65
↓ 3 callersMethod__init__
(self, in_channels, sub_sample=False, conv_cfg=dict(type='C
mmcv/mmcv/cnn/bricks/non_local.py:249
↓ 3 callersMethod__init__
(self)
mmcv/tests/test_runner/test_optimizer.py:46
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
mmhuman3d/models/backbones/resnet.py:385
↓ 3 callersMethod__init__
(self)
sapiens/cv/mmcv/ops/points_sampler.py:195
↓ 3 callersMethod__init__
(self, *args, **kwargs)
sapiens/cv/mmcv/ops/deprecated_wrappers.py:39
↓ 3 callersMethod__init__
(self, in_channels: int, out_channels: int, **kwargs)
sapiens/cv/mmcv/ops/merge_cells.py:166
← previousnext →1,301–1,400 of 19,095, ranked by callers