MCPcopy Create free account

hub / github.com/OpenGVLab/HumanBench / types & classes

Types & classes382 in github.com/OpenGVLab/HumanBench

↓ 43 callersClassNorm2d
A LayerNorm variant, popularized by Transformers, that performs point-wise mean and variance normalization over the channel dimension for inp
PATH/core/models/necks/simple_fpn.py:13
↓ 23 callersClassAverageMeter
Computes and stores the average and current value
PATH/core/utils.py:37
↓ 17 callersClassDataContainer
A container for any type of objects. Typically tensors will be stacked in the collate function and sliced along some dimension in the scatter
PATH/core/data/transforms/pose_transforms.py:97
↓ 9 callersClassNoOpTransform
A transform that does nothing.
PATH/core/data/transforms/seg_aug_dev.py:135
↓ 8 callersClassConv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
PATH/core/models/necks/simple_fpn.py:41
↓ 8 callersClassLoadImageFromFile
Loading image from file. Args: color_type (str): Flags specifying the color type of a loaded image, candidates are 'color', 'gr
PATH/core/data/transforms/pose_transforms.py:183
↓ 8 callersClassTopDownAffine
Affine transform the image to make input. Required keys:'img', 'joints_3d', 'joints_3d_visible', 'ann_info','scale', 'rotation' and 'center'.
PATH/core/data/transforms/pose_transforms.py:370
↓ 7 callersClassCollect
Collect data from the loader relevant to the specific task. This keeps the items in `keys` as it is, and collect items in `meta_keys` into a
PATH/core/data/transforms/pose_transforms.py:859
↓ 7 callersClassNestedTensor
PATH/core/utils.py:752
↓ 7 callersClassToUNTensor
Transform image to Tensor. Required key: 'img'. Modifies key: 'img'. Args: results (dict): contain all information about training.
PATH/core/data/transforms/pose_transforms.py:451
↓ 6 callersClassCropTransform
PATH/core/data/transforms/seg_aug_dev.py:158
↓ 6 callersClassInstances
This class represents a list of instances in an image. It stores the attributes of instances (e.g., boxes, masks, labels, scores) as "fields"
PATH/core/data/datasets/images/seg_dataset_dev.py:13
↓ 6 callersClassShapeSpec
A simple structure that contains basic shape specification about a tensor. It is often used as the auxiliary inputs/outputs of models, to
PATH/core/models/ops/utils.py:53
↓ 6 callersClassTransformList
Maintain a list of transform operations which will be applied in sequence. Attributes: transforms (list[Transform])
PATH/core/data/transforms/seg_transforms_dev.py:254
↓ 6 callersClassWorkerInit
PATH/core/solvers/solver_deter.py:23
↓ 5 callersClassSetCriterion
This class computes the loss for DETR. The process happens in two steps: 1) we compute hungarian assignment between ground truth boxes and
PATH/core/models/decoders/losses/criterion.py:168
↓ 5 callersClassTopDownGenerateTarget
Generate the target heatmap. Required keys: 'joints_3d', 'joints_3d_visible', 'ann_info'. Modified keys: 'target', and 'target_weight'. Ar
PATH/core/data/transforms/pose_transforms.py:486
↓ 5 callersClassTopDownGetRandomScaleRotation
Data augmentation with random scaling & rotating. Required key: 'scale'. Modifies key: 'scale' and 'rotation'. Args: rot_factor (int
PATH/core/data/transforms/pose_transforms.py:335
↓ 5 callersClassTopDownRandomFlip
Data augmentation with random image flip. Required keys: 'img', 'joints_3d', 'joints_3d_visible', 'center' and 'ann_info'. Modifies key:
PATH/core/data/transforms/pose_transforms.py:213
↓ 4 callersClassBitMasks
This class stores the segmentation masks for all objects in one image, in the form of bitmaps. Attributes: tensor: bool Tensor o
PATH/core/data/datasets/images/seg_dataset_dev.py:201
↓ 4 callersClassBoxes
This structure stores a list of boxes as a Nx4 torch.Tensor. It supports some common methods about boxes (`area`, `clip`, `nonempty`, etc
PATH/core/models/ops/boxes.py:130
↓ 4 callersClassComposeX
PATH/core/data/transforms/pose_transforms.py:169
↓ 4 callersClassDistModule
PATH/core/distributed_utils.py:26
↓ 4 callersClassDistributedSequentialSampler
PATH/core/distributed_utils.py:1062
↓ 4 callersClassSemSegEvaluator
Evaluate semantic segmentation metrics.
PATH/core/solvers/utils/seg_tester_dev.py:69
↓ 4 callersClassSpatialGather_Module
Aggregate the context features according to the initial predicted probability distribution. Employ the soft-weighted method to aggregate the
PATH/core/models/decoders/seg_decoders/spatial_ocr_block.py:37
↓ 4 callersClassTopDownHalfBodyTransform
Data augmentation with half-body transform. Keep only the upper body or the lower body at random. Required keys: 'joints_3d', 'joints_3d_visi
PATH/core/data/transforms/pose_transforms.py:256
↓ 3 callersClassConfig
PATH/core/config.py:141
↓ 3 callersClassDetBoxGT
:class: bounding box for detection groundtruth, inherited from BoxBase :ivar int ign: if the bounding box should be ignored or not. 0 for NOT
PATH/core/solvers/utils/detools/box.py:271
↓ 3 callersClassDirectMatcher
PATH/core/models/decoders/losses/matcher.py:194
↓ 3 callersClassDistributedGivenIterationSampler
PATH/core/distributed_utils.py:195
↓ 3 callersClassPedAttrAugmentation
PATH/core/data/transforms/pedattr_transforms.py:11
↓ 3 callersClassReidTestAugmentation
PATH/core/data/transforms/reid_transforms.py:263
↓ 3 callersClassReidTestAugmentationCV2
PATH/core/data/transforms/reid_transforms.py:224
↓ 3 callersClassResizeTransform
Resize the image to a target size.
PATH/core/data/transforms/seg_aug_dev.py:326
↓ 3 callersClassResizeTransform
Resize the image to a target size.
PATH/core/data/transforms/sparsercnn_peddet_transforms_helpers/transforms.py:92
↓ 3 callersClassSpatialOCR_Module
Implementation of the OCR module: We aggregate the global object representation to update the representation for each pixel. use_gt=True
PATH/core/models/decoders/seg_decoders/spatial_ocr_block.py:306
↓ 3 callersClassTripletLoss
PATH/core/models/decoders/losses/classification_losses.py:185
↓ 2 callersClassBlock
PATH/core/models/backbones/vit.py:250
↓ 2 callersClassDetBox
:class: bounding box for detection result, inherited from BoxBase :ivar float score: detection score (for one class) of bounding box :iva
PATH/core/solvers/utils/detools/box.py:217
↓ 2 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/backbones/vit.py:28
↓ 2 callersClassHFlipTransform
Perform horizontal flip.
PATH/core/data/transforms/seg_aug_dev.py:29
↓ 2 callersClassHumParEvaluator
Evaluate human parsing metrics, specifically, for Human3.6M
PATH/core/solvers/utils/par_tester_dev.py:24
↓ 2 callersClassLayerNorm
r""" LayerNorm that supports two data formats: channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_
PATH/core/models/decoders/pose_decodes/pose_decoder.py:19
↓ 2 callersClassMLP
Very simple multi-layer perceptron (also called FFN)
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:273
↓ 2 callersClassMsgClient
PATH/core/msg_server.py:67
↓ 2 callersClassObjectAttentionBlock2D
PATH/core/models/decoders/seg_decoders/spatial_ocr_block.py:284
↓ 2 callersClassPedAttrRandomAugmentation
PATH/core/data/transforms/pedattr_transforms.py:312
↓ 2 callersClassPedAttrTestAugmentation
PATH/core/data/transforms/pedattr_transforms.py:27
↓ 2 callersClassPedDetEvaluator
Evaluate Pedestrain Detection metrics
PATH/core/solvers/utils/peddet_tester_dev.py:36
↓ 2 callersClassPedestrainDetectionAugmentation
PATH/core/data/transforms/peddet_transforms.py:17
↓ 2 callersClassPoseEvaluator
Evaluate semantic segmentation metrics.
PATH/core/solvers/utils/pos_tester_dev.py:16
↓ 2 callersClassRandomSizedEarser
PATH/core/data/transforms/reid_transforms.py:287
↓ 2 callersClassReidAugmentation
PATH/core/data/transforms/reid_transforms.py:44
↓ 2 callersClassReidAugmentationCV2
PATH/core/data/transforms/reid_transforms.py:94
↓ 2 callersClassRotationTransform
This method returns a copy of this image, rotated the given number of degrees counter clockwise around its center.
PATH/core/data/transforms/sparsercnn_peddet_transforms_helpers/transforms.py:160
↓ 2 callersClassSegmentationRunningMetrics
PATH/core/utils.py:814
↓ 2 callersClassSemanticSegmentorWithTTA
A SemanticSegmentor with test-time augmentation enabled. Its :meth:`__call__` method has the same interface as :meth:`SemanticSegmentor.forwa
PATH/core/models/tta.py:25
↓ 2 callersClassSoftmax
PATH/core/models/decoders/losses/classification_losses.py:243
↓ 2 callersClassTransformerBlock
PATH/core/models/necks/ladder_side_attention_fpn.py:75
↓ 2 callersClassVFlipTransform
Perform vertical flip.
PATH/core/data/transforms/seg_aug_dev.py:81
↓ 2 callersClassViT
Vision Transformer with support for patch or hybrid CNN input stage
PATH/core/models/backbones/vitdet.py:328
↓ 2 callersClassViT
Vision Transformer with support for patch or hybrid CNN input stage
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:331
↓ 2 callersClassViT
Vision Transformer with support for patch or hybrid CNN input stage
PATH/core/models/backbones/vitdet_for_ladder_attention.py:328
↓ 2 callersClassWorkerInit
PATH/core/testers/tester_deter.py:11
↓ 2 callersClassmodel_entry
PATH/core/models/model_entry.py:9
↓ 1 callersClassAmpHandle
PATH/core/fp16/amp.py:59
↓ 1 callersClassAttention
PATH/core/models/necks/ladder_side_attention_fpn.py:29
↓ 1 callersClassAttention
PATH/core/models/backbones/vit.py:63
↓ 1 callersClassAttention
PATH/core/models/backbones/vitdet.py:71
↓ 1 callersClassAttention
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:71
↓ 1 callersClassAttention
PATH/core/models/backbones/vitdet_for_ladder_attention.py:71
↓ 1 callersClassAugInput
Input that can be used with :meth:`Augmentation.__call__`. This is a standard implementation for the majority of use cases. This class pr
PATH/core/data/transforms/seg_transforms_dev.py:610
↓ 1 callersClassAugInput
Input that can be used with :meth:`Augmentation.__call__`. This is a standard implementation for the majority of use cases. This class pr
PATH/core/data/transforms/sparsercnn_peddet_transforms_helpers/augmentation.py:261
↓ 1 callersClassAugmentationList
Apply a sequence of augmentations. It has ``__call__`` method to apply the augmentations. Note that :meth:`get_transform` method is imp
PATH/core/data/transforms/seg_transforms_dev.py:576
↓ 1 callersClassAugmentationList
Apply a sequence of augmentations. It has ``__call__`` method to apply the augmentations. Note that :meth:`get_transform` method is impos
PATH/core/data/transforms/sparsercnn_peddet_transforms_helpers/augmentation.py:229
↓ 1 callersClassBlock
PATH/core/models/backbones/vitdet.py:259
↓ 1 callersClassBlock
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:262
↓ 1 callersClassBlock
PATH/core/models/backbones/vitdet_for_ladder_attention.py:259
↓ 1 callersClassBodySplit
PATH/core/data/transforms/reid_transforms.py:404
↓ 1 callersClassCBAMBlock
PATH/core/models/necks/attention.py:86
↓ 1 callersClassChannelAttention
PATH/core/models/necks/attention.py:51
↓ 1 callersClassConv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
PATH/core/models/ops/utils.py:7
↓ 1 callersClassConv2dSame
Tensorflow like 'SAME' convolution wrapper for 2D convolutions
PATH/core/models/ops/conv2d_helpers.py:33
↓ 1 callersClassConvertCocoPolysToMask
PATH/core/data/datasets/images/peddet_dataset_dev.py:62
↓ 1 callersClassConvertCocoPolysToMask
PATH/core/data/datasets/images/peddet_dataset.py:72
↓ 1 callersClassCrossAttentionLayer
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:110
↓ 1 callersClassDatabase
PATH/core/solvers/utils/peddet_tester_dev.py:484
↓ 1 callersClassDetSetCriterion
This class computes the loss for DETR. The process happens in two steps: 1) we compute hungarian assignment between ground truth boxes an
PATH/core/models/decoders/losses/criterion.py:387
↓ 1 callersClassDetectionHungarianMatcher
This class computes an assignment between the targets and the predictions of the network For efficiency reasons, the targets don't include the no
PATH/core/models/decoders/losses/matcher.py:383
↓ 1 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/necks/ladder_side_attention_fpn.py:14
↓ 1 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/backbones/vitdet.py:31
↓ 1 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:31
↓ 1 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/backbones/vitdet_for_ladder_attention.py:31
↓ 1 callersClassECAAttention
PATH/core/models/necks/attention.py:9
↓ 1 callersClassExtentTransform
Extracts a subregion from the source image and scales it to the output size. The fill color is used to map pixels from the source rect that f
PATH/core/data/transforms/sparsercnn_peddet_transforms_helpers/transforms.py:36
↓ 1 callersClassFFNLayer
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:194
↓ 1 callersClassFSCELoss
PATH/core/models/decoders/losses/seg_losses.py:8
↓ 1 callersClassFSCELoss_list
PATH/core/models/decoders/losses/seg_losses.py:62
↓ 1 callersClassHumParEvaluator_bce_cls
PATH/core/solvers/utils/par_tester_dev.py:269
next →1–100 of 382, ranked by callers