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

↓ 4 callersFunctionget_pb_arg_valf
(pb, arg_name, default_val)
detectron2/export/shared.py:174
↓ 4 callersMethodhistory
Returns: HistoryBuffer: the scalar history for name
detectron2/utils/events.py:286
↓ 4 callersFunctioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.forward` accurately. T
detectron2/evaluation/evaluator.py:84
↓ 4 callersMethodlabel_and_sample_proposals
Prepare some proposals to be used to train the ROI heads. It performs box matching between `proposals` and `targets`, and assigns
detectron2/modeling/roi_heads/roi_heads.py:204
↓ 4 callersFunctionpaste_masks_in_image
Paste a set of masks that are of a fixed resolution (e.g., 28 x 28) into an image. The location, height, and width for pasting each mask is d
detectron2/layers/mask_ops.py:67
↓ 4 callersFunctionpermute_to_N_HWA_K
Transpose/reshape a tensor from (N, (A x K), H, W) to (N, (HxWxA), K)
detectron2/modeling/meta_arch/retinanet.py:23
↓ 4 callersMethodpredict_boxes
Returns: list[Tensor]: A list of Tensors of predicted class-specific or class-agnostic boxes for each image. Elem
detectron2/modeling/roi_heads/fast_rcnn.py:291
↓ 4 callersFunctionprint_csv_format
Print main metrics in a format similar to Detectron, so that they are easy to copypaste into a spreadsheet. Args: results (Order
detectron2/evaluation/testing.py:10
↓ 4 callersMethodregister_hooks
Register hooks to the trainer. The hooks are executed in the order they are registered. Args: hooks (list[Option
detectron2/engine/train_loop.py:98
↓ 4 callersMethodreset
Preparation for a new round of evaluation. Should be called before starting a round of evaluation.
detectron2/evaluation/evaluator.py:24
↓ 4 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this functin can *only* be applied on the default parameter setting
detectron2/evaluation/Amodal_cocoeval.py:184
↓ 3 callersMethod__init__
(self, cfg, input_shape: Dict[str, ShapeSpec])
detectron2/modeling/roi_heads/roi_heads.py:137
↓ 3 callersMethod__init__
Args: cfg (CfgNode): torch_model (nn.Module): the detectron2 model (meta_arch) to be converted.
detectron2/export/caffe2_modeling.py:141
↓ 3 callersMethod_box_to_rotated_box
(self, box, angle)
tests/test_roi_align_rotated.py:15
↓ 3 callersMethod_caffe2_preprocess_image
Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. It normalizes the input images, and the fi
detectron2/export/caffe2_modeling.py:198
↓ 3 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): Returns: l
detectron2/utils/visualizer.py:189
↓ 3 callersFunction_find_caller
Returns: str: module name of the caller tuple: a hashable key to be used to identify different callers
detectron2/utils/logger.py:111
↓ 3 callersMethod_forward_keypoint
Forward logic of the keypoint prediction branch. Args: features (list[Tensor]): #level input features for keypoint predi
detectron2/modeling/roi_heads/roi_heads.py:704
↓ 3 callersMethod_forward_mask
Forward logic of the mask prediction branch. Args: features (list[Tensor]): #level input features for mask prediction
detectron2/modeling/roi_heads/roi_heads.py:674
↓ 3 callersFunction_get_builtin_metadata
(dataset_name)
detectron2/data/datasets/builtin_meta.py:239
↓ 3 callersMethod_postprocess
Rescale the output instances to the target size.
detectron2/modeling/meta_arch/rcnn.py:190
↓ 3 callersFunction_rename_versioned_blob_in_proto
In given proto, rename all blobs with matched version
detectron2/export/shared.py:628
↓ 3 callersMethod_test_train
(self, input_sizes, instances)
tests/test_model_e2e.py:59
↓ 3 callersFunction_updater_raise
(op, input_types, output_types)
detectron2/export/shared.py:366
↓ 3 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
detectron2/utils/comm.py:139
↓ 3 callersMethodapply_segmentation
(self, segmentation)
detectron2/data/transforms/transform.py:58
↓ 3 callersMethodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
detectron2/structures/masks.py:386
↓ 3 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
detectron2/solver/build.py:54
↓ 3 callersFunctioncheck_metadata_consistency
Check that the datasets have consistent metadata. Args: key (str): a metadata key dataset_names (list[str]): a list of datas
detectron2/data/detection_utils.py:453
↓ 3 callersFunctionconvert_batched_inputs_to_c2_format
See get_caffe2_inputs() below.
detectron2/export/caffe2_modeling.py:106
↓ 3 callersFunctiondefault_argument_parser
Create a parser with some common arguments used by detectron2 users. Returns: argparse.ArgumentParser:
detectron2/engine/defaults.py:51
↓ 3 callersMethoddevice
(self)
detectron2/structures/masks.py:107
↓ 3 callersFunctiondo_test
(cfg, model)
tools/plain_train_net.py:102
↓ 3 callersMethoddraw_binary_mask
Args: binary_mask (ndarray): numpy array of shape (H, W), where H is the image height and W is the image width. E
detectron2/utils/visualizer.py:941
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
detectron2/utils/visualizer.py:758
↓ 3 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
detectron2/evaluation/evaluator.py:41
↓ 3 callersFunctionf
()
tools/benchmark.py:89
↓ 3 callersMethodforward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. Args: features: same as in `forward()`
detectron2/modeling/roi_heads/roi_heads.py:447
↓ 3 callersFunctionfunc
(device, n=3)
tests/test_mask_ops.py:168
↓ 3 callersFunctionget_consumer_map
Return dict from versioned blob to list of (i, j), where i is index of consumer op, j is the index of input of that op.
detectron2/export/shared.py:324
↓ 3 callersMethodget_fields
like `get_fields` in the Instances object, but return each field in tensor representations
detectron2/export/c10.py:55
↓ 3 callersFunctionget_producer_map
Return dict from versioned blob to (i, j), where i is index of producer op, j is the index of output of that op.
detectron2/export/shared.py:311
↓ 3 callersMethodget_transform
(self, img)
detectron2/data/transforms/transform_gen.py:161
↓ 3 callersFunctioninfer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
detectron2/export/shared.py:445
↓ 3 callersMethodinference
Args: score_thresh (float): same as fast_rcnn_inference. nms_thresh (float): same as fast_rcnn_inference.
detectron2/modeling/roi_heads/fast_rcnn.py:331
↓ 3 callersFunctionlaunch
Args: main_func: a function that will be called by `main_func(*args)` num_machines (int): the total number of machines ma
detectron2/engine/launch.py:24
↓ 3 callersFunctionload_coco_json
Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmentation, and person keypoi
detectron2/data/datasets/coco.py:30
↓ 3 callersMethodpredict_probs
Returns: list[Tensor]: A list of Tensors of predicted class probabilities for each image. Element i has shape (Ri
detectron2/modeling/roi_heads/fast_rcnn.py:321
↓ 3 callersMethodreference_horizontal_nms
Args: box_scores (N, 5): boxes in corner-form and probabilities. (Note here 5 == 4 + 1, i.e., 4-dim horizontal bo
tests/test_nms_rotated.py:11
↓ 3 callersFunctionrename_op_output
Rename the op_id-th operator in predict_net, change it's output_id-th input's name to the new_name. It also does automatic re-route and c
detectron2/export/shared.py:726
↓ 3 callersFunctionsave_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
detectron2/export/shared.py:520
↓ 3 callersFunctionsem_seg_postprocess
Return semantic segmentation predictions in the original resolution. The input images are often resized when entering semantic segmentor. Mo
detectron2/modeling/postprocessing.py:63
↓ 3 callersFunctionsetup
(args)
tools/benchmark.py:33
↓ 3 callersMethodtest
Args: cfg (CfgNode): model (nn.Module): evaluators (list[DatasetEvaluator] or None): if None, will call
detectron2/engine/defaults.py:460
↓ 3 callersFunctionverify_results
Args: results (OrderedDict[dict]): task_name -> {metric -> score} Returns: bool: whether the verification succeeds or not
detectron2/evaluation/testing.py:28
↓ 2 callersMethod__init__
(self, buffers=None)
detectron2/modeling/anchor_generator.py:25
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
detectron2/modeling/backbone/fpn.py:22
↓ 2 callersMethod_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
detectron2/utils/video_visualizer.py:180
↓ 2 callersFunction_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
detectron2/export/caffe2_export.py:88
↓ 2 callersMethod_batch_inference
Execute inference on a list of inputs, using batch size = self.batch_size, instead of the length of the list. Inputs & outpu
detectron2/modeling/test_time_augmentation.py:127
↓ 2 callersMethod_cal_im2col_step
Calculate proper im2col step size, which should be divisible by input_size and not larger than prefer_size. Meanwhile the step size s
detectron2/layers/deform_conv.py:157
↓ 2 callersFunction_create_grid_offsets
(size, stride, offset, device)
detectron2/modeling/anchor_generator.py:43
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
detectron2/evaluation/coco_evaluation.py:233
↓ 2 callersMethod_forward_amodal_mask
Forward logic of the mask prediction branch. Args: features (list[Tensor]): #level input features for mask prediction
detectron2/modeling/roi_heads/roi_heads.py:833
↓ 2 callersMethod_forward_box
Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, the function puts predicted boxes in the `prop
detectron2/modeling/roi_heads/roi_heads.py:631
↓ 2 callersMethod_forward_box
Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, the function puts predicted boxes in the `prop
detectron2/modeling/roi_heads/roi_heads.py:923
↓ 2 callersMethod_forward_box
(self, features, proposals, targets=None)
detectron2/modeling/roi_heads/cascade_rcnn.py:101
↓ 2 callersMethod_forward_visible_mask
Forward logic of the mask prediction branch. Args: features (list[Tensor]): #level input features for mask prediction
detectron2/modeling/roi_heads/roi_heads.py:860
↓ 2 callersFunction_get_coco_instances_meta
()
detectron2/data/datasets/builtin_meta.py:191
↓ 2 callersFunction_get_device_type
(torch_tensor)
detectron2/export/caffe2_export.py:83
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
detectron2/utils/comm.py:83
↓ 2 callersFunction_get_warmup_factor_at_iter
Return the learning rate warmup factor at a specific iteration. See https://arxiv.org/abs/1706.02677 for more details. Args: met
detectron2/solver/lr_scheduler.py:90
↓ 2 callersFunction_has
(name: str)
detectron2/config/compat.py:91
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
detectron2/utils/memory.py:12
↓ 2 callersFunction_list_to_str
(bsize)
detectron2/export/shared.py:505
↓ 2 callersMethod_merge_cfg_str
(self, cfg, merge_str)
tests/test_config.py:34
↓ 2 callersFunction_op_stats
(net_def)
detectron2/export/caffe2_export.py:66
↓ 2 callersFunction_pad_to_largest_tensor
Returns: list[int]: size of the tensor, on each rank Tensor: padded tensor that has the max size
detectron2/utils/comm.py:112
↓ 2 callersMethod_predict_boxes
Returns: Tensor: A Tensors of predicted class-specific or class-agnostic boxes for all images in a batch. Element
detectron2/modeling/roi_heads/fast_rcnn.py:275
↓ 2 callersFunction_print_panoptic_results
(pq_res)
detectron2/evaluation/panoptic_evaluation.py:135
↓ 2 callersFunction_replace_list
(blob_list, replaced_list)
detectron2/export/shared.py:491
↓ 2 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
detectron2/modeling/roi_heads/roi_heads.py:165
↓ 2 callersFunction_serialize_to_tensor
(data, group)
detectron2/utils/comm.py:94
↓ 2 callersMethod_shared_roi_transform
(self, features, boxes)
detectron2/modeling/roi_heads/roi_heads.py:394
↓ 2 callersMethod_test_eval
(self, input_sizes)
tests/test_model_e2e.py:54
↓ 2 callersMethod_test_roialignv2_roialignrotated_match
(self, device)
tests/test_roi_pooler.py:26
↓ 2 callersMethod_turn_off_roi_head
Open a context where one head in `model.roi_heads` is temporarily turned off. Args: attr (str): the attribute in `model.r
detectron2/modeling/test_time_augmentation.py:106
↓ 2 callersFunction_update_i
(op, ssa_i)
detectron2/export/shared.py:412
↓ 2 callersFunctionadd_ground_truth_to_proposals
Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt_boxes(list[Boxes]): list of N elements. Element i is a Bo
detectron2/modeling/proposal_generator/proposal_utils.py:8
↓ 2 callersFunctionalign_and_update_state_dicts
Match names between the two state-dict, and update the values of model_state_dict in-place with copies of the matched tensor in ckpt_state_di
detectron2/checkpoint/c2_model_loading.py:211
↓ 2 callersMethodarea
(self)
detectron2/utils/visualizer.py:129
↓ 2 callersFunctionassemble_rcnn_outputs_by_name
A function to assemble caffe2 model's outputs (i.e. Dict[str, Tensor]) to detectron2's format (i.e. list of Instances instance). This onl
detectron2/export/caffe2_modeling.py:29
↓ 2 callersFunctionavailable_cpu_count
Number of available virtual or physical CPUs on this system, i.e. user/real as output by time(1) when called with an optimally scaling usersp
available_cpus.py:6
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
detectron2/evaluation/rotated_coco_evaluation.py:33
↓ 2 callersMethodbuild_evaluator
Returns: DatasetEvaluator or None It is not implemented by default.
detectron2/engine/defaults.py:447
↓ 2 callersFunctionbuild_mask_head
Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`.
detectron2/modeling/roi_heads/mask_head.py:241
↓ 2 callersMethodbuild_model
Returns: torch.nn.Module: It now calls :func:`detectron2.modeling.build_model`. Overwrite it if you'd like a dif
detectron2/engine/defaults.py:392
↓ 2 callersFunctionbuild_resnet_backbone
Create a ResNet instance from config. Returns: ResNet: a :class:`ResNet` instance.
detectron2/modeling/backbone/resnet.py:407
↓ 2 callersFunctionbuild_sem_seg_head
Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
detectron2/modeling/meta_arch/semantic_seg.py:95
↓ 2 callersMethodbuild_test_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_test_loader`. Overwrite it if you'd like a
detectron2/engine/defaults.py:436
← previousnext →101–200 of 1,212, ranked by callers