MCPcopy Create free account

hub / github.com/Westlake-AGI-Lab/Distill-Any-Depth / functions

Functions3,350 in github.com/Westlake-AGI-Lab/Distill-Any-Depth

↓ 3 callersMethod_postprocess
Rescale the output instances to the target size.
detectron2/detectron2/modeling/meta_arch/rcnn.py:237
↓ 3 callersMethod_process_unmatched_prev_idx
( self, instances: Instances, matched_prev_idx: np.ndarray )
detectron2/detectron2/tracking/hungarian_tracker.py:118
↓ 3 callersMethod_rand_range
Uniform float random number between low and high.
detectron2/detectron2/data/transforms/augmentation.py:176
↓ 3 callersFunction_rename_versioned_blob_in_proto
In given proto, rename all blobs with matched version
detectron2/detectron2/export/shared.py:637
↓ 3 callersMethod_test_model
( self, model, inputs, inference_func=None, opset_version=STABLE_ONNX_
detectron2/tests/test_export_onnx.py:168
↓ 3 callersMethod_test_model
(self, config_path, device="cpu")
detectron2/tests/test_export_caffe2.py:33
↓ 3 callersFunction_to_container
mmdet will assert the type of dict/list. So convert omegaconf objects to dict/list.
detectron2/detectron2/modeling/mmdet_wrapper.py:21
↓ 3 callersFunction_try_get_key
Try select keys from cfg until the first key that exists. Otherwise return default.
detectron2/detectron2/engine/defaults.py:146
↓ 3 callersFunction_updater_raise
(op, input_types, output_types)
detectron2/detectron2/export/shared.py:375
↓ 3 callersMethodaccumulate
Accumulate instances data for one image Args: instances_one_image (Instances): instances data to accumulate
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:326
↓ 3 callersFunctionadd_densepose_config
(cfg: CN)
detectron2/projects/DensePose/densepose/config.py:272
↓ 3 callersFunctionadd_ground_truth_to_proposals
Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt(Union[List[Instances], List[Boxes]): list of N elements.
detectron2/detectron2/modeling/proposal_generator/proposal_utils.py:138
↓ 3 callersFunctionadd_pointrend_config
Add config for PointRend.
detectron2/projects/PointRend/point_rend/config.py:7
↓ 3 callersMethodafter_backward
Called after the backward pass of each iteration.
detectron2/detectron2/engine/train_loop.py:74
↓ 3 callersMethodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
detectron2/detectron2/structures/masks.py:426
↓ 3 callersMethodassign_cost_matrix_values
Based on IoU for each pair of bbox, assign the associated value in cost matrix Args: cost_matrix: np.ndarray, initialize
detectron2/detectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py:116
↓ 3 callersMethodauto_scale_workers
When the config is defined for certain number of workers (according to ``cfg.SOLVER.REFERENCE_WORLD_SIZE``) that's different from the
detectron2/detectron2/engine/defaults.py:637
↓ 3 callersFunctionbatched_nms_rotated
Performs non-maximum suppression in a batched fashion. Each index value correspond to a category, and NMS will not be applied between el
detectron2/detectron2/layers/nms.py:97
↓ 3 callersFunctionbuild_box_head
Build a box head defined by `cfg.MODEL.ROI_BOX_HEAD.NAME`.
detectron2/detectron2/modeling/roi_heads/box_head.py:113
↓ 3 callersFunctionbuild_point_head
Build a point head defined by `cfg.MODEL.POINT_HEAD.NAME`.
detectron2/projects/PointRend/point_rend/point_head.py:277
↓ 3 callersFunctionbuild_resnet_backbone
Create a ResNet instance from config. Returns: ResNet: a :class:`ResNet` instance.
detectron2/detectron2/modeling/backbone/resnet.py:614
↓ 3 callersFunctionbuild_sem_seg_head
Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
detectron2/detectron2/modeling/meta_arch/semantic_seg.py:134
↓ 3 callersFunctionbuild_tracker_head
Build a tracker head from `cfg.TRACKER_HEADS.TRACKER_NAME`. Args: cfg: D2 CfgNode, config file with tracker information Return:
detectron2/detectron2/tracking/base_tracker.py:53
↓ 3 callersMethodcomputeOgps_single_pair_iuv
(self, dt, gt, ipoints, upoints, vpoints)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:676
↓ 3 callersMethodconvert
(self, img, alpha=1, beta=0)
detectron2/projects/PointRend/point_rend/color_augmentation.py:65
↓ 3 callersFunctionconvert_batched_inputs_to_c2_format
See get_caffe2_inputs() below.
detectron2/detectron2/export/caffe2_modeling.py:107
↓ 3 callersFunctionconvert_to_coco_dict
Convert an instance detection/segmentation or keypoint detection dataset in detectron2's standard format into COCO json format. Generic
detectron2/detectron2/data/datasets/coco.py:311
↓ 3 callersMethodcreate_complex_model
(self)
detectron2/tests/test_checkpoint.py:22
↓ 3 callersFunctioncreate_ddp_model
Create a DistributedDataParallel model if there are >1 processes. Args: model: a torch.nn.Module fp16_compression: add fp16
detectron2/detectron2/engine/defaults.py:60
↓ 3 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
detectron2/detectron2/utils/collect_env.py:34
↓ 3 callersMethoddevice
(self)
detectron2/detectron2/structures/masks.py:115
↓ 3 callersFunctiondo_test
(cfg, model)
detectron2/tools/plain_train_net.py:96
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
detectron2/detectron2/utils/visualizer.py:864
↓ 3 callersFunctionextract_scores_from_instances
(instances: Instances, select=None)
detectron2/projects/DensePose/densepose/vis/extractor.py:26
↓ 3 callersFunctionfind_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/detectron2/modeling/proposal_generator/proposal_utils.py:22
↓ 3 callersMethodforward_inference
( self, images: ImageList, features: List[torch.Tensor], predictions: List[Lis
detectron2/detectron2/modeling/meta_arch/fcos.py:253
↓ 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/detectron2/modeling/roi_heads/roi_heads.py:502
↓ 3 callersMethodfrom_cfg
(cfg: CfgNode)
detectron2/projects/DensePose/densepose/modeling/confidence.py:64
↓ 3 callersMethodfromfile
(filename, use_predefined_variables=True, import_custom_modules=True)
distillanydepth/utils/mmcv_config.py:434
↓ 3 callersFunctionfunc
(dev, n=1)
detectron2/tests/structures/test_rotated_boxes.py:419
↓ 3 callersMethodfunc
(proposal, logit, image_size)
detectron2/tests/modeling/test_rpn.py:209
↓ 3 callersFunctiongather
Run gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object dst (int): destination ra
detectron2/detectron2/utils/comm.py:163
↓ 3 callersFunctiongenerate_regular_grid_point_coords
Generate regular square grid of points in [0, 1] x [0, 1] coordinate space. Args: R (int): The number of grids to sample, one for ea
detectron2/projects/PointRend/point_rend/point_features.py:45
↓ 3 callersMethodget
Returns the field called `name`.
detectron2/detectron2/structures/instances.py:96
↓ 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/detectron2/export/shared.py:332
↓ 3 callersFunctionget_default_optimizer_params
Get default param list for optimizer, with support for a few types of overrides. If no overrides needed, this is equivalent to `model.paramet
detectron2/detectron2/solver/build.py:142
↓ 3 callersFunctionget_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: names (str or list[str]): a data
detectron2/detectron2/data/build.py:217
↓ 3 callersFunctionget_empty_instance
(h, w)
detectron2/tests/modeling/test_model_e2e.py:58
↓ 3 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
detectron2/detectron2/structures/instances.py:102
↓ 3 callersFunctionget_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/detectron2/data/datasets/lvis.py:168
↓ 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/detectron2/export/shared.py:319
↓ 3 callersMethodget_transform
(self, *args)
detectron2/detectron2/data/transforms/augmentation_impl.py:67
↓ 3 callersMethodget_transform
(self, image)
detectron2/detectron2/data/transforms/augmentation_impl.py:128
↓ 3 callersFunctionget_version
(module, digit=2)
detectron2/detectron2/utils/env.py:83
↓ 3 callersFunctionhas_event_storage
Returns: Check if there are EventStorage() context existed.
detectron2/detectron2/utils/events.py:40
↓ 3 callersMethodhistories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
detectron2/detectron2/utils/events.py:437
↓ 3 callersFunctioninfer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
detectron2/detectron2/export/shared.py:454
↓ 3 callersMethodinference
Run inference on the given inputs. Args: batched_inputs (list[dict]): same as in :meth:`forward` detected_in
detectron2/detectron2/modeling/meta_arch/rcnn.py:178
↓ 3 callersMethodinverse
(self)
detectron2/detectron2/data/transforms/transform.py:275
↓ 3 callersFunctionis_main_process
()
detectron2/detectron2/utils/comm.py:102
↓ 3 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/detectron2/modeling/roi_heads/roi_heads.py:220
↓ 3 callersMethodload_rel
Similar to :meth:`load()`, but load path relative to the caller's source file. This has the same functionality as a relative
detectron2/detectron2/config/lazy.py:181
↓ 3 callersFunctionload_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/detectron2/data/datasets/coco.py:235
↓ 3 callersMethodload_state_dict
(self, state_dict)
detectron2/detectron2/engine/train_loop.py:528
↓ 3 callersMethodlosses
This method is almost identical to :meth:`RetinaNet.losses`, with an extra "loss_centerness" in the returned dict.
detectron2/detectron2/modeling/meta_arch/fcos.py:193
↓ 3 callersFunctionmin_torch_version
Returns True when torch's version is at least `min_version`.
detectron2/detectron2/utils/testing.py:165
↓ 3 callersMethodproduce_fake_densepose_losses
Fake losses for fine segmentation and U/V coordinates. These are used when no suitable ground truth data was found in a batch. The lo
detectron2/projects/DensePose/densepose/modeling/losses/chart.py:141
↓ 3 callersMethodput_image
Add an `img_tensor` associated with `img_name`, to be shown on tensorboard. Args: img_name (str): The name of th
detectron2/detectron2/utils/events.py:341
↓ 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
detectron2/tests/layers/test_nms_rotated.py:44
↓ 3 callersFunctionreload_script_model
Save a jit module and load it back. Similar to the `getExportImportCopy` function in torch/testing/
detectron2/detectron2/utils/testing.py:142
↓ 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/detectron2/export/shared.py:735
↓ 3 callersMethodrepeat_factors_from_category_frequency
Compute (fractional) per-image repeat factors based on category frequency. The repeat factor for an image is a function of the freque
detectron2/detectron2/data/samplers/distributed_sampler.py:159
↓ 3 callersFunctionresample_fine_and_coarse_segm_to_bbox
Resample fine and coarse segmentation outputs from a predictor to the given bounding box and derive labels for each pixel of the bounding box
detectron2/projects/DensePose/densepose/converters/segm_to_mask.py:67
↓ 3 callersFunctionroi_mask_point_loss
Compute the point-based loss for instance segmentation mask predictions given point-wise mask prediction and its corresponding point-wise lab
detectron2/projects/PointRend/point_rend/point_head.py:20
↓ 3 callersFunctionsave_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
detectron2/detectron2/export/shared.py:529
↓ 3 callersFunctionsetup
(args)
detectron2/projects/DensePose/train_net.py:26
↓ 3 callersFunctionshapes_to_tensor
Turn a list of integer scalars or integer Tensor scalars into a vector, in a way that's both traceable and scriptable. In tracing, `x` s
detectron2/detectron2/layers/wrappers.py:20
↓ 3 callersFunctionstorage_gather
( storage: SingleProcessTensorStorage, dst_rank: int = 0 )
detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py:234
↓ 3 callersFunctiontemp_video
(num_frames, height, width, fps, lossless=False, video_codec=None, options=None)
detectron2/projects/DensePose/tests/test_video_keyframe_dataset.py:34
↓ 3 callersMethodtest_with_TTA
(cls, cfg: CfgNode, model)
detectron2/projects/DensePose/densepose/engine/trainer.py:243
↓ 3 callersMethodvalidate_annotation
(annotation)
detectron2/projects/DensePose/densepose/structures/data_relative.py:116
↓ 3 callersMethodvisualize
(self, image_bgr, txt, topleft_xy)
detectron2/projects/DensePose/densepose/vis/base.py:141
↓ 2 callersMethod__exit__
(self, *args)
detectron2/detectron2/export/shared.py:150
↓ 2 callersMethod__getitem__
(self, item)
detectron2/projects/DensePose/densepose/structures/list.py:51
↓ 2 callersMethod__init__
(self, buffers)
detectron2/detectron2/modeling/anchor_generator.py:26
↓ 2 callersMethod__init__
Args: img_size (int): Input image size. patch_kernel (tuple): kernel size for patch embedding. patch_stri
detectron2/detectron2/modeling/backbone/mvit.py:276
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
detectron2/detectron2/modeling/backbone/fpn.py:25
↓ 2 callersMethod__init__
NOTE: this interface is experimental. Args: num_classes (int): number of foreground classes (i.e. background is not incl
detectron2/detectron2/modeling/roi_heads/roi_heads.py:139
↓ 2 callersMethod__init__
Args: cfg (CfgNode): torch_model (nn.Module): the detectron2 model (meta_arch) to be converted.
detectron2/detectron2/export/caffe2_modeling.py:142
↓ 2 callersMethod__init__
(self, cfg)
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:42
↓ 2 callersMethod__init__
(self, sigma_lower_bound: float)
detectron2/projects/DensePose/densepose/modeling/losses/chart_with_confidences.py:134
↓ 2 callersMethod__init__
(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:335
↓ 2 callersMethod__init__
Args: conv_dim: the output dimension of the conv layers fc_dims: a list of N>0 integers representing the output dimen
detectron2/projects/PointRend/point_rend/mask_head.py:62
↓ 2 callersFunction_add_category_maps_to_metadata
(cfg: CfgNode)
detectron2/projects/DensePose/densepose/data/build.py:285
↓ 2 callersFunction_add_category_whitelists_to_metadata
(cfg: CfgNode)
detectron2/projects/DensePose/densepose/data/build.py:273
↓ 2 callersFunction_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
detectron2/detectron2/modeling/backbone/fpn.py:178
↓ 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/detectron2/utils/video_visualizer.py:211
↓ 2 callersMethod_assign_new_id
For each untracked instance, assign a new id Args: instances: D2 Instances, for predictions of the current frame
detectron2/detectron2/tracking/bbox_iou_tracker.py:182
↓ 2 callersFunction_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
detectron2/detectron2/export/caffe2_export.py:92
↓ 2 callersMethod_best_checking
(self)
detectron2/detectron2/engine/hooks.py:258
← previousnext →301–400 of 3,350, ranked by callers