MCPcopy Create free account

hub / github.com/NVlabs/blade / functions

Functions19,095 in github.com/NVlabs/blade

↓ 4 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). distance (Tensor): Distance from th
sapiens/det/mmdet/structures/bbox/transforms.py:175
↓ 4 callersMethoddownload
(self, file)
mmcv/tests/test_runner/test_checkpoint.py:75
↓ 4 callersFunctiondownload_url_to_file
Download object at the given URL to a local path. Modified from https://pytorch.org/docs/stable/hub.html#torch.hub.download_url_to_file
sapiens/pretrain/mmpretrain/datasets/utils.py:81
↓ 4 callersMethoddraw_polygons
Draw single or multiple bboxes. Args: polygons (Union[Union[np.ndarray, torch.Tensor],\ List[Union[np.ndarray, to
sapiens/engine/mmengine/visualization/visualizer.py:804
↓ 4 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). We follow the implementation https://github.com/
mmcv/mmcv/cnn/bricks/drop.py:32
↓ 4 callersMethoddtype
Get the dtype.
sapiens/pretrain/mmpretrain/models/utils/clip_generator_helper.py:345
↓ 4 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
mmcv/mmcv/fileio/handlers/base.py:40
↓ 4 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
sapiens/engine/mmengine/fileio/handlers/base.py:45
↓ 4 callersFunctionelementwise_flop_counter
Count flops by. input_tensor.numel() * input_scale + output_tensor.numel() * output_scale Args: input_scale: scale of th
sapiens/engine/mmengine/analysis/jit_handles.py:291
↓ 4 callersFunctionembed_similarity
Calculate feature similarity from embeddings. Args: key_embeds (Tensor): Shape (N1, C). ref_embeds (Tensor): Shape (N2, C).
sapiens/det/mmdet/models/task_modules/tracking/similarity.py:35
↓ 4 callersMethodencode
(self, src, src_mask, pos_embed)
mmhuman3d/core/post_processing/speed_up/deciwatch.py:438
↓ 4 callersMethodevery_n_train_iters
Test whether current training iteration can be evenly divided by n. Args: runner (Runner): The runner of the training, validation
sapiens/engine/mmengine/hooks/hook.py:397
↓ 4 callersMethodextra_repr
(self)
aios_repo/util/smplx/smplx/body_models.py:292
↓ 4 callersMethodextra_repr
(self)
smplx_repo/smplx/body_models.py:322
↓ 4 callersMethodextract_feat
(self, inputs: torch.Tensor)
sapiens/pretrain/mmpretrain/models/selfsup/cae.py:451
↓ 4 callersFunctionfilter_transforms
Filter pipeline to avoid KeyError with partial data info.
sapiens/pretrain/mmpretrain/apis/multimodal_retrieval.py:50
↓ 4 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 a
aios_repo/util/smplx/smplx/lbs.py:51
↓ 4 callersMethodflip_
Flip boxes horizontally or vertically in-place. Args: img_shape (Tuple[int, int]): A tuple of image height and width.
sapiens/det/mmdet/structures/bbox/base_boxes.py:414
↓ 4 callersFunctionflip_bbox
Flip the bbox in the given direction. Args: bbox (np.ndarray): The bounding boxes. The shape should be (..., 4) if ``bbox_for
sapiens/pose/mmpose/structures/bbox/transforms.py:203
↓ 4 callersMethodforward
(self, x)
mmcv/tests/test_parallel.py:57
↓ 4 callersMethodforward
(self, x)
mmcv/tests/test_device/test_mlu/test_mlu_parallel.py:52
↓ 4 callersMethodforward
The unified entry for a forward process in both training and test. The method should accept three modes: 'tensor', 'predict' and 'loss':
sapiens/pose/mmpose/models/pose_estimators/base.py:125
↓ 4 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/regression_head.py:92
↓ 4 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/integral_regression_head.py:199
↓ 4 callersMethodforward
Forward the network. The input is multi-stage multi-unit feature maps and the output is a list of heatmaps from multiple stages. Args
sapiens/pose/mmpose/models/heads/heatmap_heads/mspn_head.py:304
↓ 4 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the heatmap. Args: feats (Tuple[Tensor]): Mu
sapiens/pose/mmpose/models/heads/heatmap_heads/heatmap_head.py:247
↓ 4 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the heatmaps and tags. Args: feats (Tuple[Te
sapiens/pose/mmpose/models/heads/heatmap_heads/ae_head.py:257
↓ 4 callersMethodforward
Forward the network. The input is multi-stage feature maps and the output is a list of heatmaps from multiple stages. Args:
sapiens/pose/mmpose/models/heads/heatmap_heads/cpm_head.py:201
↓ 4 callersMethodforward
Forward the network. The input is the featuremap extracted by backbone and the output is the simcc representation. Args:
sapiens/pose/mmpose/models/heads/coord_cls_heads/rtmcc_head.py:162
↓ 4 callersMethodforward
Forward the network. The input is the featuremap extracted by backbone and the output is the simcc representation. Args:
sapiens/pose/mmpose/models/heads/coord_cls_heads/simcc_head.py:228
↓ 4 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is a tuple of heatmap and displacement. Args: f
sapiens/pose/mmpose/models/heads/hybrid_heads/dekr_head.py:339
↓ 4 callersMethodfromstring
Build a Config instance from config text. Args: cfg_str (str): Config text. file_format (str): Config file format cor
sapiens/engine/mmengine/config/config.py:531
↓ 4 callersMethodfunc
(x)
mmhuman3d/models/heads/expose_head.py:275
↓ 4 callersMethodgen_encoder_output_proposals
Generate proposals from encoded memory. The function will only be used when `as_two_stage` is `True`. Args: memory (Tenso
sapiens/det/mmdet/models/detectors/deformable_detr.py:490
↓ 4 callersFunctiongen_sineembed_for_position
(pos_tensor)
aios_repo/models/aios/utils.py:207
↓ 4 callersMethodget_activation
(self, pred)
sapiens/det/mmdet/models/losses/eqlv2_loss.py:171
↓ 4 callersMethodget_backend
get vis backend by name. Args: name (str): The name of vis backend Returns: BaseVisBackend: The vis backend
sapiens/engine/mmengine/visualization/visualizer.py:385
↓ 4 callersFunctionget_bbox
Obtain bbox in xyxy format given bbox in xywh format and applying clipping to ensure bbox is within image bounds. Args: xywh (list):
mmhuman3d/data/datasets/pipelines/hybrik_transforms.py:41
↓ 4 callersMethodget_bboxes
Get the certain type boxes from masks. Please refer to ``mmdet.structures.bbox.box_type`` for more details of the box type.
sapiens/det/mmdet/structures/mask/structures.py:225
↓ 4 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
sapiens/seg/mmseg/models/losses/utils.py:38
↓ 4 callersMethodget_extra_property
Get user-defined property.
sapiens/det/mmdet/models/task_modules/assigners/assign_result.py:88
↓ 4 callersFunctionget_flip_pairs
Get indices of left, right keypoint pairs from specified convention. Args: convention (str): data type from keypoints_factory. ke
aios_repo/detrsmpl/core/conventions/keypoints_mapping/__init__.py:332
↓ 4 callersFunctionget_global_rank
()
blade/utils/helpers.py:53
↓ 4 callersFunctionget_installed_path
Get installed path of package. Args: package (str): Name of package. Example: >>> get_installed_path('mmcls') >>> '.
sapiens/engine/mmengine/utils/package_utils.py:64
↓ 4 callersMethodget_iphone_color_resolution
Get color image resolution of an iPhone RGB camera by iPhone id. Args: iphone_id (int, optional): ID of an iPhone
mmhuman3d/data/data_structures/smc_reader.py:330
↓ 4 callersMethodget_iphone_num_frames
Get the number of frames recorded by one iPhone RGB camera. Returns: int: Number of frames.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:463
↓ 4 callersMethodget_iphone_num_frames
Get the number of frames recorded by one iPhone RGB camera. Returns: int: Number of frames.
mmhuman3d/data/data_structures/smc_reader.py:463
↓ 4 callersMethodget_key_frames
(self)
sapiens/det/mmdet/structures/track_data_sample.py:160
↓ 4 callersMethodget_key_strict
Get value of attribute key_strict. Returns: bool: Whether to raise error when setting unsupported keys.
aios_repo/detrsmpl/data/data_structures/human_data.py:225
↓ 4 callersMethodget_kinect_num_frames
Get the number of frames recorded by one Kinect RGB camera. Returns: int: Number of frames.
aios_repo/detrsmpl/data/data_structures/smc_reader.py:454
↓ 4 callersMethodget_len_per_video
Get length of one video. Args: idx (int): Index of video. Returns: int (int): The length of the video.
sapiens/det/mmdet/datasets/base_video_dataset.py:323
↓ 4 callersMethodget_log_after_iter
Format log string after training, validation or testing iteration. Args: runner (Runner): The runner of training phase.
sapiens/engine/mmengine/runner/log_processor.py:151
↓ 4 callersMethodget_loss
(self, loss, outputs, targets, data_batch, indices, num_boxes, **kwargs)
aios_repo/models/aios/criterion_smplx.py:837
↓ 4 callersMethodget_loss
(self, loss, outputs, targets, data_batch, indices, num_boxes, **kwargs)
aios_repo/models/aios/criterion_smplx.py:1692
↓ 4 callersFunctionget_max_preds
get predictions from score maps heatmaps: numpy.ndarray([batch_size, num_joints, height, width])
sapiens/pose/mmpose/engine/hooks/custom_visualization_hook.py:186
↓ 4 callersFunctionget_max_preds
get predictions from score maps heatmaps: numpy.ndarray([batch_size, num_joints, height, width])
sapiens/pose/mmpose/engine/hooks/general_visualization_hook.py:300
↓ 4 callersMethodget_mode
(self, runner)
mmcv/mmcv/runner/hooks/logger/base.py:86
↓ 4 callersFunctionget_model_class
(key)
blade/models/body_models/__init__.py:37
↓ 4 callersMethodget_num_faces
(self)
aios_repo/util/smplx/smplx/body_models.py:289
↓ 4 callersMethodget_num_faces
(self)
smplx_repo/smplx/body_models.py:319
↓ 4 callersFunctionget_palette
Get class palette (RGB) of a dataset.
sapiens/seg/mmseg/utils/class_names.py:543
↓ 4 callersMethodget_pos_info
(self, pos_embedding, src_pos_embedding=None)
sapiens/pretrain/mmpretrain/models/multimodal/ofa/ofa_modules.py:1270
↓ 4 callersFunctionget_priority
Get priority value. Args: priority (int or str or :obj:`Priority`): Priority. Returns: int: The priority value.
sapiens/engine/mmengine/runner/priority.py:71
↓ 4 callersMethodget_ref_frames
(self)
sapiens/det/mmdet/structures/track_data_sample.py:169
↓ 4 callersFunctionget_root_logger
Use `MMLogger` class in mmengine to get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHa
sapiens/pose/mmpose/utils/logger.py:35
↓ 4 callersFunctionget_simcc_normalized
Normalize the predicted SimCC. Args: batch_pred_simcc (torch.Tensor): The predicted SimCC. sigma (float): The sigma of the Gaussi
sapiens/pose/mmpose/codecs/utils/post_processing.py:40
↓ 4 callersFunctionget_single_padding
(kernel_size: int, stride: int = 1, dilation: int = 1)
sapiens/cv/mmcv/cnn/rfsearch/utils.py:92
↓ 4 callersMethodget_slice
Slice [0, stop, 1] of all sliceable values.
mmhuman3d/data/data_structures/human_data.py:538
↓ 4 callersFunctionget_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
mmcv/mmcv/runner/checkpoint.py:704
↓ 4 callersFunctionget_test_pipeline_cfg
Get the test dataset pipeline from entire config. Args: cfg (str or :obj:`ConfigDict`): the entire config. Can be a config fi
sapiens/det/mmdet/utils/misc.py:114
↓ 4 callersMethodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
sapiens/engine/mmengine/fileio/file_client.py:332
↓ 4 callersFunctionget_udp_warp_matrix
Calculate the affine transformation matrix under the unbiased constraint. See `UDP (CVPR 2020)`_ for details. Note: - The bbox numbe
sapiens/pose/mmpose/structures/bbox/transforms.py:255
↓ 4 callersFunctionget_world_size
()
aios_repo/util/misc.py:545
↓ 4 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
aios_repo/detrsmpl/utils/ffmpeg_utils.py:693
↓ 4 callersFunctionimread
Read an image. Note: In v1.4.1 and later, add `file_client_args` parameters. Args: img_or_path (ndarray or str or Path): Eit
mmcv/mmcv/image/io.py:165
↓ 4 callersFunctionimwrite
Write image to file. Warning: The parameter `auto_mkdir` will be deprecated in the future and every file clients will make direct
sapiens/cv/mmcv/image/io.py:319
↓ 4 callersMethodinit_weights
(self, pretrained: Optional[str] = None)
sapiens/cv/mmcv/cnn/vgg.py:155
↓ 4 callersMethodinitialize
(self, context)
sapiens/det/tools/deployment/mmdet_handler.py:44
↓ 4 callersMethodinitialize_count_status
Initialize gradient accumulation related attributes. ``OptimWrapper`` can be used without calling ``initialize_iter_status``. However
sapiens/engine/mmengine/optim/optimizer/optimizer_wrapper.py:337
↓ 4 callersMethodinterpolate_pos_encoding
(self, x, h, w)
sapiens/pretrain/mmpretrain/models/backbones/hivit.py:577
↓ 4 callersMethodis_last_iter
(self, runner)
mmcv/mmcv/runner/hooks/hook.py:93
↓ 4 callersMethodkeys
A generator to get the name of :obj:`OptimWrapper`
sapiens/engine/mmengine/optim/optimizer/optimizer_wrapper_dict.py:200
↓ 4 callersMethodlast_obs
extract the last associated observation.
sapiens/det/mmdet/models/trackers/ocsort_tracker.py:273
↓ 4 callersFunctionlevel_to_mag
Map from level to magnitude.
sapiens/det/mmdet/datasets/transforms/augment_wrappers.py:104
↓ 4 callersMethodlevels
(self)
sapiens/pose/mmpose/structures/multilevel_pixel_data.py:113
↓ 4 callersFunctionlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns the path rela
sapiens/engine/mmengine/fileio/io.py:738
↓ 4 callersMethodload_det_boxes
load detection boxes.
sapiens/det/mmdet/evaluation/metrics/crowdhuman_metric.py:690
↓ 4 callersMethodload_from_fileobj
(self, file, **kwargs)
mmcv/mmcv/fileio/handlers/base.py:36
↓ 4 callersMethodload_from_fileobj
(self, file, **kwargs)
sapiens/engine/mmengine/fileio/handlers/base.py:41
↓ 4 callersMethodloss
Args: batch_inputs (Tensor): Input images of shape (N, C, H, W). These should usually be mean centered and std sc
sapiens/det/mmdet/models/detectors/lad.py:92
↓ 4 callersMethodloss_by_feat
Compute ``pam_cam``, ``pam``, ``cam`` loss.
sapiens/seg/mmseg/models/decode_heads/da_head.py:197
↓ 4 callersMethodloss_by_feat
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
sapiens/det/mmdet/models/dense_heads/ld_head.py:213
↓ 4 callersMethodloss_smpl_pose
(self, outputs, targets, indices, idx, num_boxes, data_batch, face_hand_kpt=False)
aios_repo/models/aios/criterion_smplx.py:327
↓ 4 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/seg/mmseg/models/utils/make_divisible.py:30
↓ 4 callersMethodmake_stage_plugins
Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``empirical_attention_block``, ``no
sapiens/det/mmdet/models/backbones/resnet.py:522
↓ 4 callersFunctionmark_nodes_to_remove
(name)
mmcv/mmcv/tensorrt/preprocess.py:81
↓ 4 callersMethodmask_loss
Run forward function and calculate loss for mask head in training. Args: x (tuple[Tensor]): Tuple of multi-level img features.
sapiens/det/mmdet/models/roi_heads/scnet_roi_head.py:289
↓ 4 callersMethodmerge_from_dict
Merge list into cfg_dict. Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backb
aios_repo/util/config.py:334
↓ 4 callersFunctionminimize
Helper function for running an optimization process Args: - optimizer: The PyTorch optimizer object - closure: The fu
smplx_repo/transfer_model/optimizers/minimize.py:49
↓ 4 callersFunctionmodel_sharding
split models in-place into multi-IPUs. Args: model (nn.Module): The target model to be split. split_edges (list of dict): Model l
mmcv/mmcv/device/ipu/utils.py:124
← previousnext →1,201–1,300 of 19,095, ranked by callers