MCPcopy Create free account

hub / github.com/FenHua/DetDak / functions

Functions1,414 in github.com/FenHua/DetDak

↓ 4 callersMethodload_weights
(self, weightfile)
tool/darknet2pytorch.py:359
↓ 4 callersMethodpoints2bbox
Converting the points set into bounding box. :param pts: the input points sets (fields), each points set (fields) is represented
mmdetection/mmdet/models/dense_heads/reppoints_head.py:165
↓ 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
mmdetection/mmdet/models/roi_heads/bbox_heads/bbox_head.py:227
↓ 4 callersMethodresults2json
Dump the detection results to a COCO style json file. There are 3 types of results: proposals, bbox predictions, mask predictions, an
mmdetection/mmdet/datasets/coco.py:272
↓ 4 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:141
↓ 4 callersFunctionwrap_fp16_model
Wrap the FP32 model to FP16. 1. Convert FP32 model to FP16. 2. Remain some necessary layers to be FP32, e.g., normalization layers. Args
mmdetection/mmdet/core/fp16/hooks.py:99
↓ 4 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdetection/mmdet/datasets/coco.py:182
↓ 3 callersFunctionInitialMask
(Mask)
attack_utils/GetMask.py:8
↓ 3 callersFunctionSFinalMask
(Mask, NOISE)
attack_utils/GetMask.py:97
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
mmdetection/mmdet/models/backbones/resnet.py:364
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmdetection/mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:85
↓ 3 callersFunction_check_roi_extractor
(config, roi_extractor, prev_roi_extractor=None)
mmdetection/tests/test_config.py:267
↓ 3 callersFunction_dummy_bbox_sampling
Create sample results that can be passed to BBoxHead.get_targets.
mmdetection/tests/test_models/test_heads.py:585
↓ 3 callersMethod_gather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index.
mmdetection/mmdet/models/dense_heads/corner_head.py:758
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdetection/mmdet/models/backbones/hrnet.py:438
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdetection/mmdet/models/backbones/hrnet.py:357
↓ 3 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdetection/mmdet/models/roi_heads/standard_roi_head.py:201
↓ 3 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdetection/mmdet/models/roi_heads/cascade_roi_head.py:178
↓ 3 callersFunctionada_attack
(yolo_model, rcnn_model, img, conf_thresh, max_iter, epsilon, mask)
attack_utils/attackloss.py:155
↓ 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,
mmdetection/mmdet/core/bbox/assigners/max_iou_assigner.py:127
↓ 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])
mmdetection/mmdet/apis/inference.py:156
↓ 3 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
mmdetection/mmdet/core/bbox/transforms.py:42
↓ 3 callersFunctionbuild_neck
Build neck.
mmdetection/mmdet/models/builder.py:40
↓ 3 callersFunctioncarl_loss
Classification-Aware Regression Loss (CARL). Args: cls_score (Tensor): Predicted classification scores. labels (Tensor): Targets
mmdetection/mmdet/models/losses/pisa_loss.py:119
↓ 3 callersFunctioncheck_norm_state
Check if norm layer is in correct train state.
mmdetection/tests/test_models/test_backbones.py:42
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdetection/mmdet/utils/contextmanagers.py:16
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
mmdetection/tools/detectron2pytorch.py:10
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
mmdetection/tools/detectron2pytorch.py:23
↓ 3 callersMethodcrop
see :func:`BaseInstanceMasks.crop`
mmdetection/mmdet/core/mask/structures.py:428
↓ 3 callersMethodcrop_and_resize
See :func:`BaseInstanceMasks.crop_and_resize`.
mmdetection/mmdet/core/mask/structures.py:256
↓ 3 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
mmdetection/mmdet/core/evaluation/mean_ap.py:267
↓ 3 callersFunctioneval_recalls
Calculate recalls. Args: gts (list[ndarray]): a list of arrays of shape (n, 4) proposals (list[ndarray]): a list of arrays of sha
mmdetection/mmdet/core/evaluation/recall.py:64
↓ 3 callersMethodextract_feat
Extract features. Args: img (torch.Tensor): Image tensor with shape (n, c, h ,w). Returns: list[torch.Tensor
mmdetection/mmdet/models/detectors/rpn.py:43
↓ 3 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdetection/mmdet/models/detectors/single_stage.py:51
↓ 3 callersMethodextract_feats
Extract features from multiple images. Args: imgs (list[torch.Tensor]): A list of images. The images are augmente
mmdetection/mmdet/models/detectors/base.py:54
↓ 3 callersMethodflip
see :func:`BaseInstanceMasks.flip`
mmdetection/mmdet/core/mask/structures.py:404
↓ 3 callersFunctionfuse_module
(m)
mmdetection/tools/fuse_conv_bn.py:26
↓ 3 callersMethodget_cat_ids
Get category ids of repeat dataset by index. Args: idx (int): Index of data. Returns: list[int]: All categor
mmdetection/mmdet/datasets/dataset_wrappers.py:80
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
mmdetection/tools/robustness_eval.py:155
↓ 3 callersFunctionget_same_padding_conv2d
Chooses static padding if you have specified an image size, and dynamic padding otherwise. Static padding is necessary for ONNX exporting of
efficientnet/utils.py:97
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdetection/mmdet/models/losses/pisa_loss.py:6
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
mmdetection/mmdet/models/backbones/resnet.py:216
↓ 3 callersMethodmake_stage_plugins
Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``empirical_attention_block``, ``no
mmdetection/mmdet/models/backbones/resnet.py:454
↓ 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:50
↓ 3 callersFunctionmodel_aug_test_template
(cfg_file)
mmdetection/tests/test_data/test_models_aug_test.py:12
↓ 3 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
mmdetection/mmdet/models/backbones/resnet.py:256
↓ 3 callersFunctionparse_cfg
(cfgfile)
tool/cfg.py:6
↓ 3 callersFunctionprint_coco_results
(results)
mmdetection/tools/robustness_eval.py:8
↓ 3 callersMethodrescale
See :func:`BaseInstanceMasks.rescale`.
mmdetection/mmdet/core/mask/structures.py:189
↓ 3 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/score_hlr_sampler.py:212
↓ 3 callersFunctionscale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
mmdetection/mmdet/core/bbox/assigners/center_region_assigner.py:9
↓ 3 callersFunctionsigmoid
(x)
util_copy/utils.py:135
↓ 3 callersMethodsimple_test_rpn
Test without augmentation. Args: x (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdetection/mmdet/models/dense_heads/rpn_test_mixin.py:25
↓ 3 callersFunctionsingle_attak_loss
(output, conf_thresh, num_classes,num_anchors, only_objectness=1)
attack_utils/attackloss_yolo.py:13
↓ 3 callersFunctiontensor2imgs
Convert tensor to images. Args: tensor (torch.Tensor): Tensor that contains multiple images mean (tuple[float], optional): Mean o
mmdetection/mmdet/core/utils/misc.py:9
↓ 3 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdetection/mmdet/core/mask/structures.py:309
↓ 3 callersFunctionyolo_single_loss
(output, conf_thresh, num_classes, num_anchors, only_objectness=1)
attack_utils/attackloss.py:12
↓ 2 callersMethod__init__
(self, block, inplanes, planes, num_blocks
mmdetection/mmdet/models/backbones/detectors_resnet.py:139
↓ 2 callersMethod__init__
(self, scales=4, base_width=26, style='pytorch',
mmdetection/mmdet/models/backbones/res2net.py:298
↓ 2 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdetection/mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:20
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
mmdetection/mmdet/utils/util_mixins.py:75
↓ 2 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection/mmdet/models/roi_heads/standard_roi_head.py:135
↓ 2 callersMethod_check_model_name_is_valid
Validates model name.
efficientnet/model.py:233
↓ 2 callersMethod_crop_image_and_paste
Crop image with a given center and size, then paste the cropped image to a blank image with two centers align. This function is equiv
mmdetection/mmdet/datasets/pipelines/transforms.py:1333
↓ 2 callersMethod_filter_boxes
Check whether the center of each box is in the patch. Args: patch (list[int]): The cropped area, [left, top, right, bottom].
mmdetection/mmdet/datasets/pipelines/transforms.py:1317
↓ 2 callersMethod_get_border
Get final border for the target size. This function generates a ``final_border`` according to image's shape. The area between ``final
mmdetection/mmdet/datasets/pipelines/transforms.py:1300
↓ 2 callersFunction_get_config_directory
Find the predefined detector config directory.
mmdetection/tests/test_config.py:9
↓ 2 callersMethod_get_fine_grained_point_feats
Sample fine grained feats from each level feature map and concatenate them together.
mmdetection/mmdet/models/roi_heads/point_rend_roi_head.py:71
↓ 2 callersMethod_get_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred
mmdetection/mmdet/models/roi_heads/mask_heads/mask_point_head.py:187
↓ 2 callersMethod_init_cls_convs
Initialize classification conv layers of the head.
mmdetection/mmdet/models/dense_heads/anchor_free_head.py:92
↓ 2 callersMethod_init_reg_convs
Initialize bbox regression conv layers of the head.
mmdetection/mmdet/models/dense_heads/anchor_free_head.py:112
↓ 2 callersMethod_local_maximum
Extract local maximum pixel with given kernal. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max
mmdetection/mmdet/models/dense_heads/corner_head.py:778
↓ 2 callersMethod_mask_point_forward_test
Mask refining process with point head in testing.
mmdetection/mmdet/models/roi_heads/point_rend_roi_head.py:96
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdetection/mmdet/core/anchor/point_generator.py:9
↓ 2 callersMethod_meshgrid
Generate mesh grid of x and y. Args: x (torch.Tensor): Grids of x dimension. y (torch.Tensor): Grids of y dimension.
mmdetection/mmdet/core/anchor/anchor_generator.py:187
↓ 2 callersMethod_topk
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, w
mmdetection/mmdet/models/dense_heads/corner_head.py:809
↓ 2 callersMethodadd_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdetection/mmdet/core/bbox/assigners/assign_result.py:190
↓ 2 callersMethodalbu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmdetection/mmdet/datasets/pipelines/transforms.py:1057
↓ 2 callersFunctionall_zeros
Check if the weight(and bias) is all zero.
mmdetection/tests/test_models/test_backbones.py:29
↓ 2 callersMethodanchor_center
Get anchor centers from anchors. Args: anchors (Tensor): Anchor list with shape (N, 4), "xyxy" format. Returns:
mmdetection/mmdet/models/dense_heads/gfl_head.py:204
↓ 2 callersMethodaug_test_rpn
(self, feats, img_metas)
mmdetection/mmdet/models/dense_heads/rpn_test_mixin.py:40
↓ 2 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
mmdetection/mmdet/core/bbox/transforms.py:5
↓ 2 callersFunctionbbox_ious
(boxes1, boxes2, x1y1x2y2=True)
util_copy/utils.py:179
↓ 2 callersFunctioncollect_env
Collect the information of the running environments.
mmdetection/mmdet/utils/collect_env.py:14
↓ 2 callersFunctionconcurrent
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for conc
mmdetection/mmdet/utils/contextmanagers.py:91
↓ 2 callersMethodcrop_and_resize
see :func:`BaseInstanceMasks.crop_and_resize`
mmdetection/mmdet/core/mask/structures.py:465
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
mmdetection/tools/convert_datasets/pascal_voc.py:67
↓ 2 callersFunctionefficientnet_params
Map EfficientNet model name to parameter coefficients.
efficientnet/utils.py:138
↓ 2 callersFunctionensure_rng
Simple version of the ``kwarray.ensure_rng`` Args: rng (int | numpy.random.RandomState | None): if None, then defaults to the
mmdetection/mmdet/core/bbox/demodata.py:5
↓ 2 callersMethodevaluate
(self, runner, results)
mmdetection/mmdet/core/evaluation/eval_hooks.py:30
↓ 2 callersMethodfast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdetection/mmdet/datasets/coco.py:312
↓ 2 callersMethodformat_results
Format the results to json (standard format for COCO evaluation). Args: results (list[tuple | numpy.ndarray]): Testing results of
mmdetection/mmdet/datasets/coco.py:336
↓ 2 callersMethodforward_train
Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered and std scaled.
mmdetection/mmdet/models/detectors/rpn.py:64
↓ 2 callersMethodgen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdetection/mmdet/core/anchor/anchor_generator.py:122
↓ 2 callersFunctiongen_gaussian_target
Generate 2D gaussian heatmap. Args: heatmap (Tensor): Input heatmap, the gaussian kernel will cover on it and maintain the ma
mmdetection/mmdet/models/utils/gaussian_target.py:30
↓ 2 callersMethodgen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes. :param reg:
mmdetection/mmdet/models/dense_heads/reppoints_head.py:216
↓ 2 callersMethodgen_single_level_base_anchors
Generate base anchors of a single level. Args: base_size (int | float): Basic size of an anchor. scales (torch.Tensor
mmdetection/mmdet/core/anchor/anchor_generator.py:142
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdetection/mmdet/models/dense_heads/guided_anchor_head.py:295
↓ 2 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
mmdetection/mmdet/datasets/custom.py:115
↓ 2 callersMethodget_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified in
mmdetection/mmdet/datasets/coco.py:57
← previousnext →101–200 of 1,414, ranked by callers