MCPcopy Create free account

hub / github.com/Sense-X/Co-DETR / functions

Functions2,920 in github.com/Sense-X/Co-DETR

↓ 1 callersFunctionbbox2distance
Decode bounding box based on distances. Args: points (Tensor): Shape (n, 2), [x, y]. bbox (Tensor): Shape (n, 4), "xyxy" format
mmdet/core/bbox/transforms.py:189
↓ 1 callersMethodbbox_flip
Flip bboxes horizontally. Args: bboxes (numpy.ndarray): Bounding boxes, shape (..., 4*k) img_shape (tuple[int]): Imag
mmdet/datasets/pipelines/transforms.py:396
↓ 1 callersMethodbbox_onnx_export
Export bbox branch to onnx which supports batch inference. Args: x (tuple[Tensor]): Feature maps of all scale level.
mmdet/models/roi_heads/standard_roi_head.py:350
↓ 1 callersMethodbbox_onnx_export
Export bbox branch to onnx which supports batch inference. Args: x (tuple[Tensor]): Feature maps of all scale level.
projects/models/co_roi_head.py:374
↓ 1 callersFunctionbboxes2tblr
Encode ground truth boxes to tblr coordinate. It first convert the gt coordinate to tblr format, (top, bottom, left, right), relative to pri
mmdet/core/bbox/coder/tblr_bbox_coder.py:77
↓ 1 callersFunctionbboxes_area
Compute the area of an array of bboxes. Args: bboxes (Tensor): The coordinates ox bboxes. Shape: (m, 4) Returns: Tensor: Are
mmdet/core/bbox/assigners/center_region_assigner.py:55
↓ 1 callersMethodbefore_train_epoch
Evaluate the model only at the start of training by epoch.
mmdet/core/evaluation/eval_hooks.py:42
↓ 1 callersMethodbefore_train_iter
(self, runner)
mmdet/core/evaluation/eval_hooks.py:47
↓ 1 callersFunctionbinary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1) or (N, ). When the shape
mmdet/models/losses/cross_entropy_loss.py:177
↓ 1 callersMethodbinary_mask_dice_loss
Args: mask_preds (Tensor): Mask prediction in shape (num_query, *). gt_masks (Tensor): Ground truth in shape (num_gt,
mmdet/core/bbox/match_costs/match_cost.py:260
↓ 1 callersFunctionbitmap_to_polygon
Convert masks from the form of bitmaps to polygons. Args: bitmap (ndarray): masks in bitmap representation. Return: list[nda
mmdet/core/mask/structures.py:1075
↓ 1 callersFunctionbounded_iou_loss
BIoULoss. This is an implementation of paper `Improving Object Localization with Fitness NMS and Bounded IoU Loss. <https://arxiv.org/abs
mmdet/models/losses/iou_loss.py:55
↓ 1 callersFunctionbucket2bbox
Apply bucketing estimation (cls preds) and fine regression (offset preds) to generate det bboxes. Args: proposals (Tensor): Boxes to
mmdet/core/bbox/coder/bucketing_bbox_coder.py:269
↓ 1 callersMethodbucket_target
(self, pos_proposals_list, neg_proposals_list,
mmdet/models/roi_heads/bbox_heads/sabl_head.py:351
↓ 1 callersFunctionbuild_MLP
(input_dim, hidden_dim, output_dim, num_layers)
projects/models/transformer.py:442
↓ 1 callersFunctionbuild_dn_generator
Args: dn_args (dict): Returns:
projects/models/query_denoising.py:212
↓ 1 callersFunctionbuild_optimizer_constructor
(cfg)
mmdet/core/optimizers/builder.py:11
↓ 1 callersMethodbuild_roi_layers
Build RoI operator to extract feature from each level feature map. Args: layer_cfg (dict): Dictionary to construct and config RoI
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:37
↓ 1 callersFunctionbuild_shared_head
Build shared head.
mmdet/models/builder.py:33
↓ 1 callersMethodcalc_sub_regions
Compute point specific representation regions. See Grid R-CNN Plus (https://arxiv.org/abs/1906.05688) for details.
mmdet/models/roi_heads/mask_heads/grid_head.py:193
↓ 1 callersFunctioncalculate_confusion_matrix
Calculate the confusion matrix. Args: dataset (Dataset): Test or val dataset. results (list[ndarray]): A list of detection result
tools/analysis_tools/confusion_matrix.py:60
↓ 1 callersMethodcalculate_pos_recall
Calculate positive recall with score threshold. Args: cls_scores (list[Tensor]): Classification scores at all fpn levels.
mmdet/models/dense_heads/fsaf_head.py:317
↓ 1 callersMethodcenterness_target
Compute centerness targets. Args: pos_bbox_targets (Tensor): BBox targets of positive bboxes in shape (num_pos, 4
mmdet/models/dense_heads/fcos_head.py:415
↓ 1 callersMethodcenterness_target
(self, anchors, gts)
projects/models/co_atss_head.py:299
↓ 1 callersMethodcenters_to_bboxes
Get bboxes according to center points. Only used in :class:`MaxIoUAssigner`.
mmdet/models/dense_heads/reppoints_head.py:332
↓ 1 callersFunctionciou_loss
r"""`Implementation of paper `Enhancing Geometric Factors into Model Learning and Inference for Object Detection and Instance Segmentation <ht
mmdet/models/losses/iou_loss.py:177
↓ 1 callersMethodcls_forward
(self, cls_x)
mmdet/models/roi_heads/bbox_heads/sabl_head.py:230
↓ 1 callersFunctioncoco_eval_with_return
(result_files, result_types, coco,
tools/analysis_tools/test_robustness.py:24
↓ 1 callersFunctioncollect_annotations
(files, nproc=1)
tools/dataset_converters/cityscapes.py:29
↓ 1 callersFunctioncollect_files
(img_dir, gt_dir)
tools/dataset_converters/cityscapes.py:12
↓ 1 callersFunctioncollect_image_infos
(path, exclude_extensions=None)
tools/dataset_converters/images2coco.py:30
↓ 1 callersFunctioncollect_results_gpu
(result_part, size)
mmdet/apis/test.py:179
↓ 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:115
↓ 1 callersFunctionconvert
(in_file, out_file)
tools/model_converters/upgrade_ssd_version.py:22
↓ 1 callersFunctionconvert
Convert keys in detectron pretrained ResNet models to pytorch style.
tools/model_converters/detectron2pytorch.py:35
↓ 1 callersFunctionconvert
Convert keys in pycls pretrained RegNet models to mmdet style.
tools/model_converters/regnet2mmdet.py:55
↓ 1 callersFunctionconvert_head
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:16
↓ 1 callersFunctionconvert_reslayer
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:23
↓ 1 callersFunctionconvert_stem
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:8
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
mmdet/models/utils/ckpt_convert.py:96
↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
mmdet/models/utils/ckpt_convert.py:89
↓ 1 callersMethodcreateIndex
(self)
mmdet/datasets/coco_panoptic.py:46
↓ 1 callersFunctioncreate_frame_by_matplotlib
Create gif frame image through matplotlib. Args: image_dir (str): Root directory of result images nrows (int): Number of rows dis
demo/create_result_gif.py:58
↓ 1 callersFunctioncreate_gif
Create gif through imageio. Args: frames (list[ndarray]): Image frames gif_name (str): Saved gif name duration (int): Dis
demo/create_result_gif.py:43
↓ 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:104
↓ 1 callersFunctioncvt_annotations
(image_infos, out_json_name)
tools/dataset_converters/cityscapes.py:85
↓ 1 callersFunctioncvt_to_coco_json
(img_infos, classes)
tools/dataset_converters/images2coco.py:49
↓ 1 callersFunctioncvt_to_coco_json
(annotations)
tools/dataset_converters/pascal_voc.py:96
↓ 1 callersMethoddecode
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). pred_bboxes (Tensor): D
mmdet/core/bbox/coder/distance_point_bbox_coder.py:41
↓ 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:62
↓ 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:351
↓ 1 callersMethoddeform_sampling
Sampling the feature x according to offset. Args: feat (Tensor): Feature offset (Tensor): Spatial offset for feature
mmdet/models/dense_heads/tood_head.py:284
↓ 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:164
↓ 1 callersMethoddenormalize_gt_bboxes
Convert ground truth bboxes from relative position to absolute position. Only used in evaluating time.
mmdet/datasets/openimages.py:591
↓ 1 callersFunctiondice_loss
Calculate dice loss, there are two forms of dice loss is supported: - the one proposed in `V-Net: Fully Convolutional Neural Netw
mmdet/models/losses/dice_loss.py:9
↓ 1 callersMethoddifferential_evolution
(self)
tools/analysis_tools/optimize_anchors.py:282
↓ 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:122
↓ 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:103
↓ 1 callersMethoddouble_step_seq
(step1, len1, step2, len2)
mmdet/models/backbones/swin.py:122
↓ 1 callersFunctiondownload
(url, dir, unzip=True, delete=False, threads=1)
tools/misc/download_dataset.py:35
↓ 1 callersFunctiondraw_bboxes
Draw bounding boxes on the axes. Args: ax (matplotlib.Axes): The input axes. bboxes (ndarray): The input bounding boxes with the
mmdet/core/visualization/image.py:81
↓ 1 callersFunctiondraw_masks
Draw masks on the image and their edges on the axes. Args: ax (matplotlib.Axes): The input axes. img (ndarray): The image with th
mmdet/core/visualization/image.py:166
↓ 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:16
↓ 1 callersMethoddynamic_k_matching
(self, cost, pairwise_ious, num_gt, valid_mask)
mmdet/core/bbox/assigners/sim_ota_assigner.py:230
↓ 1 callersMethodencode
Encode bounding box to distances. Args: points (Tensor): Shape (N, 2), The format is [x, y]. gt_bboxes (Tensor): Shap
mmdet/core/bbox/coder/distance_point_bbox_coder.py:23
↓ 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:312
↓ 1 callersMethodevaluate_and_show
Evaluate and show results. Args: dataset (Dataset): A PyTorch dataset. results (list): Object detection or panoptic s
tools/analysis_tools/analyze_results.py:142
↓ 1 callersMethodevaluate_pan_json
Evaluate PQ according to the panoptic results json file.
mmdet/datasets/coco_panoptic.py:503
↓ 1 callersMethodexpand
TODO: Add expand for polygon
mmdet/core/mask/structures.py:720
↓ 1 callersMethodextract_dn_outputs
(all_cls_scores, all_bbox_preds, dn_meta)
projects/models/co_dino_head.py:389
↓ 1 callersMethodextract_feat
Extract features from images.
mmdet/models/detectors/base.py:46
↓ 1 callersMethodextract_teacher_feat
Directly extract teacher features from the backbone+neck.
mmdet/models/detectors/lad.py:47
↓ 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:98
↓ 1 callersMethodfilter_gt_bboxes
(self, origin_bboxes, wrapped_bboxes)
mmdet/datasets/pipelines/transforms.py:2649
↓ 1 callersMethodfit
(self, loss)
tests/test_models/test_dense_heads/test_lad_head.py:18
↓ 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:177
↓ 1 callersMethodformat_results
Format the model predictions according to the interface with dataset. Args: results (:obj:`InstanceData`): Processed
mmdet/models/detectors/single_stage_instance_seg.py:184
↓ 1 callersMethodforward
(self, feats)
mmdet/models/dense_heads/guided_anchor_head.py:246
↓ 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:666
↓ 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:161
↓ 1 callersMethodforward
(self, feats)
mmdet/models/dense_heads/sabl_retina_head.py:207
↓ 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:193
↓ 1 callersMethodforward
Args: x (Tensor): Has shape (B, C, H, W). In most case, C is 3. Returns: tuple: Contains merged results and
mmdet/models/utils/transformer.py:238
↓ 1 callersMethodforward
Calls either :func:`forward_train` or :func:`forward_test` depending on whether ``return_loss`` is ``True``. Note this setting will c
mmdet/models/detectors/base.py:157
↓ 1 callersMethodforward
Forward function. Args: mlvl_feats (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor with
projects/models/co_deformable_detr_head.py:100
↓ 1 callersMethodforward_aux
Forward function. Args: mlvl_feats (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor with
projects/models/co_deformable_detr_head.py:200
↓ 1 callersMethodforward_test
(self, *, img, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:38
↓ 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:112
↓ 1 callersMethodforward_train
Args: img (Tensor): of shape (N, C, H, W) encoding input images. Typically these should be mean centered and std
mmdet/models/detectors/maskformer.py:70
↓ 1 callersMethodforward_train
Args: img (Tensor): of shape (N, C, H, W) encoding input images. Typically these should be mean centered and std
mmdet/models/detectors/base.py:63
↓ 1 callersMethodforward_train_aux
Forward function for training mode. Args: x (list[Tensor]): Features from backbone. img_metas (list[dict]): Meta info
projects/models/co_deformable_detr_head.py:476
↓ 1 callersMethodfuse
(self, fuse_dict)
mmdet/models/necks/fpg.py:323
↓ 1 callersFunctionfuse_list
(obj_list, obj)
mmdet/utils/split_batch.py:27
↓ 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:384
↓ 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:549
↓ 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:8
↓ 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:11
↓ 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:571
↓ 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:761
↓ 1 callersFunctiongen_packages_items
()
setup.py:116
← previousnext →801–900 of 2,920, ranked by callers