MCPcopy Create free account

hub / github.com/VincentHancoder/SSGD / functions

Functions2,751 in github.com/VincentHancoder/SSGD

↓ 2 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:236
↓ 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 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 callersFunctionget_ann_from_having_ann
(img_infos, hashing_ann)
tools/prepare_data/split.py:68
↓ 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 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdet/datasets/coco.py:106
↓ 2 callersFunctionget_classes
Get class names of a dataset.
mmdet/core/evaluation/class_names.py:318
↓ 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_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:109
↓ 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 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_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_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
optimize_anchors.py:124
↓ 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:567
↓ 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)
optimize_anchors.py:206
↓ 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:135
↓ 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:139
↓ 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 callersFunctionobtain
(data, index_list)
tools/prepare_data/split.py:64
↓ 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 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 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
↓ 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
↓ 2 callersFunctionreorder_cls_channel
(val, num_classes=81)
tools/model_converters/upgrade_model_version.py:46
↓ 2 callersMethodrescale
see :func:`BaseInstanceMasks.rescale`
mmdet/core/mask/structures.py:635
↓ 2 callersMethodrfp_forward
The forward function that also takes the RFP features as input.
mmdet/models/backbones/detectors_resnet.py:73
↓ 2 callersMethodroi_rescale
Scale RoI coordinates by scale factor. Args: rois (torch.Tensor): RoI (Region of Interest), shape (n, 5) scale_factor
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:62
↓ 2 callersMethodsanitize_coordinates
Sanitizes the input coordinates so that x1 < x2, x1 != x2, x1 >= 0, and x2 <= image_size. Also converts from relative to absolute coor
mmdet/models/dense_heads/yolact_head.py:910
↓ 2 callersFunctionsave_anns
(name, images, annotations)
tools/misc/split_coco.py:53
↓ 2 callersFunctionsave_coco
(file, images, annotations, categories)
tools/prepare_data/split.py:12
↓ 2 callersMethodsave_result
(self, anchors, path=None)
optimize_anchors.py:140
↓ 2 callersMethodsave_result
(self, anchors, path=None)
tools/analysis_tools/optimize_anchors.py:140
↓ 2 callersMethodsemantic_postprocess
Semantic 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:94
↓ 2 callersFunctionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
mmdet/apis/train.py:52
↓ 2 callersFunctionshow_result_pyplot
Visualize the detection results on the image. Args: model (nn.Module): The loaded detector. img (str or np.ndarray): Image filena
mmdet/apis/inference.py:216
↓ 2 callersMethodsimple_test_mask
Simple test for mask head without augmentation.
mmdet/models/roi_heads/test_mixins.py:224
↓ 2 callersFunctionskip_pipeline_steps
(config)
browse_dataset.py:53
↓ 2 callersFunctionskip_pipeline_steps
(config)
tools/analysis_tools/browse_dataset.py:53
↓ 2 callersFunctionskip_pipeline_steps
(config)
tools/misc/browse_dataset.py:53
↓ 2 callersFunctionsmooth_l1_loss
Smooth L1 loss. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning target of the prediction.
mmdet/models/losses/smooth_l1_loss.py:12
↓ 2 callersFunctionssd_config
SSD Head Config.
tests/test_onnx/test_head.py:382
↓ 2 callersMethodto_bitmap
convert polygon masks to bitmap masks.
mmdet/core/mask/structures.py:860
↓ 2 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdet/core/mask/structures.py:910
↓ 2 callersFunctiontpfp_default
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5).
mmdet/core/evaluation/mean_ap.py:169
↓ 2 callersFunctiontpfp_imagenet
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5).
mmdet/core/evaluation/mean_ap.py:60
↓ 2 callersFunctionvoc_classes
()
mmdet/core/evaluation/class_names.py:9
↓ 2 callersMethodwindow_partition
Args: x: (B, H, W, C) Returns: windows: (num_windows*B, window_size, window_size, C)
mmdet/models/backbones/swin.py:272
↓ 2 callersFunctionyolo_config
YoloV3 Head Config.
tests/test_onnx/test_head.py:176
↓ 1 callersMethodGaussianMixture
(self, *args, **kwargs)
tests/test_models/test_dense_heads/test_lad_head.py:15
↓ 1 callersMethod__init__
(self, strides, ratios, scales=None, base_
mmdet/core/anchor/anchor_generator.py:61
↓ 1 callersMethod__init__
(self, *args, dynamic_intervals=None, **kwargs)
mmdet/core/evaluation/eval_hooks.py:26
↓ 1 callersMethod__init__
(self, annotation_file=None)
mmdet/datasets/coco_panoptic.py:37
↓ 1 callersMethod__init__
(self, ann_file, label_file='', image_level_ann_file='',
mmdet/datasets/openimages.py:63
↓ 1 callersMethod__init__
(self, num_max_proposals=None)
mmdet/datasets/pipelines/loading.py:536
↓ 1 callersMethod__init__
(self, num_scales, in_channels, out_channels,
mmdet/models/necks/yolo_neck.py:92
↓ 1 callersMethod__init__
L2 normalization layer. Args: n_dims (int): Number of dimensions to be normalized scale (float, optional): Defaults t
mmdet/models/necks/ssd_neck.py:108
← previousnext →401–500 of 2,751, ranked by callers