MCPcopy Create free account

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

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

↓ 3 callersFunctioncreate_model_input
(img, inst=None)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_model_e2e.py:27
↓ 3 callersMethoddevice
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/masks.py:108
↓ 3 callersFunctiondo_test
(cfg, model)
OpenSelfSup/benchmarks/detection/detection/tools/plain_train_net.py:109
↓ 3 callersMethoddraw
Draw N samples from multinomial. Args: N (int): Number of samples. Returns: Tensor: Samples.
OpenSelfSup/openselfsup/utils/alias_multinomial.py:55
↓ 3 callersMethoddraw_dataset_dict
Draw annotations/segmentaions in Detectron2 Dataset format. Args: dic (dict): annotation/segmentation data of one image,
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:508
↓ 3 callersMethoddraw_panoptic_seg_predictions
Draw panoptic prediction results on an image. Args: panoptic_seg (Tensor): of shape (height, width) where the values are
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:446
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:815
↓ 3 callersMethodevaluate
(self, runner, new_labels)
OpenSelfSup/openselfsup/hooks/odc_hook.py:69
↓ 3 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/densepose_coco_evaluation.py:288
↓ 3 callersFunctionextract_scores_from_instances
(instances: Instances, select=None)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/extractor.py:18
↓ 3 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/fast_rcnn.py:46
↓ 3 callersFunctionflop_count_operators
Implement operator-level flops counting using jit. This is a wrapper of fvcore.nn.flop_count, that supports standard detection models in
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/analysis.py:55
↓ 3 callersMethodforward
(self, x)
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/wrappers.py:64
↓ 3 callersMethodforward_backbone
Forward backbone. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered
OpenSelfSup/openselfsup/models/rotation_pred.py:42
↓ 3 callersMethodforward_backbone
Forward backbone. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered
OpenSelfSup/openselfsup/models/deepcluster.py:64
↓ 3 callersMethodforward_backbone
Forward backbone. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered
OpenSelfSup/openselfsup/models/odc.py:67
↓ 3 callersMethodforward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. Args: features: same as in `forward()`
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:451
↓ 3 callersFunctionget_consumer_map
Return dict from versioned blob to list of (i, j), where i is index of consumer op, j is the index of input of that op.
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:327
↓ 3 callersFunctionget_empty_instance
(h, w)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_model_e2e.py:34
↓ 3 callersMethodget_fields
like `get_fields` in the Instances object, but return each field in tensor representations
OpenSelfSup/benchmarks/detection/detection/detectron2/export/c10.py:58
↓ 3 callersMethodget_length
(self)
OpenSelfSup/openselfsup/datasets/data_sources/cifar.py:26
↓ 3 callersFunctionget_producer_map
Return dict from versioned blob to (i, j), where i is index of producer op, j is the index of output of that op.
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:314
↓ 3 callersFunctionget_version
(module, digit=2)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/env.py:75
↓ 3 callersFunctioninfer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:448
↓ 3 callersMethodinference
Arguments: pred_logits, pred_deltas, pred_masks: Same as the output of: meth:`TensorMaskHead.forward`
OpenSelfSup/benchmarks/detection/detection/projects/TensorMask/tensormask/arch.py:633
↓ 3 callersFunctioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.forward` accurately. T
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/evaluator.py:101
↓ 3 callersFunctioninitialize_module_params
(module: nn.Module)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/utils.py:6
↓ 3 callersFunctionis_main_process
()
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/comm.py:63
↓ 3 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:220
↓ 3 callersMethodlayers
(self, features)
OpenSelfSup/benchmarks/detection/detection/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:311
↓ 3 callersMethodlosses
Return the losses from a set of RPN predictions and their associated ground-truth. Args: anchors (list[Boxes or RotatedB
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/proposal_generator/rpn.py:328
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/mask_head.py:114
↓ 3 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path
OpenSelfSup/setup.py:87
↓ 3 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
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/mask_ops.py:67
↓ 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`.
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/point_features.py:146
↓ 3 callersMethodpredict_probs
Deprecated
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/fast_rcnn.py:330
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/testing.py:10
↓ 3 callersMethodput_image
Add an `img_tensor` associated with `img_name`, to be shown on tensorboard. Args: img_name (str): The name of th
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/events.py:282
↓ 3 callersFunctionreduce
(data)
utils/plot_augmentation_modified.py:120
↓ 3 callersFunctionreduce
(data)
utils/plot_augmentation.py:97
↓ 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
OpenSelfSup/benchmarks/detection/detection/tests/layers/test_nms_rotated.py:41
↓ 3 callersFunctionrename_op_output
Rename the op_id-th operator in predict_net, change it's output_id-th input's name to the new_name. It also does automatic re-route and c
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:729
↓ 3 callersFunctionsave_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:523
↓ 3 callersFunctionsetup
(args)
OpenSelfSup/benchmarks/detection/detection/tools/benchmark.py:34
↓ 3 callersFunctiontemp_video
(num_frames, height, width, fps, lossless=False, video_codec=None, options=None)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/tests/test_video_keyframe_dataset.py:34
↓ 3 callersFunctiontraverse_replace
(d, key, value)
OpenSelfSup/openselfsup/utils/config_tools.py:3
↓ 3 callersMethodvisualize
(self, image_bgr, txt, topleft_xy)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/base.py:139
↓ 2 callersMethod__init__
(self, root, split, return_label=True)
OpenSelfSup/openselfsup/datasets/data_sources/cifar.py:13
↓ 2 callersMethod__init__
(self, depth, in_channels=3, num_stages=4,
OpenSelfSup/openselfsup/models/backbones/resnet.py:291
↓ 2 callersMethod__init__
(self, buffers)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/anchor_generator.py:25
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/backbone/fpn.py:22
↓ 2 callersMethod__init__
NOTE: this interface is experimental. Args: num_classes (int): number of classes. Used to label background proposals.
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:139
↓ 2 callersMethod__init__
(self, cfg)
OpenSelfSup/benchmarks/detection/detection/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:42
↓ 2 callersMethod__init__
(self, sigma_lower_bound: float)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/chart_with_confidences.py:139
↓ 2 callersMethod__init__
(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:329
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, zero_init_residual=False, groups=1, width_per_group=6
utils/simclr-converter/resnet_wider.py:103
↓ 2 callersMethod_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/video_visualizer.py:180
↓ 2 callersFunction_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_export.py:96
↓ 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
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/deform_conv.py:157
↓ 2 callersMethod_compute_centroids
Compute all non-empty centroids.
OpenSelfSup/openselfsup/models/memories/odc_memory.py:65
↓ 2 callersMethod_contours
(self, image_bgr, arr, segm, bbox_xywh)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:164
↓ 2 callersFunction_create_grid_offsets
(size: List[int], stride: int, offset: float, device: torch.device)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/anchor_generator.py:37
↓ 2 callersMethod_data_loader
(self, device)
OpenSelfSup/benchmarks/detection/detection/tests/test_engine.py:29
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/coco_evaluation.py:252
↓ 2 callersMethod_do_eval
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/engine/hooks.py:327
↓ 2 callersMethod_extract_mask
(self, dt: Dict[str, Any])
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/densepose_coco_evaluation.py:524
↓ 2 callersFunction_extract_u_from_iuvarr
(iuv_arr)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:68
↓ 2 callersFunction_extract_v_from_iuvarr
(iuv_arr)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:72
↓ 2 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:726
↓ 2 callersMethod_forward_box
Args: features, targets: the same as in Same as in :meth:`ROIHeads.forward`. proposals (list[Instance
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/cascade_rcnn.py:153
↓ 2 callersMethod_forward_densepose
Forward logic of the densepose prediction branch. Args: features (dict[str, Tensor]): input data as a mapping from featu
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/roi_heads/roi_head.py:125
↓ 2 callersMethod_forward_mask_coarse
Forward logic of the coarse mask head.
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/roi_heads.py:139
↓ 2 callersMethod_forward_mask_point
Forward logic of the mask point head.
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/roi_heads.py:155
↓ 2 callersMethod_forward_syncbn
(self, module, x)
OpenSelfSup/openselfsup/models/necks.py:307
↓ 2 callersMethod_get_augmented_inputs
(self, input)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/test_time_augmentation.py:223
↓ 2 callersFunction_get_device_type
(torch_tensor)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_export.py:91
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/comm.py:83
↓ 2 callersMethod_get_layer_name
(self, i: int)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/roi_heads/v1convx.py:62
↓ 2 callersMethod_get_layer_name
(self, i: int)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/roi_heads/deeplab.py:73
↓ 2 callersFunction_get_model_config
Load and return the configuration from the specified file (relative to the base configuration directory)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/tests/common.py:96
↓ 2 callersFunction_get_script_mod
(mod)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/torchscript.py:69
↓ 2 callersFunction_grouper
Group elements of an iterable by chunks of size `n`, e.g. grouper(range(9), 4) -> (0, 1, 2, 3), (4, 5, 6, 7), (8, None, None, None)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/tests/test_combine_data_loader.py:10
↓ 2 callersFunction_has
(name: str)
OpenSelfSup/benchmarks/detection/detection/detectron2/config/compat.py:91
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/memory.py:12
↓ 2 callersMethod_is_range_spec
(self, field_value_or_range)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/utils/dbhelper.py:131
↓ 2 callersFunction_linear_interpolation_utilities
Computes utility values for linear interpolation at points v. The points are given as normalized offsets in the source interval (v0_src,
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/utils.py:12
↓ 2 callersFunction_list_to_str
(bsize)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:508
↓ 2 callersMethod_merge_cfg_str
(self, cfg, merge_str)
OpenSelfSup/benchmarks/detection/detection/tests/test_config.py:36
↓ 2 callersMethod_merge_detections
(self, all_boxes, all_scores, all_classes, shape_hw)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/test_time_augmentation.py:246
↓ 2 callersFunction_op_stats
(net_def)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_export.py:74
↓ 2 callersFunction_pad_to_largest_tensor
Returns: list[int]: size of the tensor, on each rank Tensor: padded tensor that has the max size
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/comm.py:112
↓ 2 callersMethod_predict_boxes
Returns: Tensor: A Tensors of predicted class-specific or class-agnostic boxes for all images in a batch. Element
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/fast_rcnn.py:300
↓ 2 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params :return: None
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/densepose_coco_evaluation.py:170
↓ 2 callersFunction_print_panoptic_results
(pq_res)
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/panoptic_evaluation.py:163
↓ 2 callersMethod_rand_boxes
(self, num_boxes, x_max, y_max)
OpenSelfSup/benchmarks/detection/detection/tests/modeling/test_roi_pooler.py:14
↓ 2 callersMethod_reduce_pred_masks
(self, outputs, tfms)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/test_time_augmentation.py:282
↓ 2 callersFunction_replace_list
(blob_list, replaced_list)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:494
↓ 2 callersMethod_rescale_detected_boxes
(self, augmented_inputs, merged_instances, tfms)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/test_time_augmentation.py:266
↓ 2 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:181
↓ 2 callersFunction_serialize_to_tensor
(data, group)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/comm.py:94
← previousnext →201–300 of 2,192, ranked by callers