MCPcopy Create free account

hub / github.com/WXinlong/SOLO / functions

Functions1,004 in github.com/WXinlong/SOLO

↓ 81 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
mmdet/models/utils/weight_init.py:15
↓ 79 callersMethodget
(self, key)
mmdet/utils/registry.py:26
↓ 36 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:149
↓ 30 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print('self = {}'.for
mmdet/core/bbox/samplers/sampling_result.py:54
↓ 28 callersMethodloss
(self, grid_pred, grid_targets)
mmdet/models/mask_heads/grid_head.py:290
↓ 28 callersFunctionmulti_apply
(func, *args, **kwargs)
mmdet/core/utils/misc.py:21
↓ 26 callersMethodassign
Assign gt to bboxes. The assignment is done in following steps 1. compute iou between all bbox (bbox of all pyramid levels) and gt
mmdet/core/bbox/assigners/atss_assigner.py:26
↓ 25 callersFunctionbuild_loss
(cfg)
mmdet/models/builder.py:38
↓ 23 callersFunctionbuild_conv_layer
Build convolution layer Args: cfg (None or dict): cfg should contain: type (str): identify conv layer type. laye
mmdet/models/utils/conv_module.py:19
↓ 21 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:12
↓ 17 callersMethodforward
(self, inputs)
mmdet/models/necks/fpn.py:102
↓ 17 callersMethodrandom
Create random AssignResult for tests or debugging. Kwargs: num_preds: number of predicted boxes num_gts: num
mmdet/core/bbox/assigners/assign_result.py:92
↓ 16 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to giving probablity
mmdet/models/utils/weight_init.py:43
↓ 16 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
↓ 15 callersFunctionbuild_detector
(cfg, train_cfg=None, test_cfg=None)
mmdet/models/builder.py:42
↓ 15 callersMethodget_target
(self, sampling_results, rcnn_train_cfg)
mmdet/models/mask_heads/grid_head.py:222
↓ 14 callersFunctiondelta2bbox
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used
mmdet/core/bbox/transforms.py:34
↓ 14 callersFunctionresults2json
(dataset, results, out_file)
mmdet/core/evaluation/coco_utils.py:221
↓ 12 callersFunction_print
(result, ap=1, iouThr=None, areaRng='all', maxDets=100)
tools/robustness_eval.py:10
↓ 12 callersFunctionbuild_assigner
(cfg, **kwargs)
mmdet/core/bbox/assign_sampling.py:6
↓ 12 callersMethodextract_feat
(self, img)
mmdet/models/detectors/rpn.py:35
↓ 12 callersMethodextract_feats
(self, imgs)
mmdet/models/detectors/base.py:44
↓ 11 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
↓ 11 callersFunctionbuild_sampler
(cfg, **kwargs)
mmdet/core/bbox/assign_sampling.py:16
↓ 11 callersMethodget_bboxes
(self, det_bboxes, grid_pred, img_meta)
mmdet/models/mask_heads/grid_head.py:296
↓ 11 callersFunctionkaiming_init
(module, mode='fan_out', nonlinearity='relu', bias=0,
mmdet/models/utils/weight_init.py:27
↓ 11 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
↓ 11 callersFunctionnms
Dispatch to either CPU or GPU NMS implementations. The input can be either a torch tensor or numpy array. GPU NMS will be used if the input i
mmdet/ops/nms/nms_wrapper.py:8
↓ 10 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:181
↓ 10 callersFunctioncoco_eval
(result_files, result_types, coco, max_dets=(100, 300, 1000),
mmdet/core/evaluation/coco_utils.py:12
↓ 10 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdet/core/anchor/point_target.py:75
↓ 10 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:20
↓ 9 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions
tests/test_forward.py:329
↓ 9 callersFunctioncast_tensor_type
(inputs, src_type, dst_type)
mmdet/core/fp16/utils.py:7
↓ 9 callersFunctionmake_cuda_ext
(name, module, sources)
setup.py:96
↓ 8 callersMethodget_det_bboxes
(self, rois, cls_score, bbox_pred,
mmdet/models/bbox_heads/bbox_head.py:137
↓ 8 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:125
↓ 8 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdet/core/anchor/point_target.py:155
↓ 7 callersFunction_get_detector_cfg
Grab configs necessary to create a detector. These are deep copied to allow for safe modification of parameters without influencing other tes
tests/test_forward.py:37
↓ 7 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale
mmdet/core/bbox/transforms.py:134
↓ 7 callersFunctionbuild
(cfg, registry, default_args=None)
mmdet/models/builder.py:8
↓ 7 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdet/datasets/builder.py:30
↓ 7 callersMethodevaluate
(self)
mmdet/core/evaluation/eval_hooks.py:72
↓ 7 callersFunctionget_root_logger
Get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHandler will be added. If `log_file` i
mmdet/utils/logger.py:6
↓ 7 callersFunctionparse_losses
(losses)
mmdet/apis/train.py:38
↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path
setup.py:136
↓ 6 callersMethodassign
Assign gt to bboxes. This method assign a gt bbox to every bbox (proposal/anchor), each bbox will be assigned with -1, 0, or a positi
mmdet/core/bbox/assigners/max_iou_assigner.py:52
↓ 6 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
mmdet/datasets/loader/build_loader.py:17
↓ 6 callersFunctionis_supported_instance
(module)
mmdet/utils/flops_counter.py:238
↓ 6 callersMethodsimple_test_rpn
(self, x, img_meta, rpn_test_cfg)
mmdet/models/detectors/test_mixins.py:31
↓ 5 callersMethodgrid_anchors
(self, featmap_size, stride=16, device='cuda')
mmdet/core/anchor/anchor_generator.py:66
↓ 5 callersMethodinfo
Returns a dictionary of info about the object
mmdet/core/bbox/assigners/assign_result.py:57
↓ 5 callersFunctionmatrix_nms
Matrix NMS for multi-class masks. Args: seg_masks (Tensor): shape (n, h, w) cate_labels (Tensor): shape (n), mask labels in desce
mmdet/core/post_processing/matrix_nms.py:4
↓ 5 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:81
↓ 5 callersFunctionprint_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used. Some
mmdet/utils/logger.py:43
↓ 5 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:254
↓ 5 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/pipelines/formating.py:11
↓ 5 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdet/core/utils/misc.py:27
↓ 5 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
mmdet/models/losses/utils.py:26
↓ 5 callersFunctionwrap_fp16_model
(model)
mmdet/core/fp16/hooks.py:86
↓ 5 callersFunctionxavier_init
(module, gain=1, bias=0, distribution='normal')
mmdet/models/utils/weight_init.py:5
↓ 4 callersMethodaug_test_rpn
(self, feats, img_metas, rpn_test_cfg)
mmdet/models/detectors/test_mixins.py:37
↓ 4 callersFunctionbbox2delta
(proposals, gt, means=[0, 0, 0, 0], stds=[1, 1, 1, 1])
mmdet/core/bbox/transforms.py:6
↓ 4 callersFunctionbuild_from_cfg
Build a module from config dict. Args: cfg (dict): Config dict. It should at least contain the key "type". registry (:obj:`Regist
mmdet/utils/registry.py:51
↓ 4 callersFunctioncalc_region
Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args: bbox (Tensor
mmdet/core/anchor/guided_anchor_target.py:7
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck
mmdet/models/detectors/two_stage.py:89
↓ 4 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:100
↓ 4 callersFunctionget_classes
Get class names of a dataset.
mmdet/core/evaluation/class_names.py:102
↓ 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 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:18
↓ 4 callersMethodinit_weights
(self, pretrained=None)
mmdet/models/detectors/rpn.py:28
↓ 4 callersFunctionparams_to_string
converting number to string :param float params_num: number :returns str: number >>> params_to_string(1e9) '1000.0 M' >>> params
mmdet/utils/flops_counter.py:90
↓ 4 callersMethodpoints2bbox
Converting the points set into bounding box. :param pts: the input points sets (fields), each points set (fields) is repr
mmdet/models/anchor_heads/reppoints_head.py:164
↓ 4 callersMethodrefine_bboxes
Refine bboxes during training. Args: rois (Tensor): Shape (n*bs, 5), where n is image number per GPU, and bs is t
mmdet/models/bbox_heads/bbox_head.py:176
↓ 4 callersMethodsample
(self, assign_result, bboxes, gt_bboxes, **kwargs)
mmdet/core/bbox/samplers/pseudo_sampler.py:18
↓ 4 callersFunctiontensor2imgs
(tensor, mean=(0, 0, 0), std=(1, 1, 1), to_rgb=True)
mmdet/core/utils/misc.py:8
↓ 4 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdet/core/anchor/anchor_target.py:178
↓ 4 callersFunctionxyxy2xywh
(bbox)
mmdet/core/evaluation/coco_utils.py:121
↓ 3 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet/ops/dcn/deform_conv.py:193
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch convs -> avg pool (optional) -> fcs
mmdet/models/bbox_heads/convfc_bbox_head.py:83
↓ 3 callersMethod_bbox_forward_test
(self, stage, x, rois, semantic_feat=None)
mmdet/models/detectors/htc.py:114
↓ 3 callersFunction_context_for_ohem
()
tests/test_sampler.py:93
↓ 3 callersMethod_freeze_stages
(self)
mmdet/models/backbones/resnet.py:457
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdet/models/backbones/hrnet.py:433
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdet/models/backbones/hrnet.py:352
↓ 3 callersFunctionanchor_inside_flags
(flat_anchors, valid_flags, img_shape,
mmdet/core/anchor/anchor_target.py:162
↓ 3 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
↓ 3 callersMethodassign_wrt_overlaps
Assign w.r.t. the overlaps of bboxes with gts. Args: overlaps (Tensor): Overlaps between k gt_bboxes and n bboxes,
mmdet/core/bbox/assigners/max_iou_assigner.py:121
↓ 3 callersFunctionasync_inference_detector
Async inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray])
mmdet/apis/inference.py:92
↓ 3 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale
mmdet/core/bbox/transforms.py:142
↓ 3 callersFunctionbbox_overlaps
Calculate overlap between two set of bboxes. If ``is_aligned`` is ``False``, then calculate the ious between each bbox of bboxes1 and bboxes2
mmdet/core/bbox/geometry.py:4
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdet/utils/contextmanagers.py:17
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/detectron2pytorch.py:10
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/detectron2pytorch.py:23
↓ 3 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:202
↓ 3 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
mmdet/core/evaluation/mean_ap.py:266
↓ 3 callersMethodextract_feat
(self, img)
mmdet/models/detectors/single_stage_ins.py:49
↓ 3 callersMethodextract_feat
(self, img)
mmdet/models/detectors/cascade_rcnn.py:115
↓ 3 callersMethodextract_feat
Directly extract features from the backbone+neck
mmdet/models/detectors/single_stage.py:44
↓ 3 callersFunctionfast_eval_recall
(results, coco, max_dets, iou_thrs=np.arange(0.
mmdet/core/evaluation/coco_utils.py:84
next →1–100 of 1,004, ranked by callers