MCPcopy Create free account

hub / github.com/VincentHancoder/SSGD / functions

Functions2,751 in github.com/VincentHancoder/SSGD

↓ 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_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
optimize_anchors.py:80
↓ 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:146
↓ 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:49
↓ 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_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_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:38
↓ 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:306
↓ 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 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:458
↓ 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:510
↓ 2 callersMethod_init_pred_table
Initialize the W&B Tables for model evaluation.
mmdet/core/hook/wandblogger_hook.py:318
↓ 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:293
↓ 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:573
↓ 2 callersMethod_log_predictions
(self, results)
mmdet/core/hook/wandblogger_hook.py:398
↓ 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/ssgd.py:223
↓ 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 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 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
↓ 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 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 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:112
↓ 2 callersMethodevaluate
Evaluation in COCO protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[s
mmdet/datasets/ssgd.py:559
↓ 2 callersMethodevaluate_det_segm
Instance segmentation and object detection evaluation in COCO protocol. Args: results (list[list | tuple | dict]): Testin
mmdet/datasets/ssgd.py:353
↓ 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/ssgd.py:301
↓ 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
← previousnext →301–400 of 2,751, ranked by callers