MCPcopy Create free account

hub / github.com/amirassov/kaggle-imaterialist / functions

Functions538 in github.com/amirassov/kaggle-imaterialist

↓ 21 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
mmdetection/mmdet/core/bbox/transforms.py:106
↓ 15 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
mmdetection/mmdet/models/utils/weight_init.py:15
↓ 13 callersMethodloss
(self, cls_score, bbox_pred, labels, label_weights,
mmdetection/mmdet/models/bbox_heads/bbox_head.py:83
↓ 12 callersFunctionbuild_conv_layer
Build convolution layer Args: cfg (None or dict): cfg should contain: type (str): identify conv layer type. laye
mmdetection/mmdet/models/utils/conv_module.py:16
↓ 12 callersFunctionbuild_norm_layer
Build normalization layer Args: cfg (dict): cfg should contain: type (str): identify norm layer type. layer args
mmdetection/mmdet/models/utils/norm.py:13
↓ 10 callersMethodextract_feats
(self, imgs)
mmdetection/mmdet/models/detectors/base.py:40
↓ 9 callersFunctionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (Tensor): shape (n, 5) labels (Tensor): shape (n, ) num
mmdetection/mmdet/core/bbox/transforms.py:138
↓ 9 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmdetection/mmdet/datasets/utils.py:15
↓ 8 callersMethodget_det_bboxes
(self, rois, cls_score, bbox_pred,
mmdetection/mmdet/models/bbox_heads/bbox_head.py:110
↓ 8 callersMethodget_seg_masks
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor or ndarray): shape (n, #class+1, h, w).
mmdetection/mmdet/models/mask_heads/fcn_mask_head.py:116
↓ 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
mmdetection/mmdet/core/bbox/samplers/random_sampler.py:19
↓ 7 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale
mmdetection/mmdet/core/bbox/transforms.py:91
↓ 7 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bboxes2(ndarray): shape (k, 4)
mmdetection/mmdet/core/evaluation/bbox_overlaps.py:4
↓ 7 callersFunctioncoco_eval
(result_file, result_types, coco, max_dets=(100, 300, 1000))
mmdetection/mmdet/core/evaluation/coco_utils.py:9
↓ 7 callersFunctionmulti_apply
(func, *args, **kwargs)
mmdetection/mmdet/core/utils/misc.py:21
↓ 6 callersMethodassign
(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None)
mmdetection/mmdet/core/bbox/assigners/base_assigner.py:7
↓ 6 callersFunctionbuild
(cfg, registry, default_args=None)
mmdetection/mmdet/models/builder.py:27
↓ 6 callersFunctionbuild_sampler
(cfg, **kwargs)
mmdetection/mmdet/core/bbox/assign_sampling.py:17
↓ 6 callersMethodget_target
(self, sampling_results, gt_bboxes, gt_labels, rcnn_train_cfg)
mmdetection/mmdet/models/bbox_heads/bbox_head.py:65
↓ 6 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class)
mmdetection/mmdet/core/post_processing/bbox_nms.py:6
↓ 6 callersMethodsimple_test_rpn
(self, x, img_meta, rpn_test_cfg)
mmdetection/mmdet/models/detectors/test_mixins.py:7
↓ 5 callersFunctionbuild_assigner
(cfg, **kwargs)
mmdetection/mmdet/core/bbox/assign_sampling.py:6
↓ 5 callersFunctiondelta2bbox
(rois, deltas, means=[0, 0, 0, 0], stds=[1, 1, 1, 1],
mmdetection/mmdet/core/bbox/transforms.py:34
↓ 5 callersMethodget_bboxes
(self, cls_scores, bbox_preds, centernesses,
mmdetection/mmdet/models/anchor_heads/fcos_head.py:173
↓ 5 callersFunctionkaiming_init
(module, mode='fan_out', nonlinearity='relu', bias=0,
mmdetection/mmdet/models/utils/weight_init.py:27
↓ 5 callersFunctionmerge_aug_masks
Merge augmented mask prediction. Args: aug_masks (list[ndarray]): shape (n, #class, h, w) img_shapes (list[ndarray]): shape (3, )
mmdetection/mmdet/core/post_processing/merge_augs.py:76
↓ 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
mmdetection/mmdet/models/bbox_heads/bbox_head.py:180
↓ 5 callersFunctionresults2json
(dataset, results, out_file)
mmdetection/mmdet/core/evaluation/coco_utils.py:140
↓ 5 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdetection/mmdet/core/bbox/samplers/base_sampler.py:31
↓ 4 callersFunctionbuild_dataloader
(dataset, imgs_per_gpu, workers_per_gpu, num_gp
mmdetection/mmdet/datasets/loader/build_loader.py:15
↓ 4 callersFunctionbuild_detector
(cfg, train_cfg=None, test_cfg=None)
mmdetection/mmdet/models/builder.py:55
↓ 4 callersMethodextract_feat
(self, img)
mmdetection/mmdet/models/detectors/rpn.py:35
↓ 4 callersFunctionget_dataset
(data_cfg)
mmdetection/mmdet/datasets/utils.py:77
↓ 4 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdetection/mmdet/core/anchor/anchor_target.py:79
↓ 4 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdetection/mmdet/core/anchor/anchor_target.py:176
↓ 3 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdetection/mmdet/ops/dcn/modules/deform_conv.py:12
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch convs -> avg pool (optional) -> fcs
mmdetection/mmdet/models/bbox_heads/convfc_bbox_head.py:83
↓ 3 callersMethod_bbox_forward_test
(self, stage, x, rois, semantic_feat=None)
mmdetection/mmdet/models/detectors/htc.py:115
↓ 3 callersMethod_freeze_stages
(self)
mmdetection/mmdet/models/backbones/resnet.py:420
↓ 3 callersMethodapply
(self, img, x_min=0, x_max=0, y_min=0, y_max=0, **params)
mmdetection/mmdet/datasets/transforms.py:170
↓ 3 callersMethodaug_test_rpn
(self, feats, img_metas, rpn_test_cfg)
mmdetection/mmdet/models/detectors/test_mixins.py:13
↓ 3 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (n, 2), [x, y]. distance (Tensor): Distance from the giv
mmdetection/mmdet/core/bbox/transforms.py:159
↓ 3 callersMethodevaluate
(self)
mmdetection/mmdet/core/evaluation/eval_hooks.py:73
↓ 3 callersFunctionget_classes
Get class names of a dataset.
mmdetection/mmdet/core/evaluation/class_names.py:89
↓ 3 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
mmdetection/mmdet/apis/env.py:13
↓ 3 callersFunctionmerge_aug_bboxes
Merge augmented detection bboxes and scores. Args: aug_bboxes (list[Tensor]): shape (n, 4*#class) aug_scores (list[Tensor] or Non
mmdetection/mmdet/core/post_processing/merge_augs.py:41
↓ 3 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
mmdetection/mmdet/ops/nms/nms_wrapper.py:8
↓ 3 callersMethodrefine_bboxes
Refine bboxes during training. Args: rois (Tensor): Shape (n*bs, 5), where n is image number per GPU, and bs is t
mmdetection/mmdet/models/bbox_heads/bbox_head.py:140
↓ 3 callersFunctionshape_check
mmdetection/mmdet/ops/dcn/src/deform_conv_cuda.cpp:61
↓ 3 callersFunctiontensor2imgs
(tensor, mean=(0, 0, 0), std=(1, 1, 1), to_rgb=True)
mmdetection/mmdet/core/utils/misc.py:8
↓ 3 callersFunctionweighted_smoothl1
(pred, target, weight, beta=1.0, avg_factor=None)
mmdetection/mmdet/core/loss/losses.py:97
↓ 3 callersFunctionxavier_init
(module, gain=1, bias=0, distribution='normal')
mmdetection/mmdet/models/utils/weight_init.py:5
↓ 3 callersFunctionxyxy2xywh
(bbox)
mmdetection/mmdet/core/evaluation/coco_utils.py:78
↓ 2 callersMethod__init__
(self, spatial_scale, out_size, out_channels,
mmdetection/mmdet/ops/dcn/modules/deform_pool.py:8
↓ 2 callersMethod__init__
(self, depth, num_stages=4, strides=(1, 2, 2, 2),
mmdetection/mmdet/models/backbones/resnet.py:331
↓ 2 callersFunction_build_module
(cfg, registry, default_args)
mmdetection/mmdet/models/builder.py:8
↓ 2 callersFunction_inference_single
(model, img, img_transform, device)
mmdetection/mmdet/apis/inference.py:89
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdetection/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
mmdetection/mmdet/core/anchor/anchor_target.py:7
↓ 2 callersFunctionbbox2delta
(proposals, gt, means=[0, 0, 0, 0], stds=[1, 1, 1, 1])
mmdetection/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:
mmdetection/mmdet/core/bbox/transforms.py:71
↓ 2 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale
mmdetection/mmdet/core/bbox/transforms.py:99
↓ 2 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to giving probablity
mmdetection/mmdet/models/utils/weight_init.py:43
↓ 2 callersFunctionbuild_optimizer
Build optimizer from configs. Args: model (:obj:`nn.Module`): The model with parameters to be optimized. optimizer_cfg (dict): Th
mmdetection/mmdet/apis/train.py:64
↓ 2 callersFunctioncreate_labeled_mask
(mask)
src/utils.py:32
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
mmdetection/tools/convert_datasets/pascal_voc.py:67
↓ 2 callersFunctiondecode_and_resize
( masks, x_min=None, x_max=None, y_min=None, y_max=None, original_height=None, original_width=None )
src/submit.py:24
↓ 2 callersFunctiondraw_masks
(img, masks, colors, classes)
src/draw.py:50
↓ 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
mmdetection/mmdet/core/evaluation/mean_ap.py:220
↓ 2 callersMethodextract_feat
(self, img)
mmdetection/mmdet/models/detectors/two_stage.py:84
↓ 2 callersMethodextract_feat
(self, img)
mmdetection/mmdet/models/detectors/cascade_rcnn.py:114
↓ 2 callersMethodextract_feat
(self, img)
mmdetection/mmdet/models/detectors/single_stage.py:39
↓ 2 callersFunctionfast_eval_recall
(results, coco, max_dets, iou_thrs=np.arange(0.
mmdetection/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
mmdetection/mmdet/models/anchor_heads/anchor_head.py:89
↓ 2 callersMethodget_ann_info
(self, idx)
mmdetection/mmdet/datasets/coco.py:39
↓ 2 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. dtype (t
mmdetection/mmdet/models/anchor_heads/fcos_head.py:254
↓ 2 callersFunctionget_root_logger
(log_level=logging.INFO)
mmdetection/mmdet/apis/env.py:60
↓ 2 callersMethodgrid_anchors
(self, featmap_size, stride=16, device='cuda')
mmdetection/mmdet/core/anchor/anchor_generator.py:53
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdetection/mmdet/core/bbox/samplers/ohem_sampler.py:26
↓ 2 callersFunctionkaggle2coco
(kaggle_rle, h, w)
src/rle.py:39
↓ 2 callersFunctionkaggle_rle_encode
(mask)
src/rle.py:7
↓ 2 callersFunctionmake_res_layer
(block, inplanes, planes, blocks,
mmdetection/mmdet/models/backbones/resnet.py:244
↓ 2 callersFunctionmask_cross_entropy
(pred, target, label)
mmdetection/mmdet/core/loss/losses.py:73
↓ 2 callersFunctionmerge_aug_proposals
Merge augmented proposals (multiscale, flip, etc.) Args: aug_proposals (list[Tensor]): proposals from different testing schem
mmdetection/mmdet/core/post_processing/merge_augs.py:9
↓ 2 callersMethodnorm
(self)
mmdetection/mmdet/models/utils/conv_module.py:139
↓ 2 callersMethodshow_result
Show RPN proposals on the image. Although we assume batch size is 1, this method supports arbitrary batch size.
mmdetection/mmdet/models/detectors/rpn.py:79
↓ 1 callersMethod__init__
(self, dataset, interval=1)
mmdetection/mmdet/core/evaluation/eval_hooks.py:20
↓ 1 callersMethod__init__
(self)
mmdetection/mmdet/datasets/transforms.py:145
↓ 1 callersMethod__init__
(self, dataset, samples_per_gpu=1)
mmdetection/mmdet/datasets/loader/sampler.py:40
↓ 1 callersMethod__init__
(self, input_size, depth, with_last_pool=False,
mmdetection/mmdet/models/backbones/ssd_vgg.py:19
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
mmdetection/mmdet/models/backbones/resnext.py:187
↓ 1 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdetection/mmdet/models/bbox_heads/convfc_bbox_head.py:18
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
mmdetection/mmdet/core/utils/dist_utils.py:9
↓ 1 callersMethod_bbox_forward_train
(self, stage, x, sampling_
mmdetection/mmdet/models/detectors/htc.py:44
↓ 1 callersFunction_dist_train
(model, dataset, cfg, validate=False)
mmdetection/mmdet/apis/train.py:134
↓ 1 callersFunction_expand_binary_labels
(labels, label_weights, label_channels)
mmdetection/mmdet/core/loss/losses.py:123
↓ 1 callersMethod_filter_imgs
Filter images too small.
mmdetection/mmdet/datasets/custom.py:142
↓ 1 callersMethod_infer_shape
(ctx, input, weight)
mmdetection/mmdet/ops/dcn/functions/deform_conv.py:168
↓ 1 callersFunction_inference_generator
(model, imgs, img_transform, device)
mmdetection/mmdet/apis/inference.py:97
↓ 1 callersFunction_init_dist_mpi
(backend, **kwargs)
mmdetection/mmdet/apis/env.py:34
next →1–100 of 538, ranked by callers