MCPcopy Create free account

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

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

↓ 3 callersFunction_get_builtin_metadata
(dataset_name)
cvpods/data/datasets/builtin_meta.py:241
↓ 3 callersFunction_get_warmup_factor_at_iter
Return the learning rate warmup factor at a specific iteration. See https://arxiv.org/abs/1706.02677 for more details. Args: met
cvpods/solver/lr_scheduler.py:173
↓ 3 callersMethod_make_embedding
(self, filters_list, in_filters, out_filter)
cvpods/modeling/meta_arch/yolov3.py:92
↓ 3 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params :return: None
cvpods/evaluation/widerfacetools.py:88
↓ 3 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
cvpods/modeling/roi_heads/roi_heads.py:138
↓ 3 callersMethodadd_class
Register a class name to that class ID.
cvpods/analyser/tide/data.py:131
↓ 3 callersMethodadd_ground_truth
Add a ground truth. If box or mask is None, this GT will be ignored for that mode.
cvpods/analyser/tide/data.py:93
↓ 3 callersFunctionadd_ground_truth_to_proposals
Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt_boxes(list[Boxes]): list of N elements. Element i is a Bo
cvpods/modeling/proposal_generator/proposal_utils.py:9
↓ 3 callersMethodadd_gt_positives
Call this once per image.
cvpods/analyser/tide/ap.py:52
↓ 3 callersFunctionaligned_bilinear
aligned interpolation in feature-level. This interpolation method, writen by Adelaidet Condinst Codebase and beneficial to seg task, gain
cvpods/modeling/nn_utils/feature_utils.py:10
↓ 3 callersMethodapply_polygons
Apply the transform on a list of polygons, each represented by a Nx2 array. By default will just transform all the points.
cvpods/data/transforms/transform.py:160
↓ 3 callersMethodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
cvpods/structures/masks.py:407
↓ 3 callersMethodbatch_index_opr
(data, index)
cvpods/layers/tree_filter_core.py:186
↓ 3 callersFunctionbatched_softnms_rotated
(boxes, scores, idxs, iou_threshold, score_threshold=0.001, soft_mode="gaussian")
cvpods/layers/nms.py:72
↓ 3 callersFunctionbenchmark
Benchmark the input function and print out the results. Args: func (callable): a closure that returns a function for benchmarking,
cvpods/utils/benchmark/benchmark.py:73
↓ 3 callersFunctionbuild
(pipeline)
cvpods/data/build.py:41
↓ 3 callersMethodbuild_box_head
(cfg, input_shape)
tests/modeling/test_roi_heads.py:39
↓ 3 callersFunctionbuild_dataset
dataset_names: List[str], in which elemements must be in format of "dataset_task_version"
cvpods/data/build.py:70
↓ 3 callersFunctionbuild_retinanet_fpn_backbone
Args: cfg: a cvpods CfgNode Returns: backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`.
cvpods/modeling/backbone/fpn.py:264
↓ 3 callersFunctioncheck_metadata_consistency
Check that the datasets have consistent metadata. Args: key (str): a metadata key dataset_names (list[str]): a list of datas
cvpods/data/detection_utils.py:420
↓ 3 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
cvpods/modeling/meta_arch/moco.py:229
↓ 3 callersMethoddevice
(self)
cvpods/structures/masks.py:110
↓ 3 callersFunctiondo_test
(cfg, model)
tools/plain_train_net.py:95
↓ 3 callersFunctiondownload_annotations
(name: str, url: str, force_download: bool = False)
cvpods/analyser/tide/datasets.py:30
↓ 3 callersMethoddraw_binary_mask
Args: binary_mask (ndarray): numpy array of shape (H, W), where H is the image height and W is the image width. E
cvpods/utils/visualizer/visualizer.py:932
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
cvpods/utils/visualizer/visualizer.py:746
↓ 3 callersFunctiondynamic_import
Dynamic import a project. Args: config_name (str): module name config_path (str): the dir that contains the .py with this mo
cvpods/utils/imports.py:9
↓ 3 callersFunctionfile_lock
A file lock. Once entered, it is guaranteed that no one else holds the same lock. Others trying to enter the lock will block for 30 minutes a
cvpods/utils/file/file_io.py:44
↓ 3 callersMethodfilter
filter header and data in filter list. Args: filter_list (Iterable[string]): list of headers that needs to be filtered o
cvpods/analyser/module_profiler.py:263
↓ 3 callersMethodfix_errors
Returns a ClassedAPDataObject where all errors given the condition returns True are fixed.
cvpods/analyser/tide/quantify.py:321
↓ 3 callersMethodget_ap
Warning: result not cached.
cvpods/analyser/tide/ap.py:64
↓ 3 callersFunctionget_bn_modules
Find all BatchNorm (BN) modules that are in training mode. See cvpods.modeling.nn_utils.precise_bn.BN_MODULE_TYPES for a list of all modules
cvpods/modeling/nn_utils/precise_bn.py:81
↓ 3 callersMethodget_transform
(self, img, annotations=None)
cvpods/data/transforms/transform_gen.py:1119
↓ 3 callersMethodget_transform
(self, image, sem_seg)
tests/data/test_transforms.py:139
↓ 3 callersMethodinsert
insert header and data into current table at given position Args: header (Iterable[string]): inserted data.
cvpods/analyser/module_profiler.py:222
↓ 3 callersFunctioninterpolate
A wrapper around :func:`torch.nn.functional.interpolate` to support zero-size tensor.
cvpods/layers/wrappers.py:621
↓ 3 callersMethodis_empty
(self)
cvpods/analyser/tide/ap.py:56
↓ 3 callersFunctionisiterable
(x)
cvpods/analyser/tide/functions.py:26
↓ 3 callersMethodlink_log
create a softlink to output dir. Args: link_name(str): name of softlink
cvpods/configs/base_config.py:405
↓ 3 callersMethodlosses
SSD Weighted Loss Function: L(x,c,l,g) = (Lconf(x, c) + αLloc(x,l,g)) / N Where, Lconf is the CrossEntropy Loss and L
cvpods/modeling/meta_arch/ssd.py:194
↓ 3 callersMethodlosses
Return the losses from a set of RPN predictions and their associated ground-truth. Returns: dict[loss name -> loss value
cvpods/modeling/proposal_generator/rpn_outputs.py:294
↓ 3 callersFunctionmake_stage
Create a snet stage by creating many blocks. Args: num_blocks (int): the number of blocks in this stage. input_channels (int
cvpods/modeling/backbone/snet.py:100
↓ 3 callersFunctionmask_rcnn_inference
Convert pred_mask_logits to estimated foreground probability masks while also extracting only the masks for the predicted classes in pred_ins
cvpods/modeling/roi_heads/mask_head.py:86
↓ 3 callersFunctionmask_rcnn_loss
Compute the mask prediction loss defined in the Mask R-CNN paper. Args: pred_mask_logits (Tensor): A tensor of shape (B, C, Hmask, W
cvpods/modeling/roi_heads/mask_head.py:11
↓ 3 callersFunctionmulti_apply
(func, *args, **kwargs)
cvpods/modeling/meta_arch/ssd.py:23
↓ 3 callersFunctionparse_darknet_conv_weights
Utility function to parse official darknet weights into torch.
cvpods/modeling/backbone/darknet.py:18
↓ 3 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/retinanet.py:30
↓ 3 callersFunctionpoint_sample_fine_grained_features
Get features from feature maps in `features_list` that correspond to specific point coordinates inside each bounding box from `boxes`.
cvpods/modeling/meta_arch/pointrend.py:160
↓ 3 callersMethodpostprocess
(self, results, output_height, output_width, resized_in_h, resized_in_w, padded_im_h, padd
cvpods/modeling/meta_arch/condinst.py:505
↓ 3 callersMethodpredict_objectness_logits
Return objectness logits in the same format as the proposals returned by :meth:`predict_proposals`. Returns: pre
cvpods/modeling/proposal_generator/rpn_outputs.py:425
↓ 3 callersMethodpredict_probs
Returns: list[Tensor]: A list of Tensors of predicted class probabilities for each image. Element i has shape (Ri
cvpods/modeling/roi_heads/fast_rcnn.py:345
↓ 3 callersMethodpredict_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
cvpods/modeling/proposal_generator/rpn_outputs.py:396
↓ 3 callersFunctionprint_csv_format
Print main metrics in a format similar to Detectron, so that they are easy to copypaste into a spreadsheet. Args: results (Order
cvpods/evaluation/testing.py:14
↓ 3 callersMethodproposals_inference
(self, box_cls, box_delta, box_center, box_param, shifts, images)
cvpods/modeling/meta_arch/condinst.py:541
↓ 3 callersMethodpts_to_bbox
Converting the points set into bounding box. :param pts: the input points sets (fields), each points set (fields) is rep
cvpods/modeling/meta_arch/reppoints.py:292
↓ 3 callersMethodpush_false_negative
(self, id: int)
cvpods/analyser/tide/ap.py:49
↓ 3 callersMethodreference_horizontal_nms
Args: box_scores (N, 5): boxes in corner-form and probabilities. (Note here 5 == 4 + 1, i.e., 4-dim horizontal bo
tests/layers/test_nms_rotated.py:47
↓ 3 callersMethodregister_hooks
Register hooks to the runner. The hooks are executed in the order they are registered. Args: hooks (list[Optiona
cvpods/engine/base_runner.py:47
↓ 3 callersMethodregister_type
Register the given function as a handler that this transform will use for a specific data type. Args: data_type
cvpods/data/transforms/transform.py:276
↓ 3 callersMethodreset
Preparation for a new round of evaluation. Should be called before starting a round of evaluation.
cvpods/evaluation/evaluator.py:32
↓ 3 callersFunctionsem_seg_postprocess
Return semantic segmentation predictions in the original resolution. The input images are often resized when entering semantic segmentor. Mo
cvpods/modeling/postprocessing.py:55
↓ 3 callersFunctionsetup
(args)
tools/benchmark.py:25
↓ 3 callersMethodshow
( self, dataset, out_path: str = None, pred_color: tuple = (43, 12, 183),
cvpods/analyser/tide/errors/error.py:37
↓ 3 callersMethodtest
(self)
tests/data/test_coco.py:77
↓ 3 callersFunctiontransform
(x, y, matrix)
cvpods/data/transforms/auto_aug.py:94
↓ 2 callersFunctionLVIS
Load an LVIS-style dataset. The version string is used for downloading the dataset and should be one of the versions of LVIS (e.g., v0.5,
cvpods/analyser/tide/datasets.py:155
↓ 2 callersMethod__init__
Args: cfg (CfgNode): model (GeneralizedRCNN): a GeneralizedRCNN to apply TTA on. tta_mapper (callable): t
cvpods/modeling/test_time_augmentation.py:350
↓ 2 callersMethod__init__
(self, full: bool = False)
cvpods/modeling/backbone/darknet.py:81
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
cvpods/modeling/backbone/fpn.py:45
↓ 2 callersMethod__init__
input_size (int): the input image size. bottom_up (Backbone): module representing the bottom up subnetwork. Must be a sub
cvpods/modeling/backbone/bifpn.py:166
↓ 2 callersMethod__init__
Args: input_channels (int): the input channel number. output_channels (int): the output channel number. n
cvpods/modeling/backbone/mobilenet.py:23
↓ 2 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
cvpods/modeling/roi_heads/roi_heads.py:109
↓ 2 callersMethod__init__
Args: input_size (int): channels, or (channels, height, width) num_classes (int): number of foreground classes
cvpods/modeling/roi_heads/disalign_fast_rcnn.py:74
↓ 2 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/dynamic4seg.py:27
↓ 2 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/fcos.py:59
↓ 2 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
cvpods/modeling/meta_arch/detr.py:405
↓ 2 callersMethod__init__
Poly LR with warmup Args: optimizer (torch.optim.Optimizer): optimizer used. max_iters (int): max num of iter
cvpods/solver/lr_scheduler.py:128
↓ 2 callersMethod__init__
(self, groups=1, distance_func=None, mapping_func=torch.exp)
cvpods/layers/tree_filter_core.py:169
↓ 2 callersMethod__init__
(self, cfg, d_model, num_classes, dim_feedforward=2048, nhead=8, dropout=0.1, activation="rel
playground/detection/coco/sparse_rcnn/sparse_rcnn.res50.fpn.coco.multiscale.3x/head.py:118
↓ 2 callersMethod__init__
(self, cfg)
playground/detection/widerface/fcos/fcos.res50.fpn.widerface.600size.0.5x_crop.plus.norm_sync/fcos.py:57
↓ 2 callersFunction_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
cvpods/modeling/backbone/fpn.py:179
↓ 2 callersMethod_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
cvpods/utils/visualizer/video_visualizer.py:174
↓ 2 callersMethod_batch_inference
Execute inference on a list of inputs, using batch size = self.batch_size, instead of the length of the list. Inputs & outpu
cvpods/modeling/test_time_augmentation.py:142
↓ 2 callersMethod_cal_im2col_step
Calculate proper im2col step size, which should be divisible by input_size and not larger than prefer_size. Meanwhile the step size s
cvpods/layers/deform_conv.py:158
↓ 2 callersMethod_convert_ndarray_to_tensor
In-place convert all numpy arrays in the state_dict to torch tensor. Args: state_dict (dict): a state-dict to be loaded t
cvpods/checkpoint/checkpoint.py:246
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
cvpods/evaluation/coco_evaluation.py:287
↓ 2 callersMethod_do_register
(self, name: str, obj: object)
cvpods/utils/registry.py:32
↓ 2 callersMethod_eval_box_proposals
Evaluate the box proposals in self._predictions. Fill self._results with the metrics for "box_proposals" task.
cvpods/evaluation/coco_evaluation.py:246
↓ 2 callersMethod_eval_predictions
Evaluate self._predictions on the given tasks. Fill self._results with the metrics of the tasks.
cvpods/evaluation/coco_evaluation.py:198
↓ 2 callersMethod_forward_box
(self, features, proposals, targets=None)
cvpods/modeling/roi_heads/cascade_rcnn.py:88
↓ 2 callersMethod_forward_mask
Forward logic of the mask prediction branch. Args: features (dict[str, Tensor]): #level input features for mask predicti
cvpods/modeling/meta_arch/pointrend.py:451
↓ 2 callersMethod_forward_mask_coarse
Forward logic of the coarse mask head.
cvpods/modeling/meta_arch/pointrend.py:484
↓ 2 callersMethod_forward_mask_point
Forward logic of the mask point head.
cvpods/modeling/meta_arch/pointrend.py:500
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string # TODO: move to layers
cvpods/modeling/backbone/transformer.py:366
↓ 2 callersMethod_get_boarder
This func may be rewirite someday
cvpods/data/transforms/transform_gen.py:321
↓ 2 callersFunction_get_clones
(module, N)
cvpods/modeling/backbone/transformer.py:362
↓ 2 callersFunction_get_coco_instances_meta
()
cvpods/data/datasets/builtin_meta.py:193
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
cvpods/utils/distributed/comm.py:152
↓ 2 callersMethod_get_src_permutation_idx
(self, indices)
cvpods/modeling/meta_arch/detr.py:296
↓ 2 callersMethod_get_src_permutation_idx
(self, indices)
playground/detection/coco/sparse_rcnn/sparse_rcnn.res50.fpn.coco.multiscale.3x/loss.py:129
← previousnext →201–300 of 2,734, ranked by callers