MCPcopy Create free account

hub / github.com/Gus-Guo/AugFPN / functions

Functions482 in github.com/Gus-Guo/AugFPN

↓ 15 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
mmdet/core/bbox/transforms.py:106
↓ 15 callersMethodloss
(self, cls_score, bbox_pred, labels, label_weights,
mmdet/models/bbox_heads/bbox_head.py:83
↓ 15 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
mmdet/models/utils/weight_init.py:15
↓ 12 callersFunctionbuild_norm_layer
Build normalization layer Args: cfg (dict): cfg should contain: type (str): identify norm layer type. layer args
mmdet/models/utils/norm.py:13
↓ 10 callersFunctionmask_cross_entropy
(pred, target, label)
mmdet/core/loss/losses.py:72
↓ 9 callersFunctiondelta2bbox
(rois, deltas, means=[0, 0, 0, 0], stds=[1, 1, 1, 1],
mmdet/core/bbox/transforms.py:34
↓ 8 callersFunctionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (Tensor): shape (n, 5) labels (Tensor): shape (n, ) num
mmdet/core/bbox/transforms.py:138
↓ 8 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bboxes2(ndarray): shape (k, 4)
mmdet/core/evaluation/bbox_overlaps.py:4
↓ 8 callersFunctionmulti_apply
(func, *args, **kwargs)
mmdet/core/utils/misc.py:21
↓ 8 callersMethodrandom_choice
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm
mmdet/core/bbox/samplers/random_sampler.py:19
↓ 8 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmdet/datasets/utils.py:15
↓ 8 callersFunctionxavier_init
(module, gain=1, bias=0, distribution='normal')
mmdet/models/utils/weight_init.py:5
↓ 7 callersFunctioncoco_eval
(result_file, result_types, coco, max_dets=(100, 300, 1000))
mmdet/core/evaluation/coco_utils.py:9
↓ 7 callersMethodextract_feats
(self, imgs)
mmdet/models/detectors/base.py:36
↓ 7 callersMethodget_target
(self, sampling_results, gt_bboxes, gt_labels, rcnn_train_cfg)
mmdet/models/bbox_heads/bbox_head.py:65
↓ 7 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class)
mmdet/core/post_processing/bbox_nms.py:6
↓ 6 callersFunctionbuild_sampler
(cfg, **kwargs)
mmdet/core/bbox/assign_sampling.py:17
↓ 6 callersMethodget_bboxes
(self, cls_scores, bbox_preds, centernesses,
mmdet/models/anchor_heads/fcos_head.py:205
↓ 5 callersMethodassign
(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None)
mmdet/core/bbox/assigners/base_assigner.py:7
↓ 5 callersFunctionbuild
(cfg, registry, default_args=None)
mmdet/models/builder.py:26
↓ 5 callersFunctionbuild_assigner
(cfg, **kwargs)
mmdet/core/bbox/assign_sampling.py:6
↓ 5 callersFunctionresults2json
(dataset, results, out_file)
mmdet/core/evaluation/coco_utils.py:140
↓ 5 callersMethodsimple_test_rpn
(self, x, img_meta, rpn_test_cfg)
mmdet/models/detectors/test_mixins.py:7
↓ 4 callersFunctionbuild_dataloader
(dataset, imgs_per_gpu, workers_per_gpu, num_gp
mmdet/datasets/loader/build_loader.py:15
↓ 4 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (n, 2), [x, y]. distance (Tensor): Distance from the giv
mmdet/core/bbox/transforms.py:158
↓ 4 callersMethodextract_feat
(self, img)
mmdet/models/detectors/two_stage.py:89
↓ 4 callersMethodextract_feat
(self, img)
mmdet/models/detectors/single_stage.py:68
↓ 4 callersMethodget_det_bboxes
(self, rois, cls_score, bbox_pred,
mmdet/models/bbox_heads/bbox_head.py:104
↓ 4 callersMethodget_seg_masks
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor or ndarray): shape (n, #class+1, h, w).
mmdet/models/mask_heads/fcn_mask_head.py:139
↓ 4 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdet/core/anchor/anchor_target.py:79
↓ 4 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdet/core/bbox/samplers/base_sampler.py:31
↓ 4 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdet/core/anchor/anchor_target.py:189
↓ 4 callersFunctionweighted_smoothl1
(pred, target, weight, beta=1.0, avg_factor=None)
mmdet/core/loss/losses.py:134
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch convs -> avg pool (optional) -> fcs
mmdet/models/bbox_heads/convfc_bbox_head_auxiliary.py:82
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch convs -> avg pool (optional) -> fcs
mmdet/models/bbox_heads/convfc_bbox_head.py:82
↓ 3 callersMethod_barrier
Due to some issues with `torch.distributed.barrier()`, we have to implement this ugly barrier function.
mmdet/core/evaluation/eval_hooks.py:34
↓ 3 callersMethodaug_test_rpn
(self, feats, img_metas, rpn_test_cfg)
mmdet/models/detectors/test_mixins.py:13
↓ 3 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale
mmdet/core/bbox/transforms.py:91
↓ 3 callersFunctionbuild_detector
(cfg, train_cfg=None, test_cfg=None)
mmdet/models/builder.py:50
↓ 3 callersMethodevaluate
(self)
mmdet/core/evaluation/eval_hooks.py:102
↓ 3 callersFunctionget_classes
Get class names of a dataset.
mmdet/core/evaluation/class_names.py:89
↓ 3 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. dtype (t
mmdet/models/anchor_heads/fcos_head.py:287
↓ 3 callersMethodgrid_anchors
(self, featmap_size, stride=16, device='cuda')
mmdet/core/anchor/anchor_generator.py:53
↓ 3 callersFunctionkaiming_init
(module, mode='fan_out', nonlinearity='relu', bias=0,
mmdet/models/utils/weight_init.py:27
↓ 3 callersFunctionnms
Dispatch to either CPU or GPU NMS implementations.
mmdet/ops/nms/nms_wrapper.py:9
↓ 3 callersFunctionshape_check
mmdet/ops/dcn/src/deform_conv_cuda.cpp:61
↓ 3 callersFunctiontensor2imgs
(tensor, mean=(0, 0, 0), std=(1, 1, 1), to_rgb=True)
mmdet/core/utils/misc.py:8
↓ 3 callersFunctionxyxy2xywh
(bbox)
mmdet/core/evaluation/coco_utils.py:78
↓ 2 callersMethod__init__
(self, spatial_scale, out_size, out_channels,
mmdet/ops/dcn/modules/deform_pool.py:8
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet/ops/dcn/modules/deform_conv.py:12
↓ 2 callersMethod__init__
(self, depth, num_stages=4, strides=(1, 2, 2, 2),
mmdet/models/backbones/resnet.py:314
↓ 2 callersFunction_build_module
(cfg, registry, default_args)
mmdet/models/builder.py:7
↓ 2 callersMethod_freeze_stages
(self)
mmdet/models/backbones/resnet.py:395
↓ 2 callersFunction_inference_single
(model, img, img_transform, cfg, device)
mmdet/apis/inference.py:29
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/anchor_generator.py:45
↓ 2 callersFunctionanchor_target
Compute regression and classification targets for anchors. Args: anchor_list (list[list]): Multi level anchors of each image. val
mmdet/core/anchor/anchor_target.py:7
↓ 2 callersMethodaug_test_bboxes
(self, feats, img_metas, proposal_list, rcnn_test_cfg)
mmdet/models/detectors/test_mixins.py:53
↓ 2 callersMethodaug_test_mask
(self, feats, img_metas, det_bboxes, det_labels)
mmdet/models/detectors/test_mixins.py:115
↓ 2 callersFunctionbbox2delta
(proposals, gt, means=[0, 0, 0, 0], stds=[1, 1, 1, 1])
mmdet/core/bbox/transforms.py:6
↓ 2 callersFunctionbbox_flip
Flip bboxes horizontally. Args: bboxes(Tensor or ndarray): Shape (..., 4*k) img_shape(tuple): Image shape. Returns:
mmdet/core/bbox/transforms.py:71
↓ 2 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale
mmdet/core/bbox/transforms.py:99
↓ 2 callersFunctionbbox_target
(pos_bboxes_list, neg_bboxes_list, pos_gt_bboxes_list, pos_gt_
mmdet/core/bbox/bbox_target.py:7
↓ 2 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to giving probablity
mmdet/models/utils/weight_init.py:43
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
mmdet/models/backbones/resnet.py:14
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
tools/convert_datasets/pascal_voc.py:67
↓ 2 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list): a list of list, [[cls1_det, cls2_det, ...], ...] gt_bboxes (list): ground tr
mmdet/core/evaluation/mean_ap.py:220
↓ 2 callersMethodextract_feat
(self, img)
mmdet/models/detectors/two_stage_old.py:74
↓ 2 callersMethodextract_feat
(self, img)
mmdet/models/detectors/cascade_rcnn.py:102
↓ 2 callersMethodextract_feat
(self, img)
mmdet/models/detectors/single_stage_old.py:39
↓ 2 callersMethodextract_feat
(self, img)
mmdet/models/detectors/rpn.py:35
↓ 2 callersFunctionfast_eval_recall
(results, coco, max_dets, iou_thrs=np.arange(0.
mmdet/core/evaluation/coco_utils.py:41
↓ 2 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
mmdet/models/anchor_heads/anchor_head.py:89
↓ 2 callersMethodget_ann_info
(self, idx)
mmdet/datasets/coco.py:39
↓ 2 callersFunctionget_root_logger
(log_level=logging.INFO)
mmdet/apis/env.py:58
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdet/core/bbox/samplers/ohem_sampler.py:21
↓ 2 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
mmdet/apis/env.py:12
↓ 2 callersFunctionmerge_aug_masks
Merge augmented mask prediction. Args: aug_masks (list[ndarray]): shape (n, #class, h, w) img_shapes (list[ndarray]): shape (3, )
mmdet/core/post_processing/merge_augs.py:76
↓ 2 callersMethodnorm
(self)
mmdet/models/utils/conv_module.py:68
↓ 2 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (Tensor): shape (n, 4) or (n, 5) label (T
mmdet/models/bbox_heads/bbox_head.py:174
↓ 2 callersMethodshow_result
Show RPN proposals on the image. Although we assume batch size is 1, this method supports arbitrary batch size.
mmdet/models/detectors/rpn.py:79
↓ 2 callersMethodsimple_test_bboxes
Test only det bboxes without augmentation.
mmdet/models/detectors/test_mixins.py:30
↓ 2 callersMethodsimple_test_mask
(self, x, img_meta, det_bboxes,
mmdet/models/detectors/test_mixins.py:90
↓ 2 callersFunctionweighted_cross_entropy
(pred, label, weight, avg_factor=None, reduce=True)
mmdet/core/loss/losses.py:13
↓ 1 callersMethod__init__
(self, dataset, interval=1)
mmdet/core/evaluation/eval_hooks.py:21
↓ 1 callersMethod__init__
(self, input_size, depth, with_last_pool=False,
mmdet/models/backbones/ssd_vgg.py:19
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
mmdet/models/backbones/resnext.py:176
↓ 1 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdet/models/bbox_heads/convfc_bbox_head_auxiliary.py:18
↓ 1 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdet/models/bbox_heads/convfc_bbox_head.py:18
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
mmdet/core/utils/dist_utils.py:9
↓ 1 callersFunction_dist_train
(model, dataset, cfg, validate=False)
mmdet/apis/train.py:62
↓ 1 callersMethod_filter_imgs
Filter images too small.
mmdet/datasets/custom.py:131
↓ 1 callersMethod_infer_shape
(ctx, input, weight)
mmdet/ops/dcn/functions/deform_conv.py:168
↓ 1 callersFunction_inference_generator
(model, imgs, img_transform, cfg, device)
mmdet/apis/inference.py:37
↓ 1 callersFunction_init_dist_mpi
(backend, **kwargs)
mmdet/apis/env.py:33
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
mmdet/apis/env.py:25
↓ 1 callersFunction_init_dist_slurm
(backend, port=29500, **kwargs)
mmdet/apis/env.py:37
↓ 1 callersMethod_init_layers
(self)
mmdet/models/anchor_heads/anchor_head.py:72
↓ 1 callersMethod_init_layers
(self)
mmdet/models/anchor_heads/fcos_head.py:74
↓ 1 callersMethod_make_extra_layers
(self, outplanes)
mmdet/models/backbones/ssd_vgg.py:92
↓ 1 callersMethod_make_stem_layer
(self)
mmdet/models/backbones/resnet.py:386
next →1–100 of 482, ranked by callers