MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

↓ 3 callersMethodaug_test_rpn
Augmented forward test function.
mmdet/models/dense_heads/cascade_rpn_head.py:783
↓ 3 callersFunctionbbox2distance
Decode bounding box based on distances. Args: points (Tensor): Shape (n, 2), [x, y]. bbox (Tensor): Shape (n, 4), "xyxy" format
mmdet/core/bbox/transforms.py:165
↓ 3 callersFunctionbbox2fields
The key correspondence from bboxes to labels, masks and segmentations.
mmdet/datasets/pipelines/auto_augment.py:28
↓ 3 callersFunctionbuild_match_cost
Builder of IoU calculator.
mmdet/core/bbox/match_costs/builder.py:6
↓ 3 callersFunctionbuild_neck
Build neck.
mmdet/models/builder.py:22
↓ 3 callersFunctionbuild_prior_generator
(cfg, default_args=None)
mmdet/core/anchor/builder.py:10
↓ 3 callersFunctioncarl_loss
Classification-Aware Regression Loss (CARL). Args: cls_score (Tensor): Predicted classification scores. labels (Tensor): Targets
mmdet/models/losses/pisa_loss.py:122
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdet/utils/contextmanagers.py:16
↓ 3 callersFunctioncompute_ioa_matrix
(dboxes: np.ndarray, gboxes: np.ndarray)
crowd_code/evaluate/JIToolkits/JI_tools.py:102
↓ 3 callersFunctionconstruct_toy_data
(poly2mask=True)
tests/test_data/test_pipelines/test_transform/test_translate.py:134
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:10
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:23
↓ 3 callersMethodcrop
see :func:`BaseInstanceMasks.crop`
mmdet/core/mask/structures.py:671
↓ 3 callersMethodcrop_and_resize
See :func:`BaseInstanceMasks.crop_and_resize`.
mmdet/core/mask/structures.py:332
↓ 3 callersFunctionenhance_level_to_value
Map from level to values.
mmdet/datasets/pipelines/auto_augment.py:18
↓ 3 callersFunctionfcos_config
FCOS Head Config.
tests/test_onnx/test_head.py:171
↓ 3 callersMethodforward_train
Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered and std scaled.
mmdet/models/detectors/rpn.py:59
↓ 3 callersFunctionfp16_clamp
(x, min=None, max=None)
mmdet/core/bbox/iou_calculators/iou2d_calculator.py:13
↓ 3 callersFunctionfsaf_config
FSAF Head Config.
tests/test_onnx/test_head.py:239
↓ 3 callersFunctiongather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index. mask (Tenso
mmdet/models/utils/gaussian_target.py:233
↓ 3 callersFunctiongen_gaussian_target
Generate 2D gaussian heatmap. Args: heatmap (Tensor): Input heatmap, the gaussian kernel will cover on it and maintain the ma
mmdet/models/utils/gaussian_target.py:31
↓ 3 callersFunctionget_back_weight
(bboxes, gt_bboxes)
mmdet/models/dense_heads/pgd_heads/utils/background_weight.py:5
↓ 3 callersMethodget_cat_ids
Get category ids of repeat dataset by index. Args: idx (int): Index of data. Returns: list[int]: All categor
mmdet/datasets/dataset_wrappers.py:153
↓ 3 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdet/datasets/coco.py:81
↓ 3 callersMethodget_cls_channels
Get custom classification channels. Args: num_classes (int): The number of classes. Returns: int: The custom
mmdet/models/losses/seesaw_loss.py:144
↓ 3 callersFunctionget_local_maximum
Extract local maximum pixel with given kernal. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max pooling. Def
mmdet/models/utils/gaussian_target.py:189
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:155
↓ 3 callersFunctionget_root_logger
Get root logger. Args: log_file (str, optional): File path of log. Defaults to None. log_level (int, optional): The level of logg
mmdet/utils/logger.py:6
↓ 3 callersMethodget_targets
A wrapper for computing ATSS and FCOS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-awa
mmdet/models/dense_heads/vfnet_head.py:619
↓ 3 callersFunctionget_topk_from_heatmap
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, width].
mmdet/models/utils/gaussian_target.py:206
↓ 3 callersFunctioninit_detector
Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
mmdet/apis/inference.py:16
↓ 3 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
mmdet/models/utils/transformer.py:27
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdet/models/losses/pisa_loss.py:8
↓ 3 callersFunctionlevel_to_value
Map from level to values based on max_value.
mmdet/datasets/pipelines/auto_augment.py:13
↓ 3 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmdet/apis/test.py:69
↓ 3 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmdet/models/backbones/resnet.py:248
↓ 3 callersFunctionparse_shape
(shape)
tools/deployment/onnx2tensorrt.py:207
↓ 3 callersMethodprepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
mmdet/datasets/custom.py:200
↓ 3 callersFunctionprint_coco_results
(results)
tools/analysis_tools/robustness_eval.py:8
↓ 3 callersFunctionrandom_negative
Randomly negate value based on random_negative_prob.
mmdet/datasets/pipelines/auto_augment.py:23
↓ 3 callersMethodrescale
See :func:`BaseInstanceMasks.rescale`.
mmdet/core/mask/structures.py:264
↓ 3 callersFunctionretinanet_config
RetinanNet Head Config.
tests/test_onnx/test_head.py:23
↓ 3 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdet/core/bbox/samplers/score_hlr_sampler.py:215
↓ 3 callersFunctionscale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
mmdet/core/bbox/assigners/center_region_assigner.py:9
↓ 3 callersMethodsimple_test_bboxes
Test only det bboxes without augmentation. Args: x (tuple[Tensor]): Feature maps of all scale level. img_metas (list[
mmdet/models/roi_heads/test_mixins.py:51
↓ 2 callersMethod__init__
(self, engine_file, class_names, device_id, output_names=None)
mmdet/core/export/model_wrappers.py:154
↓ 2 callersMethod__init__
(self, block, inplanes, planes, num_blocks
mmdet/models/backbones/detectors_resnet.py:145
↓ 2 callersMethod__init__
(self, scales=4, base_width=26, style='pytorch',
mmdet/models/backbones/res2net.py:302
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet/models/backbones/trident_resnet.py:32
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3,
mmdet/models/dense_heads/cascade_rpn_head.py:40
↓ 2 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:21
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
mmdet/utils/util_mixins.py:75
↓ 2 callersFunction_adjust_contrast
(img, factor)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:155
↓ 2 callersMethod_check_head
Check whether the `num_classes` in head matches the length of `CLASSSES` in `dataset`. Args: runner (obj:`EpochBasedRunne
mmdet/datasets/utils.py:117
↓ 2 callersFunction_check_img_seg
(results, results_translated, keys, offset, fill_val, direction)
tests/test_data/test_pipelines/test_transform/test_translate.py:288
↓ 2 callersMethod_crop_image_and_paste
Crop image with a given center and size, then paste the cropped image to a blank image with two centers align. This function is equiv
mmdet/datasets/pipelines/transforms.py:1655
↓ 2 callersFunction_do_paste_mask
Paste instance masks according to boxes. This implementation is modified from https://github.com/facebookresearch/detectron2/ Args:
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:342
↓ 2 callersMethod_filter_boxes
Check whether the center of each box is in the patch. Args: patch (list[int]): The cropped area, [left, top, right, bottom].
mmdet/datasets/pipelines/transforms.py:1639
↓ 2 callersMethod_fuse_glbctx
Fuse global context feats with roi feats.
mmdet/models/roi_heads/scnet_roi_head.py:70
↓ 2 callersMethod_get_bboxes
Transform outputs for a single batch item into labeled boxes. This method is almost same as `ATSSHead._get_bboxes()`. We use sqrt(iou
mmdet/models/dense_heads/paa_head.py:519
↓ 2 callersMethod_get_bboxes
Transform outputs for a batch item into bbox predictions. Args: mlvl_cls_scores (list[Tensor]): Each element in the list is
mmdet/models/dense_heads/anchor_head.py:588
↓ 2 callersMethod_get_border
Get final border for the target size. This function generates a ``final_border`` according to image's shape. The area between ``final
mmdet/datasets/pipelines/transforms.py:1620
↓ 2 callersFunction_get_config_directory
Find the predefined detector config directory.
tests/test_runtime/test_config.py:13
↓ 2 callersFunction_get_config_module
Load a configuration as a python module.
tests/test_models/test_forward.py:25
↓ 2 callersMethod_get_fine_grained_point_feats
Sample fine grained feats from each level feature map and concatenate them together. Args: x (tuple[Tensor]): Feature map
mmdet/models/roi_heads/point_rend_roi_head.py:67
↓ 2 callersMethod_get_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred
mmdet/models/roi_heads/mask_heads/mask_point_head.py:187
↓ 2 callersMethod_mask_point_forward_test
Mask refining process with point head in testing. Args: x (tuple[Tensor]): Feature maps of all scale level. rois (Ten
mmdet/models/roi_heads/point_rend_roi_head.py:105
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:11
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:69
↓ 2 callersMethod_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
mmdet/datasets/pipelines/transforms.py:170
↓ 2 callersMethod_save_image_gts_results
(self, dataset, results, mAPs, out_dir=None)
tools/analysis_tools/analyze_results.py:63
↓ 2 callersFunction_translated_gt
(masks, direction, offset, out_shape)
tests/test_data/test_pipelines/test_transform/test_translate.py:455
↓ 2 callersFunctionaddAnnItem
(annotation_id, image_id, category_id, bbox, difficult_flag)
tools/dataset_converters/pascal_voc.py:105
↓ 2 callersMethodadd_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdet/core/bbox/assigners/assign_result.py:190
↓ 2 callersMethodalbu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmdet/datasets/pipelines/transforms.py:1367
↓ 2 callersMethodanchor_offset
Get offest for deformable conv based on anchor shape NOTE: currently support deformable kernel_size=3 and dilation=1 Args:
mmdet/models/dense_heads/cascade_rpn_head.py:326
↓ 2 callersFunctionaugmentBlossom
(b, v)
crowd_code/evaluate/JIToolkits/matching.py:449
↓ 2 callersFunctionautolabel
Attach a text label above each bar in *rects*, displaying its height.
tools/analysis_tools/coco_error_analysis.py:53
↓ 2 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
mmdet/core/bbox/transforms.py:5
↓ 2 callersMethodbbox_pred_split
Split batch bbox prediction back to each image.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:288
↓ 2 callersFunctionbbox_rescale
Rescale bounding box w.r.t. scale_factor. Args: bboxes (Tensor): Shape (n, 4) for bboxes or (n, 5) for rois scale_factor (float):
mmdet/core/bbox/transforms.py:189
↓ 2 callersMethodbefore_train_epoch
Check whether the training dataset is compatible with head. Args: runner (obj:`EpochBasedRunner`): Epoch based Runner.
mmdet/datasets/utils.py:149
↓ 2 callersMethodbefore_val_epoch
Check whether the dataset in val epoch is compatible with head. Args: runner (obj:`EpochBasedRunner`): Epoch based Runner.
mmdet/datasets/utils.py:157
↓ 2 callersFunctionboxes_dump
(boxes)
crowd_code/eval_crowd_metric.py:15
↓ 2 callersFunctionbuild
Build a module. Args: cfg (dict, list[dict]): The config of modules, is is either a dict or a list of configs. registr
mmdet/distillation/builder.py:9
↓ 2 callersFunctionbuild_distiller
Build distiller.
mmdet/distillation/builder.py:35
↓ 2 callersFunctionbuild_model_from_cfg
Build a model from config and load the given checkpoint. Args: config_path (str): the OpenMMLab config for the model we want to
mmdet/core/export/pytorch2onnx.py:64
↓ 2 callersFunctionbuild_transformer
Builder for Transformer.
mmdet/models/utils/builder.py:8
↓ 2 callersFunctioncollect_env
Collect the information of the running environments.
mmdet/utils/collect_env.py:7
↓ 2 callersFunctioncolor_val_matplotlib
Convert various input in BGR order to normalized RGB matplotlib color tuples, Args: color (:obj:`Color`/str/tuple/int/ndarray): Color
mmdet/core/visualization/image.py:13
↓ 2 callersMethodcompare
match the detection results with the groundtruth in the whole database
crowd_code/evaluate/APMRToolkits/database.py:37
↓ 2 callersFunctionconcurrent
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for conc
mmdet/utils/contextmanagers.py:91
↓ 2 callersFunctionconvert_result_list
Convert the torch forward outputs containing tuple or list to a list only containing torch.Tensor. Args: output (list(Tensor) | tuple
tests/test_onnx/utils.py:117
↓ 2 callersMethodcrop
Crop predicted masks by zeroing out everything not in the predicted bbox. Args: masks (Tensor): shape [H, W, N].
mmdet/models/dense_heads/yolact_head.py:868
↓ 2 callersMethodcrop_and_resize
see :func:`BaseInstanceMasks.crop_and_resize`
mmdet/core/mask/structures.py:708
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
tools/dataset_converters/pascal_voc.py:67
↓ 2 callersMethoddecode_heatmap
Transform outputs for a single batch item into raw bbox predictions. Args: tl_heat (Tensor): Top-left corner heatmap for current
mmdet/models/dense_heads/corner_head.py:818
↓ 2 callersFunctiondetect
(img)
tests/test_runtime/async_benchmark.py:68
↓ 2 callersFunctionencode_mask_results
Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_resu
mmdet/core/mask/utils.py:36
↓ 2 callersMethodevaluate
Evaluate in VOC protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[str]
mmdet/datasets/voc.py:27
← previousnext →201–300 of 2,117, ranked by callers