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
↓ 1 callers
Method
build_lr_scheduler
It now calls :func:`detectron2.solver.build_lr_scheduler`. Overwrite it if you'd like a different scheduler.
detectron2/engine/defaults.py:746
↓ 1 callers
Method
build_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:721
↓ 1 callers
Method
build_optimizer
Returns: torch.optim.Optimizer: It now calls :func:`detectron2.solver.build_optimizer`. Overwrite it if you'd li
detectron2/engine/defaults.py:406
↓ 1 callers
Method
build_optimizer
Returns: torch.optim.Optimizer: It now calls :func:`detectron2.solver.build_optimizer`. Overwrite it if you'd li
detectron2/engine/defaults.py:735
↓ 1 callers
Function
build_rpn_head
Build an RPN head defined by `cfg.MODEL.RPN.HEAD_NAME`.
detectron2/modeling/proposal_generator/rpn.py:26
↓ 1 callers
Function
build_visible_mask_head
Build a mask head defined by `cfg.MODEL.ROI_VISIBLE_MASK_HEAD.NAME`.
detectron2/modeling/roi_heads/mask_visible_head.py:234
↓ 1 callers
Method
build_writers
Build a list of writers to be used. By default it contains writers that write metrics to the screen, a json file, and a tenso
detectron2/engine/defaults.py:346
↓ 1 callers
Method
build_writers
Build a list of writers to be used. By default it contains writers that write metrics to the screen, a json file, and a tenso
detectron2/engine/defaults.py:675
↓ 1 callers
Method
c2_postprocess
(im_info, rpn_rois, rpn_roi_probs, tensor_mode)
detectron2/export/c10.py:248
↓ 1 callers
Method
c2_preprocess
(box_lists)
detectron2/export/c10.py:266
↓ 1 callers
Method
cat
Concatenates a list of BitMasks into a single BitMasks Arguments: bitmasks_list (list[BitMasks]) Returns:
detectron2/structures/masks.py:206
↓ 1 callers
Function
check_dtype
(img)
detectron2/data/transforms/transform_gen.py:38
↓ 1 callers
Method
clear_images
Delete all the stored images for visualization. This should be called after images are written to tensorboard.
detectron2/utils/events.py:241
↓ 1 callers
Method
clone
Clone the RotatedBoxes. Returns: RotatedBoxes
detectron2/structures/rotated_boxes.py:222
↓ 1 callers
Function
collect_torch_env
()
detectron2/utils/collect_env.py:17
↓ 1 callers
Function
comput_linear_regresion
(D, D_gt)
utils/utils_eval.py:177
↓ 1 callers
Method
compute_iou_dt_gt
(self, dt, gt, is_crowd)
detectron2/evaluation/rotated_coco_evaluation.py:56
↓ 1 callers
Function
construct_init_net_from_params
Construct the init_net from params dictionary
detectron2/export/shared.py:287
↓ 1 callers
Function
contain_targets
(op_ssa)
detectron2/export/shared.py:698
↓ 1 callers
Function
convert_basic_c2_names
Apply some basic name conversion to names in C2 weights. It only deals with typical backbone models. Args: original_keys (list[s
detectron2/checkpoint/c2_model_loading.py:12
↓ 1 callers
Function
convert_boxes_to_pooler_format
Convert all boxes in `box_lists` to the low-level format used by ROI pooling ops (see description under Returns). Args: box_list
detectron2/modeling/poolers.py:47
↓ 1 callers
Function
convert_c2_detectron_names
Map Caffe2 Detectron weight names to Detectron2 names. Args: weights (dict): name -> tensor Returns: dict: detectron2 n
detectron2/checkpoint/c2_model_loading.py:68
↓ 1 callers
Function
convert_to_coco_dict
Convert a dataset in detectron2's standard format into COCO json format Generic dataset description can be found here: https://detectron
detectron2/data/datasets/coco.py:286
↓ 1 callers
Method
create_complex_model
(self)
tests/test_checkpoint.py:15
↓ 1 callers
Function
create_const_fill_op
Given a blob object, return the Caffe2 operator that creates this blob as constant. Currently support NumPy tensor and Caffe2 Int8Tensor.
detectron2/export/shared.py:265
↓ 1 callers
Method
create_from
(self, module)
detectron2/export/patcher.py:35
↓ 1 callers
Function
create_instances
(predictions, image_size)
tools/visualize_json_results.py:19
↓ 1 callers
Function
dataset_id_map
(ds_id)
tools/visualize_json_results.py:64
↓ 1 callers
Method
device
(self)
detectron2/structures/keypoints.py:40
↓ 1 callers
Method
device
(self)
detectron2/structures/rotated_boxes.py:473
↓ 1 callers
Function
do_train
(cfg, model, resume=False)
tools/plain_train_net.py:119
↓ 1 callers
Method
downgrade
(cls, cfg: CN)
detectron2/config/compat.py:222
↓ 1 callers
Method
draw_and_connect_keypoints
Draws keypoints of an instance and follows the rules for keypoint connections to draw lines between appropriate keypoints. This follo
detectron2/utils/visualizer.py:696
↓ 1 callers
Method
draw_box
Args: box_coord (tuple): a tuple containing x0, y0, x1, y1 coordinates, where x0 and y0 are the coordinates of th
detectron2/utils/visualizer.py:805
↓ 1 callers
Method
draw_circle
Args: circle_coord (list(int) or tuple(int)): contains the x and y coordinates of the center of the circle.
detectron2/utils/visualizer.py:892
↓ 1 callers
Method
draw_rotated_box_with_label
Args: rotated_box (tuple): a tuple containing (cnt_x, cnt_y, w, h, angle), where cnt_x and cnt_y are the center c
detectron2/utils/visualizer.py:839
↓ 1 callers
Method
encode_additional_info
Save extra metadata that will be used by inference in the output protobuf.
detectron2/export/caffe2_modeling.py:177
↓ 1 callers
Method
encode_json_sem_seg
Convert semantic segmentation to COCO stuff format with segments encoded as RLEs. See http://cocodataset.org/#format-results
detectron2/evaluation/sem_seg_evaluation.py:143
↓ 1 callers
Method
evaluate
(self)
detectron2/evaluation/evaluator.py:71
↓ 1 callers
Method
evaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
detectron2/evaluation/Amodal_cocoeval.py:114
↓ 1 callers
Method
evaluate
(self)
detectron2/evaluation/coco_evaluation.py:117
↓ 1 callers
Function
export_caffe2_detection_model
Export a Detectron2 model via ONNX. Arg: model: a caffe2-compatible version of detectron2 model, defined in caffe2_modeling.py
detectron2/export/caffe2_export.py:121
↓ 1 callers
Function
export_caffe2_model
Export a detectron2 model to caffe2 format. Args: cfg (CfgNode): a detectron2 config, with extra export-related options
detectron2/export/api.py:34
↓ 1 callers
Function
fast_rcnn_inference_rotated
Call `fast_rcnn_inference_single_image_rotated` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-spe
detectron2/modeling/roi_heads/rotated_fast_rcnn.py:46
↓ 1 callers
Function
fast_rcnn_inference_single_image_rotated
Single-image inference. Return rotated bounding-box detection results by thresholding on scores and applying rotated non-maximum suppression
detectron2/modeling/roi_heads/rotated_fast_rcnn.py:83
↓ 1 callers
Function
fetch_any_blob
(name)
detectron2/export/shared.py:152
↓ 1 callers
Function
filter_images_with_only_crowd_annotations
Filter out images with none annotations or only crowd annotations (i.e., images without non-crowd annotations). A common training-time pr
detectron2/data/build.py:38
↓ 1 callers
Function
find_top_rpn_proposals
For each feature map, select the `pre_nms_topk` highest scoring proposals, apply NMS, clip proposals, and remove small boxes. Return the `pos
detectron2/modeling/proposal_generator/rpn_outputs.py:52
↓ 1 callers
Function
find_top_rrpn_proposals
For each feature map, select the `pre_nms_topk` highest scoring proposals, apply NMS, clip proposals, and remove small boxes. Return the `pos
detectron2/modeling/proposal_generator/rrpn_outputs.py:41
↓ 1 callers
Function
fix_AmodalFruitSize_dicts
(root_dir, split)
utils/dataset_preparation.py:133
↓ 1 callers
Function
flatten_results_dict
Expand a hierarchical dict of scalars into a flat dict of scalars. If results[k1][k2][k3] = v, the returned dict will have the entry {"k1
detectron2/evaluation/testing.py:61
↓ 1 callers
Function
fmt_box_list
(box_tensor, batch_index)
detectron2/modeling/poolers.py:71
↓ 1 callers
Method
forward
(ctx, input)
detectron2/layers/batch_norm.py:150
↓ 1 callers
Method
forward
(self, images, features, gt_instances=None)
detectron2/export/c10.py:158
↓ 1 callers
Method
forward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. This is useful for downstream tasks where a box is kn
detectron2/modeling/roi_heads/roi_heads.py:604
↓ 1 callers
Method
forward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. This is useful for downstream tasks where a box is kn
detectron2/modeling/roi_heads/roi_heads.py:966
↓ 1 callers
Function
fpn_map
Look for keys with the following patterns: 1) Starts with "fpn.inner." Example: "fpn.inner.res2.2.sum.lateral.weight"
detectron2/checkpoint/c2_model_loading.py:132
↓ 1 callers
Method
from_ssa
(ssa)
detectron2/export/shared.py:813
↓ 1 callers
Function
fuse_alias_placeholder
Remove AliasWithName placeholder and rename the input/output of it
detectron2/export/shared.py:596
↓ 1 callers
Function
fuse_copy_between_cpu_and_gpu
In-place fuse extra copy ops between cpu/gpu for the following case: a -CopyAToB-> b -CopyBToA> c1 -NextOp1-> d1
detectron2/export/shared.py:949
↓ 1 callers
Method
generate_cell_anchors
Generate a tensor storing anchor boxes, which are continuous geometric rectangles centered on one feature map point sample. We can la
detectron2/modeling/anchor_generator.py:140
↓ 1 callers
Method
generate_cell_anchors
Generate a tensor storing anchor boxes, which are continuous geometric rectangles centered on one feature map point sample. We can la
detectron2/modeling/anchor_generator.py:298
↓ 1 callers
Method
get
Returns the field called `name`.
detectron2/structures/instances.py:91
↓ 1 callers
Method
get_all_paths
(self, s, d)
detectron2/export/shared.py:792
↓ 1 callers
Method
get_bounding_boxes
(self)
detectron2/structures/masks.py:201
↓ 1 callers
Method
get_caffe2_inputs
Convert pytorch-style structured inputs to caffe2-style inputs that are tuples of tensors. Args: batched_inputs
detectron2/export/caffe2_modeling.py:153
↓ 1 callers
Function
get_checkpoint_url
Returns the URL to the model trained using the given config Args: config_path (str): config file name relative to detectron2's "conf
detectron2/model_zoo/model_zoo.py:79
↓ 1 callers
Function
get_config_file
Returns path to a builtin config file. Args: config_path (str): config file name relative to detectron2's "configs/" dir
detectron2/model_zoo/model_zoo.py:97
↓ 1 callers
Method
get_deltas
Get box regression transformation deltas (dx, dy, dw, dh, da) that can be used to transform the `src_boxes` into the `target_boxes`.
detectron2/modeling/box_regression.py:139
↓ 1 callers
Function
get_env_module
()
detectron2/utils/collect_env.py:29
↓ 1 callers
Function
get_evaluator
Create evaluator(s) for a given dataset. This uses the special metadata "evaluator_type" associated with each builtin dataset. For your o
tools/plain_train_net.py:59
↓ 1 callers
Function
get_extensions
()
setup.py:40
↓ 1 callers
Method
get_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
detectron2/structures/instances.py:97
↓ 1 callers
Method
get_ground_truth
Args: anchors (list[list[Boxes]]): a list of N=#image elements. Each is a list of #feature level Boxes. The Boxes
detectron2/modeling/meta_arch/retinanet.py:200
↓ 1 callers
Method
get_lr
(self)
detectron2/solver/lr_scheduler.py:38
↓ 1 callers
Method
get_lr
(self)
detectron2/solver/lr_scheduler.py:68
↓ 1 callers
Function
get_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
tests/test_model_e2e.py:14
↓ 1 callers
Function
get_model_zoo_configs
Return a list of configs to include in package for model zoo. Copy over these configs inside detectron2/model_zoo.
setup.py:89
↓ 1 callers
Method
get_outputs_converter
Creates a function that converts outputs of the caffe2 model to detectron2's standard format. The function uses information i
detectron2/export/caffe2_modeling.py:215
↓ 1 callers
Function
get_params_from_init_net
Take the output blobs from init_net by running it. Outputs: params: dict from blob name to numpy array device_options: dict f
detectron2/export/shared.py:337
↓ 1 callers
Function
get_pb_arg_floats
(pb, arg_name, default_val)
detectron2/export/shared.py:179
↓ 1 callers
Function
get_regular_bitmask_instances
(h, w)
tests/test_model_e2e.py:41
↓ 1 callers
Function
get_version
()
setup.py:17
↓ 1 callers
Method
grid_anchors
(self, grid_sizes)
detectron2/modeling/anchor_generator.py:130
↓ 1 callers
Method
grid_anchors
(self, grid_sizes)
detectron2/modeling/anchor_generator.py:287
↓ 1 callers
Function
group_norm_replace_aten_with_caffe2
For ONNX exported model, GroupNorm will be represented as ATen op, this can be a drop in replacement from ATen to GroupNorm
detectron2/export/shared.py:560
↓ 1 callers
Function
guess_version
Guess the version of a partial config where the VERSION field is not specified. Returns the version, or the latest if cannot make a guess.
detectron2/config/compat.py:82
↓ 1 callers
Function
heatmaps_to_keypoints
Extract predicted keypoint locations from heatmaps. Args: maps (Tensor): (#ROIs, #keypoints, POOL_H, POOL_W). The predicted heatmap
detectron2/structures/keypoints.py:142
↓ 1 callers
Method
histories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
detectron2/utils/events.py:296
↓ 1 callers
Function
identify_reshape_sub_graph
Idenfity the reshape sub-graph in a protobuf. The reshape sub-graph is defined as matching the following pattern: (input_blob) -> Op_1 -
detectron2/export/shared.py:852
↓ 1 callers
Method
inference
Args: score_thresh (float): same as `fast_rcnn_inference_rotated`. nms_thresh (float): same as `fast_rcnn_inference_r
detectron2/modeling/roi_heads/rotated_fast_rcnn.py:139
↓ 1 callers
Method
inference
Run inference on the given inputs. Args: batched_inputs (list[dict]): same as in :meth:`forward` detected_in
detectron2/modeling/meta_arch/rcnn.py:141
↓ 1 callers
Function
inference_context
A context where the model is temporarily changed to eval mode, and restored to previous mode afterwards. Args: model: a torch Mo
detectron2/evaluation/evaluator.py:169
↓ 1 callers
Method
inference_single_image
Single-image inference. Return bounding-box detection results by thresholding on scores and applying non-maximum suppression (NMS).
detectron2/modeling/meta_arch/retinanet.py:287
↓ 1 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/AmodalCocoEvaluation.py:305
↓ 1 callers
Method
instances_to_json
(self, instances, img_id)
detectron2/evaluation/rotated_coco_evaluation.py:123
↓ 1 callers
Function
invisible_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_invisible_head.py:110
↓ 1 callers
Function
invisible_mask_rcnn_loss
Compute the mask prediction loss defined in the Mask R-CNN paper. Args: pred_mask_logits (Tensor): A tensor of shape (B, C, Hmask, W
detectron2/modeling/roi_heads/mask_invisible_head.py:20
↓ 1 callers
Function
iou_between_full_image_bit_masks
(a, b)
tests/test_mask_ops.py:28
↓ 1 callers
Function
keypoint_rcnn_inference
Post process each predicted keypoint heatmap in `pred_keypoint_logits` into (x, y, score) and add it to the `pred_instances` as a `pred_k
detectron2/modeling/roi_heads/keypoint_head.py:88
← previous
next →
401–500 of 1,212, ranked by callers