Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VincentHancoder/SSGD
/ functions
Functions
2,751 in github.com/VincentHancoder/SSGD
⨍
Functions
2,751
◇
Types & classes
447
↳
Endpoints
10
Method
onnx_export
(self, img, img_metas)
mmdet/models/detectors/two_stage.py:197
Method
onnx_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
Method
onnx_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
Method
onnx_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
Method
optimize
(self)
optimize_anchors.py:137
Method
optimize
(self)
optimize_anchors.py:166
Method
optimize
(self)
tools/analysis_tools/optimize_anchors.py:137
Method
optimize
(self)
tools/analysis_tools/optimize_anchors.py:166
Method
paa_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
Method
pad
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
Function
parse_xml
(args)
tools/dataset_converters/pascal_voc.py:14
Function
plot_curve
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:38
Function
plot_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
Function
plot_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
Method
postprocess
(self, data)
tools/deployment/mmdet_handler.py:47
Method
predict
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:21
Method
preprocess
(self, data)
tools/deployment/mmdet_handler.py:31
Function
preprocess_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
Function
py_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
Function
py_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
Function
quality_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
Function
quality_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
Method
random
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdet/core/bbox/samplers/sampling_result.py:94
Method
random
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
Method
random
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdet/core/mask/structures.py:920
Method
refine_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
Method
rescale
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
Method
resize
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
Method
results2json
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
Method
reweight_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
Method
rfp_forward
Forward function for RFP.
mmdet/models/backbones/detectors_resnet.py:336
Function
roi2bbox
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
Method
rotate
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
Method
rotate
See :func:`BaseInstanceMasks.rotate`.
mmdet/core/mask/structures.py:831
Method
sample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
mmdet/core/bbox/samplers/pseudo_sampler.py:24
Method
sample
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
Method
score_samples
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:25
Function
seesaw_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
Method
setUp
(self)
tests/test_data/test_datasets/test_custom_dataset.py:96
Method
set_epoch
Not supported in `IterationBased` runner.
mmdet/datasets/samplers/infinite_sampler.py:101
Method
set_epoch
Not supported in `IterationBased` runner.
mmdet/datasets/samplers/infinite_sampler.py:184
Method
set_epoch
(self, epoch)
mmdet/datasets/samplers/group_sampler.py:147
Method
set_epoch
(self, epoch)
mmdet/datasets/samplers/class_aware_sampler.py:134
Method
set_epoch
(self, epoch)
tests/test_utils/test_hook.py:344
Function
setup
(app)
docs/zh_cn/conf.py:117
Method
setup_class
(cls)
tests/test_data/test_pipelines/test_loading.py:18
Method
shear
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
Method
shear
See :func:`BaseInstanceMasks.shear`.
mmdet/core/mask/structures.py:799
Method
show_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
Method
show_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
Method
show_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
Method
show_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
Function
sigmoid_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
Method
simple_test
(self, img, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:20
Method
simple_test
(self, x, img_metas, rescale=False)
mmdet/models/seg_heads/base_semantic_head.py:70
Method
simple_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
Method
simple_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
Method
simple_test
Test without augmentation.
mmdet/models/seg_heads/panoptic_fusion_heads/base_panoptic_fusion_head.py:40
Method
simple_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
Method
simple_test
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:110
Method
simple_test
Test function without test-time augmentation.
mmdet/models/dense_heads/yolact_head.py:572
Method
simple_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
Method
simple_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
Method
simple_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
Method
simple_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
Method
simple_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
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/grid_roi_head.py:117
Method
simple_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
Method
simple_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
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/base_roi_head.py:89
Method
simple_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
Method
simple_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
Method
simple_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
Method
simple_test
Test without augmentation.
mmdet/models/detectors/two_stage.py:173
Method
simple_test
Test function without test-time augmentation.
mmdet/models/detectors/yolact.py:97
Method
simple_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
Method
simple_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
Method
simple_test
Test without Augmentation.
mmdet/models/detectors/panoptic_two_stage_segmentor.py:169
Method
simple_test
Test without augmentation.
mmdet/models/detectors/trident_faster_rcnn.py:34
Method
simple_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
Method
simple_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
Method
simple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/point_rend_roi_head.py:155
Method
simple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/mask_scoring_roi_head.py:49
Method
simple_test_rpn
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:106
Function
split_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
Method
symbolic
(g, boxes, scores, max_output_boxes_per_class, iou_threshold, score_threshold)
mmdet/core/export/onnx_helper.py:214
Function
test_AdaptiveAvgPool2d
()
tests/test_models/test_utils/test_brick_wrappers.py:41
Function
test_GHMR_loss
(loss_class, input_shape)
tests/test_models/test_loss.py:127
Function
test_accuracy
()
tests/test_metrics/test_losses.py:186
Function
test_adaptive_avg_pool2d
()
tests/test_models/test_utils/test_brick_wrappers.py:16
Function
test_adaptive_padding
()
tests/test_models/test_utils/test_transformer.py:12
Function
test_adjust_brightness
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:79
Function
test_adjust_color
()
tests/test_data/test_pipelines/test_transform/test_img_augment.py:13
Function
test_adjust_contrast
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:124
Function
test_albu_transform
()
tests/test_data/test_pipelines/test_transform/test_transform.py:475
Function
test_allow_empty_images
(classes, expected_length)
tests/test_data/test_datasets/test_common.py:346
Function
test_anchor_generator_with_tuples
()
tests/test_utils/test_anchor.py:472
Function
test_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
Function
test_approx_iou_assigner
()
tests/test_utils/test_assigner.py:200
Function
test_approx_iou_assigner_with_empty_boxes
Test corner case where an network might predict no boxes.
tests/test_utils/test_assigner.py:248
← previous
next →
2,301–2,400 of 2,751, ranked by callers