MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 5 callersMethod_analyze
(self)
sapiens/engine/mmengine/analysis/jit_analysis.py:587
↓ 5 callersMethod_convert
Convert data items with the given function. Args: apply_to (Type): The type of data items to apply the conversion fun
sapiens/pose/mmpose/structures/multilevel_pixel_data.py:250
↓ 5 callersFunction_corner_pool
(x: Tensor, dim: int, flip: bool)
mmcv/mmcv/ops/corner_pool.py:32
↓ 5 callersMethod_freeze_stages
(self)
sapiens/det/mmdet/models/backbones/resnet.py:641
↓ 5 callersMethod_get_active_map_or_index
Get current active map with (B, 1, f, f) shape or index format.
sapiens/pretrain/mmpretrain/models/utils/sparse_modules.py:45
↓ 5 callersFunction_get_adaptive_scales
Get adaptive scales according to areas. The scale range is [0.5, 1.0]. When the area is less than ``min_area``, the scale is 0.5 while the ar
sapiens/det/mmdet/visualization/palette.py:98
↓ 5 callersMethod_get_checkpoint_loader
Finds a loader that supports the given path. Falls back to the local loader if no other loader is found. Args: path (str)
mmcv/mmcv/runner/checkpoint.py:281
↓ 5 callersFunction_get_clones
(module, N)
aios_repo/detrsmpl/core/post_processing/speed_up/deciwatch.py:710
↓ 5 callersMethod_get_decoder_layers
Get decoder layers according to attribute name.
sapiens/pretrain/mmpretrain/models/multimodal/flamingo/adapter.py:87
↓ 5 callersFunction_is_builtin_module
Check if a module is a built-in module. Arg: module_name: name of module.
sapiens/engine/mmengine/config/utils.py:186
↓ 5 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
aios_repo/detrsmpl/models/architectures/base_architecture.py:45
↓ 5 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
mmhuman3d/models/architectures/base_architecture.py:46
↓ 5 callersFunction_rand_bboxes
(rng, num_boxes, w, h)
sapiens/det/mmdet/testing/_utils.py:95
↓ 5 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
aios_repo/detrsmpl/data/datasets/human_image_dataset.py:499
↓ 5 callersMethod_set_device
Recursively set device for `BaseDataPreprocessor` instance. Args: device (torch.device): the desired device of the parameters and
sapiens/engine/mmengine/model/base_model/base_model.py:296
↓ 5 callersMethod_set_lr
(self, runner, lr_groups)
mmcv/mmcv/runner/hooks/lr_updater.py:83
↓ 5 callersMethod_set_momentum
(self, runner, momentum_groups)
mmcv/mmcv/runner/hooks/momentum_updater.py:58
↓ 5 callersMethod_stack_batch_gt
(self, batch_data_samples: SampleList)
sapiens/seg/mmseg/models/decode_heads/pid_head.py:168
↓ 5 callersMethod_test_mdconv
(self, dtype=torch.float, device='cuda')
mmcv/tests/test_ops/test_modulated_deform_conv.py:65
↓ 5 callersMethod_write_images
Write output/temp images.
blade/render/explicit/pytorch3d_wrapper/renderers/base_renderer.py:260
↓ 5 callersMethod_write_images
Write output/temp images.
aios_repo/detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:258
↓ 5 callersMethod_write_images
Write output/temp images.
mmhuman3d/core/renderer/torch3d_renderer/base_renderer.py:258
↓ 5 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class, ...)
sapiens/seg/mmseg/models/losses/accuracy.py:34
↓ 5 callersFunctionalign_input_to_padded
(tensor=Union[List[torch.Tensor], torch.Tensor], ndim: int = 3,
blade/render/explicit/pytorch3d_wrapper/renderers/utils.py:96
↓ 5 callersFunctionalign_input_to_padded
(tensor=Union[List[torch.Tensor], torch.Tensor], ndim: int = 3,
aios_repo/detrsmpl/core/renderer/torch3d_renderer/utils.py:96
↓ 5 callersFunctionalign_input_to_padded
(tensor=Union[List[torch.Tensor], torch.Tensor], ndim: int = 3,
mmhuman3d/core/renderer/torch3d_renderer/utils.py:97
↓ 5 callersFunctionbatch_unshuffle_ddp
Undo batch shuffle. Args: x (torch.Tensor): Data in each GPU. idx_unshuffle (torch.Tensor): Index for restoring. Returns:
sapiens/pretrain/mmpretrain/models/utils/batch_shuffle.py:72
↓ 5 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
aios_repo/detrsmpl/core/post_processing/bbox/transforms.py:268
↓ 5 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
smplx_repo/smplx/lbs.py:298
↓ 5 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
aios_repo/detrsmpl/data/datasets/builder.py:69
↓ 5 callersFunctionbuild_dataset
Build dataset by the given config.
aios_repo/detrsmpl/data/datasets/builder.py:51
↓ 5 callersFunctionbuild_head
Build head.
mmhuman3d/models/heads/builder.py:43
↓ 5 callersMethodbuild_lazy
If class attribute ``lazy`` is False, the LazyObject will be built and returned. Args: value (Any): The value to be built
sapiens/engine/mmengine/config/config.py:231
↓ 5 callersFunctionbuild_neck
Build neck.
mmhuman3d/models/necks/builder.py:35
↓ 5 callersMethodbuild_project
Build projection layer for key/query/value/out.
sapiens/seg/mmseg/models/utils/self_attention_block.py:129
↓ 5 callersFunctionchannel_shuffle
Channel Shuffle operation. This function enables cross-group information flow for multiple groups convolution layers. Args: x (T
sapiens/pose/mmpose/models/backbones/utils/channel_shuffle.py:33
↓ 5 callersMethodchildren
(self)
mmcv/mmcv/utils/registry.py:231
↓ 5 callersFunctioncompute_similarity_transform
Computes a similarity transform (sR, t) that takes a set of 3D points source_points (N x 3) closest to a set of 3D points target_points, where R
aios_repo/detrsmpl/core/evaluation/mesh_eval.py:32
↓ 5 callersFunctioncompute_similarity_transform
Computes a similarity transform (sR, t) that takes a set of 3D points source_points (N x 3) closest to a set of 3D points target_points, where R
mmhuman3d/core/evaluation/mesh_eval.py:32
↓ 5 callersMethoddecode
(self, memory, memory_mask, memory_pos, tgt, tgt_mask, tgt_pos)
aios_repo/detrsmpl/core/post_processing/speed_up/deciwatch.py:446
↓ 5 callersMethoddevice
(self)
sapiens/pretrain/mmpretrain/models/multimodal/blip/blip_vqa.py:81
↓ 5 callersFunctiondigit_version
(version_str)
sapiens/pose/tools/deployment/pytorch2torchscript.py:44
↓ 5 callersFunctiondist
(coord1, coord2)
blade/render/explicit/pytorch3d_wrapper/renderers/uv_renderer.py:690
↓ 5 callersMethoddraw_binary_masks
Draw single or multiple binary masks. Args: binary_masks (np.ndarray, torch.Tensor): The binary_masks to draw wit
sapiens/engine/mmengine/visualization/visualizer.py:879
↓ 5 callersMethoddraw_texts
Draw single or multiple text boxes. Args: texts (Union[str, List[str]]): Texts to draw. positions (Union[np.ndarray,
sapiens/engine/mmengine/visualization/visualizer.py:448
↓ 5 callersMethodencode
Encode keypoints into root heatmaps and keypoint displacement fields. Note that the original keypoint coordinates should be in the inp
sapiens/pose/mmpose/codecs/spr.py:166
↓ 5 callersFunctionencode_mask_results
Encode bitmap mask to RLE code. Args: mask_results (list): bitmap mask results. Returns: list | tuple: RLE encoded mask.
sapiens/det/mmdet/structures/mask/utils.py:66
↓ 5 callersMethodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
sapiens/engine/mmengine/evaluator/metric.py:126
↓ 5 callersMethodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
sapiens/det/mmdet/evaluation/metrics/coco_video_metric.py:74
↓ 5 callersFunctionfilter_gt_instances
Filter ground truth (GT) instances by score and/or size. Args: batch_data_samples (SampleList): The Data Samples. It usually
sapiens/det/mmdet/models/utils/misc.py:544
↓ 5 callersFunctionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks To do so, we first compute the rotation of the neck around the y-axis
smplx_repo/smplx/lbs.py:53
↓ 5 callersFunctionfind_joint_global_rotation
Computes the absolute rotation of a joint from the kinematic chain.
aios_repo/detrsmpl/models/utils/SMPLX.py:235
↓ 5 callersFunctionflip_rotmat
Flip function. Flip rotmat.
aios_repo/detrsmpl/models/utils/SMPLX.py:224
↓ 5 callersFunctionfmt
(x: float)
sapiens/engine/mmengine/analysis/print_helper.py:67
↓ 5 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the coordinates. Args: feats (Tuple[Tensor])
sapiens/pose/mmpose/models/heads/regression_heads/rle_head.py:95
↓ 5 callersMethodfromfile
Construct a HumanData instance from an npz file. Args: npz_path (str): Path to a dumped npz file. Return
aios_repo/detrsmpl/data/data_structures/human_data.py:185
↓ 5 callersMethodfromstring
Generate config from config str. Args: cfg_str (str): Config str. file_format (str): Config file format corresponding
mmcv/mmcv/utils/config.py:370
↓ 5 callersMethodfull_init
Load annotation file and set ``BaseDataset._fully_initialized`` to True. If ``lazy_init=False``, ``full_init`` will be called during
sapiens/engine/mmengine/dataset/base_dataset.py:302
↓ 5 callersMethodfull_init
Loop to ``full_init`` each dataset.
sapiens/engine/mmengine/dataset/dataset_wrapper.py:134
↓ 5 callersFunctiongen_encoder_output_proposals
Input: - memory: bs, \sum{hw}, d_model - memory_padding_mask: bs, \sum{hw} - spatial_shapes: nlevel, 2 - learnedw
aios_repo/models/aios/utils.py:55
↓ 5 callersFunctiongenerate_coordinate
Generate the coordinate. Args: featmap_sizes (tuple): The feature to be calculated, of shape (N, C, W, H). device (st
sapiens/det/mmdet/models/utils/misc.py:407
↓ 5 callersMethodget
(self, filepath)
mmcv/tests/test_fileclient.py:657
↓ 5 callersFunctiongetAlignedSize
mmcv/mmcv/ops/csrc/tensorrt/trt_plugin_helper.hpp:35
↓ 5 callersFunctionget_adaptive_scale
Get adaptive scale according to image shape. The target scale depends on the the short edge length of the image. If the short edge length equ
sapiens/pretrain/mmpretrain/visualization/utils.py:36
↓ 5 callersFunctionget_affine_transform
Get the affine transform matrix, given the center/scale/rot/output_size. Args: center (np.ndarray[2, ]): Center of the bounding box (x, y
aios_repo/detrsmpl/data/datasets/pipelines/transforms.py:39
↓ 5 callersFunctionget_classes
Get class names of a dataset.
sapiens/det/mmdet/evaluation/functional/class_names.py:531
↓ 5 callersFunctionget_expansion
Get the expansion of a residual block. The block expansion will be obtained by the following order: 1. If ``expansion`` is given, just retur
sapiens/pretrain/mmpretrain/models/backbones/resnet.py:312
↓ 5 callersFunctionget_flip_pairs
Get indices of left, right keypoint pairs from specified convention. Args: convention (str): data type from keypoints_factory. ke
mmhuman3d/core/conventions/keypoints_mapping/__init__.py:321
↓ 5 callersMethodget_frame
Get frame by index. Args: frame_id (int): Index of the expected frame, 0-based. Returns: ndarray or None: Re
mmcv/mmcv/video/io.py:182
↓ 5 callersMethodget_item
(self, index, required_keys: List[str] = [])
mmhuman3d/data/data_structures/human_data_cache.py:51
↓ 5 callersMethodget_keypoints_num_frames
(self)
aios_repo/detrsmpl/data/data_structures/smc_reader.py:842
↓ 5 callersMethodget_keypoints_num_frames
(self)
mmhuman3d/data/data_structures/smc_reader.py:838
↓ 5 callersMethodget_kinect_color_extrinsics
Get extrinsics(cam2world) of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from
aios_repo/detrsmpl/data/data_structures/smc_reader.py:99
↓ 5 callersMethodget_kinect_color_extrinsics
Get extrinsics(cam2world) of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from
mmhuman3d/data/data_structures/smc_reader.py:99
↓ 5 callersMethodget_kinect_num_frames
Get the number of frames recorded by one Kinect RGB camera. Returns: int: Number of frames.
mmhuman3d/data/data_structures/smc_reader.py:454
↓ 5 callersMethodget_local_path
Download data from ``filepath`` and write the data to local path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It
sapiens/engine/mmengine/fileio/file_client.py:433
↓ 5 callersFunctionget_mapping
Get mapping list from src to dst. Args: src (str): source data type from keypoints_factory. dst (str): destination data type from
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:259
↓ 5 callersFunctionget_model
Get a pre-defined model or create a model from config. Args: model (str | Config): The name of model, the config file path or a
sapiens/pretrain/mmpretrain/apis/model.py:125
↓ 5 callersFunctionget_model_complexity_info
Interface to get the complexity of a model. The parameter `inputs` are fed to the forward method of model. If `inputs` is not specified, the
sapiens/engine/mmengine/analysis/print_helper.py:705
↓ 5 callersFunctionget_text
Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding
sapiens/engine/mmengine/fileio/io.py:212
↓ 5 callersFunctionget_warp_matrix
Calculate the affine transformation matrix that can warp the bbox area in the input image to the output size. Args: center (np.ndarra
sapiens/pose/mmpose/structures/bbox/transforms.py:302
↓ 5 callersFunctionimages_to_array_cv2
(image_list: list, resolution: Optional[Union[Tuple[int, int],
blade/utils/frame_utils.py:58
↓ 5 callersFunctionimages_to_video
Convert a folder of images to a video. Args: input_folder (str): input image folder output_path (str): output video file path
mmhuman3d/utils/ffmpeg_utils.py:692
↓ 5 callersFunctionimg_from_canvas
Get RGB image from ``FigureCanvasAgg``. Args: canvas (FigureCanvasAgg): The canvas to get image. Returns: np.ndarray: the ou
sapiens/engine/mmengine/visualization/utils.py:259
↓ 5 callersFunctionis_cuda_available
Returns True if cuda devices exist.
sapiens/engine/mmengine/device/utils.py:77
↓ 5 callersFunctionis_dist_avail_and_initialized
()
aios_repo/util/misc.py:537
↓ 5 callersFunctionis_mlu_available
Returns True if Cambricon PyTorch and mlu devices exist.
sapiens/engine/mmengine/device/utils.py:87
↓ 5 callersFunctionis_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type): Expected typ
mmcv/mmcv/utils/misc.py:151
↓ 5 callersFunctionis_tuple_of
Check whether it is a tuple of some type. A partial method of :func:`is_seq_of`.
mmcv/mmcv/utils/misc.py:183
↓ 5 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/petrel_backend.py:222
↓ 5 callersFunctionjoin_meshes_as_scene
Join the meshes along the scene dim. Args: meshes (Union[ParametricMeshes, List[ParametricMeshes]]): ParametricMeshes object
blade/structures/meshes/meshes.py:462
↓ 5 callersFunctionkp2d_to_bbox
Convert kp2d to bbox. Args: kp2d (np.ndarray): shape should be (num_frame, num_points, 2/3). bbox_format (Literal['xyxy', 'xywh'
blade/utils/bbox_utils.py:103
↓ 5 callersFunctionload_url
r"""Loads the Torch serialized object at the given URL. If downloaded file is a zip file, it will be automatically decompressed If t
mmcv/mmcv/utils/hub.py:75
↓ 5 callersMethodloss_and_predict
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples. Over-write because im
sapiens/det/mmdet/models/dense_heads/detr_head.py:489
↓ 5 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
sapiens/det/mmdet/models/utils/make_divisible.py:30
↓ 5 callersFunctionmake_folder
(folder_name)
aios_repo/util/dir.py:28
↓ 5 callersFunctionmerge_aug_masks
Merge augmented mask prediction. Args: aug_masks (list[Tensor]): each has shape (n, c, h, w). img_metas (dict): Image
sapiens/det/mmdet/models/test_time_augs/merge_augs.py:207
↓ 5 callersMethodmerge_from_dict
Merge list into cfg_dict. Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backb
mmcv/mmcv/utils/config.py:624
↓ 5 callersFunctionmse_loss
Warpper of mse loss.
mmhuman3d/models/losses/mse_loss.py:38
↓ 5 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class),
sapiens/det/mmdet/models/layers/bbox_nms.py:40
← previousnext →901–1,000 of 19,095, ranked by callers