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
Method
forward_single
Forward feature of a single level. Args: x (Tensor): Feature of a single level. lvl_ind (int): Level index of current
mmdet/models/dense_heads/corner_head.py:278
Method
forward_single
Forward function for a single feature level. Args: x (Tensor): Input feature from backbone's single stage, shape
mmdet/models/dense_heads/detr_head.py:225
Method
forward_single_onnx
Forward function for a single feature level with ONNX exportation. Args: x (Tensor): Input feature from backbone's single stage,
mmdet/models/dense_heads/detr_head.py:734
Method
forward_test
(self, imgs, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:129
Method
forward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
mmdet/models/detectors/fast_rcnn.py:26
Method
forward_train
(self, imgs, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:28
Method
forward_train
(self, img, img_metas, gt_bboxes,
mmdet/distillation/distillers/distill_base.py:120
Method
forward_train
(self, img, img_metas, gt_bboxes,
mmdet/distillation/distillers/distill_pgd.py:14
Method
forward_train
Args: x (list[Tensor]): Features from FPN. img_metas (list[dict]): Meta information of each image, e.g.,
mmdet/models/dense_heads/ld_head.py:142
Method
forward_train
Args: x (list[Tensor]): Features from FPN. img_metas (list[dict]): Meta information of each image, e.g.,
mmdet/models/dense_heads/base_dense_head.py:22
Method
forward_train
Forward function in training stage.
mmdet/models/dense_heads/embedding_rpn_head.py:101
Method
forward_train
Forward train function.
mmdet/models/dense_heads/cascade_rpn_head.py:713
Method
forward_train
Forward function for training mode. Args: x (list[Tensor]): Features from backbone. img_metas (list[dict]): Meta info
mmdet/models/dense_heads/detr_head.py:546
Method
forward_train
Forward function for training. Args: x (list[Tensor]): List of multi-level img features. img_metas (list[dict]): List
mmdet/models/roi_heads/pisa_roi_head.py:12
Method
forward_train
Forward function in training stage. Args: x (list[Tensor]): list of multi-level img features. proposals (Tensor): Dec
mmdet/models/roi_heads/sparse_roi_head.py:141
Method
forward_train
Args: x (list[Tensor]): list of multi-level img features. img_metas (list[dict]): list of image info dict where each
mmdet/models/roi_heads/standard_roi_head.py:53
Method
forward_train
Args: x (list[Tensor]): list of multi-level img features. img_metas (list[dict]): list of image info dict where each
mmdet/models/roi_heads/scnet_roi_head.py:203
Method
forward_train
Forward function during training.
mmdet/models/roi_heads/base_roi_head.py:67
Method
forward_train
Forward function for training. Args: x (list[Tensor]): list of multi-level img features. img_metas (list[dict]): lis
mmdet/models/roi_heads/dynamic_roi_head.py:24
Method
forward_train
Args: x (list[Tensor]): list of multi-level img features. img_metas (list[dict]): list of image info dict where each
mmdet/models/roi_heads/htc_roi_head.py:202
Method
forward_train
Args: x (list[Tensor]): list of multi-level img features. img_metas (list[dict]): list of image info dict where each
mmdet/models/roi_heads/cascade_roi_head.py:190
Method
forward_train
Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered and std scaled.
mmdet/models/detectors/kd_one_stage.py:43
Method
forward_train
Args: img (Tensor): of shape (N, C, H, W) encoding input images. Typically these should be mean centered and std
mmdet/models/detectors/two_stage.py:89
Method
forward_train
Args: img (Tensor): of shape (N, C, H, W) encoding input images. Typically these should be mean centered and std
mmdet/models/detectors/yolact.py:34
Method
forward_train
Forward function of SparseR-CNN in train stage. Args: img (Tensor): of shape (N, C, H, W) encoding input images.
mmdet/models/detectors/sparse_rcnn.py:14
Method
forward_train
make copies of img and gts to fit multi-branch.
mmdet/models/detectors/trident_faster_rcnn.py:60
Method
forward_train
Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered and std scaled.
mmdet/models/detectors/single_stage.py:56
Method
gen_single_level_base_anchors
Generate base anchors of a single level. Note: The width/height of anchors are minused by 1 when calculating \ th
mmdet/core/anchor/anchor_generator.py:633
Function
generate_inputs_and_wrap_model
Prepare sample input and wrap model for ONNX export. The ONNX export API only accept args, and all inputs should be torch.Tensor or correspon
mmdet/core/export/pytorch2onnx.py:9
Method
get_ann_info
Get annotation from XML file by index. Args: idx (int): Index of data. Returns: dict: Annotation info of spe
mmdet/datasets/xml_style.py:82
Method
get_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified in
mmdet/datasets/crowdhuman.py:53
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet/models/dense_heads/ddod_fcos_head.py:422
Method
get_bboxes
Transform network outputs for a batch into bbox predictions. Args: all_cls_scores (Tensor): Classification score of all
mmdet/models/dense_heads/deformable_detr_head.py:268
Method
get_bboxes
(self, cls_scores, pts_preds_init, pts_preds_refine,
mmdet/models/dense_heads/reppoints_head.py:652
Method
get_bboxes
(self, cls_scores, bbox_preds, shape_preds,
mmdet/models/dense_heads/guided_anchor_head.py:746
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: center_heatmap_preds (list[Tensor]): center predict heatmaps fo
mmdet/models/dense_heads/centernet_head.py:250
Method
get_bboxes
Transform network outputs for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box iou-aware scores for each scale
mmdet/models/dense_heads/vfnet_head.py:463
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: pred_maps (list[Tensor]): Raw predictions for a batch of images
mmdet/models/dense_heads/yolo_head.py:190
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each level in the
mmdet/models/dense_heads/anchor_head.py:492
Method
get_bboxes
Similiar to func:``AnchorHead.get_bboxes``, but additionally processes coeff_preds. Args: cls_scores (list[Tensor]): Box
mmdet/models/dense_heads/yolact_head.py:295
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet/models/dense_heads/anchor_free_head.py:251
Method
get_bboxes
Get proposal predict.
mmdet/models/dense_heads/cascade_rpn_head.py:503
Method
get_bboxes
(self, cls_scores, bbox_preds, img_metas,
mmdet/models/dense_heads/fovea_head.py:267
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet/models/dense_heads/atss_head.py:312
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: tl_heats (list[Tensor]): Top-left corner heatmaps for each leve
mmdet/models/dense_heads/centripetal_head.py:363
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet/models/dense_heads/atss_iou_head.py:354
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet/models/dense_heads/fcos_head.py:288
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet/models/dense_heads/ddod_head.py:399
Method
get_bboxes
(self, cls_scores, bbox_preds, img_metas,
mmdet/models/dense_heads/sabl_retina_head.py:524
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: tl_heats (list[Tensor]): Top-left corner heatmaps for each leve
mmdet/models/dense_heads/corner_head.py:651
Method
get_bboxes
Transform network output for a batch into bbox predictions. Args: rois (Tensor): Boxes to be transformed. Has shape (num_boxes, 5
mmdet/models/roi_heads/bbox_heads/bbox_head.py:309
Method
get_bboxes
(self, rois, cls_score, bbox_pred,
mmdet/models/roi_heads/bbox_heads/sabl_head.py:472
Method
get_cat_ids
Get category ids in XML file by index. Args: idx (int): Index of data. Returns: list[int]: All categories in
mmdet/datasets/xml_style.py:148
Method
get_cat_ids
Get category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the image o
mmdet/datasets/custom.py:131
Method
get_cat_ids
(self, cat_names=[], sup_names=[], cat_ids=[])
mmdet/datasets/api_wrappers/coco_api.py:29
Function
get_distortions_from_file
(filename)
tools/analysis_tools/robustness_eval.py:183
Function
get_head_body_ignores
(dt_body, dt_head, gt_body, gt_head, bm_thr)
crowd_code/evaluate/JIToolkits/JI_tools.py:80
Method
get_kd_value_maps
(self, cls_scores, bbox_preds, c
mmdet/models/dense_heads/pgd_heads/autoassign_distill.py:25
Method
get_neg_loss_single
Calculate the negative loss of all points in feature map. Args: cls_score (Tensor): All category scores for each point on
mmdet/models/dense_heads/autoassign_head.py:277
Method
get_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. dtype (t
mmdet/models/dense_heads/anchor_free_head.py:306
Method
get_pos_loss
Calculate loss of all potential positive samples obtained from first match process. Args: anchors (list[Tensor]): Anchors
mmdet/models/dense_heads/paa_head.py:201
Method
get_pos_loss_single
Calculate the positive loss of all points in gt_bboxes. Args: cls_score (Tensor): All category scores for each point on
mmdet/models/dense_heads/autoassign_head.py:233
Method
get_targets
Compute regression, classification and centerness targets for points in multiple images. Args: points (list[Tensor]): Poi
mmdet/models/dense_heads/anchor_free_head.py:274
Method
get_targets
Get training targets of MaskPointHead for all images. Args: rois (Tensor): Region of Interest, shape (num_rois, 5). r
mmdet/models/roi_heads/mask_heads/mask_point_head.py:106
Method
get_targets
(self, sampling_results, gt_masks, rcnn_train_cfg)
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:137
Method
get_targets
(self, sampling_results, rcnn_train_cfg)
mmdet/models/roi_heads/mask_heads/grid_head.py:223
Method
get_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Almost the same as the implementation in bbo
mmdet/models/roi_heads/bbox_heads/bbox_head.py:182
Method
get_targets
(self, sampling_results, gt_bboxes, gt_labels, rcnn_train_cfg)
mmdet/models/roi_heads/bbox_heads/sabl_head.py:323
Method
grid_points
(self, featmap_size, stride=16, device='cuda')
mmdet/core/anchor/point_generator.py:19
Method
hook_student_forward
(module, input, output)
mmdet/distillation/distillers/distill_base.py:50
Method
hook_teacher_forward
(module, input, output)
mmdet/distillation/distillers/distill_base.py:47
Function
imagenet_det_classes
()
mmdet/core/evaluation/class_names.py:16
Function
imagenet_vid_classes
()
mmdet/core/evaluation/class_names.py:57
Method
inference
(self, data, *args, **kwargs)
tools/deployment/mmdet_handler.py:42
Method
info
Returns a dictionary of info about the object.
mmdet/core/bbox/samplers/sampling_result.py:80
Method
init_assigner_sampler
Initialize assigner and sampler.
mmdet/models/roi_heads/standard_roi_head.py:13
Method
init_assigner_sampler
Initialize assigner and sampler for each stage.
mmdet/models/roi_heads/cascade_roi_head.py:99
Method
init_bbox_head
Initialize ``bbox_head``
mmdet/models/roi_heads/standard_roi_head.py:22
Method
init_bbox_head
Initialize box head and box roi extractor. Args: bbox_roi_extractor (dict): Config of box roi extractor. bbox_head (d
mmdet/models/roi_heads/cascade_roi_head.py:51
Method
init_mask_head
Initialize ``mask_head``
mmdet/models/roi_heads/standard_roi_head.py:27
Method
init_mask_head
Initialize ``mask_head``
mmdet/models/roi_heads/scnet_roi_head.py:47
Method
init_mask_head
Initialize mask head and mask roi extractor. Args: mask_roi_extractor (dict): Config of mask roi extractor. mask_head
mmdet/models/roi_heads/cascade_roi_head.py:71
Method
init_weights
(self)
mmdet/models/necks/ct_resnet_neck.py:63
Method
init_weights
(self)
mmdet/models/necks/dilated_encoder.py:93
Method
init_weights
Initialize the weights of module.
mmdet/models/necks/nasfcos_fpn.py:155
Method
init_weights
Initialize the weights of module.
mmdet/models/necks/fpn_carafe.py:208
Method
init_weights
(self, pretrained=None)
mmdet/models/backbones/ssd_vgg.py:104
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/ddod_fcos_head.py:98
Method
init_weights
Initialize weights of the DeformDETR head.
mmdet/models/dense_heads/deformable_detr_head.py:82
Method
init_weights
Initialize weights of the head. In particular, we have special initialization for classified conv's and regression conv's bias
mmdet/models/dense_heads/autoassign_head.py:164
Method
init_weights
Initialize the init_proposal_bboxes as normalized. [c_x, c_y, w, h], and we initialize it to the size of the entire image.
mmdet/models/dense_heads/embedding_rpn_head.py:43
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/centernet_head.py:71
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/retina_sepbn_head.py:77
Method
init_weights
(self)
mmdet/models/dense_heads/yolo_head.py:151
Method
init_weights
(self)
mmdet/models/dense_heads/yolof_head.py:107
Method
init_weights
(self)
mmdet/models/dense_heads/centripetal_head.py:139
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/atss_iou_head.py:105
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/ddod_head.py:110
Method
init_weights
(self)
mmdet/models/dense_heads/corner_head.py:228
Method
init_weights
Initialize weights of the transformer head.
mmdet/models/dense_heads/detr_head.py:166
← previous
next →
1,601–1,700 of 2,117, ranked by callers