MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

↓ 1 callersFunctioncompute_matching
(dt_boxes, gt_boxes, bm_thr)
crowd_code/evaluate/JIToolkits/JI_tools.py:5
↓ 1 callersFunctionconvert
Convert keys in checkpoints. There can be some breaking changes during the development of mmdetection, and this tool is used for upgrading ch
tools/model_converters/upgrade_model_version.py:114
↓ 1 callersFunctionconvert
(in_file, out_file)
tools/model_converters/upgrade_ssd_version.py:21
↓ 1 callersFunctionconvert
Convert keys in detectron pretrained ResNet models to pytorch style.
tools/model_converters/detectron2pytorch.py:34
↓ 1 callersFunctionconvert
Convert keys in pycls pretrained RegNet models to mmdet style.
tools/model_converters/regnet2mmdet.py:54
↓ 1 callersFunctionconvert_head
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:15
↓ 1 callersFunctionconvert_reslayer
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:22
↓ 1 callersFunctionconvert_stem
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:7
↓ 1 callersFunctioncross_entropy
Calculate the CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of classes.
mmdet/models/losses/cross_entropy_loss.py:9
↓ 1 callersFunctioncvt_annotations
(image_infos, out_json_name)
tools/dataset_converters/cityscapes.py:84
↓ 1 callersFunctioncvt_to_coco_json
(annotations)
tools/dataset_converters/pascal_voc.py:95
↓ 1 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor): Basic boxes, e.g. anchors. pred_bboxes (to
mmdet/core/bbox/coder/yolo_bbox_coder.py:61
↓ 1 callersFunctiondecode_annotations
(records, dataset_path)
crowd_code/create_crowd_anno.py:26
↓ 1 callersMethoddecode_heatmap
Transform outputs into detections raw bbox prediction. Args: center_heatmap_pred (Tensor): center predict heatmap,
mmdet/models/dense_heads/centernet_head.py:315
↓ 1 callersFunctiondelta2bbox
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to s
mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:144
↓ 1 callersFunctiondiou_loss
r"""`Implementation of Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression, https://arxiv.org/abs/1911.08287`_. Code is
mmdet/models/losses/iou_loss.py:107
↓ 1 callersFunctiondistribution_focal_loss
r"""Distribution Focal Loss (DFL) is from `Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
mmdet/models/losses/gfocal_loss.py:56
↓ 1 callersFunctiondummy_raw_polygon_masks
Args: size (tuple): expected shape of dummy masks, (N, H, W) Return: list[list[ndarray]]: dummy mask
tests/test_utils/test_misc.py:10
↓ 1 callersMethodeval_AP
:meth: evaluate by average precision
crowd_code/evaluate/APMRToolkits/database.py:101
↓ 1 callersMethodeval_MR
evaluate by Caltech-style log-average miss rate ref: str - "CALTECH_-2"/"CALTECH_-4"
crowd_code/evaluate/APMRToolkits/database.py:53
↓ 1 callersMethodevaluate
Evaluate the dataset. Args: results (list): Testing results of the dataset. metric (str | list[str]): Metrics to be e
mmdet/datasets/custom.py:273
↓ 1 callersMethodevaluate_and_show
Evaluate and show results. Args: dataset (Dataset): A PyTorch dataset. results (list): Det results from test results
tools/analysis_tools/analyze_results.py:89
↓ 1 callersFunctionevaluation_all
(path, target_key)
crowd_code/evaluate/compute_JI.py:17
↓ 1 callersMethodexpand
TODO: Add expand for polygon
mmdet/core/mask/structures.py:704
↓ 1 callersMethodextract_feat
Extract features from images.
mmdet/models/detectors/base.py:45
↓ 1 callersMethodfast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdet/datasets/crowdhuman.py:296
↓ 1 callersFunctionfast_nms
Fast NMS in `YOLACT <https://arxiv.org/abs/1904.02689>`_. Fast NMS allows already-removed detections to suppress other detections so that eve
mmdet/core/post_processing/bbox_nms.py:97
↓ 1 callersMethodfit
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:17
↓ 1 callersMethodformat_results
Format the results to json (standard format for COCO evaluation). Args: results (list[tuple | numpy.ndarray]): Testing results of
mmdet/datasets/crowdhuman.py:320
↓ 1 callersMethodformat_results
Format the results to txt (standard format for Cityscapes evaluation). Args: results (list): Testing results of the datas
mmdet/datasets/cityscapes.py:173
↓ 1 callersMethodforward
(self, feats)
mmdet/models/dense_heads/guided_anchor_head.py:236
↓ 1 callersMethodforward
Forward feature from the upstream network to get prototypes and linearly combine the prototypes, using masks coefficients, into instan
mmdet/models/dense_heads/yolact_head.py:665
↓ 1 callersMethodforward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/gfl_head.py:165
↓ 1 callersMethodforward
(self, feats)
mmdet/models/dense_heads/sabl_retina_head.py:196
↓ 1 callersMethodforward
Forward function. Args: feats (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdet/models/dense_heads/detr_head.py:201
↓ 1 callersMethodforward_dummy
Dummy forward function.
mmdet/models/detectors/rpn.py:53
↓ 1 callersMethodforward_onnx
Forward function for exporting to ONNX. Over-write `forward` because: `masks` is directly created with zero (valid position tag) and
mmdet/models/dense_heads/detr_head.py:706
↓ 1 callersMethodforward_test
(self, imgs, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:176
↓ 1 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
mmdet/models/detectors/base.py:111
↓ 1 callersMethodforward_train
Args: img (list[Tensor]): List of tensors of shape (1, C, H, W). Typically these should be mean centered and std
mmdet/models/detectors/base.py:62
↓ 1 callersMethodfuse
(self, fuse_dict)
mmdet/models/necks/fpg.py:322
↓ 1 callersMethodga_loc_targets
Compute location targets for guided anchoring. Each feature map is divided into positive, negative and ignore regions. - positive reg
mmdet/models/dense_heads/guided_anchor_head.py:374
↓ 1 callersMethodga_shape_targets
Compute guided anchoring targets. Args: approx_list (list[list]): Multi level approxs of each image. inside_flag_list
mmdet/models/dense_heads/guided_anchor_head.py:539
↓ 1 callersFunctiongather
(results)
crowd_code/evaluate/compute_JI.py:83
↓ 1 callersFunctiongaussian2D
Generate 2D gaussian kernel. Args: radius (int): Radius of gaussian kernel. sigma (int): Sigma of gaussian function. Default: 1.
mmdet/models/utils/gaussian_target.py:7
↓ 1 callersFunctiongaussian_focal_loss
`Focal Loss <https://arxiv.org/abs/1708.02002>`_ for targets in gaussian distribution. Args: pred (torch.Tensor): The prediction.
mmdet/models/losses/gaussian_focal_loss.py:10
↓ 1 callersMethodgen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdet/core/anchor/anchor_generator.py:546
↓ 1 callersMethodgen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdet/core/anchor/anchor_generator.py:733
↓ 1 callersMethodgen_encoder_output_proposals
Generate proposals from encoded memory. Args: memory (Tensor) : The output of encoder, has shape (bs, num_key, em
mmdet/models/utils/transformer.py:402
↓ 1 callersFunctiongen_packages_items
()
setup.py:110
↓ 1 callersMethodgen_single_level_base_anchors
Generate base anchors of a single level. Args: base_sizes_per_level (list[tuple[int, int]]): Basic sizes of ancho
mmdet/core/anchor/anchor_generator.py:750
↓ 1 callersFunctiongenerat_buckets
Generate buckets w.r.t bucket number and scale factor of proposals. Args: proposals (Tensor): Shape (n, 4) num_buckets (int): Num
mmdet/core/bbox/coder/bucketing_bbox_coder.py:95
↓ 1 callersMethodgenerate_regnet
Generates per block width from RegNet parameters. Args: initial_width ([int]): Initial width of the backbone width_sl
mmdet/models/backbones/regnet.py:251
↓ 1 callersFunctionget_GiB
return x GiB.
tools/deployment/onnx2tensorrt.py:18
↓ 1 callersMethodget_atss_targets
A wrapper for computing ATSS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-aware scores for eac
mmdet/models/dense_heads/vfnet_head.py:687
↓ 1 callersMethodget_bboxes
Transform network output for a batch into bbox predictions.
mmdet/models/dense_heads/base_dense_head.py:18
↓ 1 callersMethodget_bboxes
Transform network outputs for a batch into bbox predictions. Args: all_cls_scores_list (list[Tensor]): Classification outputs
mmdet/models/dense_heads/detr_head.py:582
↓ 1 callersMethodget_bboxes_single
(self, cls_scores, bbox_cls_preds,
mmdet/models/dense_heads/sabl_retina_head.py:558
↓ 1 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdet/datasets/crowdhuman.py:68
↓ 1 callersMethodget_classes
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
mmdet/datasets/custom.py:244
↓ 1 callersFunctionget_cls_results
Get det results and gt information of a certain class. Args: det_results (list[list]): Same as `eval_map()`. annotations (list[di
mmdet/core/evaluation/mean_ap.py:240
↓ 1 callersFunctionget_coco_style_results
(filename, task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:34
↓ 1 callersFunctionget_distortions_from_results
(eval_output)
tools/analysis_tools/robustness_eval.py:190
↓ 1 callersMethodget_fcos_targets
Compute FCOS regression and classification targets for points in multiple images. Args: points (list[Tensor]): Points of
mmdet/models/dense_heads/vfnet_head.py:661
↓ 1 callersMethodget_fea_loss
(self, preds_S, preds_T, Mask_fg, Mask_bg, C_s, C_t, S_s, S_t)
mmdet/distillation/losses/pgd_cls.py:72
↓ 1 callersFunctionget_gt_area_group_numbers
(cocoEval)
tools/analysis_tools/coco_error_analysis.py:107
↓ 1 callersMethodget_gt_priorities
Get gt priorities according to their areas. Smaller gt has higher priority. Args: gt_bboxes (Tensor): Ground truth boxes
mmdet/core/bbox/assigners/center_region_assigner.py:107
↓ 1 callersMethodget_mask_loss
(self, C_s, C_t, S_s, S_t)
mmdet/distillation/losses/pgd_cls.py:95
↓ 1 callersMethodget_mask_scores
Get the mask scores. mask_score = bbox_score * mask_iou
mmdet/models/roi_heads/mask_heads/maskiou_head.py:173
↓ 1 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/ddod_fcos_head.py:792
↓ 1 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/atss_head.py:679
↓ 1 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/atss_iou_head.py:695
↓ 1 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/ddod_head.py:763
↓ 1 callersFunctionget_ort_model_output
Run the model in onnxruntime env. Args: feat (list[Tensor]): A list of tensors from torch.rand, each is a 4D-tensor. Ret
tests/test_onnx/utils.py:87
↓ 1 callersMethodget_proposal_pos_embed
Get the position embedding of proposal.
mmdet/models/utils/transformer.py:514
↓ 1 callersMethodget_reference_points
Get the reference points used in decoder. Args: spatial_shapes (Tensor): The shape of all feature maps, has shape
mmdet/models/utils/transformer.py:470
↓ 1 callersMethodget_roi_rel_points_train
Get ``num_points`` most uncertain points with random points during train. Sample points in [0, 1] x [0, 1] coordinate space based on
mmdet/models/roi_heads/mask_heads/mask_point_head.py:212
↓ 1 callersMethodget_seg_masks
Resize, binarize, and format the instance mask predictions. Args: mask_pred (Tensor): shape (N, H, W). label_pred (Te
mmdet/models/dense_heads/yolact_head.py:833
↓ 1 callersMethodget_stages_from_blocks
Gets widths/stage_blocks of network at each stage. Args: widths (list[int]): Width in each stage. Returns: t
mmdet/models/backbones/regnet.py:321
↓ 1 callersMethodget_target
Compute bucketing targets. Args: approx_list (list[list]): Multi level approxs of each image. inside_flag_list (list[l
mmdet/models/dense_heads/sabl_retina_head.py:220
↓ 1 callersMethodget_targets
Compute regression targets and each point inside or outside gt_bbox in multiple images. Args: points (list[Tensor]): Poin
mmdet/models/dense_heads/autoassign_head.py:463
↓ 1 callersMethodget_targets
Compute regression and classification targets in multiple images. Args: gt_bboxes (list[Tensor]): Ground truth bboxes for each im
mmdet/models/dense_heads/centernet_head.py:180
↓ 1 callersMethodget_targets
Compute target maps for anchors in multiple images. Args: anchor_list (list[list[Tensor]]): Multi level anchors of each
mmdet/models/dense_heads/yolo_head.py:509
↓ 1 callersMethodget_targets
Compute regression and classification targets for anchors in multiple images. Args: anchor_list (list[list[Tensor]]): Mul
mmdet/models/dense_heads/anchor_head.py:269
↓ 1 callersMethodget_targets
Compute instance segmentation targets for each image. Args: mask_pred (Tensor): Predicted prototypes with shape (
mmdet/models/dense_heads/yolact_head.py:808
↓ 1 callersMethodget_targets
Compute regression and classification targets for anchors. Args: anchor_list (list[list]): Multi level anchors of each image.
mmdet/models/dense_heads/cascade_rpn_head.py:284
↓ 1 callersMethodget_targets
(self, gt_bbox_list, gt_label_list, featmap_sizes, points)
mmdet/models/dense_heads/fovea_head.py:184
↓ 1 callersMethodget_targets
Compute regression and classification targets for anchors in multiple images. Args: cls_scores_list (list[Tensor]): Class
mmdet/models/dense_heads/yolof_head.py:223
↓ 1 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdet/models/dense_heads/atss_head.py:505
↓ 1 callersMethodget_targets
Get targets for GFL head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent m
mmdet/models/dense_heads/gfl_head.py:489
↓ 1 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdet/models/dense_heads/atss_iou_head.py:521
↓ 1 callersMethodget_targets
Compute regression, classification and centerness targets for points in multiple images. Args: points (list[Tensor]): Poi
mmdet/models/dense_heads/fcos_head.py:509
↓ 1 callersMethodget_targets
Generate corner targets. Including corner heatmap, corner offset. Optional: corner embedding, corner guiding shift, centripetal shif
mmdet/models/dense_heads/corner_head.py:323
↓ 1 callersMethodget_targets
Compute regression and classification targets for a batch image. Outputs from a single decoder layer of a single feature level are used.
mmdet/models/dense_heads/detr_head.py:418
↓ 1 callersMethodget_targets
Get targets for GFL head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent m
mmdet/models/dense_heads/pgd_heads/gfl_distill.py:106
↓ 1 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdet/models/dense_heads/pgd_heads/atss_iou_distill.py:119
↓ 1 callersMethodget_targets
Compute target of mask IoU. Mask IoU target is the IoU of the predicted mask (inside a bbox) and the gt mask of corresponding gt mask
mmdet/models/roi_heads/mask_heads/maskiou_head.py:97
↓ 1 callersMethodget_valid_ratio
Get the valid radios of feature maps of all level.
mmdet/models/utils/transformer.py:504
↓ 1 callersFunctionget_version
()
setup.py:19
↓ 1 callersFunctionget_voc_style_results
(filename, prints='mPC', aggregate='benchmark')
tools/analysis_tools/robustness_eval.py:111
← previousnext →601–700 of 2,117, ranked by callers