MCPcopy Create free account

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

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

↓ 2 callersFunctionresnet50x1
(**kwargs)
utils/simclr-converter/resnet_wider.py:200
↓ 2 callersFunctionresnet50x2
(**kwargs)
utils/simclr-converter/resnet_wider.py:203
↓ 2 callersFunctionresnet50x4
(**kwargs)
utils/simclr-converter/resnet_wider.py:207
↓ 2 callersMethodrun_on_video
Visualizes predictions on frames of the input video. Args: video (cv2.VideoCapture): a :class:`VideoCapture` object, who
OpenSelfSup/benchmarks/detection/detection/demo/predictor.py:76
↓ 2 callersFunctionsample_symbol
(input_targets, output_target, symbol, num)
OpenSelfSup/tools/prepare_data/create_voc_low_shot_challenge_samples.py:61
↓ 2 callersMethodsaturation
(self, img)
OpenSelfSup/benchmarks/detection/detection/projects/PointRend/point_rend/color_augmentation.py:82
↓ 2 callersMethodsave_graph
Save the graph as SVG format. Args: output_file (str): a SVG file inputs: optional inputs given to the model
OpenSelfSup/benchmarks/detection/detection/detectron2/export/api.py:243
↓ 2 callersMethodsave_protobuf
Save the model as caffe2's protobuf format. Args: output_dir (str): the output directory to save protobuf files.
OpenSelfSup/benchmarks/detection/detection/detectron2/export/api.py:224
↓ 2 callersMethodsemantic_masks
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:205
↓ 2 callersMethodset_reweight
Loss re-weighting. Re-weighting the loss according to the number of samples in each class. Args: labels (numpy.ndarray):
OpenSelfSup/openselfsup/models/odc.py:128
↓ 2 callersFunctionsetup
(args)
OpenSelfSup/benchmarks/detection/train_net.py:48
↓ 2 callersFunctionsetup
Create configs and perform basic setups.
OpenSelfSup/benchmarks/detection/detection/projects/TensorMask/train_net.py:29
↓ 2 callersFunctionsetup_plot
(width=300)
utils/plot-results.py:150
↓ 2 callersMethodstep
Performs a single optimization step. Args: closure (callable, optional): A closure that reevaluates the model and
OpenSelfSup/openselfsup/utils/optimizers.py:64
↓ 2 callersFunctionsubsample_labels
Return `num_samples` (or fewer, if not enough found) random samples from `labels` which is a mixture of positives & negatives. It will tr
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/sampling.py:9
↓ 2 callersFunctionsynchronize
Helper function to synchronize (barrier) among all processes when using distributed training
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/comm.py:67
↓ 2 callersMethodtest_with_TTA
(cls, cfg, model)
OpenSelfSup/benchmarks/detection/detection/tools/train_net.py:102
↓ 2 callersMethodtest_with_TTA
(cls, cfg: CfgNode, model)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/engine/trainer.py:101
↓ 2 callersMethodto_d2_instances_list
Convert InstancesList to List[Instances]. The input `instances_list` can also be a List[Instances], in this case this method is a non
OpenSelfSup/benchmarks/detection/detection/detectron2/export/c10.py:107
↓ 2 callersMethodtrain
(self, mode=True)
OpenSelfSup/openselfsup/models/backbones/resnet.py:424
↓ 2 callersMethodupdate_centroids_memory
Update centroids memory.
OpenSelfSup/openselfsup/models/memories/odc_memory.py:162
↓ 2 callersFunctionupgrade_config
Upgrade a config from its current version to a newer version. Args: cfg (CfgNode): to_version (int): defaults to the latest
OpenSelfSup/benchmarks/detection/detection/detectron2/config/compat.py:33
↓ 2 callersFunctionverbosity_to_level
(verbosity)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/utils/logger.py:5
↓ 2 callersMethodvisualize
(self, image_bgr, boxes_xywh)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/bounding_box.py:9
↓ 1 callersFunctionBilinearInterpolation
(tensor_in, up_scale)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:48
↓ 1 callersFunctionBuildSortedDetectionList
Helper function to Accumulate() Considers the evaluation results applicable to a particular category, area range, and max_detections parameter setting
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/cocoeval/cocoeval.cpp:223
↓ 1 callersFunctionComputePrecisionRecallCurve
Helper function to Accumulate() Compute a precision recall curve given a sorted list of detected instances encoded in evaluations, evaluation_indices,
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/cocoeval/cocoeval.cpp:284
↓ 1 callersMethodInstanceAnnotation
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/cocoeval/cocoeval.h:18
↓ 1 callersFunctionMatchDetectionsToGroundTruth
For each IOU threshold, greedily match each detected instance to a ground truth instance (if possible) and store the results
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/cocoeval/cocoeval.cpp:61
↓ 1 callersFunctionROIAlignRotated_backward_cpu
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:466
↓ 1 callersFunctionROIAlignRotated_forward_cpu
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:418
↓ 1 callersFunctionROIAlign_backward_cpu
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:450
↓ 1 callersFunctionROIAlign_forward_cpu
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:401
↓ 1 callersFunctionSortInstancesByDetectionScore
Sort detections from highest score to lowest, such that detection_instances[detection_sorted_indices[t]] >= detection_instances[detection_sorted_indic
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/cocoeval/cocoeval.cpp:18
↓ 1 callersFunctionSortInstancesByIgnore
Partition the ground truth objects based on whether or not to ignore them based on area
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/csrc/cocoeval/cocoeval.cpp:34
↓ 1 callersMethod__enter__
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:136
↓ 1 callersMethod__exit__
(self, *args)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:145
↓ 1 callersMethod__getitem__
Get outputs for the selected instance(s) Args: item (int or slice or tensor): selected items
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/structures/chart.py:38
↓ 1 callersMethod__init__
(self, dataset, samples_per_gpu=1)
OpenSelfSup/openselfsup/datasets/loader/sampler.py:86
↓ 1 callersMethod__init__
(self, backbone, neck=None, head=None, pre
OpenSelfSup/openselfsup/models/byol.py:94
↓ 1 callersMethod__init__
(self, backbone, neck=None, head=None, pre
OpenSelfSup/openselfsup/models/moco.py:99
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
OpenSelfSup/openselfsup/models/backbones/resnext.py:189
↓ 1 callersMethod__init__
(self, predictor)
OpenSelfSup/openselfsup/models/heads/latent_pred_head.py:45
↓ 1 callersMethod__init__
(self, cfg)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/test_time_augmentation.py:36
↓ 1 callersMethod__init__
NOTE: this interface is experimental. Args: num_keypoints (int): number of keypoints to predict loss_weight
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/keypoint_head.py:142
↓ 1 callersMethod__init__
Args: box2box_transform (Box2BoxTransform/Box2BoxTransformRotated): box2box transform instance for proposal-to-de
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/fast_rcnn.py:138
↓ 1 callersMethod__init__
NOTE: this interface is experimental. Args: vis_period (int): visualization period
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/mask_head.py:161
↓ 1 callersMethod__init__
NOTE: this interface is experimental. Args: backbone: a backbone module, must follow detectron2's backbone interface
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/meta_arch/rcnn.py:33
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/meta_arch/semantic_seg.py:111
↓ 1 callersMethod__init__
(self, cfg)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/meta_arch/retinanet.py:45
↓ 1 callersMethod__init__
NOTE: this interface is experimental. Args: in_features (list[str]): list of names of input features to use
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/proposal_generator/rpn.py:149
↓ 1 callersMethod__init__
( self, optimizer: torch.optim.Optimizer, max_iters: int, warmup_factor: float
OpenSelfSup/benchmarks/detection/detection/detectron2/solver/lr_scheduler.py:53
↓ 1 callersMethod__init__
(self)
OpenSelfSup/benchmarks/detection/detection/detectron2/engine/train_loop.py:105
↓ 1 callersMethod__init__
Deformable convolution from :paper:`deformconv`. Arguments are similar to :class:`Conv2D`. Extra arguments: Args:
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/deform_conv.py:309
↓ 1 callersMethod__init__
(self, num_features, eps=1e-5)
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/batch_norm.py:36
↓ 1 callersMethod__init__
(self, predict_net, init_net)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_inference.py:23
↓ 1 callersMethod__init__
(self, cfg, input_shape)
OpenSelfSup/benchmarks/detection/detection/projects/TridentNet/tridentnet/trident_rcnn.py:54
↓ 1 callersMethod__init__
(self, cfg)
OpenSelfSup/benchmarks/detection/detection/projects/TensorMask/tensormask/arch.py:308
↓ 1 callersMethod__init__
(self, cfg)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/test_time_augmentation.py:16
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec], in_features)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/roi_heads/roi_head.py:32
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
OpenSelfSup/benchmarks/detection/detection/projects/DeepLab/deeplab/semantic_seg.py:249
↓ 1 callersMethod__init__
Args: cfg (CfgNode): num_gpus (int): if 0, will run on CPU
OpenSelfSup/benchmarks/detection/detection/demo/predictor.py:160
↓ 1 callersFunction_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/backbone/fpn.py:156
↓ 1 callersFunction_assign_device_option
ONNX exported network doesn't have concept of device, assign necessary device option for each op in order to make it runable on GPU runtime.
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_export.py:83
↓ 1 callersFunction_assignment_rule
Given two lists of boxes of N ground truth boxes and M anchor boxes, compute the assignment between the two, following the assignment rules i
OpenSelfSup/benchmarks/detection/detection/projects/TensorMask/tensormask/arch.py:42
↓ 1 callersMethod_batch_shuffle_ddp
Batch shuffle, for making use of BatchNorm. *** Only support DistributedDataParallel (DDP) model. ***
OpenSelfSup/openselfsup/models/moco.py:169
↓ 1 callersMethod_batch_unshuffle_ddp
Undo batch shuffle. *** Only support DistributedDataParallel (DDP) model. ***
OpenSelfSup/openselfsup/models/moco.py:197
↓ 1 callersMethod_bin_code_2_lines
(self, arr, v, bin_code, multi_idx, Nw, Nh, offset)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:236
↓ 1 callersMethod_build_res5_block
(self, cfg)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/roi_heads.py:384
↓ 1 callersFunction_cached_log_stream
(filename)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/logger.py:101
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/anchor_generator.py:130
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios, angles)
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/anchor_generator.py:283
↓ 1 callersFunction_called_with_cfg
Returns: bool: whether the arguments contain CfgNode and should be considered forwarded to from_config.
OpenSelfSup/benchmarks/detection/detection/detectron2/config/config.py:188
↓ 1 callersFunction_check_and_update
(key, value)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:404
↓ 1 callersMethod_check_branches
(self, num_branches, blocks, num_blocks, num_inchannels, num_channels)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/hrnet.py:132
↓ 1 callersMethod_check_image
(self, image_rgb)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/base.py:66
↓ 1 callersMethod_check_mask_matrix
(self, mask, matrix)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/base.py:71
↓ 1 callersFunction_check_size_scale_factor
(dim)
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/wrappers.py:205
↓ 1 callersMethod_compute_centroids_ind
Compute a few centroids.
OpenSelfSup/openselfsup/models/memories/odc_memory.py:55
↓ 1 callersFunction_configure_libraries
Configurations for some libraries.
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/env.py:51
↓ 1 callersMethod_convert_boxes
Convert different format of boxes to an NxB array, where B = 4 or 5 is the box dimension.
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:1152
↓ 1 callersMethod_convert_category_id
(self, segment_info)
OpenSelfSup/benchmarks/detection/detection/detectron2/evaluation/panoptic_evaluation.py:51
↓ 1 callersMethod_convert_inputs
(self, batched_inputs)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_inference.py:112
↓ 1 callersMethod_convert_keypoints
(self, keypoints)
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:1184
↓ 1 callersMethod_convert_masks
Convert different format of masks or polygons to a tuple of masks and polygons. Returns: list[GenericMask]:
OpenSelfSup/benchmarks/detection/detection/detectron2/utils/visualizer.py:1161
↓ 1 callersMethod_create_buffer
(N)
OpenSelfSup/openselfsup/models/simclr.py:34
↓ 1 callersFunction_create_const_fill_op_from_c2_int8_tensor
(name, int8_tensor)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:243
↓ 1 callersFunction_create_const_fill_op_from_numpy
(name, tensor, device_option=None)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/shared.py:222
↓ 1 callersFunction_create_gradient_clipper
Creates gradient clipping closure to clip by value or by norm, according to the provided config.
OpenSelfSup/benchmarks/detection/detection/detectron2/solver/build.py:19
↓ 1 callersMethod_create_output_instance
Create an instance of predictor outputs by copying the outputs from the base predictor and initializing confidence Args:
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/modeling/predictors/chart_confidence.py:143
↓ 1 callersMethod_create_proposals_from_boxes
Args: boxes (list[Tensor]): per-image predicted boxes, each of shape Ri x 4 image_sizes (list[tuple]): list of image
OpenSelfSup/benchmarks/detection/detection/detectron2/modeling/roi_heads/cascade_rcnn.py:277
↓ 1 callersMethod_create_tensors
(self, N)
OpenSelfSup/benchmarks/detection/detection/tests/layers/test_nms.py:11
↓ 1 callersFunction_create_video_frames
(num_frames, height, width)
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/tests/test_video_keyframe_dataset.py:21
↓ 1 callersFunction_del
(key_seq: List[str])
OpenSelfSup/benchmarks/detection/detection/detectron2/config/compat.py:134
↓ 1 callersMethod_dequeue_and_enqueue
Update queue.
OpenSelfSup/openselfsup/models/moco.py:151
↓ 1 callersMethod_detect_anomaly
(self, losses, loss_dict)
OpenSelfSup/benchmarks/detection/detection/detectron2/engine/train_loop.py:261
↓ 1 callersFunction_dist_train
(model, dataset, cfg, logger=None, timestamp=None, meta=None)
OpenSelfSup/openselfsup/apis/train.py:181
↓ 1 callersFunction_do_paste_mask
Args: masks: N, 1, H, W boxes: N, 4 img_h, img_w (int): skip_empty (bool): only paste masks within the region tha
OpenSelfSup/benchmarks/detection/detection/detectron2/layers/mask_ops.py:16
↓ 1 callersMethod_draw_line
( self, image_bgr, arr, mask, v, color_bgr, linewidth,
OpenSelfSup/benchmarks/detection/detection/projects/DensePose/densepose/vis/densepose_results.py:210
↓ 1 callersMethod_encode_anchor_generator_cfg
(self, predict_net)
OpenSelfSup/benchmarks/detection/detection/detectron2/export/caffe2_modeling.py:438
← previousnext →401–500 of 2,192, ranked by callers