MCPcopy Create free account

hub / github.com/GRAP-UdL-AT/Amodal_Fruit_Sizing / functions

Functions1,212 in github.com/GRAP-UdL-AT/Amodal_Fruit_Sizing

↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
detectron2/engine/defaults.py:425
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
detectron2/engine/defaults.py:754
↓ 2 callersMethodclear
Remove all registered dataset.
detectron2/data/catalog.py:75
↓ 2 callersFunctioncollect_env_info
()
detectron2/utils/collect_env.py:55
↓ 2 callersFunctioncombine_semantic_and_instance_outputs
Implement a simple combining logic following "combine_semantic_and_instance_predictions.py" in panopticapi to produce panoptic segmentati
detectron2/modeling/meta_arch/panoptic_fpn.py:133
↓ 2 callersMethodconvert_frozen_batchnorm
Convert BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
detectron2/layers/batch_norm.py:94
↓ 2 callersFunctionconvert_to_coco_json
Converts dataset into COCO format and saves it to a json file. dataset_name must be registered in DatasetCatalog and in detectron2's standard
detectron2/data/datasets/coco.py:418
↓ 2 callersFunctioncreate_model_input
(img, inst=None)
tests/test_model_e2e.py:26
↓ 2 callersFunctiondefault_setup
Perform some basic common setups at the beginning of a job, including: 1. Set up the detectron2 logger 2. Log basic information about en
detectron2/engine/defaults.py:86
↓ 2 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
detectron2/utils/collect_env.py:34
↓ 2 callersFunctiondowngrade_config
Downgrade a config from its current version to an older version. Args: cfg (CfgNode): to_version (int): Note: A
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
detectron2/utils/visualizer.py:1001
↓ 2 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
detectron2/utils/visualizer.py:382
↓ 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
detectron2/modeling/roi_heads/fast_rcnn.py:41
↓ 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
detectron2/modeling/roi_heads/fast_rcnn.py:76
↓ 2 callersFunctionfile2id
(folder_path, file_path)
detectron2/data/datasets/coco.py:238
↓ 2 callersFunctionfilter_images_with_few_keypoints
Filter out images with too few number of keypoints. Args: dataset_dicts (list[dict]): annotations in Detectron2 Dataset format.
detectron2/data/build.py:69
↓ 2 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
detectron2/utils/analysis.py:15
↓ 2 callersMethodforward
Args: input: NCHW images rois: Bx6 boxes. First column is the index into N. The other 5 columns are (
detectron2/layers/roi_align_rotated.py:70
↓ 2 callersMethodforward
(self, x)
detectron2/layers/wrappers.py:62
↓ 2 callersMethodget_crop_size
Args: image_size (tuple): height, width Returns: crop_size (tuple): height, width in absolute pixels
detectron2/data/transforms/transform_gen.py:241
↓ 2 callersFunctionget_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: dataset_names (list[str]): a lis
detectron2/data/build.py:209
↓ 2 callersFunctionget_lvis_instances_meta
Load LVIS metadata. Args: dataset_name (str): LVIS dataset name without the split name (e.g., "lvis_v0.5"). Returns: di
detectron2/data/datasets/lvis.py:147
↓ 2 callersFunctionget_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
tests/test_model_analysis.py:13
↓ 2 callersFunctionget_rank
()
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
detectron2/export/shared.py:747
↓ 2 callersMethodinside_box
Args: box_size (height, width): Size of the reference box. boundary_threshold (int): Boxes that extend beyond the ref
detectron2/structures/boxes.py:235
↓ 2 callersMethodinstance_masks
(self)
detectron2/utils/visualizer.py:179
↓ 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
detectron2/evaluation/coco_evaluation.py:302
↓ 2 callersFunctioninterpolate
A wrapper around :func:`torch.nn.functional.interpolate` to support zero-size tensor.
detectron2/layers/wrappers.py:154
↓ 2 callersFunctionis_main_process
()
detectron2/utils/comm.py:63
↓ 2 callersMethodis_rotated
(box_list)
detectron2/evaluation/rotated_coco_evaluation.py:16
↓ 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
detectron2/utils/events.py:310
↓ 2 callersFunctionload_cityscapes_instances
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
detectron2/data/datasets/cityscapes.py:25
↓ 2 callersFunctionload_cityscapes_semantic
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
detectron2/data/datasets/cityscapes.py:81
↓ 2 callersFunctionload_dataset_dicts
(dataset_path, split)
Train_AmodalFruitSize.py:120
↓ 2 callersFunctionload_lvis_json
Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annotation file. image_root
detectron2/data/datasets/lvis.py:38
↓ 2 callersFunctionload_sem_seg
Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground truth annotations and all files
detectron2/data/datasets/coco.py:210
↓ 2 callersMethodlosses
Args: For `gt_classes` and `gt_anchors_deltas` parameters, see :meth:`RetinaNet.get_ground_truth`. Th
detectron2/modeling/meta_arch/retinanet.py:150
↓ 2 callersMethodlosses
Return the losses from a set of RPN predictions and their associated ground-truth. Returns: dict[loss name -> loss value
detectron2/modeling/proposal_generator/rpn_outputs.py:301
↓ 2 callersFunctionmake_stage
Create a resnet stage by creating many blocks. Args: block_class (class): a subclass of ResNetBlockBase num_blocks (int):
detectron2/modeling/backbone/resnet.py:272
↓ 2 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
detectron2/modeling/roi_heads/mask_head.py:101
↓ 2 callersMethodmask_to_polygons
(self, mask)
detectron2/utils/visualizer.py:108
↓ 2 callersFunctionmaybe_to_cpu
(x)
detectron2/utils/memory.py:59
↓ 2 callersMethodmock_roi_heads
Patching several inference functions inside ROIHeads and its subclasses Args: tensor_mode (bool): whether the inputs/out
detectron2/export/patcher.py:119
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
detectron2/utils/visualizer.py:155
↓ 2 callersMethodnormalize_angles
Restrict angles to the range of [-180, 180) degrees
detectron2/structures/rotated_boxes.py:245
↓ 2 callersFunctionoutput
(vis, fname)
tools/visualize_data.py:57
↓ 2 callersFunctionpatch
recursively (post-order) update all modules with the target type and its subclasses, make a initialization/composition/inheritance/... via th
detectron2/export/patcher.py:57
↓ 2 callersFunctionpatch_generalized_rcnn
(model)
detectron2/export/patcher.py:70
↓ 2 callersMethodpredict_boxes_for_gt_classes
Returns: list[Tensor]: A list of Tensors of predicted boxes for GT classes in case of class-specific box head. El
detectron2/modeling/roi_heads/fast_rcnn.py:300
↓ 2 callersMethodpredict_objectness_logits
Return objectness logits in the same format as the proposals returned by :meth:`predict_proposals`. Returns: pre
detectron2/modeling/proposal_generator/rpn_outputs.py:432
↓ 2 callersMethodpredict_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
detectron2/modeling/proposal_generator/rpn_outputs.py:403
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
detectron2/modeling/meta_arch/rcnn.py:180
↓ 2 callersFunctionrandom_boxes
(mean_box, stdev, N)
tests/test_box2box_transform.py:11
↓ 2 callersFunctionrandom_rotated_boxes
(mean_box, std_length, std_angle, N)
tests/test_box2box_transform.py:33
↓ 2 callersFunctionretry_if_cuda_oom
Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after calling `torch.cuda.empty_cache()`.
detectron2/utils/memory.py:26
↓ 2 callersFunctionseed_all_rng
Set the random seed for the RNG in torch, numpy and python. Args: seed (int): if None, will use a strong random seed.
detectron2/utils/env.py:15
↓ 2 callersMethodsemantic_masks
(self)
detectron2/utils/visualizer.py:171
↓ 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
detectron2/modeling/sampling.py:7
↓ 2 callersMethodtest_with_TTA
(cls, cfg, model)
tools/train_net.py:96
↓ 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
detectron2/export/c10.py:104
↓ 2 callersFunctionupgrade_config
Upgrade a config from its current version to a newer version. Args: cfg (CfgNode): to_version (int): defaults to the latest
detectron2/config/compat.py:33
↓ 1 callersFunctionBilinearInterpolation
(tensor_in, up_scale)
detectron2/export/shared.py:48
↓ 1 callersFunctionROIAlignRotated_backward_cpu
detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:464
↓ 1 callersFunctionROIAlignRotated_forward_cpu
detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:417
↓ 1 callersFunctionROIAlign_backward_cpu
detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:447
↓ 1 callersFunctionROIAlign_forward_cpu
detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:400
↓ 1 callersMethod__enter__
(self)
detectron2/export/shared.py:136
↓ 1 callersMethod__exit__
(self, *args)
detectron2/export/shared.py:145
↓ 1 callersMethod__init__
(self, cfg)
detectron2/modeling/test_time_augmentation.py:30
↓ 1 callersMethod__init__
Args: box2box_transform (Box2BoxTransform/Box2BoxTransformRotated): box2box transform instance for proposal-to-de
detectron2/modeling/roi_heads/fast_rcnn.py:131
↓ 1 callersMethod__init__
(self, cfg, input_shape)
detectron2/modeling/roi_heads/mask_head.py:145
↓ 1 callersMethod__init__
(self, cfg)
detectron2/modeling/meta_arch/rcnn.py:29
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/meta_arch/semantic_seg.py:111
↓ 1 callersMethod__init__
(self, cfg)
detectron2/modeling/meta_arch/retinanet.py:62
↓ 1 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/proposal_generator/rpn.py:94
↓ 1 callersMethod__init__
( self, optimizer: torch.optim.Optimizer, max_iters: int, warmup_factor: float
detectron2/solver/lr_scheduler.py:53
↓ 1 callersMethod__init__
Args: src_rect (x0, y0, x1, y1): src coordinates output_size (h, w): dst image size interp: PIL interpola
detectron2/data/transforms/transform.py:22
↓ 1 callersMethod__init__
Args: cfg (CfgNode):
detectron2/engine/defaults.py:245
↓ 1 callersMethod__init__
(self)
detectron2/engine/train_loop.py:95
↓ 1 callersMethod__init__
Deformable convolution. Arguments are similar to :class:`Conv2D`. Extra arguments: Args: deformable_groups (int
detectron2/layers/deform_conv.py:309
↓ 1 callersMethod__init__
(self, predict_net, init_net)
detectron2/export/caffe2_inference.py:23
↓ 1 callersFunction_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
detectron2/modeling/backbone/fpn.py:155
↓ 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.
detectron2/export/caffe2_export.py:75
↓ 1 callersMethod_build_res5_block
(self, cfg)
detectron2/modeling/roi_heads/roi_heads.py:368
↓ 1 callersFunction_cached_log_stream
(filename)
detectron2/utils/logger.py:100
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios)
detectron2/modeling/anchor_generator.py:91
↓ 1 callersMethod_calculate_anchors
Args: sizes (list[list[int]]): sizes[i] is the list of anchor sizes to use for the i-th feature map. If len(sizes
detectron2/modeling/anchor_generator.py:223
↓ 1 callersFunction_check_and_update
(key, value)
detectron2/export/shared.py:401
↓ 1 callersFunction_check_size_scale_factor
(dim)
detectron2/layers/wrappers.py:163
↓ 1 callersFunction_configure_libraries
Configurations for some libraries.
detectron2/utils/env.py:45
↓ 1 callersMethod_convert_boxes
Convert different format of boxes to an NxB array, where B = 4 or 5 is the box dimension.
detectron2/utils/visualizer.py:1092
↓ 1 callersMethod_convert_category_id
(self, segment_info)
detectron2/evaluation/panoptic_evaluation.py:49
↓ 1 callersMethod_convert_inputs
(self, batched_inputs)
detectron2/export/caffe2_inference.py:112
↓ 1 callersMethod_convert_keypoints
(self, keypoints)
detectron2/utils/visualizer.py:1124
↓ 1 callersMethod_convert_masks
Convert different format of masks or polygons to a tuple of masks and polygons. Returns: list[GenericMask]:
detectron2/utils/visualizer.py:1101
↓ 1 callersFunction_create_const_fill_op_from_c2_int8_tensor
(name, int8_tensor)
detectron2/export/shared.py:243
↓ 1 callersFunction_create_const_fill_op_from_numpy
(name, tensor, device_option=None)
detectron2/export/shared.py:222
↓ 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
detectron2/modeling/roi_heads/cascade_rcnn.py:222
← previousnext →201–300 of 1,212, ranked by callers