MCPcopy Create free account

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

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

↓ 6 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval :param p: input params for evaluation :return: None
cvpods/evaluation/widerfacetools.py:334
↓ 6 callersFunctionbuild_model
(cfg)
playground/detection/coco/ssd/ssd.vgg16.coco.300size/net.py:29
↓ 6 callersFunctionfind
A utility function to find set of an element i (uses path compression technique)
cvpods/layers/csrc/tree_filter/boruvka_rst.cpp:142
↓ 6 callersFunctionfind
A utility function to find set of an element i (uses path compression technique)
cvpods/layers/csrc/tree_filter/boruvka.cpp:127
↓ 6 callersFunctiongather_feature
used for Centernet
cvpods/modeling/nn_utils/feature_utils.py:47
↓ 6 callersMethodget_centers
Returns: The box centers in a Nx2 array of (x, y).
cvpods/structures/boxes.py:257
↓ 6 callersFunctioniou_loss
Compute iou loss of type ['iou', 'giou', 'linear_iou'] Args: inputs (tensor): pred values targets (tensor): target values
cvpods/modeling/losses/iou_loss.py:65
↓ 6 callersMethodlosses
Compute the default losses for box head in Fast(er) R-CNN, with softmax cross entropy loss and smooth L1 loss. Returns:
cvpods/modeling/roi_heads/fast_rcnn.py:285
↓ 6 callersFunctionnms_rotated
r""" Performs non-maximum suppression (NMS) on the rotated boxes according to their intersection-over-union (IoU). Rotated NMS iterativel
cvpods/layers/nms.py:204
↓ 6 callersFunctionpolygons_to_bitmask
Args: polygons (list[ndarray]): each array has shape (Nx2,) height, width (int) Returns: ndarray: a bool mask of sha
cvpods/structures/masks.py:23
↓ 6 callersMethodrandomData
(self, h=5, w=5)
tests/data/test_rotation_transform.py:12
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
cvpods/modeling/backbone/transformer.py:263
↓ 5 callersMethod__init__
(self, arg1, arg2, arg3=3)
tests/configs/test_config.py:70
↓ 5 callersMethod_convert_xy_to_wh
(self, x)
tests/structures/test_boxes.py:13
↓ 5 callersMethod_forward_keypoint
Forward logic of the keypoint prediction branch. Args: features (list[Tensor]): #level input features for keypoint predi
cvpods/modeling/roi_heads/roi_heads.py:689
↓ 5 callersMethod_rand_range
Uniform float random number between low and high.
cvpods/data/transforms/transform_gen.py:144
↓ 5 callersMethod_simple_roialign
RoiAlign with scale 1.0 and 0 sample ratio.
tests/layers/test_roi_align.py:62
↓ 5 callersMethodapply_coords
coords should be a N * 2 array-like, containing N couples of (x, y) points
cvpods/data/transforms/transform.py:645
↓ 5 callersMethodapply_image
img should be a numpy array, formatted as Height * Width * Nchannels
cvpods/data/transforms/transform.py:635
↓ 5 callersMethodbox_overlap_opr
(self, dboxes: np.ndarray, gboxes: np.ndarray, if_iou)
cvpods/evaluation/crowdhumantools.py:181
↓ 5 callersFunctionbuild_test_loader
Similar to `build_train_loader`. But this function uses the given `dataset_name` argument (instead of the names in cfg), and uses batch s
cvpods/data/build.py:161
↓ 5 callersFunctionbuild_train_loader
A data loader is created by the following steps: 1. Use the dataset names in config to query :class:`DatasetCatalog`, and obtain a list of di
cvpods/data/build.py:102
↓ 5 callersFunctiondefault_argument_parser
Create a parser with some common arguments used by cvpods users. Returns: argparse.ArgumentParser:
cvpods/engine/setup.py:27
↓ 5 callersFunctiondice_loss
r""" Dice loss defined in the V-Net paper as: Loss_dice = 1 - D 2 * sum(p_i * g_i) D = ------------------------------
cvpods/modeling/losses/dice_loss.py:8
↓ 5 callersMethodget_bounding_boxes
Returns: Boxes: tight bounding boxes around bit masks.
cvpods/structures/masks.py:204
↓ 5 callersMethodget_mAP
(self)
cvpods/analyser/tide/ap.py:152
↓ 5 callersFunctionget_world_size
()
cvpods/utils/distributed/comm.py:90
↓ 5 callersFunctionlaunch
Args: main_func: a function that will be called by `main_func(*args)` num_machines (int): the total number of machines ma
cvpods/engine/launch.py:33
↓ 5 callersMethodload
Load from the given checkpoint. When path points to network file, this function has to be called on all ranks. Args:
cvpods/checkpoint/checkpoint.py:91
↓ 5 callersMethodmerge
merge all key and values of config as BaseConfig's attributes. Note that kwargs will override values in config if they have the same
cvpods/configs/base_config.py:280
↓ 5 callersFunctionparameter_count
Count parameters of a model and its submodules. Args: model: a torch module Returns: dict (str-> int): the key is eithe
cvpods/modeling/nn_utils/parameter_count.py:10
↓ 5 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vec
cvpods/utils/visualizer/colormap.py:111
↓ 5 callersMethodremove
Remove the field called `name`.
cvpods/structures/instances.py:83
↓ 5 callersMethodresume_or_load
If `resume==True` and `cfg.OUTPUT_DIR` contains the last checkpoint (defined by a `last_checkpoint` file), resume from the file. Resu
cvpods/engine/runner.py:161
↓ 5 callersMethodtest
Args: cfg (config dict): model (nn.Module): evaluators (list[DatasetEvaluator] or None): if None, will ca
cvpods/engine/runner.py:382
↓ 4 callersMethod__init__
(self, cfg)
cvpods/modeling/backbone/transformer.py:27
↓ 4 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/centernet.py:110
↓ 4 callersMethod_change_color_brightness
Depending on the brightness_factor, gives a lighter or darker color i.e. a color with less or more saturation than the original color
cvpods/utils/visualizer/visualizer.py:1058
↓ 4 callersMethod_convert_xywh_to_xywha
(self, x)
tests/structures/test_boxes.py:19
↓ 4 callersMethod_convert_xywha_to_xyxy
(self, x)
tests/structures/test_boxes.py:16
↓ 4 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
cvpods/utils/visualizer/visualizer.py:1047
↓ 4 callersMethod_forward_box
Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, the function puts predicted boxes in the `prop
cvpods/modeling/roi_heads/roi_heads.py:612
↓ 4 callersFunction_randomly_negate
With 50% prob, negate the value
cvpods/data/transforms/auto_aug.py:166
↓ 4 callersMethod_simple_roi_align_rotated
RoiAlignRotated with scale 1.0 and 0 sample ratio.
tests/layers/test_roi_align_rotated.py:87
↓ 4 callersFunctionadd
cvpods/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:282
↓ 4 callersFunctionadd
cvpods/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:195
↓ 4 callersMethodadd_ignore_region
Add a region inside of which background detections should be ignored. You can use these to mark a region that has deliberately been l
cvpods/analyser/tide/data.py:113
↓ 4 callersMethodadd_image
Register an image name/path with an image ID.
cvpods/analyser/tide/data.py:135
↓ 4 callersMethodapply_deltas
Apply transformation `deltas` (dx, dy, dw, dh) to `boxes`. Args: deltas (Tensor): transformation deltas of shape (N, k*4)
playground/detection/coco/sparse_rcnn/sparse_rcnn.res50.fpn.coco.multiscale.3x/head.py:216
↓ 4 callersMethodapply_segmentation
Apply the transform on a full-image segmentation. By default will just perform "apply_image". Args: segmentation
cvpods/data/transforms/transform.py:118
↓ 4 callersMethodarea
Computes the area of all the boxes. Returns: torch.Tensor: a vector with areas of each box.
cvpods/structures/rotated_boxes.py:235
↓ 4 callersFunctionbatched_nms_rotated
Performs non-maximum suppression in a batched fashion. Each index value correspond to a category, and NMS will not be applied between el
cvpods/layers/nms.py:272
↓ 4 callersFunctionbatched_softnms
(boxes, scores, idxs, iou_threshold, score_threshold=0.001, soft_mode="gaussian")
cvpods/layers/nms.py:55
↓ 4 callersFunctionbuild_dynamic_backbone
Create a Dynamic Backbone from config. Args: cfg: a config dict Returns: backbone (Backbone): backbone module, must be
cvpods/modeling/backbone/dynamic_arch/dynamic_backbone.py:349
↓ 4 callersFunctionbuild_efficientnet_bifpn_backbone
Args: cfg: a cvpods `Config` instance. Returns: bifpn (Backbone): backbone module, must be a subclass of :class:
cvpods/modeling/backbone/bifpn.py:305
↓ 4 callersFunctionbuild_fpn_backbone
Args: cfg: a cvpods CfgNode Returns: backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`.
cvpods/modeling/backbone/fpn.py:231
↓ 4 callersFunctionbuild_optimizer
Build an optimizer with clip and LARS wraper from config.
cvpods/solver/build.py:94
↓ 4 callersFunctionbuild_ssd_vgg_backbone
Create a VGG instance from config. Returns: VGG: a :class:`VGG` instance.
cvpods/modeling/backbone/vgg.py:146
↓ 4 callersFunctionbuild_transform_gens
Create a list of :class:`TransformGen` from config. Transform list is a list of tuple which includes Transform name and parameters. Args
cvpods/data/build.py:29
↓ 4 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
cvpods/structures/rotated_boxes.py:252
↓ 4 callersFunctionconv_bn_lrelu
Create a seuence Conv2d->BatchNorm2d->LeakyReLu layer.
cvpods/modeling/backbone/darknet.py:68
↓ 4 callersFunctionconvert_to_coco_json
Converts dataset into COCO format and saves it to a json file. dataset_name must be registered in DatasetCatalog and in cvpods's standard for
cvpods/data/datasets/coco.py:635
↓ 4 callersMethodcrop_and_resize
Crop each bitmask by the given box, and resize results to (mask_size, mask_size). This can be used to prepare training targets for Ma
cvpods/structures/masks.py:171
↓ 4 callersFunctiondefault_name
(path: str)
cvpods/analyser/tide/datasets.py:14
↓ 4 callersFunctiondefault_setup
Perform some basic common setups at the beginning of a job, including: 1. Set up the cvpods logger 2. Log basic information about enviro
cvpods/engine/setup.py:117
↓ 4 callersMethoddraw_line
Args: x_data (list[int]): a list containing x values of all the points being drawn. Length of list should match t
cvpods/utils/visualizer/visualizer.py:899
↓ 4 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
cvpods/evaluation/widerfacetools.py:129
↓ 4 callersMethodforward
Args: input: NCHW images rois: Bx5 boxes. First column is the index into N. The other 4 columns are xyxy.
cvpods/layers/roi_align.py:90
↓ 4 callersFunctiongeneralized_box_iou
Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where N
cvpods/structures/boxes.py:417
↓ 4 callersMethodgenerate_instance_masks
Generate Mask Logits by Mask Branch and Dynamic Mask Head.
cvpods/modeling/meta_arch/condinst.py:178
↓ 4 callersMethodget_crop_size
Args: image_size (tuple): height, width Returns: crop_size (tuple): height, width in absolute pixels
cvpods/data/transforms/transform_gen.py:575
↓ 4 callersMethodhistory
Returns: HistoryBuffer: the scalar history for name
cvpods/utils/dump/events.py:362
↓ 4 callersFunctioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. The model will be used in eval mode. Args: model (nn.Modul
cvpods/evaluation/evaluator.py:92
↓ 4 callersMethodlabel_and_sample_proposals
Prepare some proposals to be used to train the ROI heads. It performs box matching between `proposals` and `targets`, and assigns
cvpods/modeling/roi_heads/roi_heads.py:177
↓ 4 callersMethodload_det_boxes
(self, dict_input, key_name, key_box, key_score=None, key_tag=None)
cvpods/evaluation/crowdhumantools.py:254
↓ 4 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
cvpods/modeling/nn_utils/weight_init.py:24
↓ 4 callersFunctionpaste_masks_in_image
Paste a set of masks that are of a fixed resolution (e.g., 28 x 28) into an image. The location, height, and width for pasting each mask is d
cvpods/layers/mask_ops.py:68
↓ 4 callersMethodpredict_boxes
Returns: list[Tensor]: A list of Tensors of predicted class-specific or class-agnostic boxes for each image. Elem
cvpods/modeling/roi_heads/fast_rcnn.py:315
↓ 4 callersMethodpush
(self, id: int, score: float, is_true: bool, info: dict = {})
cvpods/analyser/tide/ap.py:46
↓ 4 callersMethodput_scalars
Put multiple scalars from keyword arguments. Examples: storage.put_scalars(loss=my_loss, accuracy=my_accuracy, smoothin
cvpods/utils/dump/events.py:351
↓ 4 callersFunctionround_filters
Calculate and round number of channels based on depth multiplier. Args: channels (int): base number of channels. global_para
cvpods/modeling/backbone/efficientnet.py:19
↓ 4 callersMethodscale
Scale the box with horizontal and vertical scaling factors
cvpods/structures/boxes.py:264
↓ 4 callersFunctionselect_foreground_proposals
Given a list of N Instances (for N images), each containing a `gt_classes` field, return a list of Instances that contain only instances with
cvpods/modeling/roi_heads/roi_heads.py:24
↓ 4 callersMethodsplit_groups
(self, x)
cvpods/layers/tree_filter_v2.py:44
↓ 3 callersMethod__init__
(self, buffers=None)
cvpods/modeling/anchor_generator.py:29
↓ 3 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/condinst.py:43
↓ 3 callersMethod__init__
The following attributes are parsed from config: conv_dim: the output dimension of the conv layers fc_dim: the featur
cvpods/modeling/meta_arch/pointrend.py:582
↓ 3 callersMethod__init__
(self, init_value=1.0)
cvpods/modeling/meta_arch/borderdet.py:53
↓ 3 callersMethod__init__
(self, cfg)
cvpods/modeling/meta_arch/ssd.py:35
↓ 3 callersMethod_accuracy
(self, pred, target)
cvpods/evaluation/longtail_classification_evaluation.py:155
↓ 3 callersMethod_add
Add a data object to this collection. You should use one of the below functions instead.
cvpods/analyser/tide/data.py:63
↓ 3 callersFunction_ar
(x)
cvpods/analyser/tide/errors/qualifiers.py:8
↓ 3 callersFunction_area
(x)
cvpods/analyser/tide/errors/qualifiers.py:4
↓ 3 callersFunction_assert_with_logging
(cond, msg)
cvpods/configs/config_helper.py:173
↓ 3 callersMethod_box_to_rotated_box
(self, box, angle)
tests/layers/test_roi_align_rotated.py:15
↓ 3 callersFunction_create_grid_offsets
(size, stride, offset, device)
cvpods/modeling/anchor_generator.py:47
↓ 3 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): Returns: l
cvpods/utils/visualizer/visualizer.py:188
↓ 3 callersFunction_dump_to_markdown
Dump a Markdown file that records the model evaluation metrics and corresponding scores to the current working directory. Args:
cvpods/evaluation/coco_evaluation.py:566
↓ 3 callersFunction_find_caller
Returns: str: module name of the caller tuple: a hashable key to be used to identify different callers
cvpods/utils/dump/logger.py:67
↓ 3 callersMethod_forward_mask
Forward logic of the mask prediction branch. Args: features (list[Tensor]): #level input features for mask prediction
cvpods/modeling/roi_heads/roi_heads.py:656
← previousnext →101–200 of 2,734, ranked by callers