MCPcopy Create free account

hub / github.com/chengyangfu/retinamask / functions

Functions379 in github.com/chengyangfu/retinamask

↓ 46 callersMethodget_field
(self, field)
maskrcnn_benchmark/structures/bounding_box.py:42
↓ 41 callersMethodadd_field
(self, field, field_data)
maskrcnn_benchmark/structures/bounding_box.py:39
↓ 30 callersMethodto
(self, *args, **kwargs)
maskrcnn_benchmark/structures/image_list.py:24
↓ 16 callersMethodcreate_model
(self)
tests/checkpoint.py:15
↓ 14 callersFunctioncat
Efficient version of torch.cat that avoids a copy if there is only a single element in a list
maskrcnn_benchmark/modeling/utils.py:9
↓ 13 callersMethodconvert
(self, mode)
maskrcnn_benchmark/structures/bounding_box.py:55
↓ 10 callersFunctioncat_boxlist
Concatenates a list of BoxList (having the same image size) into a single BoxList Arguments: bboxes (list[BoxList])
maskrcnn_benchmark/structures/boxlist_ops.py:102
↓ 10 callersMethodupdate
(self, coco_eval)
maskrcnn_benchmark/engine/inference.py:309
↓ 9 callersMethodload
(self, f=None)
maskrcnn_benchmark/utils/checkpoint.py:52
↓ 9 callersMethodresize
Returns a resized copy of this bounding box :param size: The requested size in pixels, as a 2-tuple: (width, height).
maskrcnn_benchmark/structures/bounding_box.py:91
↓ 8 callersMethodsave
(self, name, **kwargs)
maskrcnn_benchmark/utils/checkpoint.py:32
↓ 7 callersMethodcopy_with_fields
(self, fields)
maskrcnn_benchmark/structures/bounding_box.py:239
↓ 7 callersMethoddecode
From a set of original boxes and encoded relative box offsets, get the decoded boxes. Arguments: rel_codes (Tens
maskrcnn_benchmark/modeling/box_coder.py:52
↓ 7 callersFunctionsynchronize
Helper function to synchronize between multiple processes when using distributed training
maskrcnn_benchmark/utils/comm.py:33
↓ 5 callersFunctionboxlist_iou
Compute the intersection over union of two set of boxes. The box order must be (xmin, ymin, xmax, ymax). Arguments: box1: (BoxList) bou
maskrcnn_benchmark/structures/boxlist_ops.py:53
↓ 5 callersMethodclip_to_image
(self, remove_empty=True)
maskrcnn_benchmark/structures/bounding_box.py:214
↓ 5 callersMethodencode
Encode a set of proposals with respect to some reference boxes Arguments: reference_boxes (Tensor): reference bo
maskrcnn_benchmark/modeling/box_coder.py:22
↓ 5 callersMethodextend
(self, buffers)
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:21
↓ 4 callersMethod_split_into_xyxy
(self)
maskrcnn_benchmark/structures/bounding_box.py:75
↓ 4 callersFunctionboxlist_nms
Performs non-maximum suppression on a boxlist, with scores specified in a boxlist field via score_field. Arguments: boxlist(BoxL
maskrcnn_benchmark/structures/boxlist_ops.py:9
↓ 4 callersFunctionto_image_list
tensors can be an ImageList, a torch.Tensor or an iterable of Tensors. It can't be a numpy array. When tensors is an iterable of Tensors,
maskrcnn_benchmark/structures/image_list.py:29
↓ 3 callersMethod__init__
(self, cfg)
maskrcnn_benchmark/modeling/backbone/resnet.py:59
↓ 3 callersFunction_register_generic
(module_dict, module_name, module)
maskrcnn_benchmark/modeling/backbone/resnet.py:317
↓ 3 callersMethodarea
(self)
maskrcnn_benchmark/structures/bounding_box.py:226
↓ 3 callersFunctionbuild_detection_model
(cfg)
maskrcnn_benchmark/modeling/detector/detectors.py:9
↓ 3 callersMethodfields
(self)
maskrcnn_benchmark/structures/bounding_box.py:48
↓ 3 callersMethodget
(name)
maskrcnn_benchmark/config/paths_catalog.py:79
↓ 3 callersMethodget_checkpoint_file
(self)
maskrcnn_benchmark/utils/checkpoint.py:77
↓ 3 callersFunctionget_rank
()
maskrcnn_benchmark/utils/comm.py:21
↓ 3 callersMethodhas_checkpoint
(self)
maskrcnn_benchmark/utils/checkpoint.py:73
↓ 3 callersFunctionimport_file
(module_name, file_path, make_importable=False)
maskrcnn_benchmark/utils/imports.py:11
↓ 3 callersFunctionis_main_process
()
maskrcnn_benchmark/utils/comm.py:27
↓ 3 callersFunctionmake_data_loader
(cfg, is_train=True, is_distributed=False, start_iter=0)
maskrcnn_benchmark/data/build.py:102
↓ 3 callersFunctionmkdir
(path)
maskrcnn_benchmark/utils/miscellaneous.py:6
↓ 3 callersFunctionremove_small_boxes
Only keep boxes with both sides >= min_size Arguments: boxlist (Boxlist) min_size (int)
maskrcnn_benchmark/structures/boxlist_ops.py:34
↓ 3 callersFunctionsmooth_l1_loss
very similar to the smooth_l1_loss from pytorch, but with the extra beta parameter
maskrcnn_benchmark/layers/smooth_l1_loss.py:15
↓ 3 callersMethodupdate
(self, **kwargs)
maskrcnn_benchmark/utils/metric_logger.py:45
↓ 2 callersFunction_cat
Efficient version of torch.cat that avoids a copy if there is only a single element in a list
maskrcnn_benchmark/structures/boxlist_ops.py:92
↓ 2 callersMethod_load_file
(self, f)
maskrcnn_benchmark/utils/checkpoint.py:93
↓ 2 callersFunction_make_stage
( transformation_module, in_channels, bottleneck_channels, out_channels, block_count,
maskrcnn_benchmark/modeling/backbone/resnet.py:171
↓ 2 callersFunction_mkanchors
Given a vector of widths (ws) and heights (hs) around a center (x_ctr, y_ctr), output a set of anchors (windows).
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:256
↓ 2 callersMethod_prepare_batches
(self)
maskrcnn_benchmark/data/samplers/grouped_batch_sampler.py:40
↓ 2 callersFunction_send_and_wait
(r)
maskrcnn_benchmark/utils/comm.py:45
↓ 2 callersFunction_whctrs
Return width, height, x center, and y center for an anchor (window).
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:247
↓ 2 callersFunctionbuild_backbone
(cfg)
maskrcnn_benchmark/modeling/backbone/backbone.py:86
↓ 2 callersFunctionbuild_retinanet
(cfg)
maskrcnn_benchmark/modeling/rpn/retinanet.py:188
↓ 2 callersFunctionbuild_roi_mask_head
(cfg)
maskrcnn_benchmark/modeling/roi_heads/mask_head/mask_head.py:81
↓ 2 callersFunctioncheck_expected_results
(results, expected_results, sigma_tol)
maskrcnn_benchmark/engine/inference.py:327
↓ 2 callersFunctioncollect_env_info
()
maskrcnn_benchmark/utils/collect_env.py:11
↓ 2 callersMethodcompute_colors_for_labels
Simple function that adds fixed colors depending on the class
demo/predictor.py:239
↓ 2 callersFunctiongenerate_anchors
Generates a matrix of anchor boxes in (x1, y1, x2, y2) format. Anchors are centered on stride / 2, have (approximate) sqrt areas of the specified
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:221
↓ 2 callersFunctionget_world_size
()
maskrcnn_benchmark/utils/comm.py:15
↓ 2 callersMethodhas_field
(self, field)
maskrcnn_benchmark/structures/bounding_box.py:45
↓ 2 callersFunctioninference
( model, data_loader, iou_types=("bbox",), box_only=False, device="cuda", expected_res
maskrcnn_benchmark/engine/inference.py:349
↓ 2 callersFunctionload_state_dict
(model, loaded_state_dict)
maskrcnn_benchmark/utils/model_serialization.py:71
↓ 2 callersFunctionmake_retinanet_postprocessor
( config, fpn_post_nms_top_n, rpn_box_coder)
maskrcnn_benchmark/modeling/rpn/retinanet_infer.py:207
↓ 2 callersFunctionmake_rpn_postprocessor
(config, rpn_box_coder, is_train)
maskrcnn_benchmark/modeling/rpn/inference.py:182
↓ 2 callersFunctionsetup_logger
(name, save_dir, distributed_rank)
maskrcnn_benchmark/utils/logger.py:7
↓ 2 callersMethodtranspose
Transpose bounding box (flip or rotate in 90 degree steps) :param method: One of :py:attr:`PIL.Image.FLIP_LEFT_RIGHT`, :py:
maskrcnn_benchmark/structures/bounding_box.py:129
↓ 1 callersFunctionROIAlign_forward_cpu
maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp:221
↓ 1 callersMethod__init__
Arguments: in_channels_list (list[int]): number of channels for each feature map that will be fed out
maskrcnn_benchmark/modeling/backbone/fpn.py:14
↓ 1 callersMethod__init__
(self, cfg)
maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_predictors.py:34
↓ 1 callersMethod__init__
(self, cfg)
maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_feature_extractors.py:47
↓ 1 callersMethod__init__
(self, threshold=0.5, padding=1)
maskrcnn_benchmark/modeling/roi_heads/mask_head/inference.py:160
↓ 1 callersMethod__init__
(self, buffers=None)
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:16
↓ 1 callersMethod__init__
Arguments: in_channels (int): number of channels of the input feature num_anchors (int): number of anchors to be pred
maskrcnn_benchmark/modeling/rpn/retinanet.py:18
↓ 1 callersMethod__init__
Arguments: in_channels (int): number of channels of the input feature num_anchors (int): number of anchors to be pred
maskrcnn_benchmark/modeling/rpn/rpn.py:17
↓ 1 callersMethod__init__
( self, model, optimizer=None, scheduler=None, save_dir="", sa
maskrcnn_benchmark/utils/checkpoint.py:14
↓ 1 callersFunction_accumulate_predictions_from_multiple_gpus
(predictions_per_gpu)
maskrcnn_benchmark/engine/inference.py:260
↓ 1 callersFunction_check_size_scale_factor
(dim)
maskrcnn_benchmark/layers/misc.py:75
↓ 1 callersFunction_compute_aspect_ratios
(dataset)
maskrcnn_benchmark/data/build.py:73
↓ 1 callersMethod_copy_extra_fields
(self, bbox)
maskrcnn_benchmark/structures/bounding_box.py:51
↓ 1 callersFunction_decode
(encoded_data)
maskrcnn_benchmark/utils/comm.py:73
↓ 1 callersFunction_encode
(encoded_data, data)
maskrcnn_benchmark/utils/comm.py:59
↓ 1 callersMethod_forward_test
(self, anchors, box_cls, box_regression)
maskrcnn_benchmark/modeling/rpn/retinanet.py:172
↓ 1 callersMethod_forward_test
(self, anchors, objectness, rpn_box_regression)
maskrcnn_benchmark/modeling/rpn/rpn.py:121
↓ 1 callersMethod_forward_train
(self, anchors, box_cls, box_regression, targets)
maskrcnn_benchmark/modeling/rpn/retinanet.py:154
↓ 1 callersMethod_forward_train
(self, anchors, objectness, rpn_box_regression, targets)
maskrcnn_benchmark/modeling/rpn/rpn.py:98
↓ 1 callersMethod_freeze_backbone
(self, freeze_at)
maskrcnn_benchmark/modeling/backbone/resnet.py:105
↓ 1 callersFunction_generate_anchors
Generate anchor (reference) windows by enumerating aspect ratios X scales wrt a reference (0, 0, base_size - 1, base_size - 1) window.
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:235
↓ 1 callersFunction_load_C_extensions
()
maskrcnn_benchmark/layers/_utils.py:14
↓ 1 callersFunction_load_c2_pickled_weights
(file_path)
maskrcnn_benchmark/utils/c2_model_loading.py:120
↓ 1 callersMethod_load_model
(self, checkpoint)
maskrcnn_benchmark/utils/checkpoint.py:96
↓ 1 callersFunction_output_size
(dim)
maskrcnn_benchmark/layers/misc.py:90
↓ 1 callersFunction_quantize
(x, bins)
maskrcnn_benchmark/data/build.py:66
↓ 1 callersFunction_ratio_enum
Enumerate a set of anchors for each aspect ratio wrt an anchor.
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:273
↓ 1 callersFunction_rename_basic_resnet_weights
(layer_keys)
maskrcnn_benchmark/utils/c2_model_loading.py:11
↓ 1 callersFunction_rename_fpn_weights
(layer_keys, stage_names)
maskrcnn_benchmark/utils/c2_model_loading.py:51
↓ 1 callersFunction_rename_weights_for_resnet
(weights, stage_names)
maskrcnn_benchmark/utils/c2_model_loading.py:71
↓ 1 callersFunction_scale_enum
Enumerate a set of anchors for each scale wrt an anchor.
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:284
↓ 1 callersMethodadd_gt_proposals
Arguments: proposals: list[BoxList] targets: list[BoxList]
maskrcnn_benchmark/modeling/rpn/inference.py:51
↓ 1 callersMethodadd_visibility_to
(self, boxlist)
maskrcnn_benchmark/modeling/rpn/anchor_generator.py:97
↓ 1 callersFunctionalign_and_update_state_dicts
Strategy: suppose that the models that we will create will have prefixes appended to each of its keys, for example due to an extra level of n
maskrcnn_benchmark/utils/model_serialization.py:10
↓ 1 callersMethodbackward
(ctx, grad_output)
maskrcnn_benchmark/layers/roi_pool.py:25
↓ 1 callersFunctionbuild_dataset
Arguments: dataset_list (list[str]): Contains the names of the datasets, i.e., coco_2014_trian, coco_2014_val, etc tr
maskrcnn_benchmark/data/build.py:17
↓ 1 callersFunctionbuild_resnet_backbone
(cfg)
maskrcnn_benchmark/modeling/backbone/backbone.py:10
↓ 1 callersFunctionbuild_resnet_fpn_backbone
(cfg)
maskrcnn_benchmark/modeling/backbone/backbone.py:16
↓ 1 callersFunctionbuild_resnet_fpn_p2p7_backbone
(cfg)
maskrcnn_benchmark/modeling/backbone/backbone.py:60
↓ 1 callersFunctionbuild_resnet_fpn_p3p7_backbone
(cfg)
maskrcnn_benchmark/modeling/backbone/backbone.py:35
↓ 1 callersFunctionbuild_roi_box_head
Constructs a new box head. By default, uses ROIBoxHead, but if it turns out not to be enough, just register a new class and make it a par
maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py:64
next →1–100 of 379, ranked by callers