MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

↓ 2 callersMethodevaluate
Evaluation in COCO protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[s
mmdet/datasets/coco.py:361
↓ 2 callersFunctionexpandBlossom
(b, endstage)
crowd_code/evaluate/JIToolkits/matching.py:361
↓ 2 callersMethodextract_feat
Extract features from images.
mmdet/distillation/distillers/distill_base.py:135
↓ 2 callersMethodfast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdet/datasets/coco.py:309
↓ 2 callersFunctionflip_tensor
flip tensor base on flip_direction. Args: src_tensor (Tensor): input feature map, shape (B, C, H, W). flip_direction (str): The f
mmdet/core/utils/misc.py:64
↓ 2 callersMethodforward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/ssd_head.py:178
↓ 2 callersMethodforward
Forward function for `Transformer`. Args: x (Tensor): Input query with shape [bs, c, h, w] where c = embed_dims.
mmdet/models/utils/transformer.py:213
↓ 2 callersFunctiongaussian_radius
r"""Generate 2D gaussian radius. This function is modified from the `official github repo <https://github.com/princeton-vl/CornerNet-Lite/blo
mmdet/models/utils/gaussian_target.py:67
↓ 2 callersMethodgen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdet/core/anchor/anchor_generator.py:130
↓ 2 callersMethodgen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes. :param reg:
mmdet/models/dense_heads/reppoints_head.py:219
↓ 2 callersMethodgen_single_level_base_anchors
Generate base anchors of a single level. Args: base_size (int | float): Basic size of an anchor. scales (torch.Tensor
mmdet/core/anchor/anchor_generator.py:150
↓ 2 callersMethodget_accuracy
Get custom accuracy w.r.t. cls_score and labels. Args: cls_score (torch.Tensor): The prediction with shape (N, C + 2).
mmdet/models/losses/seesaw_loss.py:176
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/guided_anchor_head.py:289
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/sabl_retina_head.py:199
↓ 2 callersMethodget_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified in
mmdet/datasets/coco.py:66
↓ 2 callersMethodget_attention
preds: Bs*C*W*H
mmdet/distillation/losses/pgd_cls.py:58
↓ 2 callersFunctionget_back_weight_anchorfree
(points, gt_bboxes)
mmdet/models/dense_heads/pgd_heads/utils/background_weight.py:32
↓ 2 callersMethodget_bboxes
get_bboxes() is implemented in StageCascadeRPNHead.
mmdet/models/dense_heads/cascade_rpn_head.py:709
↓ 2 callersFunctionget_classes
Get class names of a dataset.
mmdet/core/evaluation/class_names.py:102
↓ 2 callersFunctionget_dataset_name_classes
(dataset)
tests/test_runtime/test_config.py:33
↓ 2 callersFunctionget_ignores
(dt_boxes, gt_boxes, bm_thr)
crowd_code/evaluate/JIToolkits/JI_tools.py:93
↓ 2 callersMethodget_kd_value_maps
(self, cls_scores, bbox_preds, c
mmdet/models/dense_heads/pgd_heads/fcos_distill.py:23
↓ 2 callersFunctionget_loading_pipeline
Only keep loading image and annotations related configuration. Args: pipeline (list[dict]): Data pipeline configs. Returns:
mmdet/datasets/utils.py:73
↓ 2 callersMethodget_roi_rel_points_test
Get ``num_points`` most uncertain points during test. Args: mask_pred (Tensor): A tensor of shape (num_rois, num_classes,
mmdet/models/roi_heads/mask_heads/mask_point_head.py:267
↓ 2 callersMethodget_sampled_approxs
Get sampled approxs and inside flags according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map s
mmdet/models/dense_heads/guided_anchor_head.py:239
↓ 2 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdet/models/dense_heads/ddod_fcos_head.py:589
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[list]): Multi level poi
mmdet/models/dense_heads/reppoints_head.py:436
↓ 2 callersMethodget_targets
Compute semantic segmentation targets for each image. Args: segm_pred (Tensor): Predicted semantic segmentation map
mmdet/models/dense_heads/yolact_head.py:545
↓ 2 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdet/models/dense_heads/ddod_head.py:560
↓ 2 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdet/models/dense_heads/pgd_heads/ddod_distill.py:180
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdet/core/bbox/samplers/ohem_sampler.py:30
↓ 2 callersMethodinit_weights
Init module weights.
mmdet/models/backbones/hourglass.py:186
↓ 2 callersMethodinit_weights
(self)
mmdet/models/utils/transformer.py:206
↓ 2 callersFunctionis_located_in
Are points located in bboxes. Args: points (Tensor): Points, shape: (m, 2). bboxes (Tensor): Bounding boxes, shape: (n, 4). Retu
mmdet/core/bbox/assigners/center_region_assigner.py:36
↓ 2 callersFunctionlevels_to_images
Concat multi-level feature maps by image. [feature_level0, feature_level1...] -> [feature_image0, feature_image1...] Convert the shape of eac
mmdet/models/dense_heads/yolof_head.py:14
↓ 2 callersMethodloadData
(self, fpath, body_key=None, head_key=None, if_gt=True)
crowd_code/evaluate/APMRToolkits/database.py:23
↓ 2 callersMethodloss
(self, cls_scores, bbox_preds, shape_preds, loc_preds,
mmdet/models/dense_heads/guided_anchor_head.py:640
↓ 2 callersMethodloss
A combination of the func:``AnchorHead.loss`` and func:``SSDHead.loss``. When ``self.use_ohem == True``, it functions like ``SSDHead.
mmdet/models/dense_heads/yolact_head.py:138
↓ 2 callersMethodloss
Compute loss of the head. Args: segm_pred (list[Tensor]): Predicted semantic segmentation map with shape (N, num_
mmdet/models/dense_heads/yolact_head.py:512
↓ 2 callersMethodloss
Compute loss of the head. Args: mask_pred (list[Tensor]): Predicted prototypes with shape (num_classes, H, W).
mmdet/models/dense_heads/yolact_head.py:735
↓ 2 callersMethodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_poin
mmdet/models/dense_heads/fsaf_head.py:187
↓ 2 callersMethodloss
(self, cls_scores, bbox_preds, gt_bboxes, gt_labels,
mmdet/models/dense_heads/sabl_retina_head.py:470
↓ 2 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
mmdet/models/utils/make_divisible.py:1
↓ 2 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdet/models/backbones/resnet.py:555
↓ 2 callersFunctionmakebarplot
(rs, ps, outDir, class_name, iou_type)
tools/analysis_tools/coco_error_analysis.py:72
↓ 2 callersFunctionmakeplot
(rs, ps, outDir, class_name, iou_type)
tools/analysis_tools/coco_error_analysis.py:12
↓ 2 callersMethodmapper
Dictionary mapper. Renames keys according to keymap provided. Args: d (dict): old dict keymap (dict): {'old_key':'new
mmdet/datasets/pipelines/transforms.py:1402
↓ 2 callersFunctionmle_2d_gaussian_2
(sampled_data)
mmdet/models/dense_heads/pgd_heads/utils/pgw_anchor_based.py:112
↓ 2 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
mmdet/models/backbones/hrnet.py:383
↓ 2 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmdet/models/backbones/resnet.py:253
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmdet/models/dense_heads/reppoints_head.py:344
↓ 2 callersMethodonnx_export
Test without augmentation.
mmdet/models/roi_heads/standard_roi_head.py:272
↓ 2 callersMethodpad
padding has no effect on polygons`
mmdet/core/mask/structures.py:700
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:102
↓ 2 callersMethodpre_pipeline
Prepare results dict for pipeline.
mmdet/datasets/custom.py:143
↓ 2 callersFunctionprofile_time
Print time spent by CPU and GPU. Useful as a temporary context manager to find sweet spots of code suitable for async implementation.
mmdet/utils/profiling.py:10
↓ 2 callersFunctionrandom_boxes
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitla
mmdet/core/bbox/demodata.py:7
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
mmdet/datasets/pipelines/transforms.py:117
↓ 2 callersMethodrefine_bboxes
Refine bboxes through stages.
mmdet/models/dense_heads/cascade_rpn_head.py:530
↓ 2 callersMethodreg_pred
Predict bucketing estimation (cls_pred) and fine regression (offset pred) with side-aware features.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:258
↓ 2 callersFunctionreorder_cls_channel
(val, num_classes=81)
tools/model_converters/upgrade_model_version.py:45
↓ 2 callersMethodrescale
see :func:`BaseInstanceMasks.rescale`
mmdet/core/mask/structures.py:619
↓ 2 callersMethodrfp_forward
The forward function that also takes the RFP features as input.
mmdet/models/backbones/detectors_resnet.py:72
↓ 2 callersMethodroi_rescale
Scale RoI coordinates by scale factor. Args: rois (torch.Tensor): RoI (Region of Interest), shape (n, 5) scale_factor
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:61
↓ 2 callersMethodsanitize_coordinates
Sanitizes the input coordinates so that x1 < x2, x1 != x2, x1 >= 0, and x2 <= image_size. Also converts from relative to absolute coor
mmdet/models/dense_heads/yolact_head.py:902
↓ 2 callersFunctionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
mmdet/apis/train.py:18
↓ 2 callersMethodsimple_test_mask
Simple test for mask head without augmentation.
mmdet/models/roi_heads/test_mixins.py:196
↓ 2 callersFunctionsmooth_l1_loss
Smooth L1 loss. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning target of the prediction.
mmdet/models/losses/smooth_l1_loss.py:11
↓ 2 callersFunctionssd_config
SSD Head Config.
tests/test_onnx/test_head.py:310
↓ 2 callersMethodto_bitmap
convert polygon masks to bitmap masks.
mmdet/core/mask/structures.py:844
↓ 2 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdet/core/mask/structures.py:894
↓ 2 callersFunctionvoc_classes
()
mmdet/core/evaluation/class_names.py:8
↓ 2 callersFunctionyolo_config
YoloV3 Head Config.
tests/test_onnx/test_head.py:104
↓ 1 callersMethodGaussianMixture
(self, *args, **kwargs)
tests/test_models/test_dense_heads/test_paa_head.py:14
↓ 1 callersMethod__init__
(self, strides, ratios, scales=None, base_
mmdet/core/anchor/anchor_generator.py:60
↓ 1 callersMethod__init__
(self, num_scales, in_channels, out_channels,
mmdet/models/necks/yolo_neck.py:91
↓ 1 callersMethod__init__
L2 normalization layer. Args: n_dims (int): Number of dimensions to be normalized scale (float, optional): Defaults t
mmdet/models/necks/ssd_neck.py:107
↓ 1 callersMethod__init__
(self, rfp_steps, rfp_backbone, aspp_out_channels,
mmdet/models/necks/rfp.py:77
↓ 1 callersMethod__init__
(self, in_channels, mid_channels, dilation,
mmdet/models/necks/dilated_encoder.py:23
↓ 1 callersMethod__init__
(self, depth, with_last_pool=False, ceil_mode=True,
mmdet/models/backbones/ssd_vgg.py:49
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
mmdet/models/backbones/resnext.py:142
↓ 1 callersMethod__init__
(self, depth=53, out_indices=(3, 4, 5), frozen_stages=-1,
mmdet/models/backbones/darknet.py:100
↓ 1 callersMethod__init__
(self, extra, in_channels=3, conv_cfg=None,
mmdet/models/backbones/hrnet.py:267
↓ 1 callersMethod__init__
Bottleneck block for ResNeXt. If style is "pytorch", the stride-two layer is the 3x3 conv layer, if it is "caffe", the stride-two lay
mmdet/models/backbones/detectors_resnext.py:13
↓ 1 callersMethod__init__
(self, downsample_times=5, num_stacks=2, stage_channels=(25
mmdet/models/backbones/hourglass.py:130
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3,
mmdet/models/dense_heads/guided_anchor_head.py:29
↓ 1 callersMethod__init__
(self, force_topk=False, topk=9, num_classes=80,
mmdet/models/dense_heads/autoassign_head.py:35
↓ 1 callersMethod__init__
(self, num_classes, in_channels, base_edge_list=(16, 32, 64
mmdet/models/dense_heads/fovea_head.py:51
↓ 1 callersMethod__init__
(self, num_classes, in_channels, stacked_convs=4,
mmdet/models/dense_heads/gfl_head.py:87
↓ 1 callersMethod__init__
(self, num_classes, in_channels, num_feat_levels=2,
mmdet/models/dense_heads/corner_head.py:117
↓ 1 callersMethod__init__
(self, num_feats, temperature=10000, normalize=False,
mmdet/models/utils/positional_encoding.py:35
↓ 1 callersMethod__init__
(self, *args, tempearture=20, power=1.0, eps=1e-6, **kwargs)
mmdet/models/utils/normed_predictor.py:20
↓ 1 callersMethod__init__
(self, block, inplanes, planes, num_blocks
mmdet/models/utils/res_layer.py:25
↓ 1 callersMethod__init__
(self, in_channels, out_channels, conv_cfg=None,
mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:25
↓ 1 callersMethod__init__
(self, use_sigmoid=True, beta=2.0, reduction='mean',
mmdet/models/losses/gfocal_loss.py:95
↓ 1 callersMethod__init__
(self, reduction='mean', loss_weight=1.0)
mmdet/models/losses/smooth_l1_loss.py:110
↓ 1 callersMethod__init__
(self, bins=10, momentum=0, use_sigmoid=True, loss_weight=1.0)
mmdet/models/losses/ghm_loss.py:35
↓ 1 callersMethod__repr__
str: the string of the module
mmdet/utils/util_mixins.py:86
↓ 1 callersMethod__setattr__
Set attribute, i.e. self.name = value This reloading prevent the teacher model from being registered as a nn.Module. The teacher modu
mmdet/models/detectors/kd_one_stage.py:89
↓ 1 callersMethod_add_conv_branch
Add the fc branch which consists of a sequential of conv layers.
mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:135
← previousnext →301–400 of 2,117, ranked by callers