MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_test
(self, imgs, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:129
Methodforward_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
Methodforward_train
(self, imgs, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:28
Methodforward_train
(self, img, img_metas, gt_bboxes,
mmdet/distillation/distillers/distill_base.py:120
Methodforward_train
(self, img, img_metas, gt_bboxes,
mmdet/distillation/distillers/distill_pgd.py:14
Methodforward_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
Methodforward_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
Methodforward_train
Forward function in training stage.
mmdet/models/dense_heads/embedding_rpn_head.py:101
Methodforward_train
Forward train function.
mmdet/models/dense_heads/cascade_rpn_head.py:713
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_train
Forward function during training.
mmdet/models/roi_heads/base_roi_head.py:67
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_train
make copies of img and gts to fit multi-branch.
mmdet/models/detectors/trident_faster_rcnn.py:60
Methodforward_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
Methodgen_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
Functiongenerate_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_bboxes
(self, cls_scores, pts_preds_init, pts_preds_refine,
mmdet/models/dense_heads/reppoints_head.py:652
Methodget_bboxes
(self, cls_scores, bbox_preds, shape_preds,
mmdet/models/dense_heads/guided_anchor_head.py:746
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_bboxes
Get proposal predict.
mmdet/models/dense_heads/cascade_rpn_head.py:503
Methodget_bboxes
(self, cls_scores, bbox_preds, img_metas,
mmdet/models/dense_heads/fovea_head.py:267
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_bboxes
(self, cls_scores, bbox_preds, img_metas,
mmdet/models/dense_heads/sabl_retina_head.py:524
Methodget_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
Methodget_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
Methodget_bboxes
(self, rois, cls_score, bbox_pred,
mmdet/models/roi_heads/bbox_heads/sabl_head.py:472
Methodget_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
Methodget_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
Methodget_cat_ids
(self, cat_names=[], sup_names=[], cat_ids=[])
mmdet/datasets/api_wrappers/coco_api.py:29
Functionget_distortions_from_file
(filename)
tools/analysis_tools/robustness_eval.py:183
Functionget_head_body_ignores
(dt_body, dt_head, gt_body, gt_head, bm_thr)
crowd_code/evaluate/JIToolkits/JI_tools.py:80
Methodget_kd_value_maps
(self, cls_scores, bbox_preds, c
mmdet/models/dense_heads/pgd_heads/autoassign_distill.py:25
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_targets
(self, sampling_results, gt_masks, rcnn_train_cfg)
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:137
Methodget_targets
(self, sampling_results, rcnn_train_cfg)
mmdet/models/roi_heads/mask_heads/grid_head.py:223
Methodget_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
Methodget_targets
(self, sampling_results, gt_bboxes, gt_labels, rcnn_train_cfg)
mmdet/models/roi_heads/bbox_heads/sabl_head.py:323
Methodgrid_points
(self, featmap_size, stride=16, device='cuda')
mmdet/core/anchor/point_generator.py:19
Methodhook_student_forward
(module, input, output)
mmdet/distillation/distillers/distill_base.py:50
Methodhook_teacher_forward
(module, input, output)
mmdet/distillation/distillers/distill_base.py:47
Functionimagenet_det_classes
()
mmdet/core/evaluation/class_names.py:16
Functionimagenet_vid_classes
()
mmdet/core/evaluation/class_names.py:57
Methodinference
(self, data, *args, **kwargs)
tools/deployment/mmdet_handler.py:42
Methodinfo
Returns a dictionary of info about the object.
mmdet/core/bbox/samplers/sampling_result.py:80
Methodinit_assigner_sampler
Initialize assigner and sampler.
mmdet/models/roi_heads/standard_roi_head.py:13
Methodinit_assigner_sampler
Initialize assigner and sampler for each stage.
mmdet/models/roi_heads/cascade_roi_head.py:99
Methodinit_bbox_head
Initialize ``bbox_head``
mmdet/models/roi_heads/standard_roi_head.py:22
Methodinit_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
Methodinit_mask_head
Initialize ``mask_head``
mmdet/models/roi_heads/standard_roi_head.py:27
Methodinit_mask_head
Initialize ``mask_head``
mmdet/models/roi_heads/scnet_roi_head.py:47
Methodinit_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
Methodinit_weights
(self)
mmdet/models/necks/ct_resnet_neck.py:63
Methodinit_weights
(self)
mmdet/models/necks/dilated_encoder.py:93
Methodinit_weights
Initialize the weights of module.
mmdet/models/necks/nasfcos_fpn.py:155
Methodinit_weights
Initialize the weights of module.
mmdet/models/necks/fpn_carafe.py:208
Methodinit_weights
(self, pretrained=None)
mmdet/models/backbones/ssd_vgg.py:104
Methodinit_weights
Initialize weights of the head.
mmdet/models/dense_heads/ddod_fcos_head.py:98
Methodinit_weights
Initialize weights of the DeformDETR head.
mmdet/models/dense_heads/deformable_detr_head.py:82
Methodinit_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
Methodinit_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
Methodinit_weights
Initialize weights of the head.
mmdet/models/dense_heads/centernet_head.py:71
Methodinit_weights
Initialize weights of the head.
mmdet/models/dense_heads/retina_sepbn_head.py:77
Methodinit_weights
(self)
mmdet/models/dense_heads/yolo_head.py:151
Methodinit_weights
(self)
mmdet/models/dense_heads/yolof_head.py:107
Methodinit_weights
(self)
mmdet/models/dense_heads/centripetal_head.py:139
Methodinit_weights
Initialize weights of the head.
mmdet/models/dense_heads/atss_iou_head.py:105
Methodinit_weights
Initialize weights of the head.
mmdet/models/dense_heads/ddod_head.py:110
Methodinit_weights
(self)
mmdet/models/dense_heads/corner_head.py:228
Methodinit_weights
Initialize weights of the transformer head.
mmdet/models/dense_heads/detr_head.py:166
← previousnext →1,601–1,700 of 2,117, ranked by callers