MCPcopy Create free account

hub / github.com/Megvii-BaseDetection/cvpods / functions

Functions2,734 in github.com/Megvii-BaseDetection/cvpods

↓ 2 callersFunctionload_sem_seg
Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground truth annotations and all files
cvpods/data/datasets/coco.py:421
↓ 2 callersFunctionload_state_dict
(model_name)
cvpods/analyser/visualize_weight_analysis.py:42
↓ 2 callersFunctionmake_mask
Makes a donut shaped binary mask.
tests/data/test_coco.py:12
↓ 2 callersFunctionmap_name
(name)
cvpods/solver/build.py:98
↓ 2 callersMethodmask_to_polygons
(self, mask)
cvpods/utils/visualizer/visualizer.py:107
↓ 2 callersFunctionmatrix_nms
Matrix NMS for multi-class masks. See: https://arxiv.org/pdf/2003.10152.pdf for more details. Args: seg_masks (Tensor): shape: [
cvpods/layers/nms.py:322
↓ 2 callersFunctionmaybe_to_cpu
(x)
cvpods/utils/memory.py:61
↓ 2 callersFunctionmerge_branch_instances
Merge detection results from different branches of TridentNet. Return detection results by applying non-maximum suppression (NMS) on bounding
playground/detection/coco/tridentnet/tridentnet_base/trident_rcnn.py:8
↓ 2 callersFunctionmulti_apply
(func, *args, **kwargs)
cvpods/modeling/meta_arch/solo.py:24
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
cvpods/utils/visualizer/visualizer.py:154
↓ 2 callersMethodnormalize_angles
Restrict angles to the range of [-180, 180) degrees
cvpods/structures/rotated_boxes.py:246
↓ 2 callersFunctionoutput
(vis, fname)
tools/visualize_data.py:61
↓ 2 callersFunctionoutput
(vis, fname)
cvpods/modeling/basenet/basenet.py:45
↓ 2 callersMethodpause
Pause the timer.
cvpods/utils/benchmark/timer.py:25
↓ 2 callersFunctionpermute_all_cls_and_box_to_N_HWA_K_and_concat
Rearrange the tensor layout from the network output, i.e.: list[Tensor]: #lvl tensors of shape (N, A x K, Hi, Wi) to per-image prediction
cvpods/modeling/meta_arch/fcos.py:21
↓ 2 callersFunctionpoints_nms
(heat, kernel=2)
cvpods/modeling/meta_arch/solo.py:30
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/rcnn.py:192
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/fcos.py:447
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/condinst.py:495
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/atss.py:411
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/ssd.py:437
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/moco.py:215
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
cvpods/modeling/meta_arch/retinanet.py:381
↓ 2 callersMethodproposals_losses
(self, gt_classes, gt_shifts_deltas, gt_centerness, gt_inds, im_inds, pred_class_logi
cvpods/modeling/meta_arch/condinst.py:334
↓ 2 callersMethodpush
(self, class_: int, id: int, score: float, is_true: bool, info: dict = {})
cvpods/analyser/tide/ap.py:143
↓ 2 callersFunctionrandom_boxes
(mean_box, stdev, N)
tests/modeling/test_box2box_transform.py:11
↓ 2 callersFunctionrandom_lt
cvpods/layers/csrc/tree_filter/boruvka_rst.cpp:130
↓ 2 callersFunctionrandom_rotated_boxes
(mean_box, std_length, std_angle, N)
tests/modeling/test_box2box_transform.py:33
↓ 2 callersMethodreset
(self)
cvpods/evaluation/evaluator.py:71
↓ 2 callersFunctionretry_if_cuda_oom
r""" Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after calling `torch.cuda.empty_cache(
cvpods/utils/memory.py:28
↓ 2 callersFunctionreverse_id_mapper
(contiguous_id)
cvpods/data/datasets/coco.py:535
↓ 2 callersFunctionrunner_decrator
We use the "DefaultRunner" which contains a number pre-defined logic for standard training workflow. They may not work for you, especially if
tools/test_net.py:38
↓ 2 callersFunctionscale_by_iou
(ious, sigma, soft_mode="gaussian")
cvpods/layers/nms.py:123
↓ 2 callersFunctionseed_all_rng
Set the random seed for the RNG in torch, numpy and python. Args: seed (int): if None, will use a strong random seed. Returns:
cvpods/utils/env/env.py:30
↓ 2 callersMethodsemantic_masks
(self)
cvpods/utils/visualizer/visualizer.py:170
↓ 2 callersMethodset_epoch
(self, epoch)
cvpods/data/samplers/sampler.py:178
↓ 2 callersMethodset_low_quality_matches_
Produce additional matches for predictions that have only low-quality matches. Specifically, for each ground-truth G find the set of
cvpods/modeling/matcher.py:104
↓ 2 callersMethodsmooth_l1_loss
Compute the smooth L1 loss for box regression. Returns: scalar Tensor
cvpods/modeling/roi_heads/fast_rcnn.py:227
↓ 2 callersMethodsplit_features
(self, features)
cvpods/modeling/meta_arch/solo.py:592
↓ 2 callersFunctionstage_main
(args, cfg, build)
tools/debug_net.py:65
↓ 2 callersMethodstep
Perform the appropriate action at the given iteration. Args: iteration (int): the current iteration, ranged in [0, max_i
cvpods/checkpoint/checkpoint.py:298
↓ 2 callersFunctionsubsample_labels
Return `num_samples` (or fewer, if not enough found) random samples from `labels` which is a mixture of positives & negatives. It will tr
cvpods/modeling/sampling.py:7
↓ 2 callersFunctionuncompressed_rle
(mask)
tests/data/test_coco.py:27
↓ 2 callersMethodupdate
Add a new scalar value produced at certain iteration. If the length of the buffer exceeds self._max_length, the oldest element will b
cvpods/utils/dump/history_buffer.py:27
↓ 2 callersFunctionverify_results
Args: results (OrderedDict[dict]): task_name -> {metric -> score} Returns: bool: whether the verification succeeds or not
cvpods/evaluation/testing.py:31
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
cvpods/modeling/backbone/transformer.py:184
↓ 1 callersFunctionBuildSortedDetectionList
Helper function to Accumulate() Considers the evaluation results applicable to a particular category, area range, and max_detections parameter setting
cvpods/layers/csrc/lviseval/lviseval.cpp:228
↓ 1 callersFunctionBuildSortedDetectionList
Helper function to Accumulate() Considers the evaluation results applicable to a particular category, area range, and max_detections parameter setting
cvpods/layers/csrc/cocoeval/cocoeval.cpp:222
↓ 1 callersFunctionCOCOResult
Loads predictions from a COCO-style results file.
cvpods/analyser/tide/datasets.py:133
↓ 1 callersFunctionComputePrecisionRecallCurve
Helper function to Accumulate() Compute a precision recall curve given a sorted list of detected instances encoded in evaluations, evaluation_indices,
cvpods/layers/csrc/lviseval/lviseval.cpp:289
↓ 1 callersFunctionComputePrecisionRecallCurve
Helper function to Accumulate() Compute a precision recall curve given a sorted list of detected instances encoded in evaluations, evaluation_indices,
cvpods/layers/csrc/cocoeval/cocoeval.cpp:283
↓ 1 callersMethodInstanceAnnotation
cvpods/layers/csrc/lviseval/lviseval.h:22
↓ 1 callersFunctionMatchDetectionsToGroundTruth
For each IOU threshold, greedily match each detected instance to a ground truth instance (if possible) and store the results
cvpods/layers/csrc/lviseval/lviseval.cpp:66
↓ 1 callersFunctionMatchDetectionsToGroundTruth
For each IOU threshold, greedily match each detected instance to a ground truth instance (if possible) and store the results
cvpods/layers/csrc/cocoeval/cocoeval.cpp:60
↓ 1 callersFunctionROIAlignRotated_backward_cpu
cvpods/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:464
↓ 1 callersFunctionROIAlignRotated_forward_cpu
cvpods/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:417
↓ 1 callersFunctionROIAlign_backward_cpu
cvpods/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:447
↓ 1 callersFunctionROIAlign_forward_cpu
cvpods/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:400
↓ 1 callersFunctionSortInstancesByDetectionScore
Sort detections from highest score to lowest, such that detection_instances[detection_sorted_indices[t]] >= detection_instances[detection_sorted_indic
cvpods/layers/csrc/lviseval/lviseval.cpp:23
↓ 1 callersFunctionSortInstancesByDetectionScore
Sort detections from highest score to lowest, such that detection_instances[detection_sorted_indices[t]] >= detection_instances[detection_sorted_indic
cvpods/layers/csrc/cocoeval/cocoeval.cpp:17
↓ 1 callersFunctionSortInstancesByIgnore
Partition the ground truth objects based on whether or not to ignore them based on area
cvpods/layers/csrc/lviseval/lviseval.cpp:39
↓ 1 callersFunctionSortInstancesByIgnore
Partition the ground truth objects based on whether or not to ignore them based on area
cvpods/layers/csrc/cocoeval/cocoeval.cpp:33
↓ 1 callersFunctionUnion
A function that does union of two sets of x and y (uses union by rank)
cvpods/layers/csrc/tree_filter/boruvka_rst.cpp:155
↓ 1 callersFunctionUnion
A function that does union of two sets of x and y (uses union by rank)
cvpods/layers/csrc/tree_filter/boruvka.cpp:140
↓ 1 callersMethod__enter__
(self)
cvpods/utils/dump/events.py:434
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
cvpods/utils/dump/events.py:438
↓ 1 callersMethod__init__
Args: thresholds (list): a list of thresholds used to stratify predictions into levels. labels (list)
cvpods/modeling/matcher.py:26
↓ 1 callersMethod__init__
See: https://arxiv.org/pdf/1807.11164.pdf Args: num_blocks (int): the number of blocks in this stage. in_cha
cvpods/modeling/backbone/shufflenet.py:104
↓ 1 callersMethod__init__
Args: block_args (EasyDict): block args, see: class: `EfficientNet`. global_params (EasyDict): global args, see: clas
cvpods/modeling/backbone/efficientnet.py:92
↓ 1 callersMethod__init__
( # noqa:C901 self, C_in, C_out, norm, allow_up, allow_down, input_size, cell_type, cal_flops
cvpods/modeling/backbone/dynamic_arch/dynamic_cell.py:89
↓ 1 callersMethod__init__
Build basic STEM for Dynamic Network. Args: norm (str or callable): a callable that takes the number of c
cvpods/modeling/backbone/dynamic_arch/dynamic_backbone.py:22
↓ 1 callersMethod__init__
Args: box2box_transform (Box2BoxTransform/Box2BoxTransformRotated): box2box transform instance for proposal-to-de
cvpods/modeling/roi_heads/fast_rcnn.py:143
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/rcnn.py:23
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/auto_assign.py:50
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/reppoints.py:25
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/free_anchor.py:39
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/tensormask.py:306
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/yolov3.py:27
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/solo.py:44
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/solo_decoupled.py:31
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
cvpods/modeling/meta_arch/semantic_seg.py:99
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/retinanet.py:58
↓ 1 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/efficientdet.py:38
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
cvpods/modeling/proposal_generator/rpn.py:83
↓ 1 callersMethod__init__
(self, d=None, **kwargs)
cvpods/configs/base_config.py:238
↓ 1 callersMethod__init__
Args: module (nn.Module): torch module to profile. enabled (bool): whether enable profile or not. use_cud
cvpods/analyser/module_profiler.py:75
↓ 1 callersMethod__init__
Args: name (str): the name of this registry
cvpods/utils/registry.py:24
↓ 1 callersMethod__init__
(self, params, lr=required, momentum=0.9, dampening=0, weight_decay=1e-4, eta=1e-3, eps=1e-8,
cvpods/solver/lars_sgd.py:116
↓ 1 callersMethod__init__
(self, dataset, samples_per_gpu=1)
cvpods/data/samplers/sampler.py:48
↓ 1 callersMethod__init__
(self, cfg, dataset_name, transforms=[], is_train=True, **kwargs)
cvpods/data/datasets/torchvision_datasets.py:105
↓ 1 callersMethod__init__
(self)
cvpods/engine/base_runner.py:44
↓ 1 callersMethod__init__
Args: model (nn.Module): model. save_dir (str): a directory to save and find checkpoints. save_to_disk (b
cvpods/checkpoint/checkpoint.py:36
↓ 1 callersMethod__init__
(self, *args, **kwargs)
cvpods/layers/splat.py:18
↓ 1 callersMethod__init__
Deformable convolution. Arguments are similar to :class:`Conv2D`. Extra arguments: Args: deformable_groups (int
cvpods/layers/deform_conv.py:310
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilati
cvpods/layers/deform_conv_with_off.py:13
↓ 1 callersMethod__init__
(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None)
cvpods/layers/position_encoding.py:21
↓ 1 callersMethod__init__
(self, cfg)
playground/detection/coco/free_anchor/free_anchor.res50.fpn.coco.800size.1x/retinanet.py:50
↓ 1 callersMethod__init__
(self, cfg, input_shape)
playground/detection/coco/tridentnet/tridentnet_base/trident_rcnn.py:53
↓ 1 callersMethod__init__
Create the criterion. Parameters: cfg: config matcher: module able to compute a matching between targets and proposal
playground/detection/coco/sparse_rcnn/sparse_rcnn.res50.fpn.coco.multiscale.3x/loss.py:24
↓ 1 callersMethod__setattr__
(self, name, value)
cvpods/configs/base_config.py:253
← previousnext →401–500 of 2,734, ranked by callers