MCPcopy Create free account

hub / github.com/YuqingWang1029/SOLOv2 / functions

Functions1,167 in github.com/YuqingWang1029/SOLOv2

↓ 79 callersMethodget
(self, key)
mmdet/utils/registry.py:26
↓ 71 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
mmdet/models/utils/weight_init.py:15
↓ 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
↓ 31 callersFunction__Pyx_PyInt_From_int
CIntToPy */
mmdet/ops/nms/src/soft_nms_cpu.cpp:9013
↓ 31 callersFunction__Pyx_PyObject_GetItem
mmdet/ops/nms/src/soft_nms_cpu.cpp:7932
↓ 28 callersMethodloss
(self, grid_pred, grid_targets)
mmdet/models/mask_heads/grid_head.py:290
↓ 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
↓ 24 callersFunctionmulti_apply
(func, *args, **kwargs)
mmdet/core/utils/misc.py:21
↓ 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
↓ 23 callersFunctionbuild_loss
(cfg)
mmdet/models/builder.py:38
↓ 21 callersFunction__Pyx_PyObject_IsTrue
mmdet/ops/nms/src/soft_nms_cpu.cpp:10172
↓ 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
↓ 20 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print('self = {}'.for
mmdet/core/bbox/samplers/sampling_result.py:54
↓ 17 callersFunction__Pyx_PyInt_From_enum__NPY_TYPES
CIntToPy */
mmdet/ops/nms/src/soft_nms_cpu.cpp:9354
↓ 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 callersFunction__Pyx_AddTraceback
mmdet/ops/nms/src/soft_nms_cpu.cpp:8908
↓ 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
↓ 13 callersFunction__Pyx_PyObject_Call
mmdet/ops/nms/src/soft_nms_cpu.cpp:7612
↓ 13 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to giving probablity
mmdet/models/utils/weight_init.py:43
↓ 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:39
↓ 11 callersFunction__Pyx_Raise
mmdet/ops/nms/src/soft_nms_cpu.cpp:8237
↓ 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__Pyx_PyObject_GetAttrStr
mmdet/ops/nms/src/soft_nms_cpu.cpp:6742
↓ 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 callersFunction__Pyx_BufFmt_ProcessTypeChunk
mmdet/ops/nms/src/soft_nms_cpu.cpp:7162
↓ 6 callersFunction__Pyx_BufFmt_RaiseUnexpectedChar
mmdet/ops/nms/src/soft_nms_cpu.cpp:6992
↓ 6 callersFunction__Pyx_ImportType
mmdet/ops/nms/src/soft_nms_cpu.cpp:8607
↓ 6 callersFunction__Pyx_PyObject_CallOneArg
mmdet/ops/nms/src/soft_nms_cpu.cpp:7707
↓ 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 callersFunction__Pyx_GetBuiltinName
GetBuiltinName */
mmdet/ops/nms/src/soft_nms_cpu.cpp:6755
↓ 5 callersFunction__Pyx_PyInt_As_int
CIntFromPy */
mmdet/ops/nms/src/soft_nms_cpu.cpp:9574
↓ 5 callersFunction__Pyx_PyInt_From_long
CIntToPy */
mmdet/ops/nms/src/soft_nms_cpu.cpp:8982
↓ 5 callersFunction__Pyx_is_valid_index
mmdet/ops/nms/src/soft_nms_cpu.cpp:669
↓ 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 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 callersFunction__Pyx_BufFmt_RaiseExpected
mmdet/ops/nms/src/soft_nms_cpu.cpp:7138
↓ 4 callersFunction__Pyx_copy_spec_to_module
mmdet/ops/nms/src/soft_nms_cpu.cpp:6508
↓ 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 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 callersFunctionshow_result
Visualize the detection results on the image. Args: img (str or np.ndarray): Image filename or loaded image. result (tuple[list]
mmdet/apis/inference.py:119
↓ 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 callersFunction__Pyx_GetException
mmdet/ops/nms/src/soft_nms_cpu.cpp:8534
↓ 3 callersFunction__Pyx_GetItemInt_Generic
GetItemInt */
mmdet/ops/nms/src/soft_nms_cpu.cpp:7736
↓ 3 callersFunction__Pyx_PyErr_GivenExceptionMatches
mmdet/ops/nms/src/soft_nms_cpu.cpp:10028
↓ 3 callersFunction__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
mmdet/ops/nms/src/soft_nms_cpu.cpp:7445
↓ 3 callersFunction__Pyx_inner_PyErr_GivenExceptionMatches2
mmdet/ops/nms/src/soft_nms_cpu.cpp:9977
next →1–100 of 1,167, ranked by callers