Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sense-X/Co-DETR
/ functions
Functions
2,920 in github.com/Sense-X/Co-DETR
⨍
Functions
2,920
◇
Types & classes
479
↳
Endpoints
10
↓ 1 callers
Method
gen_sineembed_for_position
(pos_tensor, pos_feat)
projects/models/transformer.py:470
↓ 1 callers
Method
gen_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:778
↓ 1 callers
Function
generat_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:96
↓ 1 callers
Method
generate_regnet
Generates per block width from RegNet parameters. Args: initial_width ([int]): Initial width of the backbone width_sl
mmdet/models/backbones/regnet.py:252
↓ 1 callers
Function
get_GiB
return x GiB.
tools/deployment/onnx2tensorrt.py:19
↓ 1 callers
Function
get_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
mmdet/models/backbones/vit.py:216
↓ 1 callers
Method
get_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
mmdet/models/dense_heads/anchor_head.py:171
↓ 1 callers
Method
get_ann_info
Get annotation of dataset by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specif
mmdet/datasets/dataset_wrappers.py:320
↓ 1 callers
Method
get_ann_info
Get OpenImages annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specif
mmdet/datasets/openimages.py:844
↓ 1 callers
Method
get_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:598
↓ 1 callers
Method
get_aux_targets
(self, pos_coords, img_metas, mlvl_feats, head_idx)
projects/models/co_deformable_detr_head.py:372
↓ 1 callers
Method
get_bboxes
Transform network outputs of a batch into bbox results. Note: When score_factors is not None, the cls_scores are usually multiplied b
mmdet/models/dense_heads/base_dense_head.py:32
↓ 1 callers
Method
get_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:574
↓ 1 callers
Method
get_cat2imgs
Get a dict with class as key and img_ids as values, which will be used in :class:`ClassAwareSampler`. Returns: dict[list]
mmdet/datasets/custom.py:290
↓ 1 callers
Method
get_cat_ids
Get category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the image o
mmdet/datasets/custom.py:157
↓ 1 callers
Method
get_cat_ids
(self, cat_names=[], sup_names=[], cat_ids=[])
mmdet/datasets/api_wrappers/coco_api.py:30
↓ 1 callers
Method
get_classes
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
mmdet/datasets/custom.py:264
↓ 1 callers
Function
get_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:477
↓ 1 callers
Method
get_cls_targets
Get cls targets for DDOD head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the par
mmdet/models/dense_heads/ddod_head.py:483
↓ 1 callers
Function
get_coco_style_results
(filename, task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:35
↓ 1 callers
Function
get_deprecated_model_names
()
mmcv_custom/checkpoint.py:203
↓ 1 callers
Function
get_distortions_from_results
(eval_output)
tools/analysis_tools/robustness_eval.py:191
↓ 1 callers
Method
get_dn_target
(self, dn_bbox_preds_list, gt_bboxes_list, gt_labels_list, img_metas, dn_meta)
projects/models/co_dino_head.py:332
↓ 1 callers
Function
get_external_models
()
mmcv_custom/checkpoint.py:182
↓ 1 callers
Method
get_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:542
↓ 1 callers
Function
get_gt_area_group_numbers
(cocoEval)
tools/analysis_tools/coco_error_analysis.py:108
↓ 1 callers
Method
get_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:108
↓ 1 callers
Method
get_image_level_ann
Get OpenImages annotation by index. Args: image_level_ann_file (str): CSV style image level annotation file path.
mmdet/datasets/openimages.py:538
↓ 1 callers
Method
get_img_shape
Set images original shape into data_infos.
mmdet/datasets/openimages.py:319
↓ 1 callers
Method
get_in_gt_and_in_center_info
(self, priors, gt_bboxes)
mmdet/core/bbox/assigners/sim_ota_assigner.py:186
↓ 1 callers
Method
get_indexes
Call function to collect indexes. Args: dataset (:obj:`MultiImageMixDataset`): The dataset. Returns: list: i
mmdet/datasets/pipelines/transforms.py:2329
↓ 1 callers
Function
get_layer_id_for_convnext
Get the layer id to set the different learning rates in ``layer_wise`` decay_type. Args: var_name (str): The key of the model.
mmdet/core/optimizers/layer_decay_optimizer_constructor.py:10
↓ 1 callers
Function
get_layer_id_for_vit
Get the layer id to set the different learning rates. Args: var_name (str): The key of the model. num_max_layer (int): Maximum nu
mmdet/core/optimizers/layer_decay_optimizer_constructor.py:78
↓ 1 callers
Method
get_meta_from_file
Get image metas from pkl file.
mmdet/datasets/openimages.py:291
↓ 1 callers
Function
get_metas_from_csv_style_ann_file
(ann_file)
tools/misc/get_image_metas.py:36
↓ 1 callers
Function
get_metas_from_txt_style_ann_file
(ann_file)
tools/misc/get_image_metas.py:52
↓ 1 callers
Function
get_mmcls_models
()
mmcv_custom/checkpoint.py:196
↓ 1 callers
Method
get_momentum
(self, runner)
mmdet/core/hook/ema.py:67
↓ 1 callers
Function
get_norm_states
(module)
mmdet/core/hook/sync_norm_hook.py:11
↓ 1 callers
Method
get_num_groups
Args: group_queries (int): Number of dn queries in one group.
projects/models/query_denoising.py:38
↓ 1 callers
Method
get_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/atss_head.py:496
↓ 1 callers
Method
get_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/gfl_head.py:643
↓ 1 callers
Method
get_num_level_anchors_inside
Get the anchors of each scale level inside. Args: num_level_anchors (list[int]): Number of anchors of each scale
mmdet/models/dense_heads/ddod_head.py:761
↓ 1 callers
Method
get_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
projects/models/co_atss_head.py:493
↓ 1 callers
Function
get_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:88
↓ 1 callers
Method
get_proposal_pos_embed
Get the position embedding of proposal.
mmdet/models/utils/transformer.py:871
↓ 1 callers
Method
get_reg_targets
Get reg targets for DDOD head. This method is almost the same as `AnchorHead.get_targets()` when is_cls_assigner is False. Besides re
mmdet/models/dense_heads/ddod_head.py:561
↓ 1 callers
Method
get_results
Get precessed :obj:`InstanceData` of multiple images.
mmdet/models/dense_heads/base_mask_head.py:18
↓ 1 callers
Method
get_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:190
↓ 1 callers
Function
get_stage_id_for_convnext
Get the stage id to set the different learning rates in ``stage_wise`` decay_type. Args: var_name (str): The key of the model.
mmdet/core/optimizers/layer_decay_optimizer_constructor.py:53
↓ 1 callers
Method
get_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:322
↓ 1 callers
Function
get_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Keys
mmcv_custom/checkpoint.py:387
↓ 1 callers
Method
get_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:231
↓ 1 callers
Method
get_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:439
↓ 1 callers
Method
get_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:181
↓ 1 callers
Method
get_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:397
↓ 1 callers
Method
get_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:299
↓ 1 callers
Method
get_targets
Compute instance segmentation targets for each image. Args: mask_pred (Tensor): Predicted prototypes with shape (
mmdet/models/dense_heads/yolact_head.py:816
↓ 1 callers
Method
get_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:286
↓ 1 callers
Method
get_targets
Compute regression and classification targets for anchors in multiple images. Args: cls_scores (Tensor): Classification p
mmdet/models/dense_heads/tood_head.py:549
↓ 1 callers
Method
get_targets
(self, gt_bbox_list, gt_label_list, featmap_sizes, points)
mmdet/models/dense_heads/fovea_head.py:186
↓ 1 callers
Method
get_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
mmdet/models/dense_heads/maskformer_head.py:174
↓ 1 callers
Method
get_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:224
↓ 1 callers
Method
get_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:322
↓ 1 callers
Method
get_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:473
↓ 1 callers
Method
get_targets
Compute regression, classification and centerness targets for points in multiple images. Args: points (list[Tensor]): Poi
mmdet/models/dense_heads/fcos_head.py:270
↓ 1 callers
Method
get_targets
Generate corner targets. Including corner heatmap, corner offset. Optional: corner embedding, corner guiding shift, centripetal shif
mmdet/models/dense_heads/corner_head.py:325
↓ 1 callers
Method
get_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:410
↓ 1 callers
Method
get_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:108
↓ 1 callers
Method
get_targets
(self, sampling_results, gt_masks, rcnn_train_cfg)
mmdet/models/roi_heads/mask_heads/dynamic_mask_head.py:139
↓ 1 callers
Method
get_targets
Compute regression and classification targets for a batch image. Outputs from a single decoder layer of a single feature level are used.
projects/models/co_deformable_detr_head.py:858
↓ 1 callers
Method
get_updated_masks
(self, masks, composed_mask)
mmdet/datasets/pipelines/transforms.py:2907
↓ 1 callers
Function
get_value
(cfg, key)
mmdet/utils/replace_cfg_vals.py:24
↓ 1 callers
Function
get_version
()
setup.py:25
↓ 1 callers
Function
get_version
()
docs/zh_cn/conf.py:29
↓ 1 callers
Function
get_version
()
docs/en/conf.py:29
↓ 1 callers
Function
get_voc_style_results
(filename, prints='mPC', aggregate='benchmark')
tools/analysis_tools/robustness_eval.py:112
↓ 1 callers
Method
get_whs_and_shapes
Get widths and heights of bboxes and shapes of images. Returns: tuple[np.ndarray]: Array of bbox shapes and array of image
tools/analysis_tools/optimize_anchors.py:97
↓ 1 callers
Function
giou_loss
r"""`Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression <https://arxiv.org/abs/1902.09630>`_. Args:
mmdet/models/losses/iou_loss.py:102
↓ 1 callers
Method
gmm_separation_scheme
A general separation scheme for gmm model. It separates a GMM distribution of candidate samples into three parts, 0 1 and uncertain a
mmdet/models/dense_heads/paa_head.py:367
↓ 1 callers
Function
imshow_gt_det_bboxes
General visualization GT and result function. Args: img (str | ndarray): The image to be displayed. annotation (dict): Ground truth a
mmdet/core/visualization/image.py:380
↓ 1 callers
Method
init
(self)
tests/test_runtime/test_async.py:46
↓ 1 callers
Method
init_assigner_sampler
Initialize assigner and sampler.
mmdet/models/roi_heads/base_roi_head.py:63
↓ 1 callers
Method
init_bbox_head
Initialize ``bbox_head``
mmdet/models/roi_heads/base_roi_head.py:53
↓ 1 callers
Method
init_denoising
(self, dn_cfg)
projects/models/co_dino_head.py:53
↓ 1 callers
Method
init_layers
Initialize layers of the DeformableDetrTransformer.
mmdet/models/utils/transformer.py:733
↓ 1 callers
Method
init_mask_head
Initialize ``mask_head``
mmdet/models/roi_heads/base_roi_head.py:58
↓ 1 callers
Method
init_point_head
Initialize ``point_head``
mmdet/models/roi_heads/point_rend_roi_head.py:26
↓ 1 callers
Function
init_random_seed
Initialize random seed. If the seed is not set, the seed will be automatically randomized, and then broadcast to all processes to prevent som
mmdet/apis/train.py:20
↓ 1 callers
Method
init_weights
(self)
mmdet/models/backbones/detectors_resnet.py:296
↓ 1 callers
Method
init_weights
(self)
mmdet/models/backbones/pvt.py:523
↓ 1 callers
Method
init_weights
(self)
mmdet/models/backbones/swin.py:669
↓ 1 callers
Method
init_weights
(self)
mmdet/models/utils/normed_predictor.py:28
↓ 1 callers
Method
instance_postprocess
Instance segmengation postprocess. Args: mask_cls (Tensor): Classfication outputs of shape (num_queries, cls_out_
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:112
↓ 1 callers
Function
iou_loss
IoU loss. Computing the IoU loss between a set of predicted bboxes and target bboxes. The loss is calculated as negative log of IoU. Arg
mmdet/models/losses/iou_loss.py:16
↓ 1 callers
Function
is_head
(key)
tools/model_converters/upgrade_model_version.py:11
↓ 1 callers
Function
is_mlu_available
Returns a bool indicating if MLU is currently available.
mmdet/utils/util_distribution.py:62
↓ 1 callers
Method
kmeans_anchors
(self)
tools/analysis_tools/optimize_anchors.py:170
↓ 1 callers
Method
kmeans_expectation
Expectation part of EM algorithm(Expectation-Maximization)
tools/analysis_tools/optimize_anchors.py:215
↓ 1 callers
Function
knowledge_distillation_kl_div_loss
r"""Loss function for knowledge distilling using KL divergence. Args: pred (Tensor): Predicted logits with shape (N, n + 1). soft
mmdet/models/losses/kd_loss.py:12
← previous
next →
901–1,000 of 2,920, ranked by callers