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

FunctionROIAlign_forward
Interface for Python
detectron2/layers/csrc/ROIAlign/ROIAlign.h:54
FunctionResize_rotated_box
Apply the resizing transform on rotated boxes. For details of how these (approximation) formulas are derived, please refer to :meth:`RotatedB
detectron2/data/transforms/transform.py:113
Method__call__
Args: dict: a detection dataset dict Returns: list[dict]: a list of dataset dicts, which con
detectron2/modeling/test_time_augmentation.py:36
Method__call__
Same input/output format as :meth:`GeneralizedRCNN.forward`
detectron2/modeling/test_time_augmentation.py:153
Method__call__
Args: match_quality_matrix (Tensor[float]): an MxN tensor, containing the pairwise quality between M ground-truth
detectron2/modeling/matcher.py:58
Method__call__
(self, *args, **kwargs)
detectron2/utils/serialize.py:22
Method__call__
Args: dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. Returns: dict: a format that
detectron2/data/dataset_mapper.py:67
Method__call__
Args: original_image (np.ndarray): an image of shape (H, W, C) (in BGR order). Returns: predictions (dict):
detectron2/engine/defaults.py:179
Method__call__
An interface that wraps around a caffe2 model and mimics detectron2's models' input & output format. This is used to compare the caff
detectron2/export/api.py:143
Method__call__
equivalent to FastRCNNOutputs.inference
detectron2/export/c10.py:335
Method__call__
equivalent to mask_head.mask_rcnn_inference
detectron2/export/c10.py:450
Method__call__
(self, pred_keypoint_logits, pred_instances)
detectron2/export/c10.py:465
Method__enter__
(self)
detectron2/utils/events.py:355
Method__exit__
(self, exc_type, exc_val, exc_tb)
detectron2/utils/events.py:359
Method__getattr__
(self, attr)
detectron2/utils/serialize.py:25
Method__getattr__
(self, key)
detectron2/data/catalog.py:108
Method__getattr__
(self, name: str)
detectron2/structures/instances.py:60
Method__getattr__
(self, name)
detectron2/export/c10.py:86
Method__getitem__
(self, idx)
detectron2/data/common.py:34
Method__getitem__
(self, idx)
detectron2/data/common.py:77
Method__getitem__
Returns: Boxes: Create a new :class:`Boxes` by indexing. The following usage are allowed: 1. `new_boxes = boxes
detectron2/structures/boxes.py:208
Method__getitem__
Access the individual image in its original size. Returns: Tensor: an image of shape (H, W) or (C_1, ..., C_K, H, W) whe
detectron2/structures/image_list.py:31
Method__getitem__
Create a new `Keypoints` by indexing on this `Keypoints`. The following usage are allowed: 1. `new_kpts = kpts[3]`: return
detectron2/structures/keypoints.py:57
Method__getitem__
Returns: RotatedBoxes: Create a new :class:`RotatedBoxes` by indexing. The following usage are allowed: 1. `new
detectron2/structures/rotated_boxes.py:316
Method__getitem__
Args: item: an index-like object and will be used to index all the fields. Returns: If `item` is a string, r
detectron2/structures/instances.py:119
Method__getitem__
Returns: BitMasks: Create a new :class:`BitMasks` by indexing. The following usage are allowed: 1. `new_masks =
detectron2/structures/masks.py:110
Method__getitem__
Support indexing over the instances and return a `PolygonMasks` object. `item` can be: 1. An integer. It will return an obje
detectron2/structures/masks.py:308
Method__init__
(self, eval_period, model, data_loader)
Train_AmodalFruitSize.py:35
Method__init__
Args: cfg (CfgNode): model (GeneralizedRCNN): a GeneralizedRCNN to apply TTA on. tta_mapper (callable): t
detectron2/modeling/test_time_augmentation.py:76
Method__init__
Args: weights (4-element tuple): Scaling factors that are applied to the (dx, dy, dw, dh) deltas. In Fast R-CNN,
detectron2/modeling/box_regression.py:23
Method__init__
Args: weights (5-element tuple): Scaling factors that are applied to the (dx, dy, dw, dh, da) deltas. These are t
detectron2/modeling/box_regression.py:123
Method__init__
Args: output_size (int, tuple[int] or list[int]): output size of the pooled region, e.g., 14 x 14. If tuple or li
detectron2/modeling/poolers.py:90
Method__init__
Args: thresholds (list): a list of thresholds used to stratify predictions into levels. labels (list)
detectron2/modeling/matcher.py:22
Method__init__
(self, cfg, input_shape: List[ShapeSpec])
detectron2/modeling/anchor_generator.py:64
Method__init__
(self, cfg, input_shape: List[ShapeSpec])
detectron2/modeling/anchor_generator.py:207
Method__init__
(self)
detectron2/modeling/backbone/fpn.py:171
Method__init__
(self, in_channels, out_channels)
detectron2/modeling/backbone/fpn.py:186
Method__init__
The `__init__` method of any subclass can specify its own set of arguments.
detectron2/modeling/backbone/backbone.py:15
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: in_channels (int): out_chan
detectron2/modeling/backbone/resnet.py:32
Method__init__
Args: norm (str or callable): a callable that takes the number of channels and return a `nn.Module`, or a pre-def
detectron2/modeling/backbone/resnet.py:54
Method__init__
Similar to :class:`BottleneckBlock`, but with deformable conv in the 3x3 convolution.
detectron2/modeling/backbone/resnet.py:158
Method__init__
Args: norm (str or callable): a callable that takes the number of channels and return a `nn.Module`, or a pre-def
detectron2/modeling/backbone/resnet.py:294
Method__init__
The following attributes are parsed from config: conv_dims: an iterable of output channel counts for each conv in the head
detectron2/modeling/roi_heads/keypoint_head.py:124
Method__init__
(self, cfg)
detectron2/modeling/roi_heads/mask_invisible_head.py:155
Method__init__
The following attributes are parsed from config: num_conv, num_fc: the number of conv/fc layers conv_dim/fc_dim: the
detectron2/modeling/roi_heads/box_head.py:26
Method__init__
Args: input_size (int): channels, or (channels, height, width) num_classes (int): number of foreground classes
detectron2/modeling/roi_heads/fast_rcnn.py:357
Method__init__
(self, cfg, input_shape)
detectron2/modeling/roi_heads/roi_heads.py:336
Method__init__
(self, cfg, input_shape)
detectron2/modeling/roi_heads/roi_heads.py:485
Method__init__
(self, cfg, input_shape)
detectron2/modeling/roi_heads/roi_heads.py:759
Method__init__
The following attributes are parsed from config: num_conv: the number of conv layers conv_dim: the dimension of the c
detectron2/modeling/roi_heads/mask_amodal_head.py:151
Method__init__
The following attributes are parsed from config: num_conv: the number of conv layers conv_dim: the dimension of the c
detectron2/modeling/roi_heads/mask_head.py:182
Method__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/roi_heads/rotated_fast_rcnn.py:165
Method__init__
The following attributes are parsed from config: num_conv: the number of conv layers conv_dim: the dimension of the c
detectron2/modeling/roi_heads/mask_visible_head.py:153
Method__init__
(self, cfg)
detectron2/modeling/meta_arch/rcnn.py:208
Method__init__
(self, cfg)
detectron2/modeling/meta_arch/semantic_seg.py:33
Method__init__
(self, cfg, input_shape: List[ShapeSpec])
detectron2/modeling/meta_arch/retinanet.py:365
Method__init__
(self, cfg)
detectron2/modeling/meta_arch/panoptic_fpn.py:25
Method__init__
Args: box2box_transform (Box2BoxTransformRotated): :class:`Box2BoxTransformRotated` instance for anchor-proposal
detectron2/modeling/proposal_generator/rrpn_outputs.py:148
Method__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/proposal_generator/rrpn.py:26
Method__init__
Args: box2box_transform (Box2BoxTransform): :class:`Box2BoxTransform` instance for anchor-proposal transformation
detectron2/modeling/proposal_generator/rpn_outputs.py:198
Method__init__
(self, cfg, input_shape: List[ShapeSpec])
detectron2/modeling/proposal_generator/rpn.py:43
Method__init__
(self, model)
detectron2/utils/analysis.py:39
Method__init__
(self, label, bbox, mask_rle, color, ttl)
detectron2/utils/video_visualizer.py:31
Method__init__
Args: metadata (MetadataCatalog): image metadata.
detectron2/utils/video_visualizer.py:40
Method__init__
Args: json_file (str): path to the json file. New data will be appended if the file exists. window_size (int): the wi
detectron2/utils/events.py:85
Method__init__
Args: log_dir (str): the directory to save the output events window_size (int): the scalars will be median-smoothed b
detectron2/utils/events.py:114
Method__init__
Args: max_iter (int): the maximum number of iterations to train. Used to compute ETA.
detectron2/utils/events.py:150
Method__init__
Args: start_iter (int): the iteration number to start with
detectron2/utils/events.py:215
Method__init__
(self, mask_or_polygons, height, width)
detectron2/utils/visualizer.py:59
Method__init__
(self, panoptic_seg, segments_info)
detectron2/utils/visualizer.py:142
Method__init__
Args: img (ndarray): an RGB image of shape (H, W, 3). scale (float): scale the input image
detectron2/utils/visualizer.py:211
Method__init__
Args: img_rgb: a numpy array of shape (H, W, C), where H and W correspond to the height and width of the image re
detectron2/utils/visualizer.py:301
Method__init__
(self, *args, **kwargs)
detectron2/utils/logger.py:14
Method__init__
(self, obj)
detectron2/utils/serialize.py:15
Method__init__
( self, optimizer: torch.optim.Optimizer, milestones: List[int], gamma: float
detectron2/solver/lr_scheduler.py:17
Method__init__
(self, cfg, is_train=True)
detectron2/data/dataset_mapper.py:36
Method__init__
(self, dataset, map_func)
detectron2/data/common.py:24
Method__init__
Args: lst (list): a list which contains elements to produce. copy (bool): whether to deepcopy the element when produc
detectron2/data/common.py:63
Method__init__
Args: dataset: an iterable. Each element must be a dict with keys "width" and "height", which will be used to bat
detectron2/data/common.py:95
Method__init__
Args: size (int): the total number of data of the underlying dataset to sample from shuffle (bool): whether to shuffl
detectron2/data/samplers/distributed_sampler.py:24
Method__init__
Args: dataset_dicts (list[dict]): annotations in Detectron2 dataset format. repeat_thresh (float): frequency threshol
detectron2/data/samplers/distributed_sampler.py:69
Method__init__
Args: size (int): the total number of data of the underlying dataset to sample from
detectron2/data/samplers/distributed_sampler.py:180
Method__init__
Args: sampler (Sampler): Base sampler. group_ids (list[int]): If the sampler produces indices in range [0, N),
detectron2/data/samplers/grouped_batch_sampler.py:14
Method__init__
Args: prob (float): probability of flip. horizontal (boolean): whether to apply horizontal flipping verti
detectron2/data/transforms/transform_gen.py:120
Method__init__
Args: short_edge_length (list[int]): If ``sample_style=="range"``, a [min, max] interval from which to sample the
detectron2/data/transforms/transform_gen.py:173
Method__init__
Args: crop_type (str): one of "relative_range", "relative", "absolute". See `config/defaults.py` for explanation.
detectron2/data/transforms/transform_gen.py:221
Method__init__
Args: output_size (h, w): Dimensions of output image scale_range (l, h): Range of input-to-output size scaling factor
detectron2/data/transforms/transform_gen.py:272
Method__init__
Args: intensity_min (float): Minimum augmentation intensity_max (float): Maximum augmentation
detectron2/data/transforms/transform_gen.py:320
Method__init__
Args: intensity_min (float): Minimum augmentation intensity_max (float): Maximum augmentation
detectron2/data/transforms/transform_gen.py:346
Method__init__
Args: intensity_min (float): Minimum augmentation (1 preserves input). intensity_max (float): Maximum augmentation (1
detectron2/data/transforms/transform_gen.py:372
Method__init__
Args: scale (float): Standard deviation of principal component weighting.
detectron2/data/transforms/transform_gen.py:396
Method__init__
Args: h, w (int): original image size new_h, new_w (int): new image size interp: PIL interpolation method
detectron2/data/transforms/transform.py:68
Method__init__
Each argument is a function that takes one argument: the trainer.
detectron2/engine/hooks.py:45
Method__init__
Args: warmup_iter (int): the number of iterations at the beginning to exclude from timing.
detectron2/engine/hooks.py:87
Method__init__
Args: writers (list[EventWriter]): a list of EventWriter objects period (int):
detectron2/engine/hooks.py:153
Method__init__
Args: optimizer (torch.optim.Optimizer): scheduler (torch.optim._LRScheduler)
detectron2/engine/hooks.py:201
Method__init__
Args: enable_predicate (callable[trainer -> bool]): a function which takes a trainer, and returns whether to enab
detectron2/engine/hooks.py:260
Method__init__
Args: eval_period (int): the period to run `eval_function`. eval_function (callable): a function which takes no argum
detectron2/engine/hooks.py:308
Method__init__
Args: period (int): the period this hook is run, or 0 to not run during training. The hook will always run in the
detectron2/engine/hooks.py:368
Method__init__
(self, cfg)
detectron2/engine/defaults.py:163
← previousnext →601–700 of 1,212, ranked by callers