MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

Methodinit_weights
Initialize the transformer weights.
mmdet/models/utils/transformer.py:390
Methodinit_weights
(self)
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:114
Methodinit_weights
(self)
mmdet/models/roi_heads/mask_heads/coarse_mask_head.py:83
Methodinit_weights
Use xavier initialization for all weight parameter and set classification head bias as a specific value when use focal loss.
mmdet/models/roi_heads/bbox_heads/dii_head.py:124
Methodinitialize
(self, context)
tools/deployment/mmdet_handler.py:14
Methodis_center_of_bboxes_in_patch
(boxes, patch)
mmdet/datasets/pipelines/transforms.py:1187
Methodload_annotations
Load annotation from XML style ann_file. Args: ann_file (str): Path of XML file. Returns: list[dict]: Annota
mmdet/datasets/xml_style.py:29
Methodload_annotations
Load annotation from COCO style annotation file. Args: ann_file (str): Path of annotation file. Returns: lis
mmdet/datasets/crowdhuman.py:24
Methodload_annotations
Load annotation from lvis style annotation file. Args: ann_file (str): Path of annotation file. Returns: lis
mmdet/datasets/lvis.py:269
Methodload_annotations
(self, ann_file)
mmdet/datasets/lvis.py:712
Methodload_annotations
Load annotation from WIDERFace XML style annotation file. Args: ann_file (str): Path of XML file. Returns: l
mmdet/datasets/wider_face.py:22
Functionload_bboxes
(dict_input, key_name, key_box, key_score=None, key_tag=None)
crowd_code/utils/misc_utils.py:45
Functionload_gt
(dict_input, key_name, key_box, class_names)
crowd_code/utils/misc_utils.py:76
Functionload_img
(image_path)
crowd_code/utils/misc_utils.py:5
Functionload_img_info
(files)
tools/dataset_converters/cityscapes.py:39
Functionload_json_lines
(fpath)
crowd_code/utils/misc_utils.py:10
Functionload_masks
(dict_input, key_name, key_box)
crowd_code/utils/misc_utils.py:67
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/ddod_fcos_head.py:249
Methodloss
Loss function. Args: all_cls_scores (Tensor): Classification score of all decoder layers, has shape
mmdet/models/dense_heads/deformable_detr_head.py:183
Methodloss
(self, cls_scores, pts_preds_init, pts_preds_refine, gt_bb
mmdet/models/dense_heads/reppoints_head.py:557
Methodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level, each is a 4D-tensor,
mmdet/models/dense_heads/autoassign_head.py:333
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/pisa_ssd_head.py:13
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/paa_head.py:86
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/ssd_head.py:261
Methodloss
Compute losses of the head. Args: center_heatmap_preds (list[Tensor]): center predict heatmaps for all levels with
mmdet/models/dense_heads/centernet_head.py:115
Methodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box iou-aware scores for each scale level, each is a 4
mmdet/models/dense_heads/vfnet_head.py:315
Methodloss
Compute loss of the head. Args: pred_maps (list[Tensor]): Prediction map for each scale level, shape (N, num_anch
mmdet/models/dense_heads/yolo_head.py:414
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/anchor_head.py:422
Methodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level, each is a 4D-tensor,
mmdet/models/dense_heads/anchor_free_head.py:222
Methodloss
Compute losses of the head. Args: anchor_list (list[list]): Multi level anchors of each image. cls_scores (list[Tenso
mmdet/models/dense_heads/cascade_rpn_head.py:434
Methodloss
(self, cls_scores, bbox_preds, gt_bbox_list, gt_label_list
mmdet/models/dense_heads/fovea_head.py:134
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/free_anchor_retina_head.py:53
Methodloss
(self, cls_scores, bbox_preds, shape_preds, loc_preds,
mmdet/models/dense_heads/ga_rpn_head.py:48
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (batch, nu
mmdet/models/dense_heads/yolof_head.py:136
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/atss_head.py:218
Methodloss
Compute losses of the head. Args: tl_heats (list[Tensor]): Top-left corner heatmaps for each level with shape (N,
mmdet/models/dense_heads/centripetal_head.py:205
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
mmdet/models/dense_heads/gfl_head.py:315
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/atss_iou_head.py:259
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/rpn_head.py:45
Methodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level, each is a 4D-tensor,
mmdet/models/dense_heads/fcos_head.py:188
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/ddod_head.py:251
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/pisa_retinanet_head.py:22
Methodloss
Compute losses of the head. Args: tl_heats (list[Tensor]): Top-left corner heatmaps for each level with shape (N,
mmdet/models/dense_heads/corner_head.py:511
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/pgd_heads/ddod_distill.py:26
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
mmdet/models/dense_heads/pgd_heads/gfl_distill.py:25
Methodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/pgd_heads/atss_iou_distill.py:36
Methodloss
Calculate loss for MaskPointHead. Args: point_pred (Tensor): Point predication result, shape (num_rois, num_class
mmdet/models/roi_heads/mask_heads/mask_point_head.py:164
Methodloss
Example: >>> from mmdet.models.roi_heads.mask_heads.fcn_mask_head import * # NOQA >>> N = 7 # N = number of extract
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:147
Methodloss
(self, grid_pred, grid_targets)
mmdet/models/roi_heads/mask_heads/grid_head.py:291
Methodloss
Loss function.
mmdet/models/roi_heads/mask_heads/global_context_head.py:93
Methodloss
(self, mask_pred, labels)
mmdet/models/roi_heads/mask_heads/fused_semantic_head.py:102
Methodloss
(self, cls_score, bbox_pred, rois, labels, la
mmdet/models/roi_heads/bbox_heads/bbox_head.py:250
Methodloss
(self, cls_score, bbox_pred, rois, labels, la
mmdet/models/roi_heads/bbox_heads/sabl_head.py:427
Methodloss_offline
(self, cls_scores, bbox_preds, objectnesses, gt_infos_from
mmdet/models/dense_heads/pgd_heads/autoassign_distill.py:85
Methodloss_single
Compute loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N, num
mmdet/models/dense_heads/ddod_fcos_head.py:159
Methodloss_single
(self, cls_score, pts_pred_init, pts_pred_refine, labels, label_weights, bbox_gt_init, bbo
mmdet/models/dense_heads/reppoints_head.py:519
Methodloss_single
Compute loss of a single image. Args: cls_score (Tensor): Box scores for eachimage Has shape (num_total_anchors,
mmdet/models/dense_heads/ssd_head.py:202
Methodloss_single
Compute loss of a single image from a batch. Args: pred_map (Tensor): Raw predictions for a single level. target_map
mmdet/models/dense_heads/yolo_head.py:464
Methodloss_single
Compute loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N, num
mmdet/models/dense_heads/anchor_head.py:371
Methodloss_single
Loss function on single scale.
mmdet/models/dense_heads/cascade_rpn_head.py:404
Methodloss_single
Compute loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N, num
mmdet/models/dense_heads/atss_head.py:142
Methodloss_single
Compute losses for single level. Args: tl_hmp (Tensor): Top-left corner heatmap for current level with shape (N,
mmdet/models/dense_heads/centripetal_head.py:281
Methodloss_single
Compute loss of a single scale level. Args: anchors (Tensor): Box reference for each scale level with shape (N, n
mmdet/models/dense_heads/gfl_head.py:226
Methodloss_single
Compute loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N, num
mmdet/models/dense_heads/atss_iou_head.py:169
Methodloss_single
Compute loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N, num
mmdet/models/dense_heads/ddod_head.py:174
Methodloss_single
(self, cls_score, bbox_pred, labels, label_weights, bbox_cls_targets, bbox_cls_weights, bb
mmdet/models/dense_heads/sabl_retina_head.py:437
Methodloss_single
Compute losses for single level. Args: tl_hmp (Tensor): Top-left corner heatmap for current level with shape (N,
mmdet/models/dense_heads/corner_head.py:573
Methodloss_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores (Tensor): Box score log
mmdet/models/dense_heads/detr_head.py:333
Methodloss_single_OHEM
See func:``SSDHead.loss``.
mmdet/models/dense_heads/yolact_head.py:259
Functionmake_cuda_ext
(name, module, sources, sources_cuda=[])
setup.py:25
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdet/models/backbones/resnest.py:312
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``
mmdet/models/backbones/resnext.py:147
Methodmake_res_layer
(self, **kwargs)
mmdet/models/backbones/res2net.py:321
Methodmake_res_layer
(self, **kwargs)
mmdet/models/backbones/detectors_resnext.py:117
Functionmask_cross_entropy
Calculate the CrossEntropy loss for masks. Args: pred (torch.Tensor): The prediction with shape (N, C, *), C is the number of
mmdet/models/losses/cross_entropy_loss.py:94
Methodmask_onnx_export
Export mask branch to onnx which supports batch inference. Args: x (tuple[Tensor]): Feature maps of all scale level.
mmdet/models/roi_heads/point_rend_roi_head.py:352
Functionmask_target_single
Compute mask target for each positive proposal in the image. Args: pos_proposals (Tensor): Positive proposals. pos_assigned_gt_in
mmdet/core/mask/mask_target.py:66
Functionmerge_aug_scores
Merge augmented bbox scores.
mmdet/core/post_processing/merge_augs.py:112
Methodnormalize
(x)
mmdet/models/dense_heads/autoassign_head.py:314
Methodnum_attrib
int: number of attributes in pred_map, bboxes (4) + objectness (1) + num_classes
mmdet/models/dense_heads/yolo_head.py:127
Methodnum_base_anchors
list[int]: total number of base anchors in a feature grid
mmdet/core/anchor/anchor_generator.py:115
Methodnum_base_priors
list[int]: The number of priors (points) at a point on the feature grid
mmdet/core/anchor/point_generator.py:64
Methodnum_base_priors
list[int]: The number of priors (anchors) at a point on the feature grid
mmdet/core/anchor/anchor_generator.py:120
Methodnum_inputs
int: Number of input feature maps.
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:32
Methodnum_levels
int: number of feature levels that the generator will be applied
mmdet/core/anchor/point_generator.py:59
Methodnum_levels
int: number of feature levels that the generator will be applied
mmdet/core/anchor/anchor_generator.py:126
Methodnum_levels
int: number of feature levels that the generator will be applied
mmdet/core/anchor/anchor_generator.py:729
Methodnum_levels
(self)
mmdet/models/dense_heads/yolo_head.py:123
Methodnum_preds
int: the number of predictions in this assignment
mmdet/core/bbox/assigners/assign_result.py:51
Methodonnx_export
Test without augmentation. Args: x (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdet/models/dense_heads/rpn_head.py:226
Methodonnx_export
Transform network outputs into bbox predictions, with ONNX exportation. Args: all_cls_scores_list (list[Tensor]): Classif
mmdet/models/dense_heads/detr_head.py:774
Methodonnx_export
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor): shape (n, #class, h, w). det_bboxes (Tens
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:311
Methodonnx_export
(self, img, img_metas)
mmdet/models/detectors/two_stage.py:195
Methodonnx_export
Test function for exporting to ONNX, without test time augmentation. Args: img (torch.Tensor): input images. img_meta
mmdet/models/detectors/detr.py:26
Methodonnx_export
Test function without test time augmentation. Args: img (torch.Tensor): input images. img_metas (list[dict]): List of
mmdet/models/detectors/single_stage.py:140
Methodpaa_reassign
Fit loss to GMM distribution and separate positive, ignore, negative samples again with GMM model. Args: pos_losses (Tens
mmdet/models/dense_heads/paa_head.py:257
Methodpad
Pad masks to the given size of (h, w). Args: out_shape (tuple[int]): Target (h, w) of padded mask. pad_val (int): The
mmdet/core/mask/structures.py:51
Functionparse_xml
(args)
tools/dataset_converters/pascal_voc.py:13
Functionplot_curve
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:33
Functionplot_iou_recall
Plot IoU-Recalls curve. Args: recalls(ndarray or list): shape (k,) iou_thrs(ndarray or list): same shape as `recalls`
mmdet/core/evaluation/recall.py:167
← previousnext →1,701–1,800 of 2,117, ranked by callers