MCPcopy Create free account

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

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

↓ 2 callersFunction_group_checkpoint_keys
Group keys based on common prefixes. A prefix is the string up to the final "." in each key. Args: keys (list[str]): list of par
cvpods/checkpoint/utils.py:85
↓ 2 callersFunction_group_to_str
Format a group of parameter name suffixes into a loggable string. Args: group (list[str]): list of parameter name suffixes. Ret
cvpods/checkpoint/utils.py:108
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
cvpods/utils/memory.py:14
↓ 2 callersMethod_inference_for_ms_test
function used for multiscale test, will be refactor in the future. The same input with `forward` function.
cvpods/modeling/meta_arch/fcos.py:457
↓ 2 callersMethod_initialize_weights
(self)
cvpods/modeling/backbone/mobilenet.py:243
↓ 2 callersMethod_load_annotations
Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmentation, and p
cvpods/data/datasets/coco.py:202
↓ 2 callersMethod_load_file
Load a checkpoint file. Can be overwritten by subclasses to support different formats. Args: f (str): a locally m
cvpods/checkpoint/checkpoint.py:190
↓ 2 callersMethod_load_model
Load weights from a checkpoint. Args: checkpoint (Any): checkpoint contains the weights.
cvpods/checkpoint/checkpoint.py:203
↓ 2 callersMethod_merge_cfg_str
(self, cfg, merge_str)
tests/configs/test_config.py:39
↓ 2 callersFunction_pad_to_largest_tensor
Returns: list[int]: size of the tensor, on each rank Tensor: padded tensor that has the max size
cvpods/utils/distributed/comm.py:180
↓ 2 callersMethod_predict_boxes
Returns: Tensor: A Tensors of predicted class-specific or class-agnostic boxes for all images in a batch. Element
cvpods/modeling/roi_heads/fast_rcnn.py:298
↓ 2 callersFunction_print_panoptic_results
Print evaluation results in the form of a string table. Args: pq_res (dict): a dictionary containing the evaluation results. Re
cvpods/evaluation/panoptic_evaluation.py:154
↓ 2 callersMethod_rand_boxes
(self, num_boxes, x_max, y_max)
tests/modeling/test_roi_pooler.py:14
↓ 2 callersMethod_rand_scale
Calculate random scaling factor. Args: upper_bound (float): range of the random scale. Returns: rand
cvpods/data/transforms/transform.py:525
↓ 2 callersMethod_read_data
(self, file_name)
cvpods/data/base_dataset.py:95
↓ 2 callersFunction_serialize_to_tensor
(data, group)
cvpods/utils/distributed/comm.py:163
↓ 2 callersMethod_shared_roi_transform
(self, features, boxes)
cvpods/modeling/roi_heads/roi_heads.py:368
↓ 2 callersMethod_test_roialignv2_roialignrotated_match
(self, device)
tests/modeling/test_roi_pooler.py:27
↓ 2 callersMethod_test_scriptability
(self, device)
tests/modeling/test_roi_pooler.py:87
↓ 2 callersMethod_turn_off_roi_head
Open a context where one head in `model.roi_heads` is temporarily turned off. Args: attr (str): the attribute in `model.r
cvpods/modeling/test_time_augmentation.py:121
↓ 2 callersFunction_wrapper_count_operators
( model: nn.Module, inputs: list, mode: str, **kwargs )
cvpods/analyser/analysis.py:126
↓ 2 callersFunctionaccuracy
Computes the precision@k for the specified values of k
cvpods/utils/metrics/accuracy.py:8
↓ 2 callersFunctionalign_and_update_state_dicts
Match names between the two state-dict, and update the values of model_state_dict in-place with copies of the matched tensor in ckpt_state_di
cvpods/checkpoint/c2_model_loading.py:216
↓ 2 callersMethodarea
(self)
cvpods/utils/visualizer/visualizer.py:128
↓ 2 callersFunctionbboxes_iou
Calculate the Intersection of Unions (IoUs) between bounding boxes. IoU is calculated as a ratio of area of the intersection and area of the u
cvpods/modeling/meta_arch/yolov3.py:471
↓ 2 callersFunctionbox_cxcywh_to_xyxy
(x)
cvpods/structures/boxes.py:405
↓ 2 callersMethodboxes_dump
(self, boxes, is_gt=False)
cvpods/evaluation/crowdhuman_evaluation.py:96
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
cvpods/evaluation/rotated_coco_evaluation.py:44
↓ 2 callersMethodbuild
(model, cfg)
cvpods/solver/optimizer_builder.py:60
↓ 2 callersFunctionbuild_backbone
(cfg, input_shape=None)
tests/modeling/test_rpn.py:22
↓ 2 callersFunctionbuild_backbone
(cfg, input_shape=None)
tests/modeling/test_roi_heads.py:19
↓ 2 callersMethodbuild_edge_weight
(self, fm, sorted_index, sorted_parent)
cvpods/layers/tree_filter_core.py:193
↓ 2 callersFunctionbuild_evaluator
Create evaluator(s) for a given dataset. This uses the special metadata "evaluator_type" associated with each builtin dataset. For your o
cvpods/evaluation/build.py:15
↓ 2 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
cvpods/solver/build.py:122
↓ 2 callersFunctionbuild_mobilenetv2_backbone
Create a MobileNetV2 instance from config. Returns: MobileNetV2: a :class:`MobileNetV2` instance.
cvpods/modeling/backbone/mobilenet.py:299
↓ 2 callersFunctionbuild_shufflenetv2_backbone
Create a ShuffleNetV2 instance from config. Returns: ShuffleNetV2: a :class:`ShuffleNetV2` instance.
cvpods/modeling/backbone/shufflenet.py:289
↓ 2 callersFunctionbuild_timm_backbone
(cfg, input_shape)
cvpods/modeling/backbone/timm_backbone.py:166
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`cvpods.data.build_train_loader`. Overwrite it if you'd like a different da
cvpods/engine/runner.py:320
↓ 2 callersFunctioncache_file
wrapper of caching file logic for s3/http/https protocols in megfile
cvpods/utils/file/file_io.py:76
↓ 2 callersFunctioncalculate_uncertainty_ins_seg
We estimate uncerainty as L1 distance between 0.0 and the logit prediction in 'logits' for the foreground class in `classes`. Args:
cvpods/modeling/meta_arch/pointrend.py:233
↓ 2 callersFunctioncollect_env_info
()
cvpods/utils/env/collect_env.py:57
↓ 2 callersMethodcompare
match the detection results with the groundtruth in the whole database
cvpods/evaluation/crowdhumantools.py:354
↓ 2 callersFunctionconvert_to_coco_dict
Convert a dataset in cvpods's standard format into COCO json format COCO data format description can be found here: http://cocodataset.or
cvpods/data/datasets/coco.py:503
↓ 2 callersMethodcreate_rotation_matrix
(self, offset=0)
cvpods/data/transforms/transform.py:658
↓ 2 callersFunctioncreate_table_with_header
create a table with given header. Args: header_dict (dict): headers (list): min_cols (int): Returns: st
cvpods/utils/dump/logger.py:176
↓ 2 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
cvpods/utils/env/collect_env.py:36
↓ 2 callersFunctiondownload
Download a file from a given URL to a directory. If file exists, will not overwrite the existing file. Args: url (str):
cvpods/utils/file/download.py:11
↓ 2 callersMethoddraw_dataset_dict
Draw annotations/segmentaions in cvpods Dataset format. Args: dic (dict): annotation/segmentation data of one image, in
cvpods/utils/visualizer/visualizer.py:466
↓ 2 callersMethoddraw_instance_predictions
Draw instance-level prediction results on an image. Args: predictions (Instances): the output of an instance detection/s
cvpods/utils/visualizer/visualizer.py:321
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
cvpods/utils/visualizer/visualizer.py:992
↓ 2 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
cvpods/utils/visualizer/visualizer.py:371
↓ 2 callersFunctionf
()
tools/benchmark.py:81
↓ 2 callersFunctionfast_rcnn_inference
Call `fast_rcnn_inference_single_image` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-specific or
cvpods/modeling/roi_heads/fast_rcnn.py:40
↓ 2 callersFunctionfast_rcnn_inference_single_image
Single-image inference. Return bounding-box detection results by thresholding on scores and applying non-maximum suppression (NMS). Args
cvpods/modeling/roi_heads/fast_rcnn.py:83
↓ 2 callersFunctionfile2id
(folder_path, file_path)
cvpods/data/datasets/objects365.py:336
↓ 2 callersFunctionfile2id
(folder_path, file_path)
cvpods/data/datasets/coco.py:449
↓ 2 callersFunctionfilter_images_with_few_keypoints
Filter out images with too few number of keypoints. Args: dataset_dicts (list[dict]): annotations in cvpods Dataset format. Ret
cvpods/data/base_dataset.py:227
↓ 2 callersMethodfilter_zeros
filter all zeros data.
cvpods/analyser/module_profiler.py:272
↓ 2 callersFunctionfind_top_rpn_proposals
For each feature map, select the `pre_nms_topk` highest scoring proposals, apply NMS, clip proposals, and remove small boxes. Return the `pos
cvpods/modeling/proposal_generator/rpn_outputs.py:50
↓ 2 callersFunctionformat_size
(x: int)
cvpods/modeling/nn_utils/parameter_count.py:90
↓ 2 callersMethodforward
(ctx, input)
cvpods/layers/batch_norm.py:190
↓ 2 callersMethodforward
Args: input: NCHW images rois: Bx6 boxes. First column is the index into N. The other 5 columns are (
cvpods/layers/roi_align_rotated.py:70
↓ 2 callersMethodforward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. Args: features: same as in `forward()`
cvpods/modeling/roi_heads/roi_heads.py:423
↓ 2 callersMethodforward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. This is useful for downstream tasks where a box is kn
cvpods/modeling/meta_arch/pointrend.py:423
↓ 2 callersMethodfuncname_not_in_attr
(self)
cvpods/configs/base_config.py:263
↓ 2 callersFunctiongenerate_header_and_data
(tree_dict)
cvpods/analyser/module_profiler.py:378
↓ 2 callersMethodgenerate_in_box_mask
(self, boxes, masks, deltas, im_h, im_w, shifts_per_image)
cvpods/modeling/meta_arch/condinst.py:301
↓ 2 callersMethodgenerate_src_and_dst
(center, scale, output_size)
cvpods/data/transforms/transform_gen.py:351
↓ 2 callersFunctiongeneric_activation_jit
This method return a handle that counts the number of activation from the output shape for the specified operation. Args: op_nam
cvpods/modeling/nn_utils/jit_handles.py:127
↓ 2 callersFunctionget_jit_model_analysis
Given a model, the inputs and the handles for each operation, return the results for the model analysis. Args: model (nn.Module)
cvpods/modeling/nn_utils/jit_handles.py:71
↓ 2 callersMethodget_loss
(self, loss, outputs, targets, indices, num_boxes, **kwargs)
cvpods/modeling/meta_arch/detr.py:308
↓ 2 callersMethodget_loss
(self, loss, outputs, targets, indices, num_boxes, **kwargs)
playground/detection/coco/sparse_rcnn/sparse_rcnn.res50.fpn.coco.multiscale.3x/loss.py:141
↓ 2 callersMethodget_main_errors
(self)
cvpods/analyser/tide/quantify.py:712
↓ 2 callersFunctionget_missing_parameters_message
Get a logging-friendly message to report parameter names (keys) that are in the model but not found in a checkpoint. Args: keys
cvpods/checkpoint/utils.py:12
↓ 2 callersMethodget_pad_offset
(self, ori: int, tar: int)
cvpods/data/transforms/transform.py:1480
↓ 2 callersMethodget_pr_curve
(self)
cvpods/analyser/tide/ap.py:59
↓ 2 callersFunctionget_profile_info
(events, path_events)
cvpods/analyser/module_profiler.py:423
↓ 2 callersFunctionget_rank
()
cvpods/utils/distributed/comm.py:98
↓ 2 callersMethodget_special_errors
(self)
cvpods/analyser/tide/quantify.py:726
↓ 2 callersFunctionget_tide_path
()
cvpods/analyser/tide/datasets.py:18
↓ 2 callersFunctionget_uncertain_point_coords_on_grid
Find `num_points` most uncertain points from `uncertainty_map` grid. Args: uncertainty_map (Tensor): A tensor of shape (N, 1, H, W)
cvpods/modeling/meta_arch/pointrend.py:133
↓ 2 callersFunctionget_uncertain_point_coords_with_randomness
Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The unceratinties are calculated for each point using 'unce
cvpods/modeling/meta_arch/pointrend.py:77
↓ 2 callersFunctionget_unexpected_parameters_message
Get a logging-friendly message to report parameter names (keys) that are in the checkpoint but not found in the model. Args: key
cvpods/checkpoint/utils.py:31
↓ 2 callersMethodhistories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
cvpods/utils/dump/events.py:372
↓ 2 callersMethodinference
Args: score_thresh (float): same as fast_rcnn_inference. nms_thresh (float): same as fast_rcnn_inference.
cvpods/modeling/roi_heads/fast_rcnn.py:355
↓ 2 callersMethodinference
Arguments: box_cls, box_delta, box_center: Same as the output of :meth:`FCOSHead.forward` shifts (list[list[Tensor]):
cvpods/modeling/meta_arch/fcos.py:337
↓ 2 callersMethodinference
Arguments: box_cls, box_delta, box_center: Same as the output of :meth:`FCOSHead.forward` shifts (list[list[Tensor]):
cvpods/modeling/meta_arch/atss.py:301
↓ 2 callersMethodinference
Args: conf_pred, loc_pred: Same as the output of :meth:`SSDHead.forward` shape = [N, Hi x Wi x D, 4] and [N, Hi x
cvpods/modeling/meta_arch/ssd.py:347
↓ 2 callersMethodinference
Arguments: box_cls, box_delta: Same as the output of :meth:`RetinaNetHead.forward` anchors (list[list[Boxes]]): a lis
cvpods/modeling/meta_arch/retinanet.py:282
↓ 2 callersMethodinside_box
Args: box_size (height, width): Size of the reference box. boundary_threshold (int): Boxes that extend beyond the ref
cvpods/structures/boxes.py:238
↓ 2 callersMethodinstance_masks
(self)
cvpods/utils/visualizer/visualizer.py:178
↓ 2 callersFunctioninstances_to_coco_json
Dump an "Instances" object to a COCO-format json that's used for evaluation. Args: instances (Instances): img_id (int): the i
cvpods/evaluation/coco_evaluation.py:355
↓ 2 callersMethodinverse
The inverse is to rotate it back with expand, and crop to get the original shape.
cvpods/data/transforms/transform.py:670
↓ 2 callersFunctioniou
(boxes, top_box)
cvpods/layers/nms.py:110
↓ 2 callersMethodis_rotated
(box_list)
cvpods/evaluation/rotated_coco_evaluation.py:27
↓ 2 callersMethodisdir
Checks if the resource at the given URI is a directory. Args: path (str): A URI supported by this PathHandler R
cvpods/utils/file/file_io.py:192
↓ 2 callersMethodlatest_with_smoothing_hint
Similar to :meth:`latest`, but the returned values are either the un-smoothed original latest value, or a median of the given
cvpods/utils/dump/events.py:387
↓ 2 callersMethodlayers
(self, features, ori_shape)
cvpods/modeling/meta_arch/fcn.py:105
↓ 2 callersFunctionlink_val100
(dir_full, dir_100)
datasets/prepare_panoptic_fpn.py:99
↓ 2 callersMethodloadData
(self, fpath, body_key=None, head_key=None, if_gt=True)
cvpods/evaluation/crowdhumantools.py:340
← previousnext →301–400 of 2,734, ranked by callers