Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChenhongyiYang/PGD
/ functions
Functions
2,117 in github.com/ChenhongyiYang/PGD
⨍
Functions
2,117
◇
Types & classes
351
↳
Endpoints
3
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:142
Method
postprocess
(self, data)
tools/deployment/mmdet_handler.py:46
Method
preprocess
(self, data)
tools/deployment/mmdet_handler.py:30
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:11
Method
random
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdet/core/bbox/samplers/sampling_result.py:93
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:97
Method
random
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdet/core/mask/structures.py:904
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:514
Method
regitster_hooks
(student_module, teacher_module)
mmdet/distillation/distillers/distill_base.py:46
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:15
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:28
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:381
Method
rfp_forward
Forward function for RFP.
mmdet/models/backbones/detectors_resnet.py:335
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:80
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:174
Method
rotate
See :func:`BaseInstanceMasks.rotate`.
mmdet/core/mask/structures.py:815
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:23
Function
save_json_lines
(content,fpath)
crowd_code/utils/misc_utils.py:17
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:11
Function
set_cpu_nms
Pure Python NMS baseline.
crowd_code/utils/nms_utils.py:4
Method
set_epoch
(self, epoch)
mmdet/datasets/samplers/group_sampler.py:147
Method
setup_class
(cls)
tests/test_data/test_pipelines/test_loading.py:14
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:152
Method
shear
See :func:`BaseInstanceMasks.shear`.
mmdet/core/mask/structures.py:783
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:260
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:29
Function
show_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
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:59
Method
simple_test
(self, img, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:19
Method
simple_test
(self, img, img_metas, **kwargs)
mmdet/distillation/distillers/distill_base.py:129
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:61
Method
simple_test
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:109
Method
simple_test
Test function without test-time augmentation.
mmdet/models/dense_heads/yolact_head.py:575
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:933
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:226
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:45
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/grid_roi_head.py:116
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/standard_roi_head.py:221
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/scnet_roi_head.py:318
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/base_roi_head.py:88
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/htc_roi_head.py:327
Method
simple_test
Test without augmentation.
mmdet/models/roi_heads/cascade_roi_head.py:282
Method
simple_test
Test without augmentation.
mmdet/models/detectors/two_stage.py:171
Method
simple_test
Test function without test-time augmentation.
mmdet/models/detectors/yolact.py:93
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:66
Method
simple_test
Test without augmentation.
mmdet/models/detectors/trident_faster_rcnn.py:33
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:86
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:15
Method
simple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/point_rend_roi_head.py:156
Method
simple_test_mask
Obtain mask prediction without augmentation.
mmdet/models/roi_heads/mask_scoring_roi_head.py:48
Method
simple_test_rpn
Forward function in testing stage.
mmdet/models/dense_heads/embedding_rpn_head.py:105
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:6
Method
step
Performs a single optimization step.
crowd_code/utils/SGD_bias.py:37
Method
symbolic
(g, boxes, scores, max_output_boxes_per_class, iou_threshold, score_threshold)
mmdet/core/export/onnx_helper.py:213
Function
test_accuracy
()
tests/test_metrics/test_losses.py:185
Function
test_adjust_brightness
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:108
Function
test_adjust_color
()
tests/test_data/test_pipelines/test_transform/test_img_augment.py:42
Function
test_adjust_contrast
(nb_rand_test=100)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:153
Function
test_albu_transform
()
tests/test_data/test_pipelines/test_transform/test_transform.py:425
Function
test_allow_empty_images
(classes, expected_length)
tests/test_data/test_datasets/test_common.py:337
Function
test_anchor_generator_with_tuples
()
tests/test_utils/test_anchor.py:377
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:7
Function
test_approx_iou_assigner
()
tests/test_utils/test_assigner.py:197
Function
test_approx_iou_assigner_with_empty_boxes
Test corner case where an network might predict no boxes.
tests/test_utils/test_assigner.py:245
Function
test_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
Function
test_approx_iou_assigner_with_empty_gt
Test corner case where an image might have no true detections.
tests/test_utils/test_assigner.py:222
Function
test_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
Function
test_aug_test_size
()
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:45
Function
test_auto_fp16
()
tests/test_runtime/test_fp16.py:51
Function
test_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
Function
test_bbox_head_get_bboxes
(num_sample)
tests/test_models/test_roi_heads/test_bbox_head.py:70
Function
test_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
Function
test_bbox_overlaps_2d
(eps=1e-7)
tests/test_metrics/test_box_overlap.py:8
Function
test_bitmap_mask_area
()
tests/test_utils/test_masks.py:261
Function
test_bitmap_mask_crop
()
tests/test_utils/test_masks.py:192
Function
test_bitmap_mask_crop_and_resize
()
tests/test_utils/test_masks.py:218
Function
test_bitmap_mask_expand
()
tests/test_utils/test_masks.py:241
Function
test_bitmap_mask_flip
()
tests/test_utils/test_masks.py:132
Function
test_bitmap_mask_index
()
tests/test_utils/test_masks.py:309
Function
test_bitmap_mask_init
()
tests/test_utils/test_masks.py:42
Function
test_bitmap_mask_iter
()
tests/test_utils/test_masks.py:316
Function
test_bitmap_mask_pad
()
tests/test_utils/test_masks.py:173
Function
test_bitmap_mask_rescale
()
tests/test_utils/test_masks.py:77
Function
test_bitmap_mask_resize
()
tests/test_utils/test_masks.py:98
Function
test_bitmap_mask_to_ndarray
()
tests/test_utils/test_masks.py:275
Function
test_bitmap_mask_to_tensor
()
tests/test_utils/test_masks.py:292
Function
test_cascade_rcnn_aug_test
()
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:70
Function
test_cast_tensor_type
()
tests/test_runtime/test_fp16.py:9
Function
test_ce_loss
()
tests/test_metrics/test_losses.py:7
Function
test_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
Function
test_center_region_assigner
()
tests/test_utils/test_assigner.py:294
Function
test_center_region_assigner_with_empty_bboxes
()
tests/test_utils/test_assigner.py:349
Function
test_center_region_assigner_with_empty_gts
()
tests/test_utils/test_assigner.py:365
Function
test_center_region_assigner_with_ignore
()
tests/test_utils/test_assigner.py:320
Function
test_centernet_head_get_bboxes
Tests center head generating and decoding the heatmap.
tests/test_models/test_dense_heads/test_centernet_head.py:54
Function
test_channel_mapper
Tests ChannelMapper.
tests/test_models/test_necks.py:173
Function
test_classification_losses
(loss_class)
tests/test_models/test_loss.py:74
Function
test_coco_annotation_ids_unique
()
tests/test_data/test_datasets/test_coco_dataset.py:50
Function
test_color
()
tests/test_utils/test_visualization.py:14
Function
test_config_build_detector
Test that all detection models defined in the configs can be initialized.
tests/test_runtime/test_config.py:64
← previous
next →
1,801–1,900 of 2,117, ranked by callers