MCPcopy Create free account

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

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

↓ 2 callersMethodbefore_train_epoch
Check whether the training dataset is compatible with head. Args: runner (obj:`EpochBasedRunner`): Epoch based Runner.
mmdet/datasets/utils.py:152
↓ 2 callersMethodbefore_val_epoch
Check whether the dataset in val epoch is compatible with head. Args: runner (obj:`EpochBasedRunner`): Epoch based Runner.
mmdet/datasets/utils.py:160
↓ 2 callersFunctionbroadcat
(tensors, dim = -1)
mmdet/models/backbones/vit.py:42
↓ 2 callersFunctionbuild_ddp
Build DistributedDataParallel module by device type. If device is cuda, return a MMDistributedDataParallel model; if device is mlu, return a
mmdet/utils/util_distribution.py:34
↓ 2 callersFunctionbuild_dp
build DataParallel module by device type. if device is cuda, return a MMDataParallel model; if device is mlu, return a MLUDataParallel model.
mmdet/utils/util_distribution.py:10
↓ 2 callersFunctionbuild_model_from_cfg
Build a model from config and load the given checkpoint. Args: config_path (str): the OpenMMLab config for the model we want to
mmdet/core/export/pytorch2onnx.py:65
↓ 2 callersFunctionbuild_optimizer
(model, cfg)
mmdet/core/optimizers/builder.py:22
↓ 2 callersMethodcalc_reweight_factor
Compute reweight_factor for regression and classification loss.
mmdet/models/dense_heads/ddod_head.py:275
↓ 2 callersFunctioncallee_func
()
tests/test_utils/test_logger.py:7
↓ 2 callersFunctioncast_tensor_type
(x, scale=1., dtype=None)
mmdet/core/bbox/iou_calculators/iou2d_calculator.py:7
↓ 2 callersMethodcenterness_target
(self, anchors, gts)
mmdet/models/dense_heads/atss_head.py:305
↓ 2 callersFunctioncheck_optimizer_lr_wd
(optimizer, gt_lr_wd)
tests/test_utils/test_layer_decay_optimizer_constructor.py:131
↓ 2 callersFunctioncollect_env
Collect the information of the running environments.
mmdet/utils/collect_env.py:8
↓ 2 callersFunctioncollect_results_cpu
(result_part, size, tmpdir=None)
mmdet/apis/test.py:136
↓ 2 callersFunctioncompat_imgs_per_gpu
(cfg)
mmdet/utils/compat_config.py:37
↓ 2 callersFunctioncompat_runner_args
(cfg)
mmdet/utils/compat_config.py:22
↓ 2 callersFunctionconcurrent
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for conc
mmdet/utils/contextmanagers.py:92
↓ 2 callersFunctionconvert_result_list
Convert the torch forward outputs containing tuple or list to a list only containing torch.Tensor. Args: output (list(Tensor) | tuple
tests/test_onnx/utils.py:118
↓ 2 callersFunctioncreate_full_masks
(gt_bboxes, img_w, img_h)
tests/test_data/test_pipelines/test_transform/utils.py:81
↓ 2 callersMethodcrop
Crop predicted masks by zeroing out everything not in the predicted bbox. Args: masks (Tensor): shape [H, W, N].
mmdet/models/dense_heads/yolact_head.py:876
↓ 2 callersMethodcrop_and_resize
see :func:`BaseInstanceMasks.crop_and_resize`
mmdet/core/mask/structures.py:724
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
tools/dataset_converters/pascal_voc.py:68
↓ 2 callersMethoddecode_heatmap
Transform outputs for a single batch item into raw bbox predictions. Args: tl_heat (Tensor): Top-left corner heatmap for current
mmdet/models/dense_heads/corner_head.py:795
↓ 2 callersFunctiondetect
(img)
tests/test_runtime/async_benchmark.py:69
↓ 2 callersMethoddetection_evaluate
Evaluation for object detection. Args: dataset (Dataset): A PyTorch dataset. results (list): Object detection results
tools/analysis_tools/analyze_results.py:184
↓ 2 callersFunctiondownload_one
(url, dir)
tools/misc/download_dataset.py:37
↓ 2 callersFunctiondraw_labels
Draw labels on the axes. Args: ax (matplotlib.Axes): The input axes. labels (ndarray): The labels with the shape of (n, ).
mmdet/core/visualization/image.py:114
↓ 2 callersMethodevaluate_det_segm
Instance segmentation and object detection evaluation in COCO protocol. Args: results (list[list | tuple | dict]): Testin
mmdet/datasets/coco.py:386
↓ 2 callersMethodextract_feat
Directly extract features from the backbone and neck.
mmdet/models/detectors/single_stage_instance_seg.py:56
↓ 2 callersMethodfast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdet/datasets/coco.py:334
↓ 2 callersMethodforward
Placeholder of forward function. Returns: dict[str, Tensor]: A dictionary, including features and predicted score
mmdet/models/seg_heads/base_semantic_head.py:55
↓ 2 callersMethodforward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/ssd_head.py:196
↓ 2 callersMethodforward
(self, x)
projects/models/norm.py:21
↓ 2 callersMethodforward
(self, *args, **kwargs)
tests/test_onnx/utils.py:28
↓ 2 callersMethodforward_dummy
Dummy forward function.
mmdet/models/detectors/rpn.py:54
↓ 2 callersMethodforward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (num_queries, batch_size, c
mmdet/models/dense_heads/mask2former_head.py:309
↓ 2 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:698
↓ 2 callersFunctiongaussian_radius
r"""Generate 2D gaussian radius. This function is modified from the `official github repo <https://github.com/princeton-vl/CornerNet-Lite/blo
mmdet/models/utils/gaussian_target.py:68
↓ 2 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:131
↓ 2 callersMethodgen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes. :param reg:
mmdet/models/dense_heads/reppoints_head.py:221
↓ 2 callersMethodgen_single_level_base_anchors
Generate base anchors of a single level. Args: base_size (int | float): Basic size of an anchor. scales (torch.Tensor
mmdet/core/anchor/anchor_generator.py:151
↓ 2 callersMethodget_accuracy
Get custom accuracy w.r.t. cls_score and labels. Args: cls_score (torch.Tensor): The prediction with shape (N, C + 2).
mmdet/models/losses/seesaw_loss.py:177
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/guided_anchor_head.py:299
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/sabl_retina_head.py:210
↓ 2 callersMethodget_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified in
mmdet/datasets/coco_panoptic.py:306
↓ 2 callersMethodget_bboxes
get_bboxes() is implemented in StageCascadeRPNHead.
mmdet/models/dense_heads/cascade_rpn_head.py:724
↓ 2 callersFunctionget_caller_name
Get name of caller method.
mmdet/utils/logger.py:24
↓ 2 callersFunctionget_classes
Get class names of a dataset.
mmdet/core/evaluation/class_names.py:585
↓ 2 callersMethodget_classes_from_csv
Get classes name from file. Args: label_file (str): File path of the label description file that maps the classes
mmdet/datasets/openimages.py:127
↓ 2 callersFunctionget_cls_group_ofs
Get `gt_group_of` of a certain class, which is used in Open Images. Args: annotations (list[dict]): Same as `eval_map()`. class_i
mmdet/core/evaluation/mean_ap.py:504
↓ 2 callersFunctionget_dataset_name_classes
(dataset)
tests/test_runtime/test_config.py:32
↓ 2 callersMethodget_mask_scores
Get the mask scores. mask_score = bbox_score * mask_iou
mmdet/models/roi_heads/mask_heads/maskiou_head.py:184
↓ 2 callersMethodget_meta_from_pipeline
Get image metas from pipeline.
mmdet/datasets/openimages.py:308
↓ 2 callersMethodget_pad_shape
(self, input_shape)
mmdet/models/utils/transformer.py:111
↓ 2 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmdet/models/dense_heads/reppoints_head.py:304
↓ 2 callersMethodget_roi_rel_points_test
Get ``num_points`` most uncertain points during test. Args: mask_pred (Tensor): A tensor of shape (num_rois, num_classes,
mmdet/models/roi_heads/mask_heads/mask_point_head.py:215
↓ 2 callersFunctionget_rope
(t, H, W)
mmdet/models/backbones/vit.py:108
↓ 2 callersMethodget_sampled_approxs
Get sampled approxs and inside flags according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map s
mmdet/models/dense_heads/guided_anchor_head.py:249
↓ 2 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:841
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[list]): Multi level poi
mmdet/models/dense_heads/reppoints_head.py:442
↓ 2 callersMethodget_targets
Compute semantic segmentation targets for each image. Args: segm_pred (Tensor): Predicted semantic segmentation map
mmdet/models/dense_heads/yolact_head.py:542
↓ 2 callersFunctionget_torchvision_models
()
mmcv_custom/checkpoint.py:170
↓ 2 callersFunctionget_uncertain_point_coords_with_randomness
Get ``num_points`` most uncertain points with random points during train. Sample points in [0, 1] x [0, 1] coordinate space based on their
mmdet/models/utils/point_sample.py:32
↓ 2 callersFunctionget_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred' for th
mmdet/models/utils/point_sample.py:6
↓ 2 callersMethodget_zero_center_bbox_tensor
Get a tensor of bboxes centered at (0, 0). Returns: Tensor: Tensor of bboxes with shape (num_bboxes, 4) in [xmin, ymi
tools/analysis_tools/optimize_anchors.py:124
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdet/core/bbox/samplers/ohem_sampler.py:34
↓ 2 callersMethodinit_weights
(self)
mmdet/models/utils/transformer.py:563
↓ 2 callersFunctionis_located_in
Are points located in bboxes. Args: points (Tensor): Points, shape: (m, 2). bboxes (Tensor): Bounding boxes, shape: (n, 4). Retu
mmdet/core/bbox/assigners/center_region_assigner.py:37
↓ 2 callersMethodkmeans_maximization
Maximization part of EM algorithm(Expectation-Maximization)
tools/analysis_tools/optimize_anchors.py:206
↓ 2 callersFunctionlevels_to_images
Concat multi-level feature maps by image. [feature_level0, feature_level1...] -> [feature_image0, feature_image1...] Convert the shape of eac
mmdet/models/dense_heads/yolof_head.py:15
↓ 2 callersMethodload_annotations
Load annotation from annotation file.
mmdet/datasets/custom.py:137
↓ 2 callersMethodload_image_label_from_csv
Load image level annotations from csv style ann_file. Args: image_level_ann_file (str): CSV style image level annotation
mmdet/datasets/openimages.py:503
↓ 2 callersMethodload_proposals
Load proposal from proposal file.
mmdet/datasets/custom.py:141
↓ 2 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``Fa
mmcv_custom/checkpoint.py:41
↓ 2 callersMethodloss
(self, cls_scores, bbox_preds, shape_preds, loc_preds,
mmdet/models/dense_heads/guided_anchor_head.py:650
↓ 2 callersMethodloss
A combination of the func:``AnchorHead.loss`` and func:``SSDHead.loss``. When ``self.use_ohem == True``, it functions like ``SSDHead.
mmdet/models/dense_heads/yolact_head.py:140
↓ 2 callersMethodloss
Compute loss of the head. Args: segm_pred (list[Tensor]): Predicted semantic segmentation map with shape (N, num_
mmdet/models/dense_heads/yolact_head.py:509
↓ 2 callersMethodloss
Compute loss of the head. Args: mask_pred (list[Tensor]): Predicted prototypes with shape (num_classes, H, W).
mmdet/models/dense_heads/yolact_head.py:743
↓ 2 callersMethodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_poin
mmdet/models/dense_heads/fsaf_head.py:188
↓ 2 callersMethodloss
(self, cls_scores, bbox_preds, gt_bboxes, gt_labels,
mmdet/models/dense_heads/sabl_retina_head.py:481
↓ 2 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdet/models/backbones/resnet.py:556
↓ 2 callersFunctionmakebarplot
(rs, ps, outDir, class_name, iou_type)
tools/analysis_tools/coco_error_analysis.py:73
↓ 2 callersFunctionmakeplot
(rs, ps, outDir, class_name, iou_type)
tools/analysis_tools/coco_error_analysis.py:13
↓ 2 callersMethodmapper
Dictionary mapper. Renames keys according to keymap provided. Args: d (dict): old dict keymap (dict): {'old_key':'new
mmdet/datasets/pipelines/transforms.py:1448
↓ 2 callersFunctionmask_target
Compute mask target for positive proposals in multiple images. Args: pos_proposals_list (list[Tensor]): Positive proposals in multiple
mmdet/core/mask/mask_target.py:7
↓ 2 callersMethodmeta_info_values
Returns: list: Contains all values in meta_info_fields.
mmdet/core/data_structures/general_data.py:180
↓ 2 callersMethodmlu
Apply same name function to all tensors in data_fields.
mmdet/core/data_structures/general_data.py:277
↓ 2 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmdet/models/backbones/resnet.py:254
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmdet/models/dense_heads/reppoints_head.py:350
↓ 2 callersMethodonnx_export
Test without augmentation.
mmdet/models/roi_heads/standard_roi_head.py:295
↓ 2 callersMethodonnx_export
Test without augmentation.
projects/models/co_roi_head.py:319
↓ 2 callersMethodpad
padding has no effect on polygons`
mmdet/core/mask/structures.py:716
↓ 2 callersFunctionpalette_val
Convert palette to matplotlib palette. Args: palette List[tuple]: A list of color tuples. Returns: List[tuple[float]]: A lis
mmdet/core/visualization/palette.py:6
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:108
↓ 2 callersFunctionpq_compute_single_core
The single core function to evaluate the metric of Panoptic Segmentation. Same as the function with the same name in `panopticapi`. Only the
mmdet/datasets/api_wrappers/panoptic_evaluation.py:23
↓ 2 callersFunctionprofile_time
Print time spent by CPU and GPU. Useful as a temporary context manager to find sweet spots of code suitable for async implementation.
mmdet/utils/profiling.py:11
↓ 2 callersFunctionrandom_boxes
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitla
mmdet/core/bbox/demodata.py:8
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
mmdet/datasets/pipelines/transforms.py:129
↓ 2 callersMethodrefine_bboxes
Refine bboxes through stages.
mmdet/models/dense_heads/cascade_rpn_head.py:672
↓ 2 callersMethodreg_pred
Predict bucketing estimation (cls_pred) and fine regression (offset pred) with side-aware features.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:271
← previousnext →401–500 of 2,920, ranked by callers