MCPcopy Create free account

hub / github.com/FenHua/DetDak / functions

Functions1,414 in github.com/FenHua/DetDak

↓ 2 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdetection/mmdet/datasets/coco.py:72
↓ 2 callersFunctionget_classes
Get class names of a dataset.
mmdetection/mmdet/core/evaluation/class_names.py:102
↓ 2 callersMethodget_extra_property
Get user-defined property.
mmdetection/mmdet/core/bbox/assigners/assign_result.py:60
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[list]): Multi level poi
mmdetection/mmdet/models/dense_heads/reppoints_head.py:444
↓ 2 callersMethodgrid_points
(self, featmap_size, stride=16, device='cuda')
mmdetection/mmdet/core/anchor/point_generator.py:17
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdetection/mmdet/core/bbox/samplers/ohem_sampler.py:32
↓ 2 callersMethodinit_weights
Init module weights. We do nothing in this function because all modules we used (ConvModule, BasicBlock and etc.) have default initia
mmdetection/mmdet/models/backbones/hourglass.py:164
↓ 2 callersFunctionis_located_in
Are points located in bboxes. Args: points (Tensor): Points, shape: (m, 2). bboxes (Tensor): Bounding boxes, shape: (n, 4). Retu
mmdetection/mmdet/core/bbox/assigners/center_region_assigner.py:36
↓ 2 callersFunctionis_norm
Check if is one of the norms.
mmdetection/tests/test_models/test_backbones.py:22
↓ 2 callersFunctionload_fc
(buf, start, fc_model)
tool/cfg.py:238
↓ 2 callersMethodloss
(self, cls_scores, bbox_preds, shape_preds, loc_preds,
mmdetection/mmdet/models/dense_heads/guided_anchor_head.py:646
↓ 2 callersMethodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_poin
mmdetection/mmdet/models/dense_heads/fsaf_head.py:173
↓ 2 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdetection/mmdet/models/backbones/resnet.py:516
↓ 2 callersFunctionmakeplot
(rs, ps, outDir, class_name, iou_type)
mmdetection/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
mmdetection/mmdet/datasets/pipelines/transforms.py:1092
↓ 2 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmdetection/mmdet/apis/test.py:66
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmdetection/mmdet/models/backbones/resnet.py:246
↓ 2 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmdetection/mmdet/models/backbones/resnet.py:251
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmdetection/mmdet/models/dense_heads/reppoints_head.py:353
↓ 2 callersMethodpad
padding has no effect on polygons`
mmdetection/mmdet/core/mask/structures.py:457
↓ 2 callersFunctionparse_require_file
(fpath)
mmdetection/setup.py:166
↓ 2 callersMethodpre_pipeline
Prepare results dict for pipeline.
mmdetection/mmdet/datasets/custom.py:139
↓ 2 callersFunctionprint_cfg
(blocks)
tool/cfg.py:39
↓ 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.
mmdetection/mmdet/utils/profiling.py:10
↓ 2 callersFunctionrand_scale
calculate random scaling factor Args: s (float): range of the random scale. Returns: random scaling factor (float) whose
util_copy/utils_coco.py:290
↓ 2 callersFunctionrandom_boxes
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitla
mmdetection/mmdet/core/bbox/demodata.py:29
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
mmdetection/mmdet/datasets/pipelines/transforms.py:98
↓ 2 callersFunctionreduce_mean
(tensor)
mmdetection/mmdet/models/dense_heads/atss_head.py:13
↓ 2 callersFunctionreduce_mean
(tensor)
mmdetection/mmdet/models/dense_heads/gfl_head.py:15
↓ 2 callersFunctionreorder_cls_channel
(val, num_classes=81)
mmdetection/tools/upgrade_model_version.py:45
↓ 2 callersMethodrescale
see :func:`BaseInstanceMasks.rescale`
mmdetection/mmdet/core/mask/structures.py:376
↓ 2 callersMethodrfp_forward
The forward function that also takes the RFP features as input.
mmdetection/mmdet/models/backbones/detectors_resnet.py:66
↓ 2 callersMethodroi_rescale
Scale RoI coordinates by scale factor. Args: rois (torch.Tensor): RoI (Region of Interest), shape (n, 5) scale_factor
mmdetection/mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:57
↓ 2 callersFunctionscores_loss
(model,img)
attack_utils/attackloss_efdet.py:10
↓ 2 callersFunctionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
mmdetection/mmdet/apis/train.py:15
↓ 2 callersMethodsimple_test_bboxes
Test only det bboxes without augmentation.
mmdetection/mmdet/models/roi_heads/test_mixins.py:52
↓ 2 callersMethodsimple_test_mask
Simple test for mask head without augmentation.
mmdetection/mmdet/models/roi_heads/test_mixins.py:151
↓ 2 callersFunctionsingle_gpu_test
(model, data_loader, show=False, out_dir=None,
mmdetection/mmdet/apis/test.py:15
↓ 2 callersFunctionsmooth_l1_loss
Smooth L1 loss. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning target of the prediction.
mmdetection/mmdet/models/losses/smooth_l1_loss.py:9
↓ 2 callersMethodto_bitmap
convert polygon masks to bitmap masks.
mmdetection/mmdet/core/mask/structures.py:501
↓ 2 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdetection/mmdet/core/mask/structures.py:551
↓ 2 callersFunctiontotal_loss
(model, data, show_score_thr=0.3)
attack_utils/attackloss_rcnn.py:43
↓ 2 callersFunctionyolo_loss
(model, img, conf_thresh, use_cuda=1)
attack_utils/attackloss.py:30
↓ 1 callersFunctionGetObject
(model, img)
attack_utils/attackloss_rcnn.py:12
↓ 1 callersFunctionGetObject
(model, img)
attack_utils/attackloss.py:74
↓ 1 callersFunctionInitialMask
(Mask)
Mask/generator.py:5
↓ 1 callersFunctionL2_attack
(model, img, max_iter, epsilon, mask)
attack_utils/attackloss_rcnn.py:89
↓ 1 callersFunctionL2_attack
(model, img, max_iter, epsilon, mask)
attack_utils/attackloss_efdet.py:59
↓ 1 callersFunctionL2_loss
(model,data,idx)
attack_utils/attackloss_rcnn.py:25
↓ 1 callersFunctionNorm_Sel_Mask
(NOISE, num)
getmask.py:14
↓ 1 callersFunctionNorm_Sel_Mask
(flag, Mask, noise0, noise1, noise2)
Mask/generator.py:24
↓ 1 callersMethod__init__
(self, anchor_scale=4., pyramid_levels=None, **kwargs)
efficientdet/utils.py:60
↓ 1 callersMethod__init__
(self, strides, ratios, scales=None, base_
mmdetection/mmdet/core/anchor/anchor_generator.py:58
↓ 1 callersMethod__init__
(self, rfp_steps, rfp_backbone, aspp_out_channels,
mmdetection/mmdet/models/necks/rfp.py:75
↓ 1 callersMethod__init__
(self, input_size, depth, with_last_pool=False,
mmdetection/mmdet/models/backbones/ssd_vgg.py:38
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
mmdetection/mmdet/models/backbones/resnext.py:121
↓ 1 callersMethod__init__
(self, extra, in_channels=3, conv_cfg=None,
mmdetection/mmdet/models/backbones/hrnet.py:259
↓ 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
mmdetection/mmdet/models/backbones/detectors_resnext.py:13
↓ 1 callersMethod__init__
(self, downsample_times=5, num_stacks=2, stage_channels=(25
mmdetection/mmdet/models/backbones/hourglass.py:112
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3,
mmdetection/mmdet/models/dense_heads/guided_anchor_head.py:28
↓ 1 callersMethod__init__
(self, num_classes, in_channels, base_edge_list=(16, 32, 64
mmdetection/mmdet/models/dense_heads/fovea_head.py:48
↓ 1 callersMethod__init__
(self, num_classes, in_channels, stacked_convs=4,
mmdetection/mmdet/models/dense_heads/gfl_head.py:92
↓ 1 callersMethod__init__
(self, num_classes, in_channels, num_feat_levels=2,
mmdetection/mmdet/models/dense_heads/corner_head.py:106
↓ 1 callersMethod__init__
(self, in_channels, out_channels, conv_cfg=None,
mmdetection/mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:22
↓ 1 callersMethod__init__
(self, use_sigmoid=True, beta=2.0, reduction='mean',
mmdetection/mmdet/models/losses/gfocal_loss.py:92
↓ 1 callersMethod__init__
(self, reduction='mean', loss_weight=1.0)
mmdetection/mmdet/models/losses/smooth_l1_loss.py:107
↓ 1 callersMethod__init__
(self, bins=10, momentum=0, use_sigmoid=True, loss_weight=1.0)
mmdetection/mmdet/models/losses/ghm_loss.py:35
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride=1, bias=True, groups=1, dilation=1, **kwargs)
efficientnet/utils_extra.py:15
↓ 1 callersMethod__init__
(self, )
efficientnet/utils.py:126
↓ 1 callersMethod__init__
(self, block_args, global_params)
efficientnet/model.py:29
↓ 1 callersMethod__repr__
str: the string of the module
mmdetection/mmdet/utils/util_mixins.py:86
↓ 1 callersMethod_add_conv_branch
Add the fc branch which consists of a sequential of conv layers.
mmdetection/mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:121
↓ 1 callersMethod_add_default_meta_keys
Add default meta keys. We set default meta keys including `pad_shape`, `scale_factor` and `img_norm_cfg` to avoid the case where no `
mmdetection/mmdet/datasets/pipelines/formating.py:221
↓ 1 callersMethod_add_fc_branch
Add the fc branch which consists of a sequential of fc layers.
mmdetection/mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:133
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
mmdetection/mmdet/core/utils/dist_utils.py:10
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
mmdetection/mmdet/models/roi_heads/pisa_roi_head.py:101
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
mmdetection/mmdet/models/roi_heads/standard_roi_head.py:148
↓ 1 callersMethod_bbox_forward_train
(self, x, sampling_results, gt_bboxes, gt_labels, img_metas)
mmdetection/mmdet/models/roi_heads/dynamic_roi_head.py:108
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
mmdetection/mmdet/models/roi_heads/htc_roi_head.py:94
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
mmdetection/mmdet/models/roi_heads/cascade_roi_head.py:151
↓ 1 callersMethod_bboxes_nms
(self, bboxes, labels, cfg)
mmdetection/mmdet/models/dense_heads/corner_head.py:745
↓ 1 callersFunction_check_bbox_head
(bbox_cfg, bbox_head)
mmdetection/tests/test_config.py:317
↓ 1 callersMethod_check_branches
(self, num_branches, num_blocks, in_channels, num_channels)
mmdetection/mmdet/models/backbones/hrnet.py:45
↓ 1 callersFunction_check_mask_head
(mask_cfg, mask_head)
mmdetection/tests/test_config.py:294
↓ 1 callersFunction_check_roi_head
(config, head)
mmdetection/tests/test_config.py:214
↓ 1 callersFunction_concat_dataset
(cfg, default_args=None)
mmdetection/mmdet/datasets/builder.py:26
↓ 1 callersMethod_decode_block_string
Gets a block through a string notation of arguments.
efficientnet/utils.py:160
↓ 1 callersFunction_demodata_refine_boxes
Create random test data for the ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` method.
mmdetection/tests/test_models/test_heads.py:479
↓ 1 callersMethod_det2json
Convert detection results to COCO json style.
mmdetection/mmdet/datasets/coco.py:217
↓ 1 callersFunction_do_paste_mask
Paste instance masks acoording to boxes. This implementation is modified from https://github.com/facebookresearch/detectron2/ Args:
mmdetection/mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:240
↓ 1 callersMethod_encode_block_string
Encodes a block to a string.
efficientnet/utils.py:187
↓ 1 callersMethod_evaluate_cityscapes
Evaluation in Cityscapes protocol. Args: results (list): Testing results of the dataset. txtfile_prefix (str | None):
mmdetection/mmdet/datasets/cityscapes.py:261
↓ 1 callersFunction_expand_binary_labels
(labels, label_weights, label_channels)
mmdetection/mmdet/models/losses/cross_entropy_loss.py:42
↓ 1 callersFunction_expand_onehot_labels
(labels, label_weights, label_channels)
mmdetection/mmdet/models/losses/ghm_loss.py:8
↓ 1 callersMethod_filter_imgs
Filter images too small.
mmdetection/mmdet/datasets/custom.py:148
↓ 1 callersMethod_forward
(self, inputs)
efficientdet/model.py:268
↓ 1 callersMethod_forward_fast_attention
(self, inputs)
efficientdet/model.py:194
↓ 1 callersMethod_get_bboxes_single
(self, cls_scores, bbox_preds,
mmdetection/mmdet/models/dense_heads/reppoints_head.py:697
↓ 1 callersMethod_get_bboxes_single
(self, cls_scores, bbox_preds,
mmdetection/mmdet/models/dense_heads/guided_anchor_head.py:796
↓ 1 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores for a single sca
mmdetection/mmdet/models/dense_heads/anchor_head.py:584
← previousnext →201–300 of 1,414, ranked by callers