Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VincentHancoder/SSGD
/ functions
Functions
2,751 in github.com/VincentHancoder/SSGD
⨍
Functions
2,751
◇
Types & classes
447
↳
Endpoints
10
↓ 1 callers
Method
decode
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 callers
Method
decode_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 callers
Method
deform_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 callers
Function
delta2bbox
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 callers
Method
denormalize_gt_bboxes
Convert ground truth bboxes from relative position to absolute position. Only used in evaluating time.
mmdet/datasets/openimages.py:591
↓ 1 callers
Method
detection_evaluate
Evaluation for object detection. Args: dataset (Dataset): A PyTorch dataset. results (list): Object detection results
tools/analysis_tools/analyze_results.py:180
↓ 1 callers
Function
dice_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 callers
Method
differential_evolution
(self)
optimize_anchors.py:282
↓ 1 callers
Method
differential_evolution
(self)
tools/analysis_tools/optimize_anchors.py:282
↓ 1 callers
Function
diou_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 callers
Function
distribution_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 callers
Method
double_step_seq
(step1, len1, step2, len2)
mmdet/models/backbones/swin.py:122
↓ 1 callers
Function
download
(url, dir, unzip=True, delete=False, threads=1)
tools/misc/download_dataset.py:35
↓ 1 callers
Function
draw_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:79
↓ 1 callers
Function
draw_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:164
↓ 1 callers
Function
dummy_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 callers
Method
dynamic_k_matching
(self, cost, pairwise_ious, num_gt, valid_mask)
mmdet/core/bbox/assigners/sim_ota_assigner.py:230
↓ 1 callers
Method
encode
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 callers
Method
evaluate
Evaluate the dataset. Args: results (list): Testing results of the dataset. metric (str | list[str]): Metrics to be e
mmdet/datasets/custom.py:310
↓ 1 callers
Method
evaluate_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 callers
Method
evaluate_det_segm
Instance segmentation and object detection evaluation in COCO protocol. Args: results (list[list | tuple | dict]): Testin
mmdet/datasets/coco.py:386
↓ 1 callers
Method
evaluate_pan_json
Evaluate PQ according to the panoptic results json file.
mmdet/datasets/coco_panoptic.py:503
↓ 1 callers
Method
expand
TODO: Add expand for polygon
mmdet/core/mask/structures.py:720
↓ 1 callers
Method
extract_feat
Extract features from images.
mmdet/models/detectors/base.py:46
↓ 1 callers
Method
extract_teacher_feat
Directly extract teacher features from the backbone+neck.
mmdet/models/detectors/lad.py:47
↓ 1 callers
Method
fast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdet/datasets/coco.py:334
↓ 1 callers
Function
fast_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 callers
Method
filter_gt_bboxes
(self, origin_bboxes, wrapped_bboxes)
mmdet/datasets/pipelines/transforms.py:2649
↓ 1 callers
Method
fit
(self, loss)
tests/test_models/test_dense_heads/test_lad_head.py:18
↓ 1 callers
Method
format_results
Format the results to json (standard format for COCO evaluation). Args: results (list[tuple | numpy.ndarray]): Testing results of
mmdet/datasets/coco.py:358
↓ 1 callers
Method
format_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 callers
Method
format_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 callers
Method
forward
(self, feats)
mmdet/models/dense_heads/guided_anchor_head.py:246
↓ 1 callers
Method
forward
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 callers
Method
forward
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 callers
Method
forward
(self, feats)
mmdet/models/dense_heads/sabl_retina_head.py:207
↓ 1 callers
Method
forward
Forward function. Args: feats (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdet/models/dense_heads/detr_head.py:202
↓ 1 callers
Method
forward
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 callers
Method
forward_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:707
↓ 1 callers
Method
forward_test
(self, *, img, img_metas, **kwargs)
mmdet/core/export/model_wrappers.py:38
↓ 1 callers
Method
forward_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 callers
Method
forward_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:68
↓ 1 callers
Method
forward_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 callers
Method
fuse
(self, fuse_dict)
mmdet/models/necks/fpg.py:323
↓ 1 callers
Function
fuse_list
(obj_list, obj)
mmdet/utils/split_batch.py:27
↓ 1 callers
Method
ga_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 callers
Method
ga_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 callers
Function
gaussian2D
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 callers
Function
gaussian_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 callers
Method
gen_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 callers
Method
gen_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 callers
Method
gen_encoder_output_proposals
Generate proposals from encoded memory. Args: memory (Tensor) : The output of encoder, has shape (bs, num_key, em
mmdet/models/utils/transformer.py:763
↓ 1 callers
Function
gen_packages_items
()
setup.py:116
↓ 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
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_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:583
↓ 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:288
↓ 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:155
↓ 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:262
↓ 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_distortions_from_results
(eval_output)
tools/analysis_tools/robustness_eval.py:191
↓ 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
Method
get_mask_scores
Get the mask scores. mask_score = bbox_score * mask_iou
mmdet/models/roi_heads/mask_heads/maskiou_head.py:174
↓ 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
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_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
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:875
↓ 1 callers
Method
get_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:831
↓ 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
Method
get_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
↓ 1 callers
Function
get_segmentation
(points)
tools/prepare_data/voc_to_json.py:19
↓ 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
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
← previous
next →
801–900 of 2,751, ranked by callers