MCPcopy Create free account

hub / github.com/FenHua/DetDak / functions

Functions1,414 in github.com/FenHua/DetDak

Method_init_layers
Initialize layers of the head.
mmdetection/mmdet/models/dense_heads/nasfcos_head.py:20
Method_inner_forward
(x)
mmdetection/mmdet/models/backbones/detectors_resnet.py:69
Method_inner_forward
(x)
mmdetection/mmdet/models/backbones/res2net.py:107
Method_inner_forward
(x)
mmdetection/mmdet/models/backbones/resnet.py:68
Method_inner_forward
(x)
mmdetection/mmdet/models/backbones/resnet.py:263
Method_load_from_state_dict
Hack some keys of the model state dict so that can load checkpoints of previous version.
mmdetection/mmdet/models/dense_heads/anchor_free_head.py:150
Method_mask_forward_test
Mask head forward function for testing.
mmdetection/mmdet/models/roi_heads/htc_roi_head.py:184
Method_mask_forward_train
Run forward function and calculate loss for mask head and point head in training.
mmdetection/mmdet/models/roi_heads/point_rend_roi_head.py:35
Method_mask_forward_train
Run forward function and calculate loss for Mask head in training.
mmdetection/mmdet/models/roi_heads/mask_scoring_roi_head.py:30
Method_parse_ann_info
Parse bbox and mask annotation. Args: img_info (dict): Image info of an image. ann_info (list[dict]): Annotation info
mmdetection/mmdet/datasets/cityscapes.py:40
Method_point_target_single
(self, flat_proposals, valid_flags,
mmdetection/mmdet/models/dense_heads/reppoints_head.py:374
Method_run_test_method
(self, method)
mmdetection/tests/test_async.py:23
Method_sample_neg
Sample negative boxes. Args: assign_result (:obj:`AssignResult`): Assigned results num_expected (int): Number of expe
mmdetection/mmdet/core/bbox/samplers/ohem_sampler.py:78
Method_sample_neg
Sample negative samples.
mmdetection/mmdet/core/bbox/samplers/pseudo_sampler.py:19
Method_sample_neg
Sample negative samples.
mmdetection/mmdet/core/bbox/samplers/combined_sampler.py:18
Method_sample_neg
Sample negative boxes. Args: assign_result (:obj:`AssignResult`): The assigned results of boxes. num_expected (int):
mmdetection/mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py:88
Method_sample_neg
Randomly sample some negative samples.
mmdetection/mmdet/core/bbox/samplers/random_sampler.py:67
Method_sample_pos
Sample positive boxes. Args: assign_result (:obj:`AssignResult`): Assigned results num_expected (int): Number of expe
mmdetection/mmdet/core/bbox/samplers/ohem_sampler.py:50
Method_sample_pos
Sample positive samples.
mmdetection/mmdet/core/bbox/samplers/pseudo_sampler.py:15
Method_sample_pos
Sample positive samples.
mmdetection/mmdet/core/bbox/samplers/combined_sampler.py:14
Method_sample_pos
Randomly sample some positive samples.
mmdetection/mmdet/core/bbox/samplers/random_sampler.py:57
Method_sample_pos
Sample positive boxes. Args: assign_result (:obj:`AssignResult`): The assigned results of boxes. num_expected (int):
mmdetection/mmdet/core/bbox/samplers/instance_balanced_pos_sampler.py:13
Functionada_attack
(model, img, max_iter, epsilon, mask)
attack_utils/attackloss_rcnn.py:127
Functionada_attack
(model, img, max_iter, epsilon, mask)
attack_utils/attackloss_efdet.py:94
Methodafter_train_epoch
(self, runner)
mmdetection/mmdet/core/evaluation/eval_hooks.py:23
Methodafter_train_epoch
(self, runner)
mmdetection/mmdet/core/evaluation/eval_hooks.py:63
Methodafter_train_iter
Backward optimization steps for Mixed Precision Training. 1. Scale the loss by a scale factor. 2. Backward the loss to obtain the gra
mmdetection/mmdet/core/fp16/hooks.py:64
Functionanalyze_individual_category
(k, cocoDt, cocoGt, catId, iou_type)
mmdetection/tools/coco_error_analysis.py:52
Methodareas
ndarray: areas of each instance.
mmdetection/mmdet/core/mask/structures.py:109
Methodareas
See :py:attr:`BaseInstanceMasks.areas`.
mmdetection/mmdet/core/mask/structures.py:301
Methodareas
Compute areas of masks. This func is modified from `detectron2 <https://github.com/facebookresearch/detectron2/blob/ffff8acc35ea88ad1
mmdetection/mmdet/core/mask/structures.py:507
Methodassign
Assign gt to approxs. This method assign a gt bbox to each group of approxs (bboxes), each group of approxs is represent by a base ap
mmdetection/mmdet/core/bbox/assigners/approx_max_iou_assigner.py:59
Methodassign
Assign gt to bboxes. This method assigns gts to every bbox (proposal/anchor), each bbox \ will be assigned with -1, or a semi-positiv
mmdetection/mmdet/core/bbox/assigners/center_region_assigner.py:125
Methodassign
Assign gt to points. This method assign a gt bbox to every points set, each points set will be assigned with the background_label (-
mmdetection/mmdet/core/bbox/assigners/point_assigner.py:23
Methodassign
Assign boxes to either a ground truth boxe or a negative boxes.
mmdetection/mmdet/core/bbox/assigners/base_assigner.py:8
Methodasync_simple_test
Async test without augmentation.
mmdetection/mmdet/models/roi_heads/standard_roi_head.py:218
Methodasync_simple_test
Asynchronized test function.
mmdetection/mmdet/models/roi_heads/base_roi_head.py:86
Methodasync_simple_test
Async test without augmentation.
mmdetection/mmdet/models/detectors/two_stage.py:169
Methodaug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection/mmdet/models/roi_heads/standard_roi_head.py:265
Methodaug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection/mmdet/models/roi_heads/base_roi_head.py:100
Methodaug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection/mmdet/models/roi_heads/htc_roi_head.py:422
Methodaug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection/mmdet/models/roi_heads/cascade_roi_head.py:360
Methodaug_test
Test function with test time augmentation. Args: imgs (list[Tensor]): the outer list indicates test-time augmenta
mmdetection/mmdet/models/detectors/reppoints_detector.py:54
Methodaug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection/mmdet/models/detectors/two_stage.py:201
Methodaug_test
Test function with test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (list[d
mmdetection/mmdet/models/detectors/rpn.py:115
Methodaug_test
Test function with test time augmentation.
mmdetection/mmdet/models/detectors/single_stage.py:118
Methodaug_test_mask
Test for mask head with test time augmentation.
mmdetection/mmdet/models/roi_heads/point_rend_roi_head.py:162
Functionauto_fp16
Decorator to enable fp16 training automatically. This decorator is useful when you write custom modules and want to support mixed precision t
mmdetection/mmdet/core/fp16/decorators.py:9
Functionauto_fp16_wrapper
(old_func)
mmdetection/mmdet/core/fp16/decorators.py:41
Methodbboxes
torch.Tensor: concatenated positive and negative boxes
mmdetection/mmdet/core/bbox/samplers/sampling_result.py:52
Functionbboxes_iou
Calculate the Intersection of Unions (IoUs) between bounding boxes. IoU is calculated as a ratio of area of the intersection and area of the u
util_copy/utils_coco.py:123
Methodbefore_run
Preparing steps before Mixed Precision Training. 1. Make a master copy of fp32 weights for optimization. 2. Convert the main model fr
mmdetection/mmdet/core/fp16/hooks.py:39
Functionbinary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
mmdetection/mmdet/models/losses/cross_entropy_loss.py:58
Methodbuild_concat_cell
(with_input1_conv, with_input2_conv)
mmdetection/mmdet/models/necks/nasfcos_fpn.py:76
Functioncal_train_time
(log_dicts, args)
mmdetection/tools/analyze_logs.py:10
Functioncityscapes_classes
()
mmdetection/mmdet/core/evaluation/class_names.py:85
Functioncoco_classes
()
mmdetection/mmdet/core/evaluation/class_names.py:67
Functioncollater
(data)
efficientdet/dataset.py:86
Methodcollect_loss_level_single
Get the average loss in each FPN level w.r.t. each gt label. Args: cls_loss (Tensor): Classification loss of each feature map pix
mmdetection/mmdet/models/dense_heads/fsaf_head.py:336
Functioncount_parameters
(model)
efficientdet/model.py:464
Methodcrop
Crop each mask by the given bbox. Args: bbox (ndarray): Bbox in format [x1, y1, x2, y2], shape (4, ). Return:
mmdetection/mmdet/core/mask/structures.py:66
Methodcrop_and_resize
Crop and resize masks by the given bboxes. This function is mainly used in mask targets computation. It firstly align mask to bboxes
mmdetection/mmdet/core/mask/structures.py:78
Functioncross_entropy
Calculate the CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of classes.
mmdetection/mmdet/models/losses/cross_entropy_loss.py:9
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor): Basic boxes. pred_bboxes (torch.Tensor): E
mmdetection/mmdet/core/bbox/coder/legacy_delta_xywh_bbox_coder.py:57
Methoddecode
torch.Tensor: return the given ``pred_bboxes``
mmdetection/mmdet/core/bbox/coder/pseudo_bbox_coder.py:16
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor): Basic boxes. pred_bboxes (torch.Tensor): E
mmdetection/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:48
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor): Basic boxes. pred_bboxes (torch.Tensor): E
mmdetection/mmdet/core/bbox/coder/tblr_bbox_coder.py:45
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
mmdetection/mmdet/core/bbox/coder/legacy_delta_xywh_bbox_coder.py:39
Methodencode
torch.Tensor: return the given ``bboxes``
mmdetection/mmdet/core/bbox/coder/pseudo_bbox_coder.py:12
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
mmdetection/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:30
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes`` in the (top, left, bottom
mmdetection/mmdet/core/bbox/coder/tblr_bbox_coder.py:26
Methodencode
Encodes a list of BlockArgs to a list of strings. :param blocks_args: a list of BlockArgs namedtuples of block args :return:
efficientnet/utils.py:218
Methodevaluate
Evaluate the dataset. Args: results (list): Testing results of the dataset. metric (str | list[str]): Metrics to be e
mmdetection/mmdet/datasets/custom.py:263
Methodevaluate
Evaluation in LVIS protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[s
mmdetection/mmdet/datasets/lvis.py:301
Methodevaluate
Evaluation in Cityscapes/COCO protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (s
mmdetection/mmdet/datasets/cityscapes.py:194
Methodexpand
see :class:`Expand`.
mmdetection/mmdet/core/mask/structures.py:103
Functionfilter
(NOISE)
attack_utils/attackloss_efdet.py:34
Methodflip
Flip masks alone the given direction. Args: flip_direction (str): Either 'horizontal' or 'vertical'. Returns:
mmdetection/mmdet/core/mask/structures.py:41
Functionforce_fp32
Decorator to convert input arguments to fp32 in force. This decorator is useful when you write custom modules and want to support mixed preci
mmdetection/mmdet/core/fp16/decorators.py:88
Functionforce_fp32_wrapper
(old_func)
mmdetection/mmdet/core/fp16/decorators.py:121
Methodformat_results
Place holder to format result to dataset specific output.
mmdetection/mmdet/datasets/custom.py:259
Methodforward
(self, output, target=None)
util_copy/yolo_layer.py:126
Methodforward
(self, output, target)
util_copy/region_loss.py:122
Methodforward
(self, classifications, regressions, anchors, annotations, **kwargs)
efficientdet/loss.py:31
Methodforward
decode_box_outputs adapted from https://github.com/google/automl/blob/master/efficientdet/anchors.py Args: anchors: [bat
efficientdet/utils.py:8
Methodforward
(self, boxes, img)
efficientdet/utils.py:43
Methodforward
Generates multiscale anchor boxes. Args: image_size: integer number of input image size. The input image has the same d
efficientdet/utils.py:76
Methodforward
(self, inputs)
efficientdet/backbone.py:67
Methodforward
(self, x)
efficientdet/model.py:42
Methodforward
illustration of a minimal bifpn unit P7_0 -------------------------> P7_2 --------> |-------------|
efficientdet/model.py:163
Methodforward
(self, inputs)
efficientdet/model.py:361
Methodforward
(self, inputs)
efficientdet/model.py:398
Methodforward
(self, x)
efficientdet/model.py:435
Methodforward
Forward function.
mmdetection/mmdet/models/necks/pafpn.py:84
Methodforward
Forward function.
mmdetection/mmdet/models/necks/fpn.py:165
Methodforward
(self, x)
mmdetection/mmdet/models/necks/rfp.py:47
Methodforward
(self, inputs)
mmdetection/mmdet/models/necks/rfp.py:110
Methodforward
Forward function.
mmdetection/mmdet/models/necks/hrfpn.py:79
Methodforward
Forward function.
mmdetection/mmdet/models/necks/nasfcos_fpn.py:115
Methodforward
Forward function.
mmdetection/mmdet/models/necks/fpn_carafe.py:239
← previousnext →901–1,000 of 1,414, ranked by callers