Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/HumanBench
/ types & classes
Types & classes
382 in github.com/OpenGVLab/HumanBench
⨍
Functions
1,842
◇
Types & classes
382
↓ 43 callers
Class
Norm2d
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 callers
Class
AverageMeter
Computes and stores the average and current value
PATH/core/utils.py:37
↓ 17 callers
Class
DataContainer
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 callers
Class
NoOpTransform
A transform that does nothing.
PATH/core/data/transforms/seg_aug_dev.py:135
↓ 8 callers
Class
Conv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
PATH/core/models/necks/simple_fpn.py:41
↓ 8 callers
Class
LoadImageFromFile
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 callers
Class
TopDownAffine
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 callers
Class
Collect
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 callers
Class
NestedTensor
PATH/core/utils.py:752
↓ 7 callers
Class
ToUNTensor
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 callers
Class
CropTransform
PATH/core/data/transforms/seg_aug_dev.py:158
↓ 6 callers
Class
Instances
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 callers
Class
ShapeSpec
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 callers
Class
TransformList
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 callers
Class
WorkerInit
PATH/core/solvers/solver_deter.py:23
↓ 5 callers
Class
SetCriterion
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 callers
Class
TopDownGenerateTarget
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 callers
Class
TopDownGetRandomScaleRotation
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 callers
Class
TopDownRandomFlip
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 callers
Class
BitMasks
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 callers
Class
Boxes
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 callers
Class
ComposeX
PATH/core/data/transforms/pose_transforms.py:169
↓ 4 callers
Class
DistModule
PATH/core/distributed_utils.py:26
↓ 4 callers
Class
DistributedSequentialSampler
PATH/core/distributed_utils.py:1062
↓ 4 callers
Class
SemSegEvaluator
Evaluate semantic segmentation metrics.
PATH/core/solvers/utils/seg_tester_dev.py:69
↓ 4 callers
Class
SpatialGather_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 callers
Class
TopDownHalfBodyTransform
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 callers
Class
Config
PATH/core/config.py:141
↓ 3 callers
Class
DetBoxGT
: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 callers
Class
DirectMatcher
PATH/core/models/decoders/losses/matcher.py:194
↓ 3 callers
Class
DistributedGivenIterationSampler
PATH/core/distributed_utils.py:195
↓ 3 callers
Class
PedAttrAugmentation
PATH/core/data/transforms/pedattr_transforms.py:11
↓ 3 callers
Class
ReidTestAugmentation
PATH/core/data/transforms/reid_transforms.py:263
↓ 3 callers
Class
ReidTestAugmentationCV2
PATH/core/data/transforms/reid_transforms.py:224
↓ 3 callers
Class
ResizeTransform
Resize the image to a target size.
PATH/core/data/transforms/seg_aug_dev.py:326
↓ 3 callers
Class
ResizeTransform
Resize the image to a target size.
PATH/core/data/transforms/sparsercnn_peddet_transforms_helpers/transforms.py:92
↓ 3 callers
Class
SpatialOCR_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 callers
Class
TripletLoss
PATH/core/models/decoders/losses/classification_losses.py:185
↓ 2 callers
Class
Block
PATH/core/models/backbones/vit.py:250
↓ 2 callers
Class
DetBox
: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 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/backbones/vit.py:28
↓ 2 callers
Class
HFlipTransform
Perform horizontal flip.
PATH/core/data/transforms/seg_aug_dev.py:29
↓ 2 callers
Class
HumParEvaluator
Evaluate human parsing metrics, specifically, for Human3.6M
PATH/core/solvers/utils/par_tester_dev.py:24
↓ 2 callers
Class
LayerNorm
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 callers
Class
MLP
Very simple multi-layer perceptron (also called FFN)
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:273
↓ 2 callers
Class
MsgClient
PATH/core/msg_server.py:67
↓ 2 callers
Class
ObjectAttentionBlock2D
PATH/core/models/decoders/seg_decoders/spatial_ocr_block.py:284
↓ 2 callers
Class
PedAttrRandomAugmentation
PATH/core/data/transforms/pedattr_transforms.py:312
↓ 2 callers
Class
PedAttrTestAugmentation
PATH/core/data/transforms/pedattr_transforms.py:27
↓ 2 callers
Class
PedDetEvaluator
Evaluate Pedestrain Detection metrics
PATH/core/solvers/utils/peddet_tester_dev.py:36
↓ 2 callers
Class
PedestrainDetectionAugmentation
PATH/core/data/transforms/peddet_transforms.py:17
↓ 2 callers
Class
PoseEvaluator
Evaluate semantic segmentation metrics.
PATH/core/solvers/utils/pos_tester_dev.py:16
↓ 2 callers
Class
RandomSizedEarser
PATH/core/data/transforms/reid_transforms.py:287
↓ 2 callers
Class
ReidAugmentation
PATH/core/data/transforms/reid_transforms.py:44
↓ 2 callers
Class
ReidAugmentationCV2
PATH/core/data/transforms/reid_transforms.py:94
↓ 2 callers
Class
RotationTransform
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 callers
Class
SegmentationRunningMetrics
PATH/core/utils.py:814
↓ 2 callers
Class
SemanticSegmentorWithTTA
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 callers
Class
Softmax
PATH/core/models/decoders/losses/classification_losses.py:243
↓ 2 callers
Class
TransformerBlock
PATH/core/models/necks/ladder_side_attention_fpn.py:75
↓ 2 callers
Class
VFlipTransform
Perform vertical flip.
PATH/core/data/transforms/seg_aug_dev.py:81
↓ 2 callers
Class
ViT
Vision Transformer with support for patch or hybrid CNN input stage
PATH/core/models/backbones/vitdet.py:328
↓ 2 callers
Class
ViT
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 callers
Class
ViT
Vision Transformer with support for patch or hybrid CNN input stage
PATH/core/models/backbones/vitdet_for_ladder_attention.py:328
↓ 2 callers
Class
WorkerInit
PATH/core/testers/tester_deter.py:11
↓ 2 callers
Class
model_entry
PATH/core/models/model_entry.py:9
↓ 1 callers
Class
AmpHandle
PATH/core/fp16/amp.py:59
↓ 1 callers
Class
Attention
PATH/core/models/necks/ladder_side_attention_fpn.py:29
↓ 1 callers
Class
Attention
PATH/core/models/backbones/vit.py:63
↓ 1 callers
Class
Attention
PATH/core/models/backbones/vitdet.py:71
↓ 1 callers
Class
Attention
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:71
↓ 1 callers
Class
Attention
PATH/core/models/backbones/vitdet_for_ladder_attention.py:71
↓ 1 callers
Class
AugInput
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 callers
Class
AugInput
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 callers
Class
AugmentationList
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 callers
Class
AugmentationList
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 callers
Class
Block
PATH/core/models/backbones/vitdet.py:259
↓ 1 callers
Class
Block
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:262
↓ 1 callers
Class
Block
PATH/core/models/backbones/vitdet_for_ladder_attention.py:259
↓ 1 callers
Class
BodySplit
PATH/core/data/transforms/reid_transforms.py:404
↓ 1 callers
Class
CBAMBlock
PATH/core/models/necks/attention.py:86
↓ 1 callers
Class
ChannelAttention
PATH/core/models/necks/attention.py:51
↓ 1 callers
Class
Conv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
PATH/core/models/ops/utils.py:7
↓ 1 callers
Class
Conv2dSame
Tensorflow like 'SAME' convolution wrapper for 2D convolutions
PATH/core/models/ops/conv2d_helpers.py:33
↓ 1 callers
Class
ConvertCocoPolysToMask
PATH/core/data/datasets/images/peddet_dataset_dev.py:62
↓ 1 callers
Class
ConvertCocoPolysToMask
PATH/core/data/datasets/images/peddet_dataset.py:72
↓ 1 callers
Class
CrossAttentionLayer
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:110
↓ 1 callers
Class
Database
PATH/core/solvers/utils/peddet_tester_dev.py:484
↓ 1 callers
Class
DetSetCriterion
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 callers
Class
DetectionHungarianMatcher
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 callers
Class
DropPath
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 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
PATH/core/models/backbones/vitdet.py:31
↓ 1 callers
Class
DropPath
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 callers
Class
DropPath
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 callers
Class
ECAAttention
PATH/core/models/necks/attention.py:9
↓ 1 callers
Class
ExtentTransform
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 callers
Class
FFNLayer
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:194
↓ 1 callers
Class
FSCELoss
PATH/core/models/decoders/losses/seg_losses.py:8
↓ 1 callers
Class
FSCELoss_list
PATH/core/models/decoders/losses/seg_losses.py:62
↓ 1 callers
Class
HumParEvaluator_bce_cls
PATH/core/solvers/utils/par_tester_dev.py:269
next →
1–100 of 382, ranked by callers