MCPcopy Create free account

hub / github.com/cjrd/self-supervised-pretraining / functions

Functions2,192 in github.com/cjrd/self-supervised-pretraining

↓ 2 callersMethod_shared_roi_transform
(self, features, boxes)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:410
↓ 2 callersMethod_subsample_labels
Randomly sample a subset of positive and negative examples, and overwrite the label vector to the ignore value (-1) for all elements
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/proposal_generator/rpn.py:249
↓ 2 callersMethod_test_roialignv2_roialignrotated_match
(self, device)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_roi_pooler.py:27
↓ 2 callersMethod_test_scriptability
(self, device)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_roi_pooler.py:84
↓ 2 callersMethod_test_train
(self, input_sizes, instances)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_model_e2e.py:61
↓ 2 callersMethod_turn_off_roi_heads
Open a context where some heads in `model.roi_heads` are temporarily turned off. Args: attr (list[str]): the attribute in
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/test_time_augmentation.py:121
↓ 2 callersFunction_update_i
(op, ssa_i)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:415
↓ 2 callersFunction_wrapper_count_operators
( model: nn.Module, inputs: list, mode: str, **kwargs )
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/analysis.py:122
↓ 2 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval. Does not support changing parameter settings from those u
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/fast_eval_api.py:97
↓ 2 callersFunctionadd_deeplab_config
Add config for DeepLab.
OpenSelfSup/benchmarks/detection/detection/projects/DeepLab/deeplab/config.py:5
↓ 2 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/proposal_generator/proposal_utils.py:121
↓ 2 callersFunctionadd_hrnet_config
Add config for HRNet backbone.
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/config.py:145
↓ 2 callersMethodadd_parser
(cls: type, subparsers: argparse._SubParsersAction)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/apply_net.py:134
↓ 2 callersMethodadd_parser
(cls: type, subparsers: argparse._SubParsersAction)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/query_db.py:140
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/checkpoint/c2_model_loading.py:211
↓ 2 callersMethodarea
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:140
↓ 2 callersMethodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/masks.py:401
↓ 2 callersFunctionassemble_rcnn_outputs_by_name
A function to assemble caffe2 model's outputs (i.e. Dict[str, Tensor]) to detectron2's format (i.e. list of Instances instance). This onl
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_modeling.py:30
↓ 2 callersFunctionauroc
(pred, target)
OpenSelfSup/openselfsup/models/utils/accuracy.py:24
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/rotated_coco_evaluation.py:34
↓ 2 callersFunctionbuild_datasource
(cfg)
OpenSelfSup/openselfsup/datasets/builder.py:42
↓ 2 callersFunctionbuild_hook
(cfg, default_args=None)
OpenSelfSup/openselfsup/hooks/builder.py:6
↓ 2 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
OpenSelfSup/benchmarks/detection/detection/detectron2/solver/build.py:140
↓ 2 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
OpenSelfSup/benchmarks/detection/detection/projects/DeepLab/deeplab/build_solver.py:10
↓ 2 callersFunctionbuild_optimizer
Build optimizer from configs. Args: model (:obj:`nn.Module`): The model with parameters to be optimized. optimizer_cfg (dict): Th
OpenSelfSup/openselfsup/apis/train.py:113
↓ 2 callersFunctionbuild_point_head
Build a point head defined by `cfg.MODEL.POINT_HEAD.NAME`.
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/point_head.py:152
↓ 2 callersFunctionbuild_resnet_backbone
Create a ResNet instance from config. Returns: ResNet: a :class:`ResNet` instance.
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/backbone/resnet.py:561
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
OpenSelfSup/benchmarks/detection/detection/detectron2/engine/defaults.py:452
↓ 2 callersFunctioncalculate_uncertainty
We estimate uncerainty as L1 distance between 0.0 and the logit prediction in 'logits' for the foreground class in `classes`. Args:
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/roi_heads.py:25
↓ 2 callersFunctioncollect_env
Collect the information of the running environments.
OpenSelfSup/openselfsup/utils/collect_env.py:14
↓ 2 callersFunctioncombine_semantic_and_instance_outputs
Implement a simple combining logic following "combine_semantic_and_instance_predictions.py" in panopticapi to produce panoptic segmentati
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/meta_arch/panoptic_fpn.py:133
↓ 2 callersMethodcontrast
(self, img)
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/color_augmentation.py:77
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/hrnet.py:23
↓ 2 callersMethodconvert_frozen_batchnorm
Convert BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/batch_norm.py:94
↓ 2 callersMethodcreate_boxes
(self)
OpenSelfSup/benchmarks/detection/detection/tests/structures/test_boxes.py:150
↓ 2 callersFunctiondecompress_compressed_densepose_chart_result
Decompresses DensePose chart-based result encoded into a base64 string Args: result (DensePoseChartResultCompressed): compressed Den
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/structures/chart_result.py:104
↓ 2 callersMethoddeepcluster
(self, runner)
OpenSelfSup/openselfsup/hooks/deepcluster_hook.py:65
↓ 2 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/collect_env.py:34
↓ 2 callersMethoddevice
(self)
OpenSelfSup/benchmarks/detection/detection/projects/TensorMask/tensormask/arch.py:355
↓ 2 callersFunctiondowngrade_config
Downgrade a config from its current version to an older version. Args: cfg (CfgNode): to_version (int): Note: A
OpenSelfSup/benchmarks/detection/detection/detectron2/config/compat.py:55
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:1061
↓ 2 callersFunctiondump_torchscript_IR
Dump IR of a TracedModule/ScriptModule at various levels. Useful for debugging. Args: model (TracedModule or ScriptModule): trac
OpenSelfSup/benchmarks/detection/detection/detectron2/export/torchscript.py:58
↓ 2 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/evaluator.py:48
↓ 2 callersMethodexecute_on_entry
(cls: type, entry: Dict[str, Any], context: Dict[str, Any])
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/query_db.py:162
↓ 2 callersMethodexport_caffe2
Export the model to Caffe2's protobuf format. The returned object can be saved with ``.save_protobuf()`` method. The result c
OpenSelfSup/benchmarks/detection/detection/detectron2/export/api.py:100
↓ 2 callersMethodexport_onnx
Export the model to ONNX format. Note that the exported model contains custom ops only available in caffe2, therefore it cann
OpenSelfSup/benchmarks/detection/detection/detectron2/export/api.py:115
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/fast_rcnn.py:81
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/proposal_generator/proposal_utils.py:13
↓ 2 callersFunctionflops_to_string
(flops, units='GMac', precision=2)
OpenSelfSup/openselfsup/utils/flops_counter.py:69
↓ 2 callersMethodforward
Args: input: NCHW images rois: Bx6 boxes. First column is the index into N. The other 5 columns are (
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/roi_align_rotated.py:70
↓ 2 callersMethodforward
(self, x)
OpenSelfSup/benchmarks/detection/detection/tests/test_engine.py:22
↓ 2 callersMethodforward_backbone
Forward backbone. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered
OpenSelfSup/openselfsup/models/npid.py:59
↓ 2 callersMethodforward_backbone
Forward backbone. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered
OpenSelfSup/openselfsup/models/simclr.py:55
↓ 2 callersMethodfrom_cfg
(cfg: CfgNode)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/confidence.py:62
↓ 2 callersFunctionfunc
(dev, n=1)
OpenSelfSup/benchmarks/detection/detection/tests/structures/test_rotated_boxes.py:335
↓ 2 callersMethodfunc
(x)
OpenSelfSup/benchmarks/detection/detection/tests/structures/test_boxes.py:194
↓ 2 callersFunctiongather_tensors_batch
(input_array, part_size=100, ret_rank=-1)
OpenSelfSup/openselfsup/utils/gather.py:39
↓ 2 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/instances.py:100
↓ 2 callersFunctionget_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
OpenSelfSup/benchmarks/detection/detection/tests/test_model_analysis.py:13
↓ 2 callersFunctionget_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_model_e2e.py:15
↓ 2 callersFunctionget_rank
()
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/comm.py:29
↓ 2 callersFunctionget_sub_graph_external_input_output
Return the list of external input/output of sub-graph, each element is tuple of the name and corresponding version in predict_net. exter
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:750
↓ 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)
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/point_features.py:119
↓ 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
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/point_features.py:63
↓ 2 callersMethodhistories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/events.py:375
↓ 2 callersMethodhue
(self, img)
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/color_augmentation.py:91
↓ 2 callersMethodinference
Deprecated
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/fast_rcnn.py:337
↓ 2 callersMethodinit_weights
Initialize the weights of model. Args: pretrained (str, optional): Path to pre-trained weights. Default: None.
OpenSelfSup/openselfsup/models/odc.py:54
↓ 2 callersMethodinstance_masks
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:213
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/coco_evaluation.py:321
↓ 2 callersMethodis_rotated
(box_list)
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/rotated_coco_evaluation.py:17
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/events.py:390
↓ 2 callersFunctionlink_val100
(dir_full, dir_100)
OpenSelfSup/benchmarks/detection/detection/datasets/prepare_panoptic_fpn.py:98
↓ 2 callersFunctionlog_first_n
Log only for the first n times. Args: lvl (int): the logging level msg (str): n (int): name (str): name of t
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/logger.py:135
↓ 2 callersMethodlosses
(self, predictions, targets, weights=None)
OpenSelfSup/benchmarks/detection/detection/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:318
↓ 2 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/mask_head.py:32
↓ 2 callersMethodmask_to_polygons
(self, mask)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:116
↓ 2 callersFunctionmaybe_add_gradient_clipping
If gradient clipping is enabled through config options, wraps the existing optimizer instance of some type OptimizerType to become an instanc
OpenSelfSup/benchmarks/detection/detection/detectron2/solver/build.py:61
↓ 2 callersFunctionmaybe_to_cpu
(x)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/memory.py:57
↓ 2 callersFunctionmerge_branch_instances
Merge detection results from different branches of TridentNet. Return detection results by applying non-maximum suppression (NMS) on bounding
OpenSelfSup/benchmarks/detection/detection/projects/TridentNet/tridentnet/trident_rcnn.py:8
↓ 2 callersMethodmock_roi_heads
Patching several inference functions inside ROIHeads and its subclasses Args: tensor_mode (bool): whether the inputs/out
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_patch.py:121
↓ 2 callersMethodmomentum_update
(self)
OpenSelfSup/openselfsup/models/byol.py:141
↓ 2 callersMethodname
(self)
OpenSelfSup/openselfsup/utils/registry.py:19
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:189
↓ 2 callersMethodnormalize_angles
Restrict angles to the range of [-180, 180) degrees
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/rotated_boxes.py:246
↓ 2 callersFunctionoutput
(vis, fname)
OpenSelfSup/benchmarks/detection/detection/tools/visualize_data.py:56
↓ 2 callersFunctionpairwise_intersection
Given two lists of boxes of size N and M, compute the intersection area between __all__ N x M pairs of boxes. The box order must be (xmin
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/boxes.py:320
↓ 2 callersFunctionparse_require_file
(fpath)
OpenSelfSup/setup.py:140
↓ 2 callersFunctionpatch
recursively (post-order) update all modules with the target type and its subclasses, make a initialization/composition/inheritance/... via th
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_patch.py:57
↓ 2 callersFunctionpatch_generalized_rcnn
(model)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_patch.py:70
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/meta_arch/rcnn.py:216
↓ 2 callersMethodproduce_densepose_losses
Losses for segmentation and U/V coordinates computed as cross-entropy for segmentation unnormalized scores given ground truth labels
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/chart.py:278
↓ 2 callersMethodproduce_fake_densepose_losses
Fake losses for fine segmentation and U/V coordinates. These are used when no suitable ground truth data was found in a batch. The lo
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/chart.py:207
↓ 2 callersMethodproduce_fake_mask_losses
Fake coarse segmentation loss used when no suitable ground truth data was found in a batch. The loss has a value 0 and is primarily u
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/chart.py:152
↓ 2 callersFunctionpy2_py3_compatible_cost
(cost)
OpenSelfSup/benchmarks/svm_tools/svm_helper.py:30
↓ 2 callersFunctionrandom_boxes
(mean_box, stdev, N)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_box2box_transform.py:11
↓ 2 callersFunctionrandom_rotated_boxes
(mean_box, std_length, std_angle, N)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_box2box_transform.py:33
↓ 2 callersFunctionreduce
(data)
utils/plot_pct_pretrain_modified.py:134
↓ 2 callersFunctionreduce
(data)
utils/plot_pct_pretrain.py:109
↓ 2 callersFunctionresample_fine_and_coarse_segm_to_bbox
Resample fine and coarse segmentation outputs from a predictor to the given bounding box and derive labels for each pixel of the bounding box
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/converters/segm_to_mask.py:12
← previousnext →301–400 of 2,192, ranked by callers