MCPcopy Create free account

hub / github.com/VincentHancoder/SSGD / functions

Functions2,751 in github.com/VincentHancoder/SSGD

Methodonnx_export
(self, img, img_metas)
mmdet/models/detectors/two_stage.py:197
Methodonnx_export
Test function for exporting to ONNX, without test time augmentation. Args: img (torch.Tensor): input images. img_meta
mmdet/models/detectors/yolo.py:23
Methodonnx_export
Test function for exporting to ONNX, without test time augmentation. Args: img (torch.Tensor): input images. img_meta
mmdet/models/detectors/detr.py:50
Methodonnx_export
Test function without test time augmentation. Args: img (torch.Tensor): input images. img_metas (list[dict]): List of
mmdet/models/detectors/single_stage.py:141
Methodoptimize
(self)
optimize_anchors.py:137
Methodoptimize
(self)
optimize_anchors.py:166
Methodoptimize
(self)
tools/analysis_tools/optimize_anchors.py:137
Methodoptimize
(self)
tools/analysis_tools/optimize_anchors.py:166
Methodpaa_reassign
Fit loss to GMM distribution and separate positive, ignore, negative samples again with GMM model. Args: pos_losses (Tens
mmdet/models/dense_heads/paa_head.py:258
Methodpad
Pad masks to the given size of (h, w). Args: out_shape (tuple[int]): Target (h, w) of padded mask. pad_val (int): The
mmdet/core/mask/structures.py:52
Functionparse_xml
(args)
tools/dataset_converters/pascal_voc.py:14
Functionplot_curve
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:38
Functionplot_iou_recall
Plot IoU-Recalls curve. Args: recalls(ndarray or list): shape (k,) iou_thrs(ndarray or list): same shape as `recalls`
mmdet/core/evaluation/recall.py:175
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:150
Methodpostprocess
(self, data)
tools/deployment/mmdet_handler.py:47
Methodpredict
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:21
Methodpreprocess
(self, data)
tools/deployment/mmdet_handler.py:31
Functionpreprocess_panoptic_gt
Preprocess the ground truth for a image. Args: gt_labels (Tensor): Ground truth labels of each bbox, with shape (num_gts, ).
mmdet/models/utils/panoptic_gt_processing.py:5
Functionpy_focal_loss_with_prob
PyTorch version of `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Different from `py_sigmoid_focal_loss`, this function accepts probability
mmdet/models/losses/focal_loss.py:60
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:12
Functionquality_focal_loss
r"""Quality Focal Loss (QFL) is from `Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection <ht
mmdet/models/losses/gfocal_loss.py:12
Functionquality_focal_loss_with_prob
r"""Quality Focal Loss (QFL) is from `Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection <ht
mmdet/models/losses/gfocal_loss.py:56
Methodrandom
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdet/core/bbox/samplers/sampling_result.py:94
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:98
Methodrandom
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdet/core/mask/structures.py:920
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:527
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:16
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:29
Methodresults2json
Dump the results to a COCO style json file. There are 4 types of results: proposals, bbox predictions, mask predictions, panoptic seg
mmdet/datasets/coco_panoptic.py:452
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:382
Methodrfp_forward
Forward function for RFP.
mmdet/models/backbones/detectors_resnet.py:336
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:97
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:175
Methodrotate
See :func:`BaseInstanceMasks.rotate`.
mmdet/core/mask/structures.py:831
Methodsample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
mmdet/core/bbox/samplers/pseudo_sampler.py:24
Methodsample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
mmdet/core/bbox/samplers/mask_pseudo_sampler.py:27
Methodscore_samples
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:25
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:12
MethodsetUp
(self)
tests/test_data/test_datasets/test_custom_dataset.py:96
Methodset_epoch
Not supported in `IterationBased` runner.
mmdet/datasets/samplers/infinite_sampler.py:101
Methodset_epoch
Not supported in `IterationBased` runner.
mmdet/datasets/samplers/infinite_sampler.py:184
Methodset_epoch
(self, epoch)
mmdet/datasets/samplers/group_sampler.py:147
Methodset_epoch
(self, epoch)
mmdet/datasets/samplers/class_aware_sampler.py:134
Methodset_epoch
(self, epoch)
tests/test_utils/test_hook.py:344
Functionsetup
(app)
docs/zh_cn/conf.py:117
Methodsetup_class
(cls)
tests/test_data/test_pipelines/test_loading.py:18
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:153
Methodshear
See :func:`BaseInstanceMasks.shear`.
mmdet/core/mask/structures.py:799
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:271
Methodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (tuple): Format bbox and mask
mmdet/models/detectors/single_stage_instance_seg.py:255
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:30
Methodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (dict): The results.
mmdet/models/detectors/panoptic_two_stage_segmentor.py:208
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:113
Methodsimple_test
(self, img, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:20
Methodsimple_test
(self, x, img_metas, rescale=False)
mmdet/models/seg_heads/base_semantic_head.py:70
Methodsimple_test
Fuse the results of instance and semantic segmentations. Args: det_bboxes: The bboxes results, (K, 4). det_labels: Th
mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py:82
Methodsimple_test
Test segment without test-time aumengtation. Only the output of last decoder layers was used. Args: mask_cls_results (Te
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:164
Methodsimple_test
Test without augmentation.
mmdet/models/seg_heads/panoptic_fusion_heads/base_panoptic_fusion_head.py:40
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:343
Methodsimple_test
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:110
Methodsimple_test
Test function without test-time augmentation.
mmdet/models/dense_heads/yolact_head.py:572
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:941
Methodsimple_test
Test function without test-time augmentation. Args: feats (tuple[torch.Tensor]): Multi-level features from the up
mmdet/models/dense_heads/base_mask_head.py:73
Methodsimple_test
Test without augmentaton. Args: feats (list[Tensor]): Multi-level features from the upstream network, each is a 4
mmdet/models/dense_heads/maskformer_head.py:526
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:276
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:46
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/grid_roi_head.py:117
Methodsimple_test
Test without augmentation. Args: x (tuple[Tensor]): Features from upstream network. Each has shape (batch_size, c
mmdet/models/roi_heads/standard_roi_head.py:223
Methodsimple_test
Test without augmentation. Args: x (tuple[Tensor]): Features from upstream network. Each has shape (batch_size, c
mmdet/models/roi_heads/scnet_roi_head.py:314
Methodsimple_test
Test without augmentation.
mmdet/models/roi_heads/base_roi_head.py:89
Methodsimple_test
Test without augmentation. Args: x (tuple[Tensor]): Features from upstream network. Each has shape (batch_size, c
mmdet/models/roi_heads/htc_roi_head.py:330
Methodsimple_test
Test without augmentation. Args: x (tuple[Tensor]): Features from upstream network. Each has shape (batch_size, c
mmdet/models/roi_heads/cascade_roi_head.py:288
Methodsimple_test
Test without augmentation. Args: imgs (Tensor): A batch of images. img_metas (list[dict]): List of image information.
mmdet/models/detectors/maskformer.py:111
Methodsimple_test
Test without augmentation.
mmdet/models/detectors/two_stage.py:173
Methodsimple_test
Test function without test-time augmentation.
mmdet/models/detectors/yolact.py:97
Methodsimple_test
Test function without test-time augmentation. Args: img (torch.Tensor): Images with shape (B, C, H, W). img_metas (li
mmdet/models/detectors/single_stage_instance_seg.py:142
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:67
Methodsimple_test
Test without Augmentation.
mmdet/models/detectors/panoptic_two_stage_segmentor.py:169
Methodsimple_test
Test without augmentation.
mmdet/models/detectors/trident_faster_rcnn.py:34
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:87
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:17
Methodsimple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/point_rend_roi_head.py:155
Methodsimple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/mask_scoring_roi_head.py:49
Methodsimple_test_rpn
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:106
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:8
Methodsymbolic
(g, boxes, scores, max_output_boxes_per_class, iou_threshold, score_threshold)
mmdet/core/export/onnx_helper.py:214
Functiontest_AdaptiveAvgPool2d
()
tests/test_models/test_utils/test_brick_wrappers.py:41
Functiontest_GHMR_loss
(loss_class, input_shape)
tests/test_models/test_loss.py:127
Functiontest_accuracy
()
tests/test_metrics/test_losses.py:186
Functiontest_adaptive_avg_pool2d
()
tests/test_models/test_utils/test_brick_wrappers.py:16
Functiontest_adaptive_padding
()
tests/test_models/test_utils/test_transformer.py:12
Functiontest_adjust_brightness
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:79
Functiontest_adjust_color
()
tests/test_data/test_pipelines/test_transform/test_img_augment.py:13
Functiontest_adjust_contrast
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:124
Functiontest_albu_transform
()
tests/test_data/test_pipelines/test_transform/test_transform.py:475
Functiontest_allow_empty_images
(classes, expected_length)
tests/test_data/test_datasets/test_common.py:346
Functiontest_anchor_generator_with_tuples
()
tests/test_utils/test_anchor.py:472
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:8
Functiontest_approx_iou_assigner
()
tests/test_utils/test_assigner.py:200
Functiontest_approx_iou_assigner_with_empty_boxes
Test corner case where an network might predict no boxes.
tests/test_utils/test_assigner.py:248
← previousnext →2,301–2,400 of 2,751, ranked by callers