MCPcopy Create free account

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

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

↓ 1 callersMethodcreate_complex_model
(self)
OpenSelfSup/benchmarks/detection/detection/tests/test_checkpoint.py:15
↓ 1 callersFunctioncreate_const_fill_op
Given a blob object, return the Caffe2 operator that creates this blob as constant. Currently support NumPy tensor and Caffe2 Int8Tensor.
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:265
↓ 1 callersMethodcreate_context
(cls: type, args: argparse.Namespace)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/apply_net.py:168
↓ 1 callersMethodcreate_context
(cls: type, args: argparse.Namespace)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/query_db.py:184
↓ 1 callersFunctioncreate_extractor
Create an extractor for the provided visualizer
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/extractor.py:33
↓ 1 callersMethodcreate_from
(self, module)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_patch.py:35
↓ 1 callersFunctioncreate_instances
(predictions, image_size)
OpenSelfSup/benchmarks/detection/detection/tools/visualize_json_results.py:19
↓ 1 callersMethodcreate_visualization_context
(self, image_bgr: Image)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:81
↓ 1 callersFunctiondataset_id_map
(ds_id)
OpenSelfSup/benchmarks/detection/detection/tools/visualize_json_results.py:64
↓ 1 callersMethoddeal_with_small_clusters
Deal with small clusters.
OpenSelfSup/openselfsup/models/memories/odc_memory.py:129
↓ 1 callersFunctiondecorate_predictor_output_class_with_confidences
Create a new output class from an existing one by adding new attributes related to confidence estimation: - sigma_1 (tensor) - sigma_
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/structures/chart_confidence.py:10
↓ 1 callersFunctiondensepose_inference
Splits DensePose predictor outputs into chunks, each chunk corresponds to detections on one image. Predictor output chunks are stored in `pre
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/inference.py:9
↓ 1 callersMethoddevice
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/meta_arch/retinanet.py:93
↓ 1 callersMethoddevice
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/keypoints.py:40
↓ 1 callersMethoddevice
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/structures/rotated_boxes.py:456
↓ 1 callersMethoddisplay
(self, batch)
utils/simclr-converter/eval.py:151
↓ 1 callersFunctiondo_train
(cfg, model, resume=False)
OpenSelfSup/benchmarks/detection/detection/tools/plain_train_net.py:126
↓ 1 callersMethoddowngrade
(cls, cfg: CN)
OpenSelfSup/benchmarks/detection/detection/detectron2/config/compat.py:222
↓ 1 callersMethoddraw_and_connect_keypoints
Draws keypoints of an instance and follows the rules for keypoint connections to draw lines between appropriate keypoints. This follo
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:753
↓ 1 callersMethoddraw_box
Args: box_coord (tuple): a tuple containing x0, y0, x1, y1 coordinates, where x0 and y0 are the coordinates of th
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:862
↓ 1 callersMethoddraw_circle
Args: circle_coord (list(int) or tuple(int)): contains the x and y coordinates of the center of the circle.
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:951
↓ 1 callersMethoddraw_rotated_box_with_label
Draw a rotated box with label on its top-left corner. Args: rotated_box (tuple): a tuple containing (cnt_x, cnt_y, w, h,
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:896
↓ 1 callersFunctiondump_code
(prefix, mod)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/torchscript.py:89
↓ 1 callersMethodencode_additional_info
Save extra metadata that will be used by inference in the output protobuf.
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_modeling.py:181
↓ 1 callersMethodencode_json_sem_seg
Convert semantic segmentation to COCO stuff format with segments encoded as RLEs. See http://cocodataset.org/#format-results
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/sem_seg_evaluation.py:148
↓ 1 callersMethodevaluate
(self, runner, new_labels)
OpenSelfSup/openselfsup/hooks/deepcluster_hook.py:115
↓ 1 callersMethodevaluate
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/evaluator.py:88
↓ 1 callersMethodevaluate
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/coco_evaluation.py:128
↓ 1 callersMethodexecute_on_outputs
( cls: type, context: Dict[str, Any], entry: Dict[str, Any], outputs: Instances )
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/apply_net.py:150
↓ 1 callersFunctionexport_caffe2_detection_model
Export a caffe2-compatible Detectron2 model to caffe2 format via ONNX. Arg: model: a caffe2-compatible version of detectron2 model,
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_export.py:129
↓ 1 callersFunctionexport_caffe2_model
Export a detectron2 model to caffe2 format. Args: cfg (CfgNode): a detectron2 config, with extra export-related options
OpenSelfSup/benchmarks/detection/detection/detectron2/export/api.py:146
↓ 1 callersFunctionexport_onnx_model
Trace and export a model to onnx format. Args: model (nn.Module): inputs (tuple[args]): the model will be called by `model(*
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_export.py:33
↓ 1 callersMethodexport_torchscript
Export the model to a ``torch.jit.TracedModule`` by tracing. The returned object can be saved to a file by ``.save()``. Retu
OpenSelfSup/benchmarks/detection/detection/detectron2/export/api.py:131
↓ 1 callersFunctionexport_torchscript_with_instances
Run :func:`torch.jit.script` on a model that uses the :class:`Instances` class. Since attributes of :class:`Instances` are "dynamically" adde
OpenSelfSup/benchmarks/detection/detection/detectron2/export/torchscript.py:10
↓ 1 callersMethodextract
(self, model, data_loader, distributed=False)
OpenSelfSup/tools/extract.py:37
↓ 1 callersFunctionextract_data_for_mask_loss_from_matches
Extract data for mask loss from instances that contain matched GT and estimated bounding boxes. Args: proposals_targets: Iterable
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/chart.py:27
↓ 1 callersFunctionfast_rcnn_inference_rotated
Call `fast_rcnn_inference_single_image_rotated` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-spe
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/rotated_fast_rcnn.py:46
↓ 1 callersFunctionfast_rcnn_inference_single_image_rotated
Single-image inference. Return rotated bounding-box detection results by thresholding on scores and applying rotated non-maximum suppression
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/rotated_fast_rcnn.py:83
↓ 1 callersFunctionfetch_any_blob
(name)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:152
↓ 1 callersMethodfindAllClosestVerts
(self, gt, U_points, V_points, Index_points)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/densepose_coco_evaluation.py:1026
↓ 1 callersFunctionfind_instance_center
Find the center points from the center heatmap. Args: center_heatmap: A Tensor of shape [1, H, W] of raw center heatmap output.
OpenSelfSup/benchmarks/detection/detection/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py:9
↓ 1 callersFunctionfind_top_rrpn_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/rrpn.py:18
↓ 1 callersFunctionflatten_results_dict
Expand a hierarchical dict of scalars into a flat dict of scalars. If results[k1][k2][k3] = v, the returned dict will have the entry {"k1
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/testing.py:61
↓ 1 callersMethodforward
Args: x (list[Tensor]): A list of feature maps of NCHW shape, with scales matching those used to construct this m
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/poolers.py:190
↓ 1 callersMethodforward
(self, x)
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/aspp.py:108
↓ 1 callersMethodforward
(ctx, input)
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/batch_norm.py:155
↓ 1 callersMethodforward
See :class:`Res5ROIHeads.forward`.
OpenSelfSup/benchmarks/detection/detection/projects/TridentNet/tridentnet/trident_rcnn.py:60
↓ 1 callersMethodforward
(self, X)
OpenSelfSup/benchmarks/detection/detection/projects/TensorMask/tensormask/layers/swap_align2nat.py:53
↓ 1 callersMethodforward
(self, features: List[torch.Tensor])
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/roi_heads/roi_head.py:73
↓ 1 callersMethodforward
(self, x)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/roi_heads/deeplab.py:135
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/relative_loc.py:82
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/classification.py:82
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/npid.py:119
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/rotation_pred.py:73
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/deepcluster.py:99
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/byol.py:169
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/simclr.py:98
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/moco.py:260
↓ 1 callersMethodforward_test
(self, img, **kwargs)
OpenSelfSup/openselfsup/models/odc.py:111
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these shou
OpenSelfSup/openselfsup/models/relative_loc.py:60
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these shou
OpenSelfSup/openselfsup/models/classification.py:64
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these shou
OpenSelfSup/openselfsup/models/npid.py:72
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these shou
OpenSelfSup/openselfsup/models/rotation_pred.py:55
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these shou
OpenSelfSup/openselfsup/models/deepcluster.py:79
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input of two concatenated images of shape (N, 2, C, H, W).
OpenSelfSup/openselfsup/models/byol.py:144
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input of two concatenated images of shape (N, 2, C, H, W).
OpenSelfSup/openselfsup/models/simclr.py:68
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input of two concatenated images of shape (N, 2, C, H, W).
OpenSelfSup/openselfsup/models/moco.py:215
↓ 1 callersMethodforward_train
Forward computation during training. Args: img (Tensor): Input images of shape (N, C, H, W). Typically these shou
OpenSelfSup/openselfsup/models/odc.py:82
↓ 1 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
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:699
↓ 1 callersFunctionfpn_map
Look for keys with the following patterns: 1) Starts with "fpn.inner." Example: "fpn.inner.res2.2.sum.lateral.weight"
OpenSelfSup/benchmarks/detection/detection/detectron2/checkpoint/c2_model_loading.py:132
↓ 1 callersMethodfreeze
Freeze the first several stages of the ResNet. Commonly used in fine-tuning. Layers that produce the same feature map spatia
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/backbone/resnet.py:455
↓ 1 callersMethodfrom_config
(cls, cfg, input_shape)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/keypoint_head.py:161
↓ 1 callersMethodfrom_config
(cls, cfg)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:167
↓ 1 callersMethodfrom_config
(cls, cfg, input_shape)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/mask_head.py:172
↓ 1 callersMethodfrom_matches
(tensors_helper: SingleTensorsHelper, densepose_outputs_size)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/losses/utils.py:161
↓ 1 callersMethodfrom_ssa
(ssa)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:816
↓ 1 callersMethodfrom_string
(spec: str)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/utils/dbhelper.py:11
↓ 1 callersFunctionfuse_alias_placeholder
Remove AliasWithName placeholder and rename the input/output of it
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:599
↓ 1 callersFunctionfuse_copy_between_cpu_and_gpu
In-place fuse extra copy ops between cpu/gpu for the following case: a -CopyAToB-> b -CopyBToA> c1 -NextOp1-> d1
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:952
↓ 1 callersFunctiongather_tensors
(input_array)
OpenSelfSup/openselfsup/utils/gather.py:7
↓ 1 callersFunctiongen_header
(torch_versions)
OpenSelfSup/benchmarks/detection/detection/dev/packaging/gen_install_table.py:13
↓ 1 callersMethodgen_new_list
(self)
OpenSelfSup/openselfsup/datasets/loader/sampler.py:274
↓ 1 callersFunctiongen_packages_items
()
OpenSelfSup/setup.py:148
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot_pct_pretrain_modified.py:38
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot-mini.py:40
↓ 1 callersFunctiongen_plots
(data, bn_data, options)
utils/plot-results.py:36
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot-results-aug-resisc.py:31
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot_augmentation_modified.py:34
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot_augmentation.py:34
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot_basetrain_robust.py:32
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot_pct_pretrain.py:37
↓ 1 callersFunctiongen_plots
(data, options)
utils/plot_basetrain_robust_modified.py:32
↓ 1 callersMethodgenerate_cell_anchors
Generate a tensor storing canonical anchor boxes, which are all anchor boxes of different sizes and aspect_ratios centered at (0, 0).
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/anchor_generator.py:175
↓ 1 callersMethodgenerate_cell_anchors
Generate a tensor storing canonical anchor boxes, which are all anchor boxes of different sizes, aspect_ratios, angles centered at (0
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/anchor_generator.py:323
↓ 1 callersFunctiongenerate_independent_sample
(opts, targets, img_ids, cls_names)
OpenSelfSup/tools/prepare_data/create_voc_low_shot_challenge_samples.py:72
↓ 1 callersMethodgenerate_new_list
(self)
OpenSelfSup/openselfsup/datasets/loader/sampler.py:33
↓ 1 callersFunctiongenerate_regular_grid_point_coords
Generate regular square grid of points in [0, 1] x [0, 1] coordinate space. Args: R (int): The number of grids to sample, one for ea
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/point_features.py:45
↓ 1 callersMethodgetDensePoseMask
(self, polys)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/densepose_coco_evaluation.py:339
↓ 1 callersMethodgetDistances
(self, cVertsGT, cVerts)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/densepose_coco_evaluation.py:1059
↓ 1 callersMethodget_all_paths
(self, s, d)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:795
← previousnext →701–800 of 2,192, ranked by callers