MCPcopy Create free account

hub / github.com/OpenGVLab/HumanBench / functions

Functions1,842 in github.com/OpenGVLab/HumanBench

Methodcache
(self)
PATH/core/fp16/amp.py:93
Functioncached_cast
(mod, fn, cast_fn, handle, try_caching=False, verbose=False)
PATH/core/fp16/wrap.py:55
Functioncached_cast
(cast_fn, x, cache)
PATH/core/fp16/utils.py:135
Functioncalc_rel_pos_spatial
Spatial Relative Positional Embeddings. Source: https://github.com/facebookresearch/mvit/
PATH/core/models/backbones/vit.py:131
Functioncasted_args
(cast_fn, args, kwargs)
PATH/core/fp16/utils.py:122
Methodcat
Args: instance_lists (list[Instances]) Returns: Instances
PATH/core/data/datasets/images/seg_dataset_dev.py:158
Methodcenter_crop
(self, image, label)
PATH/core/data/transforms/parsing_transforms.py:147
Functionclip_grad_value
(parameters, clip_value)
PATH/core/utils.py:314
Methodclip_master_grads
Clips fp32 master gradients via ``torch.nn.utils.clip_grad_norm``. Args: max_norm (float or int): max norm of the gradie
PATH/core/fp16/opt.py:267
Functioncollate
(batch, trans_dict)
PATH/core/data/datasets/images/seg_data_tools/collate.py:27
Functioncollect_fp_tensor_types
(args, kwargs)
PATH/core/fp16/utils.py:81
Methodcombine_pseudo_labels
(self, save_dir=None)
PATH/core/solvers/utils/par_tester_dev.py:108
Methodcompare_caltech_union
:meth: match the detection results with the groundtruth by Caltech matching strategy :param thres: iou threshold :type thres:
PATH/core/solvers/utils/peddet_tester_dev.py:286
FunctioncomputeJaccard
(gt_path, dt_path)
PATH/core/solvers/utils/peddet_tester_dev.py:626
Functioncompute_grad_norm
(parameters)
PATH/core/utils.py:319
Methodconstant_init
(module, val, bias=0)
PATH/core/models/decoders/seg_decoders/module_helper.py:276
Functionconvert_color
(img: np.ndarray)
PATH/core/data/transforms/parsing_transforms.py:378
Functioncopy_optim_state_dict_cpu_fp16
(state_dict)
PATH/core/utils.py:683
Functioncopy_state_dict_cpu
(state_dict)
PATH/core/utils.py:664
Functioncosine_dist
(x, y)
PATH/core/models/decoders/losses/classification_losses.py:32
Functioncosine_similarity
(qf, gf)
PATH/core/testers/utils/metrics.py:15
Functioncosine_similarity
(qf, gf)
PATH/core/solvers/utils/reid_tester_dev.py:26
Functioncount_adap_avgpool
(m, x, y)
PATH/helper/flops_helper.py:169
Functioncount_avgpool
(m, x, y)
PATH/helper/flops_helper.py:159
Functioncount_bn
(m, x, y)
PATH/helper/flops_helper.py:129
Functioncount_conv2d
(m, x, y)
PATH/helper/flops_helper.py:110
Functioncount_linear
(m, x, y)
PATH/helper/flops_helper.py:180
Functioncount_parameters_num
(model)
PATH/helper/param_count.py:17
Functioncount_relu
(m, x, y)
PATH/helper/flops_helper.py:140
Functioncount_softmax
(m, x, y)
PATH/helper/flops_helper.py:148
Functioncount_zero
(m, x, y)
PATH/helper/flops_helper.py:105
Methodcpu_only
(self)
PATH/core/data/transforms/pose_transforms.py:145
Methodcreate_dataloader
(self)
PATH/core/testers/reid_tester.py:84
Methodcreate_dataloader
(self)
PATH/core/solvers/solver_deter.py:61
Methodcreate_dataset
(self)
PATH/core/testers/reid_tester.py:73
Methodcreate_model
(self)
PATH/core/testers/reid_tester.py:105
Functioncustom_replace
(tensor,on_neg_1,on_zero,on_one)
PATH/core/models/decoders/peddet_decoders/mask2former_transformer_decoder.py:288
Methodcx
:return: center x coordinate of bounding box
PATH/core/solvers/utils/detools/box.py:38
Methodcy
:return: center y coordinate of bounding box
PATH/core/solvers/utils/detools/box.py:45
Methoddata
(self)
PATH/core/data/transforms/pose_transforms.py:134
Functiondataset_entry
(config)
PATH/core/data/datasets/__init__.py:10
Functiondataset_entry
(config)
PATH/core/data/test_datasets/__init__.py:4
Methoddatatype
(self)
PATH/core/data/transforms/pose_transforms.py:138
Functiondecoder_entry
(config)
PATH/core/models/decoders/__init__.py:6
Functiondet_collate
r""" Function that takes in a batch of data and puts the elements within the batch into a tensor with an additional outer dimension -
PATH/core/solvers/solver_multitask_dev.py:1332
Functiondev_collate
r""" Function that takes in a batch of data and puts the elements within the batch into a tensor with an additional outer dimension -
PATH/core/solvers/solver_multitask_dev.py:1228
Functiondisable_checkpointing
Makes :func:`is_checkpointing_disabled` return :data:`True` within a context.
PATH/core/models/ckpt.py:217
Methoddraw_img_boxes
:t: type, 'pd' for prediction box, 'gt' for ground truth box
PATH/core/solvers/utils/detools/box.py:335
Methoddraw_lzm
:meth: draw bounding box on the given image :param img: the image to draw :param bold: if bold the bounding box or not (defau
PATH/core/solvers/utils/detools/box.py:188
MethoddumpNp
:meth: dump the object into a numpy array :return: a numpy array
PATH/core/solvers/utils/detools/box.py:93
MethoddumpOdf
:meth: dump the object into a dict :return: a dict with "box", "score", "occ" and "extra.ignore" keys
PATH/core/solvers/utils/detools/box.py:306
Functiondump_to_pickle
(file_path, data)
PATH/helper/vis_helper.py:140
Methodempty
(self)
PATH/core/utils.py:73
Methodencode_json_sem_seg
Convert semantic segmentation to COCO stuff format with segments encoded as RLEs. See http://cocodataset.org/#format-results
PATH/core/solvers/utils/par_tester_dev.py:247
Methodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
PATH/core/solvers/utils/seg_tester_dev.py:53
Methodevaluate
Evaluates standard semantic segmentation metrics (http://cocodataset.org/#stuff-eval): * Mean intersection-over-union averaged acros
PATH/core/solvers/utils/seg_tester_dev.py:142
Methodevaluate
Evaluate PCKh for MPII dataset. Adapted from https://github.com/leoxiaobin/deep-high-resolution-net.pytorch Copyright (c) Microsoft, u
PATH/core/solvers/utils/pos_tester_dev.py:414
Methodevaluate
: return: "AP", "MR", "JI", "Recall"
PATH/core/solvers/utils/peddet_tester_dev.py:140
Methodevaluate
Evaluates standard Person ReID metrics (https://github.com/damo-cv/TransReID/blob/639bc460b85224942dbee6c53b43bbe72ad712bd/utils/metrics.py#L
PATH/core/solvers/utils/reid_tester_dev.py:153
Methodevaluate
(self)
PATH/core/solvers/utils/attr_tester_dev.py:69
Methodevaluate
:return: mean_IoU, IoU_array, pixel_acc, mean_acc
PATH/core/solvers/utils/par_tester_dev.py:188
Methodevaluate
(self)
PATH/core/solvers/utils/par_tester_dev.py:331
Methodextra_repr
(self)
PATH/core/models/ops/hrt_helpers/multihead_isa_attention.py:147
Methodextra_repr
(self)
PATH/core/models/necks/ladder_side_attention_fpn.py:25
Methodextra_repr
(self)
PATH/core/models/backbones/vit.py:39
Methodextra_repr
(self)
PATH/core/models/backbones/vitdet.py:42
Methodextra_repr
(self)
PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py:42
Methodextra_repr
(self)
PATH/core/models/backbones/vitdet_for_ladder_attention.py:42
Functionf
(img1, v)
PATH/core/data/transforms/pedattr_transforms.py:220
Methodfig2img
@brief Convert a Matplotlib figure to a PIL Image in RGBA format and return it @param fig a matplotlib figure @return a Pytho
PATH/core/data/datasets/images/image_helper.py:223
Methodfig2np
(fig)
PATH/core/data/datasets/images/image_helper.py:235
Functionfliplr_regression
Flip human joints horizontally. Note: batch_size: N num_keypoint: K Args: regression (np.ndarray([..., K, C])): Coord
PATH/core/data/transforms/post_transforms.py:53
Functionfloat_function
(fn)
PATH/core/fp16/amp.py:33
Methodflops
(self, N)
PATH/core/models/ops/hrt_helpers/multihead_isa_attention.py:150
Functionflops_cal
(model, input_shape)
PATH/helper/flops_helper.py:35
Functionforward
(input)
PATH/core/utils.py:712
Methodforward
(self, *inputs, **kwargs)
PATH/core/distributed_utils.py:53
Methodforward
(self, pred, real)
PATH/core/utils.py:333
Methodforward
(ctx, x, grad_scale)
PATH/core/utils.py:342
Methodforward
( # type: ignore ctx: Any, dummy_tensor_requires_grad: torch.Tensor, run_function: An
PATH/core/models/ckpt.py:418
Methodforward
(self, input_var, current_step)
PATH/core/models/model_entry.py:23
Methodforward
(self, input_var, current_step)
PATH/core/models/model_entry.py:43
Methodforward
(self, input_var, current_step)
PATH/core/models/model_entry.py:84
Methodforward
(self, x)
PATH/core/models/ops/utils.py:29
Methodforward
(self, x)
PATH/core/models/ops/normalization_helpers.py:16
Methodforward
(self, x)
PATH/core/models/ops/conv2d_helpers.py:42
Methodforward
(self, x)
PATH/core/models/ops/conv2d_helpers.py:109
Methodforward
(self, x)
PATH/core/models/ops/hrt_helpers/basic_block.py:47
Methodforward
(self, x, H, W)
PATH/core/models/ops/hrt_helpers/ffn_block.py:30
Methodforward
(self, x, H, W)
PATH/core/models/ops/hrt_helpers/ffn_block.py:70
Methodforward
(self, x)
PATH/core/models/ops/hrt_helpers/bottleneck_block.py:35
Methodforward
(self, x)
PATH/core/models/ops/hrt_helpers/bottleneck_block.py:83
Methodforward
(self, x)
PATH/core/models/ops/hrt_helpers/transformer_block.py:114
Methodforward
(self, x, H, W, **kwargs)
PATH/core/models/ops/hrt_helpers/multihead_isa_attention.py:125
Methodforward
( self, query, key, value, key_padding_mask=None, need_weights
PATH/core/models/ops/hrt_helpers/multihead_attention.py:70
Methodforward
( self, query, key, value, key_padding_mask=None, need_weights
PATH/core/models/ops/hrt_helpers/multihead_attention.py:390
Methodforward
(self, x)
PATH/core/models/necks/simple_fpn.py:33
Methodforward
(self, x)
PATH/core/models/necks/simple_fpn.py:63
Methodforward
(self, features)
PATH/core/models/necks/simple_fpn.py:146
Methodforward
(self, features)
PATH/core/models/necks/simple_fpn.py:258
← previousnext →1,401–1,500 of 1,842, ranked by callers