MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

Functionplot_num_recall
Plot Proposal_num-Recalls curve. Args: recalls(ndarray or list): shape (k,) proposal_nums(ndarray or list): same shape as `recall
mmdet/core/evaluation/recall.py:142
Methodpostprocess
(self, data)
tools/deployment/mmdet_handler.py:46
Methodpreprocess
(self, data)
tools/deployment/mmdet_handler.py:30
Functionpy_sigmoid_focal_loss
PyTorch version of `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape (N, C), C is th
mmdet/models/losses/focal_loss.py:11
Methodrandom
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdet/core/bbox/samplers/sampling_result.py:93
Methodrandom
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
mmdet/core/bbox/assigners/assign_result.py:97
Methodrandom
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdet/core/mask/structures.py:904
Methodrefine_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/roi_heads/bbox_heads/sabl_head.py:514
Methodregitster_hooks
(student_module, teacher_module)
mmdet/distillation/distillers/distill_base.py:46
Methodrescale
Rescale masks as large as possible while keeping the aspect ratio. For details can refer to `mmcv.imrescale`. Args: scale
mmdet/core/mask/structures.py:15
Methodresize
Resize masks to the given out_shape. Args: out_shape: Target (h, w) of resized mask. interpolation (str): See :func:`
mmdet/core/mask/structures.py:28
Methodreweight_loss_single
Reweight loss values at each level. Reassign loss values at each level by masking those where the pre-calculated loss is too large. T
mmdet/models/dense_heads/fsaf_head.py:381
Methodrfp_forward
Forward function for RFP.
mmdet/models/backbones/detectors_resnet.py:335
Functionroi2bbox
Convert rois to bounding box format. Args: rois (torch.Tensor): RoIs with the shape (n, 5) where the first column indicates b
mmdet/core/bbox/transforms.py:80
Methodrotate
Rotate the masks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). angle (int | float): Rotation a
mmdet/core/mask/structures.py:174
Methodrotate
See :func:`BaseInstanceMasks.rotate`.
mmdet/core/mask/structures.py:815
Methodsample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
mmdet/core/bbox/samplers/pseudo_sampler.py:23
Functionsave_json_lines
(content,fpath)
crowd_code/utils/misc_utils.py:17
Functionseesaw_ce_loss
Calculate the Seesaw CrossEntropy loss. Args: cls_score (torch.Tensor): The prediction with shape (N, C), C is the number of
mmdet/models/losses/seesaw_loss.py:11
Functionset_cpu_nms
Pure Python NMS baseline.
crowd_code/utils/nms_utils.py:4
Methodset_epoch
(self, epoch)
mmdet/datasets/samplers/group_sampler.py:147
Methodsetup_class
(cls)
tests/test_data/test_pipelines/test_loading.py:14
Methodshear
Shear the masks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). magnitude (int | float): The mag
mmdet/core/mask/structures.py:152
Methodshear
See :func:`BaseInstanceMasks.shear`.
mmdet/core/mask/structures.py:783
Methodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor or tuple): The results
mmdet/models/detectors/base.py:260
Methodshow_result
Show prediction results of the detector. Args: data (str or np.ndarray): Image filename or loaded image. result (Tens
mmdet/models/detectors/cascade_rcnn.py:29
Functionshow_result_pyplot
Visualize the detection results on the image. Args: model (nn.Module): The loaded detector. img (str or np.ndarray): Image filena
mmdet/apis/inference.py:212
Functionsigmoid_focal_loss
r"""A warpper of cuda version `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape
mmdet/models/losses/focal_loss.py:59
Methodsimple_test
(self, img, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:19
Methodsimple_test
(self, img, img_metas, **kwargs)
mmdet/distillation/distillers/distill_base.py:129
Methodsimple_test
Test function without test-time augmentation. Args: feats (tuple[torch.Tensor]): Multi-level features from the up
mmdet/models/dense_heads/base_dense_head.py:61
Methodsimple_test
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:109
Methodsimple_test
Test function without test-time augmentation.
mmdet/models/dense_heads/yolact_head.py:575
Methodsimple_test
Test function without test-time augmentation. Args: feats (tuple[torch.Tensor]): Multi-level features from the ups
mmdet/models/dense_heads/yolact_head.py:933
Methodsimple_test
Test without augmentation. Args: x (list[Tensor]): list of multi-level img features. proposal_boxes (Tensor): Decoded
mmdet/models/roi_heads/sparse_roi_head.py:226
Methodsimple_test
Test without augmentation as follows: 1. Compute prediction bbox and label per branch. 2. Merge predictions of each branch according
mmdet/models/roi_heads/trident_roi_head.py:45
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/grid_roi_head.py:116
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/standard_roi_head.py:221
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/scnet_roi_head.py:318
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/base_roi_head.py:88
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/htc_roi_head.py:327
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/cascade_roi_head.py:282
Methodsimple_test
Test without augmentation.
mmdet/models/detectors/two_stage.py:171
Methodsimple_test
Test function without test-time augmentation.
mmdet/models/detectors/yolact.py:93
Methodsimple_test
Test function without test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (lis
mmdet/models/detectors/sparse_rcnn.py:66
Methodsimple_test
Test without augmentation.
mmdet/models/detectors/trident_faster_rcnn.py:33
Methodsimple_test
Test function without test-time augmentation. Args: img (torch.Tensor): Images with shape (N, C, H, W). img_metas (li
mmdet/models/detectors/single_stage.py:86
Methodsimple_test_bboxes
Test det bboxes without test-time augmentation, can be applied in DenseHead except for ``RPNHead`` and its variants, e.g., ``GARPNHead``,
mmdet/models/dense_heads/dense_test_mixins.py:15
Methodsimple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/point_rend_roi_head.py:156
Methodsimple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/mask_scoring_roi_head.py:48
Methodsimple_test_rpn
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:105
Functionsplit_combined_polys
Split the combined 1-D polys into masks. A mask is represented as a list of polys, and a poly is represented as a 1-D array. In dataset, all
mmdet/core/mask/utils.py:6
Methodstep
Performs a single optimization step.
crowd_code/utils/SGD_bias.py:37
Methodsymbolic
(g, boxes, scores, max_output_boxes_per_class, iou_threshold, score_threshold)
mmdet/core/export/onnx_helper.py:213
Functiontest_accuracy
()
tests/test_metrics/test_losses.py:185
Functiontest_adjust_brightness
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:108
Functiontest_adjust_color
()
tests/test_data/test_pipelines/test_transform/test_img_augment.py:42
Functiontest_adjust_contrast
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:153
Functiontest_albu_transform
()
tests/test_data/test_pipelines/test_transform/test_transform.py:425
Functiontest_allow_empty_images
(classes, expected_length)
tests/test_data/test_datasets/test_common.py:337
Functiontest_anchor_generator_with_tuples
()
tests/test_utils/test_anchor.py:377
Functiontest_anchor_head_loss
Tests anchor head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_anchor_head.py:7
Functiontest_approx_iou_assigner
()
tests/test_utils/test_assigner.py:197
Functiontest_approx_iou_assigner_with_empty_boxes
Test corner case where an network might predict no boxes.
tests/test_utils/test_assigner.py:245
Functiontest_approx_iou_assigner_with_empty_boxes_and_gt
Test corner case where an network might predict no boxes and no gt.
tests/test_utils/test_assigner.py:264
Functiontest_approx_iou_assigner_with_empty_gt
Test corner case where an image might have no true detections.
tests/test_utils/test_assigner.py:222
Functiontest_atss_head_loss
Tests atss head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_atss_head.py:7
Functiontest_aug_test_size
()
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:45
Functiontest_auto_fp16
()
tests/test_runtime/test_fp16.py:51
Functiontest_autoassign_head_loss
Tests autoassign head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_autoassign_head.py:8
Functiontest_bbox_head_get_bboxes
(num_sample)
tests/test_models/test_roi_heads/test_bbox_head.py:70
Functiontest_bbox_head_loss
Tests bbox head loss when truth is empty and non-empty.
tests/test_models/test_roi_heads/test_bbox_head.py:11
Functiontest_bbox_overlaps_2d
(eps=1e-7)
tests/test_metrics/test_box_overlap.py:8
Functiontest_bitmap_mask_area
()
tests/test_utils/test_masks.py:261
Functiontest_bitmap_mask_crop
()
tests/test_utils/test_masks.py:192
Functiontest_bitmap_mask_crop_and_resize
()
tests/test_utils/test_masks.py:218
Functiontest_bitmap_mask_expand
()
tests/test_utils/test_masks.py:241
Functiontest_bitmap_mask_flip
()
tests/test_utils/test_masks.py:132
Functiontest_bitmap_mask_index
()
tests/test_utils/test_masks.py:309
Functiontest_bitmap_mask_init
()
tests/test_utils/test_masks.py:42
Functiontest_bitmap_mask_iter
()
tests/test_utils/test_masks.py:316
Functiontest_bitmap_mask_pad
()
tests/test_utils/test_masks.py:173
Functiontest_bitmap_mask_rescale
()
tests/test_utils/test_masks.py:77
Functiontest_bitmap_mask_resize
()
tests/test_utils/test_masks.py:98
Functiontest_bitmap_mask_to_ndarray
()
tests/test_utils/test_masks.py:275
Functiontest_bitmap_mask_to_tensor
()
tests/test_utils/test_masks.py:292
Functiontest_cascade_rcnn_aug_test
()
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:70
Functiontest_cast_tensor_type
()
tests/test_runtime/test_fp16.py:9
Functiontest_ce_loss
()
tests/test_metrics/test_losses.py:7
Functiontest_center_head_loss
Tests center head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_centernet_head.py:8
Functiontest_center_region_assigner
()
tests/test_utils/test_assigner.py:294
Functiontest_center_region_assigner_with_empty_bboxes
()
tests/test_utils/test_assigner.py:349
Functiontest_center_region_assigner_with_empty_gts
()
tests/test_utils/test_assigner.py:365
Functiontest_center_region_assigner_with_ignore
()
tests/test_utils/test_assigner.py:320
Functiontest_centernet_head_get_bboxes
Tests center head generating and decoding the heatmap.
tests/test_models/test_dense_heads/test_centernet_head.py:54
Functiontest_channel_mapper
Tests ChannelMapper.
tests/test_models/test_necks.py:173
Functiontest_classification_losses
(loss_class)
tests/test_models/test_loss.py:74
Functiontest_coco_annotation_ids_unique
()
tests/test_data/test_datasets/test_coco_dataset.py:50
Functiontest_color
()
tests/test_utils/test_visualization.py:14
Functiontest_config_build_detector
Test that all detection models defined in the configs can be initialized.
tests/test_runtime/test_config.py:64
← previousnext →1,801–1,900 of 2,117, ranked by callers