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
test_polygon_to_tensor
()
tests/test_utils/test_masks.py:620
Function
test_random_assign_result
Test random instantiation of assign result to catch corner cases.
tests/test_utils/test_assigner.py:280
Function
test_random_center_crop_pad
()
tests/test_data/test_pipelines/test_transform/test_transform.py:449
Function
test_random_crop
()
tests/test_data/test_pipelines/test_transform/test_transform.py:183
Function
test_random_sample_result
()
tests/test_data/test_pipelines/test_sampler.py:235
Function
test_random_sampler
()
tests/test_data/test_pipelines/test_sampler.py:8
Function
test_random_sampler_empty_gt
()
tests/test_data/test_pipelines/test_sampler.py:44
Function
test_random_sampler_empty_pred
()
tests/test_data/test_pipelines/test_sampler.py:70
Function
test_random_shift
()
tests/test_data/test_pipelines/test_transform/test_transform.py:755
Function
test_refine_boxes
Mirrors the doctest in ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` but checks for multiple values of n_roi / n_img.
tests/test_models/test_roi_heads/test_bbox_head.py:88
Function
test_regnet_backbone
(arch_name, arch, out_channels)
tests/test_models/test_backbones/test_regnet.py:35
Function
test_regression_losses
(loss_class)
tests/test_models/test_loss.py:43
Function
test_renext_bottleneck
()
tests/test_models/test_backbones/test_renext.py:9
Function
test_replace_ImageToTensor
()
tests/test_data/test_utils.py:6
Function
test_res2net_backbone
()
tests/test_models/test_backbones/test_res2net.py:43
Function
test_res2net_bottle2neck
()
tests/test_models/test_backbones/test_res2net.py:9
Function
test_resize
()
tests/test_data/test_pipelines/test_transform/test_transform.py:14
Function
test_resnest_backbone
()
tests/test_models/test_backbones/test_resnest.py:26
Function
test_resnest_bottleneck
()
tests/test_models/test_backbones/test_resnest.py:8
Function
test_resnest_stem
()
tests/test_models/test_backbones/test_resnet.py:306
Function
test_resnet_backbone
Test resnet backbone.
tests/test_models/test_backbones/test_resnet.py:354
Function
test_resnet_basic_block
()
tests/test_models/test_backbones/test_resnet.py:14
Function
test_resnet_bottleneck
()
tests/test_models/test_backbones/test_resnet.py:63
Function
test_resnet_res_layer
()
tests/test_models/test_backbones/test_resnet.py:250
Function
test_resnext_backbone
()
tests/test_models/test_backbones/test_renext.py:58
Function
test_retina_anchor
()
tests/test_utils/test_anchor.py:455
Function
test_retina_head_forward
Test RetinaNet Head forward in torch and onnxruntime env.
tests/test_onnx/test_head.py:63
Function
test_retina_head_forward_single
Test RetinaNet Head single forward in torch and onnxruntime env.
tests/test_onnx/test_head.py:54
Function
test_retinanet_head_get_bboxes
Test RetinaNet Head _get_bboxes() in torch and onnxruntime env.
tests/test_onnx/test_head.py:76
Function
test_rotate
()
tests/test_data/test_pipelines/test_transform/test_rotate.py:65
Function
test_rpn_forward
()
tests/test_models/test_forward.py:106
Function
test_sabl_bbox_head_loss
Tests bbox head loss when truth is empty and non-empty.
tests/test_models/test_roi_heads/test_sabl_bbox_head.py:9
Function
test_sabl_retina_head_loss
Tests anchor head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_sabl_retina_head.py:7
Function
test_scnet_aug_test
()
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:91
Function
test_score_hlr_sampler_empty_pred
()
tests/test_data/test_pipelines/test_sampler.py:249
Function
test_se_layer
()
tests/test_models/test_utils/test_se_layer.py:7
Function
test_seesaw_loss
()
tests/test_metrics/test_losses.py:112
Function
test_shear
()
tests/test_data/test_pipelines/test_transform/test_shear.py:67
Method
test_simple_inference
(self)
tests/test_runtime/test_async.py:65
Function
test_simplied_basic_block
()
tests/test_models/test_backbones/test_resnet.py:197
Function
test_sine_positional_encoding
(num_feats=16, batch_size=2)
tests/test_models/test_utils/test_position_encoding.py:8
Function
test_single_stage_forward_cpu
(cfg_file)
tests/test_models/test_forward.py:306
Function
test_single_stage_forward_gpu
(cfg_file)
tests/test_models/test_forward.py:148
Function
test_sparse_prior
()
tests/test_utils/test_anchor.py:105
Function
test_sparse_rcnn_forward
()
tests/test_models/test_forward.py:45
Function
test_ssd_anchor_generator
()
tests/test_utils/test_anchor.py:307
Function
test_ssd_head_forward
Test SSD Head forward in torch and onnxruntime env.
tests/test_onnx/test_head.py:343
Function
test_ssd_head_get_bboxes
Test SSD Head get_bboxes in torch and onnxruntime env.
tests/test_onnx/test_head.py:356
Function
test_ssd_neck
()
tests/test_models/test_necks.py:311
Function
test_standard_anchor_generator
()
tests/test_utils/test_anchor.py:271
Function
test_standard_points_generator
()
tests/test_utils/test_anchor.py:11
Function
test_strides
()
tests/test_utils/test_anchor.py:286
Function
test_tblr_bbox_coder
()
tests/test_utils/test_coder.py:77
Function
test_transformer
()
tests/test_models/test_utils/test_transformer.py:75
Function
test_translate
()
tests/test_data/test_pipelines/test_transform/test_translate.py:148
Function
test_trident_resnet_backbone
()
tests/test_models/test_backbones/test_trident_resnet.py:155
Function
test_trident_resnet_bottleneck
()
tests/test_models/test_backbones/test_trident_resnet.py:8
Function
test_two_stage_forward
(cfg_file)
tests/test_models/test_forward.py:242
Function
test_uniform_assigner
()
tests/test_utils/test_assigner.py:428
Function
test_uniform_assigner_with_empty_boxes
Test corner case where a network might predict no boxes.
tests/test_utils/test_assigner.py:478
Function
test_uniform_assigner_with_empty_gt
Test corner case where an image might have no true detections.
tests/test_utils/test_assigner.py:456
Function
test_varifocal_loss
()
tests/test_metrics/test_losses.py:34
Function
test_version_check
()
tests/test_utils/test_version.py:4
Function
test_vfnet_head_loss
Tests vfnet head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_vfnet_head.py:7
Function
test_xml_dataset
()
tests/test_data/test_datasets/test_xml_dataset.py:6
Function
test_yolact_forward
()
tests/test_models/test_forward.py:418
Function
test_yolact_head_loss
Tests yolact head losses when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_yolact_head.py:7
Function
test_yolo_anchor_generator
()
tests/test_utils/test_anchor.py:412
Function
test_yolo_bbox_coder
()
tests/test_utils/test_coder.py:8
Function
test_yolo_normal
()
tests/test_onnx/test_neck.py:160
Function
test_yolof_head_loss
Tests yolof head loss when truth is empty and non-empty.
tests/test_models/test_dense_heads/test_yolof_head.py:7
Function
test_yolov3_head_forward
Test Yolov3 head forward() in torch and ort env.
tests/test_onnx/test_head.py:136
Function
test_yolov3_head_get_bboxes
Test yolov3 head get_bboxes() in torch and ort env.
tests/test_onnx/test_head.py:148
Function
test_yolov3_neck
()
tests/test_models/test_necks.py:262
Method
to_ndarray
Convert masks to the format of ndarray. Return: ndarray: Converted masks in the format of ndarray.
mmdet/core/mask/structures.py:112
Method
to_tensor
Convert masks to the format of Tensor. Args: dtype (str): Dtype of converted mask. device (torch.device): Device of c
mmdet/core/mask/structures.py:120
Function
tpfp_default
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5).
mmdet/core/evaluation/mean_ap.py:153
Function
tpfp_imagenet
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5).
mmdet/core/evaluation/mean_ap.py:59
Method
train
(self, mode=True)
mmdet/models/backbones/darknet.py:170
Method
train
Convert the model into training mode while keep normalization layer freezed.
mmdet/models/backbones/resnet.py:647
Method
train
(self, mode=True)
mmdet/models/roi_heads/shared_heads/res_layer.py:74
Method
train
Set the same train mode for teacher and student model.
mmdet/models/detectors/kd_one_stage.py:81
Method
train_step
(self, data, optimizer)
mmdet/core/export/model_wrappers.py:34
Method
train_step
The iteration step during training. This method defines an iteration step during training, except for the back propagation and optimi
mmdet/models/detectors/base.py:210
Method
train_step
(self, data_batch, optimizer, **kwargs)
tests/test_runtime/test_eval_hook.py:54
Method
train_step
(self, x, optimizer, **kwargs)
tests/test_data/test_datasets/test_common.py:320
Method
translate
Translate the masks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). offset (int | float): The of
mmdet/core/mask/structures.py:132
Method
translate
Translate the PolygonMasks. Example: >>> self = PolygonMasks.random(dtype=np.int) >>> out_shape = (self.height, self.
mmdet/core/mask/structures.py:749
Method
val_step
(self, data, optimizer)
mmdet/core/export/model_wrappers.py:31
Method
val_step
The iteration step during validation. This method shares the same signature as :func:`train_step`, but used during val epochs. Note t
mmdet/models/detectors/base.py:245
Method
val_step
(self, x, optimizer, **kwargs)
tests/test_data/test_datasets/test_common.py:323
Method
valid_flags
Generate valid flags of points of multiple feature levels. Args: featmap_sizes (list(tuple)): List of feature map sizes in
mmdet/core/anchor/point_generator.py:155
Method
valid_flags
Generate valid flags of anchors in multiple feature levels. Args: featmap_sizes (list(tuple)): List of feature map sizes in
mmdet/core/anchor/anchor_generator.py:382
Function
weighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred, ta
mmdet/models/losses/utils.py:57
Function
wider_face_classes
()
mmdet/core/evaluation/class_names.py:4
Method
with_bbox
bool: whether the detector has a bbox head
mmdet/distillation/distillers/distill_base.py:89
Method
with_bbox
bool: whether the RoI head contains a `bbox_head`
mmdet/models/roi_heads/base_roi_head.py:37
Method
with_bbox
bool: whether the detector has a bbox head
mmdet/models/detectors/base.py:33
Method
with_feat_relay
bool: whether the head has feature relay head
mmdet/models/roi_heads/scnet_roi_head.py:60
Method
with_glbctx
bool: whether the head has global context head
mmdet/models/roi_heads/scnet_roi_head.py:66
← previous
next →
2,001–2,100 of 2,117, ranked by callers