MCPcopy Create free account

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

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

↓ 3 callersMethodget_label_assignment
Get label assignment (from teacher). Args: cls_scores (list[Tensor]): Box scores for each scale level. Has shape
mmdet/models/dense_heads/lad_head.py:16
↓ 3 callersFunctionget_loading_pipeline
Only keep loading image and annotations related configuration. Args: pipeline (list[dict]): Data pipeline configs. Returns:
mmdet/datasets/utils.py:75
↓ 3 callersFunctionget_local_maximum
Extract local maximum pixel with given kernel. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max pooling. Def
mmdet/models/utils/gaussian_target.py:190
↓ 3 callersFunctionget_palette
Get palette from various inputs. Args: palette (list[tuple] | str | tuple | :obj:`Color`): palette inputs. num_classes (int): the
mmdet/core/visualization/palette.py:22
↓ 3 callersMethodget_proposal_pos_embed
Get the position embedding of proposal.
projects/models/transformer.py:171
↓ 3 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:827
↓ 3 callersMethodget_relation_matrix
Get hierarchy for classes. Args: hierarchy_file (sty): File path to the hierarchy for classes. Returns: ndar
mmdet/datasets/openimages.py:357
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:156
↓ 3 callersMethodget_results
Get multi-image mask results. Args: mlvl_mask_preds (list[Tensor]): Multi-level mask prediction. Each element in
mmdet/models/dense_heads/solo_head.py:439
↓ 3 callersMethodget_targets
A wrapper for computing ATSS and FCOS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-awa
mmdet/models/dense_heads/vfnet_head.py:500
↓ 3 callersFunctionget_topk_from_heatmap
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, width].
mmdet/models/utils/gaussian_target.py:207
↓ 3 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
mmdet/models/utils/transformer.py:390
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdet/models/losses/pisa_loss.py:9
↓ 3 callersFunctionlevel_to_value
Map from level to values based on max_value.
mmdet/datasets/pipelines/auto_augment.py:14
↓ 3 callersMethodload_cats
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:39
↓ 3 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmdet/apis/test.py:81
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
mmdet/models/utils/transformer.py:51
↓ 3 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmdet/models/backbones/resnet.py:249
↓ 3 callersFunctionparse_shape
(shape)
tools/deployment/onnx2tensorrt.py:208
↓ 3 callersFunctionpolygon_to_bitmap
Convert masks from the form of polygons to bitmaps. Args: polygons (list[ndarray]): masks in polygon representation height (int):
mmdet/core/mask/structures.py:1058
↓ 3 callersFunctionprint_coco_results
(results)
tools/analysis_tools/robustness_eval.py:9
↓ 3 callersFunctionrandom_negative
Randomly negate value based on random_negative_prob.
mmdet/datasets/pipelines/auto_augment.py:24
↓ 3 callersMethodrescale
See :func:`BaseInstanceMasks.rescale`.
mmdet/core/mask/structures.py:265
↓ 3 callersFunctionretinanet_config
RetinanNet Head Config.
tests/test_onnx/test_head.py:95
↓ 3 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdet/core/bbox/samplers/score_hlr_sampler.py:216
↓ 3 callersFunctionscale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
mmdet/core/bbox/assigners/center_region_assigner.py:10
↓ 3 callersMethodsimple_test
Test without augmentation.
projects/models/co_detr.py:508
↓ 3 callersMethodsimple_test_bboxes
Test only det bboxes without augmentation. Args: x (tuple[Tensor]): Feature maps of all scale level. img_metas (list[
mmdet/models/roi_heads/test_mixins.py:51
↓ 3 callersMethodsingle_level_grid_priors
Generate grid anchors of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
mmdet/core/anchor/anchor_generator.py:241
↓ 2 callersMethod__init__
(self, dataset, input_shape, logger, devic
tools/analysis_tools/optimize_anchors.py:80
↓ 2 callersMethod__init__
(self, momentum=0.0002, interval=1, skip_buffers=False,
mmdet/core/hook/ema.py:32
↓ 2 callersMethod__init__
(self, engine_file, class_names, device_id, output_names=None)
mmdet/core/export/model_wrappers.py:155
↓ 2 callersMethod__init__
(self, in_channels, out_channels, num_blocks=6,
mmdet/models/necks/dyhead.py:148
↓ 2 callersMethod__init__
(self, block, inplanes, planes, num_blocks
mmdet/models/backbones/detectors_resnet.py:146
↓ 2 callersMethod__init__
(self, scales=4, base_width=26, style='pytorch',
mmdet/models/backbones/res2net.py:303
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet/models/backbones/trident_resnet.py:33
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size=1,
mmdet/models/backbones/csp_darknet.py:30
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3,
mmdet/models/dense_heads/cascade_rpn_head.py:42
↓ 2 callersMethod__init__
( self, num_classes, in_channels, feat_channels=256, stacked_convs=4,
mmdet/models/dense_heads/solo_head.py:50
↓ 2 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:22
↓ 2 callersMethod__init__
(self)
tests/test_utils/test_layer_decay_optimizer_constructor.py:92
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
mmdet/utils/util_mixins.py:76
↓ 2 callersFunction_adjust_contrast
(img, factor)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:126
↓ 2 callersMethod_assign
Assign gt to priors using SimOTA. Args: pred_scores (Tensor): Classification scores of one image, a 2D-Tensor with
mmdet/core/bbox/assigners/sim_ota_assigner.py:95
↓ 2 callersMethod_bbox_decode
(self, priors, bbox_preds)
mmdet/models/dense_heads/yolox_head.py:301
↓ 2 callersMethod_build_conv_layer
(self, name)
mmdet/models/roi_heads/mask_heads/refine_mask_head.py:214
↓ 2 callersMethod_build_conv_layer
(self, name)
mmdet/models/roi_heads/mask_heads/refine_mask_head.py:520
↓ 2 callersMethod_build_stacked_convs
Initialize conv layers of a single level head.
mmdet/models/dense_heads/yolox_head.py:145
↓ 2 callersFunction_calc_dynamic_intervals
(start_interval, dynamic_interval_list)
mmdet/core/evaluation/eval_hooks.py:12
↓ 2 callersMethod_check_head
Check whether the `num_classes` in head matches the length of `CLASSES` in `dataset`. Args: runner (obj:`EpochBasedRunner
mmdet/datasets/utils.py:120
↓ 2 callersFunction_check_img_seg
(results, results_translated, keys, offset, fill_val, direction)
tests/test_data/test_pipelines/test_transform/test_translate.py:289
↓ 2 callersFunction_create_hierarchy_json
(hierarchy_name)
tests/test_data/test_datasets/test_openimages_dataset.py:85
↓ 2 callersFunction_create_metas
(meta_file)
tests/test_data/test_datasets/test_openimages_dataset.py:166
↓ 2 callersFunction_create_panoptic_gt_annotations
(ann_file)
tests/test_data/test_datasets/test_panoptic_dataset.py:154
↓ 2 callersMethod_crop_image_and_paste
Crop image with a given center and size, then paste the cropped image to a blank image with two centers align. This function is equiv
mmdet/datasets/pipelines/transforms.py:1701
↓ 2 callersMethod_decide_interval
(self, runner)
mmdet/core/evaluation/eval_hooks.py:35
↓ 2 callersMethod_decide_interval
(self, runner)
mmdet/core/evaluation/eval_hooks.py:84
↓ 2 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
tests/test_models/test_loss_compatibility.py:126
↓ 2 callersMethod_filter_boxes
Check whether the center of each box is in the patch. Args: patch (list[int]): The cropped area, [left, top, right, bottom].
mmdet/datasets/pipelines/transforms.py:1685
↓ 2 callersMethod_freeze_stages
(self)
projects/models/swin_transformer.py:554
↓ 2 callersMethod_fuse_glbctx
Fuse global context feats with roi feats.
mmdet/models/roi_heads/scnet_roi_head.py:73
↓ 2 callersFunction_get_adaptive_scales
Get adaptive scales according to areas. The scale range is [0.5, 1.0]. When the area is less than ``'min_area'``, the scale is 0.5 while the
mmdet/core/visualization/image.py:40
↓ 2 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores from all scale
mmdet/models/dense_heads/paa_head.py:537
↓ 2 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: tl_heat (Tensor): Top-left corner heatmap for current leve
mmdet/models/dense_heads/corner_head.py:704
↓ 2 callersMethod_get_border
Get final border for the target size. This function generates a ``final_border`` according to image's shape. The area between ``final
mmdet/datasets/pipelines/transforms.py:1666
↓ 2 callersFunction_get_config_module
Load a configuration as a python module.
tests/test_models/test_forward.py:26
↓ 2 callersFunction_get_detector_cfg
Grab configs necessary to create a detector. These are deep copied to allow for safe modification of parameters without influencing other tes
tests/test_models/test_loss_compatibility.py:35
↓ 2 callersMethod_get_eval_results
Get model evaluation results.
mmdet/core/hook/wandblogger_hook.py:307
↓ 2 callersMethod_get_fine_grained_point_feats
Sample fine grained feats from each level feature map and concatenate them together. Args: x (tuple[Tensor]): Feature map
mmdet/models/roi_heads/point_rend_roi_head.py:66
↓ 2 callersFunction_get_mmcv_home
()
mmcv_custom/checkpoint.py:30
↓ 2 callersMethod_get_wandb_bboxes
Get list of structured dict for logging bounding boxes to W&B. Args: bboxes (list): List of bounding box coordinates in
mmdet/core/hook/wandblogger_hook.py:459
↓ 2 callersMethod_get_wandb_masks
Get list of structured dict for logging masks to W&B. Args: masks (list): List of masks. labels (int): List of label
mmdet/core/hook/wandblogger_hook.py:511
↓ 2 callersMethod_init_pred_table
Initialize the W&B Tables for model evaluation.
mmdet/core/hook/wandblogger_hook.py:319
↓ 2 callersFunction_interpolate_as
Interpolate the `source` (4D) to the shape of the `target`.
mmdet/models/utils/misc.py:55
↓ 2 callersMethod_load_bboxes
Private function to load bounding box annotations. Args: results (dict): Result dict from :obj:`mmdet.CustomDataset`. Re
mmdet/datasets/pipelines/loading.py:245
↓ 2 callersMethod_load_labels
Private function to load label annotations. Args: results (dict): Result dict from :obj:`mmdet.CustomDataset`. Returns:
mmdet/datasets/pipelines/loading.py:277
↓ 2 callersMethod_log_ckpt_as_artifact
Log model checkpoint as W&B Artifact. Args: model_path (str): Path of the checkpoint to log. aliases (list): List of
mmdet/core/hook/wandblogger_hook.py:294
↓ 2 callersMethod_log_eval_table
Log the W&B Tables for model evaluation. The table will be logged multiple times creating new version. Use this to compare models at
mmdet/core/hook/wandblogger_hook.py:576
↓ 2 callersMethod_log_predictions
(self, results)
mmdet/core/hook/wandblogger_hook.py:399
↓ 2 callersMethod_mask_forward
Mask head forward function used in both training and testing.
projects/models/co_detr.py:188
↓ 2 callersMethod_mask_point_forward_test
Mask refining process with point head in testing. Args: x (tuple[Tensor]): Feature maps of all scale level. rois (Ten
mmdet/models/roi_heads/point_rend_roi_head.py:104
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:12
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:70
↓ 2 callersMethod_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
mmdet/datasets/pipelines/transforms.py:182
↓ 2 callersMethod_save_image_gts_results
Display or save image with groung truths and predictions from a model. Args: dataset (Dataset): A PyTorch dataset.
tools/analysis_tools/analyze_results.py:93
↓ 2 callersMethod_segm2json
Convert instance segmentation results to COCO json style.
mmdet/datasets/coco.py:256
↓ 2 callersMethod_swap_ema_parameters
Swap the parameter of model with parameter in ema_buffer.
mmdet/core/hook/ema.py:94
↓ 2 callersFunction_translated_gt
(masks, direction, offset, out_shape)
tests/test_data/test_pipelines/test_transform/test_translate.py:456
↓ 2 callersFunctionaddAnnItem
(annotation_id, image_id, category_id, bbox, difficult_flag)
tools/dataset_converters/pascal_voc.py:106
↓ 2 callersMethodadd_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdet/core/bbox/assigners/assign_result.py:192
↓ 2 callersMethodalbu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmdet/datasets/pipelines/transforms.py:1413
↓ 2 callersMethodanchor_offset
Get offset for deformable conv based on anchor shape NOTE: currently support deformable kernel_size=3 and dilation=1 Args:
mmdet/models/dense_heads/cascade_rpn_head.py:328
↓ 2 callersMethodasync_test_bboxes
Asynchronized test for box head without augmentation.
mmdet/models/roi_heads/test_mixins.py:19
↓ 2 callersMethodasync_test_mask
Asynchronized test for mask head without augmentation.
mmdet/models/roi_heads/test_mixins.py:183
↓ 2 callersMethodaug_test
Test function with test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (list[d
mmdet/models/detectors/rpn.py:117
↓ 2 callersMethodaug_test_mask
Test for mask head with test time augmentation.
mmdet/models/roi_heads/test_mixins.py:281
↓ 2 callersFunctionautolabel
Attach a text label above each bar in *rects*, displaying its height.
tools/analysis_tools/coco_error_analysis.py:54
↓ 2 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
mmdet/core/bbox/transforms.py:22
↓ 2 callersMethodbbox_pred_split
Split batch bbox prediction back to each image.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:301
↓ 2 callersFunctionbbox_rescale
Rescale bounding box w.r.t. scale_factor. Args: bboxes (Tensor): Shape (n, 4) for bboxes or (n, 5) for rois scale_factor (float):
mmdet/core/bbox/transforms.py:213
← previousnext →301–400 of 2,920, ranked by callers