Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GRAP-UdL-AT/Amodal_Fruit_Sizing
/ functions
Functions
1,212 in github.com/GRAP-UdL-AT/Amodal_Fruit_Sizing
⨍
Functions
1,212
◇
Types & classes
203
↓ 2 callers
Method
build_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 callers
Method
build_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 callers
Method
clear
Remove all registered dataset.
detectron2/data/catalog.py:75
↓ 2 callers
Function
collect_env_info
()
detectron2/utils/collect_env.py:55
↓ 2 callers
Function
combine_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 callers
Method
convert_frozen_batchnorm
Convert BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
detectron2/layers/batch_norm.py:94
↓ 2 callers
Function
convert_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 callers
Function
create_model_input
(img, inst=None)
tests/test_model_e2e.py:26
↓ 2 callers
Function
default_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 callers
Function
detect_compute_compatibility
(CUDA_HOME, so_file)
detectron2/utils/collect_env.py:34
↓ 2 callers
Function
downgrade_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 callers
Method
draw_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 callers
Method
draw_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 callers
Function
fast_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 callers
Function
fast_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 callers
Function
file2id
(folder_path, file_path)
detectron2/data/datasets/coco.py:238
↓ 2 callers
Function
filter_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 callers
Function
flop_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 callers
Method
forward
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 callers
Method
forward
(self, x)
detectron2/layers/wrappers.py:62
↓ 2 callers
Method
get_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 callers
Function
get_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 callers
Function
get_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 callers
Function
get_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
tests/test_model_analysis.py:13
↓ 2 callers
Function
get_rank
()
detectron2/utils/comm.py:29
↓ 2 callers
Function
get_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 callers
Method
inside_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 callers
Method
instance_masks
(self)
detectron2/utils/visualizer.py:179
↓ 2 callers
Function
instances_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 callers
Function
interpolate
A wrapper around :func:`torch.nn.functional.interpolate` to support zero-size tensor.
detectron2/layers/wrappers.py:154
↓ 2 callers
Function
is_main_process
()
detectron2/utils/comm.py:63
↓ 2 callers
Method
is_rotated
(box_list)
detectron2/evaluation/rotated_coco_evaluation.py:16
↓ 2 callers
Method
latest_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 callers
Function
load_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 callers
Function
load_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 callers
Function
load_dataset_dicts
(dataset_path, split)
Train_AmodalFruitSize.py:120
↓ 2 callers
Function
load_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 callers
Function
load_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 callers
Method
losses
Args: For `gt_classes` and `gt_anchors_deltas` parameters, see :meth:`RetinaNet.get_ground_truth`. Th
detectron2/modeling/meta_arch/retinanet.py:150
↓ 2 callers
Method
losses
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 callers
Function
make_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 callers
Function
mask_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 callers
Method
mask_to_polygons
(self, mask)
detectron2/utils/visualizer.py:108
↓ 2 callers
Function
maybe_to_cpu
(x)
detectron2/utils/memory.py:59
↓ 2 callers
Method
mock_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 callers
Method
non_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
detectron2/utils/visualizer.py:155
↓ 2 callers
Method
normalize_angles
Restrict angles to the range of [-180, 180) degrees
detectron2/structures/rotated_boxes.py:245
↓ 2 callers
Function
output
(vis, fname)
tools/visualize_data.py:57
↓ 2 callers
Function
patch
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 callers
Function
patch_generalized_rcnn
(model)
detectron2/export/patcher.py:70
↓ 2 callers
Method
predict_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 callers
Method
predict_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 callers
Method
predict_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 callers
Method
preprocess_image
Normalize, pad and batch the input images.
detectron2/modeling/meta_arch/rcnn.py:180
↓ 2 callers
Function
random_boxes
(mean_box, stdev, N)
tests/test_box2box_transform.py:11
↓ 2 callers
Function
random_rotated_boxes
(mean_box, std_length, std_angle, N)
tests/test_box2box_transform.py:33
↓ 2 callers
Function
retry_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 callers
Function
seed_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 callers
Method
semantic_masks
(self)
detectron2/utils/visualizer.py:171
↓ 2 callers
Function
subsample_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 callers
Method
test_with_TTA
(cls, cfg, model)
tools/train_net.py:96
↓ 2 callers
Method
to_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 callers
Function
upgrade_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 callers
Function
BilinearInterpolation
(tensor_in, up_scale)
detectron2/export/shared.py:48
↓ 1 callers
Function
ROIAlignRotated_backward_cpu
detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:464
↓ 1 callers
Function
ROIAlignRotated_forward_cpu
detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:417
↓ 1 callers
Function
ROIAlign_backward_cpu
detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:447
↓ 1 callers
Function
ROIAlign_forward_cpu
detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:400
↓ 1 callers
Method
__enter__
(self)
detectron2/export/shared.py:136
↓ 1 callers
Method
__exit__
(self, *args)
detectron2/export/shared.py:145
↓ 1 callers
Method
__init__
(self, cfg)
detectron2/modeling/test_time_augmentation.py:30
↓ 1 callers
Method
__init__
Args: box2box_transform (Box2BoxTransform/Box2BoxTransformRotated): box2box transform instance for proposal-to-de
detectron2/modeling/roi_heads/fast_rcnn.py:131
↓ 1 callers
Method
__init__
(self, cfg, input_shape)
detectron2/modeling/roi_heads/mask_head.py:145
↓ 1 callers
Method
__init__
(self, cfg)
detectron2/modeling/meta_arch/rcnn.py:29
↓ 1 callers
Method
__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/meta_arch/semantic_seg.py:111
↓ 1 callers
Method
__init__
(self, cfg)
detectron2/modeling/meta_arch/retinanet.py:62
↓ 1 callers
Method
__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/proposal_generator/rpn.py:94
↓ 1 callers
Method
__init__
( self, optimizer: torch.optim.Optimizer, max_iters: int, warmup_factor: float
detectron2/solver/lr_scheduler.py:53
↓ 1 callers
Method
__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 callers
Method
__init__
Args: cfg (CfgNode):
detectron2/engine/defaults.py:245
↓ 1 callers
Method
__init__
(self)
detectron2/engine/train_loop.py:95
↓ 1 callers
Method
__init__
Deformable convolution. Arguments are similar to :class:`Conv2D`. Extra arguments: Args: deformable_groups (int
detectron2/layers/deform_conv.py:309
↓ 1 callers
Method
__init__
(self, predict_net, init_net)
detectron2/export/caffe2_inference.py:23
↓ 1 callers
Function
_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 callers
Function
_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 callers
Method
_build_res5_block
(self, cfg)
detectron2/modeling/roi_heads/roi_heads.py:368
↓ 1 callers
Function
_cached_log_stream
(filename)
detectron2/utils/logger.py:100
↓ 1 callers
Method
_calculate_anchors
(self, sizes, aspect_ratios)
detectron2/modeling/anchor_generator.py:91
↓ 1 callers
Method
_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 callers
Function
_check_and_update
(key, value)
detectron2/export/shared.py:401
↓ 1 callers
Function
_check_size_scale_factor
(dim)
detectron2/layers/wrappers.py:163
↓ 1 callers
Function
_configure_libraries
Configurations for some libraries.
detectron2/utils/env.py:45
↓ 1 callers
Method
_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 callers
Method
_convert_category_id
(self, segment_info)
detectron2/evaluation/panoptic_evaluation.py:49
↓ 1 callers
Method
_convert_inputs
(self, batched_inputs)
detectron2/export/caffe2_inference.py:112
↓ 1 callers
Method
_convert_keypoints
(self, keypoints)
detectron2/utils/visualizer.py:1124
↓ 1 callers
Method
_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 callers
Function
_create_const_fill_op_from_c2_int8_tensor
(name, int8_tensor)
detectron2/export/shared.py:243
↓ 1 callers
Function
_create_const_fill_op_from_numpy
(name, tensor, device_option=None)
detectron2/export/shared.py:222
↓ 1 callers
Method
_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
← previous
next →
201–300 of 1,212, ranked by callers