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

↓ 1 callersFunctionmock_fastrcnn_outputs_inference
( tensor_mode, check=True, box_predictor_type=FastRCNNOutputLayers )
detectron2/detectron2/export/caffe2_patch.py:82
↓ 1 callersFunctionmock_keypoint_rcnn_inference
(tensor_mode, patched_module, use_heatmap_max_keypoint, check=True)
detectron2/detectron2/export/caffe2_patch.py:107
↓ 1 callersFunctionmock_mask_rcnn_inference
(tensor_mode, patched_module, check=True)
detectron2/detectron2/export/caffe2_patch.py:97
↓ 1 callersMethodname_scope
Yields: A context within which all the events added to this storage will be prefixed by the name scope.
detectron2/detectron2/utils/events.py:534
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
distillanydepth/modeling/backbones/vit/dinov2.py:26
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:733
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
distillanydepth/depth_anything_v2/dinov2.py:26
↓ 1 callersFunctionnms_rotated_cpu
detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.cpp:62
↓ 1 callersMethodnonempty
Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Returns:
detectron2/detectron2/structures/rotated_boxes.py:305
↓ 1 callersFunctionnormalized_coords_transform
Coordinates transform that maps top left corner to (-1, -1) and bottom right corner to (1, 1). Used for torch.grid_sample to initialize the
detectron2/projects/DensePose/densepose/structures/transform_data.py:8
↓ 1 callersMethodnum_instances
detectron2/tools/deploy/torchscript_mask_rcnn.cpp:83
↓ 1 callersMethodoffset_losses
(self, predictions, targets, weights)
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:559
↓ 1 callersMethodoverlay_rotated_instances
Args: boxes (ndarray): an Nx5 numpy array of (x_center, y_center, width, height, angle_degrees) format
detectron2/detectron2/utils/visualizer.py:763
↓ 1 callersMethodpack
Pack data into tensors
detectron2/projects/DensePose/densepose/modeling/losses/embed_utils.py:112
↓ 1 callersFunctionpad_masks
Args: masks (tensor): A tensor of shape (B, M, M) representing B masks. padding (int): Number of cells to pad on all sides.
detectron2/detectron2/layers/mask_ops.py:219
↓ 1 callersFunctionpairwise_ioa
Similar to :func:`pariwise_iou` but compute the IoA (intersection over boxes2 area). Args: boxes1,boxes2 (Boxes): two `Boxes`. Conta
detectron2/detectron2/structures/boxes.py:361
↓ 1 callersFunctionpairwise_point_box_distance
Pairwise distance between N points and M boxes. The distance between a point and a box is represented by the distance from the point to 4 edg
detectron2/detectron2/structures/boxes.py:381
↓ 1 callersFunctionparse_args
(in_args=None)
detectron2/tools/visualize_data.py:27
↓ 1 callersFunctionparse_rec
Parse a PASCAL VOC xml file.
detectron2/detectron2/evaluation/pascal_voc_evaluation.py:132
↓ 1 callersFunctionpaste_mask_in_image_old
Paste a single mask in an image. This is a per-box implementation of :func:`paste_masks_in_image`. This function has larger quantization
detectron2/detectron2/layers/mask_ops.py:155
↓ 1 callersFunctionpatch_generalized_rcnn
(model)
detectron2/detectron2/export/caffe2_patch.py:73
↓ 1 callersFunctionpatch_nonscriptable_classes
Apply patches on a few nonscriptable detectron2 classes. Should not have side-effects on eager usage.
detectron2/detectron2/export/torchscript_patch.py:342
↓ 1 callersMethodpatch_roi_heads
(self, tensor_mode=True)
detectron2/detectron2/export/caffe2_patch.py:158
↓ 1 callersFunctionpermute_all_cls_and_box_to_N_HWA_K_and_concat
Rearrange the tensor layout from the network output, i.e.: list[Tensor]: #lvl tensors of shape (N, A x K, Hi, Wi) to per-image prediction
detectron2/projects/TensorMask/tensormask/arch.py:23
↓ 1 callersFunctionpolygon_allclose
Test whether two polygons are the same. Both arguments are nx2 numpy arrays.
detectron2/tests/data/test_transforms.py:20
↓ 1 callersFunctionpolygon_area
(x, y)
detectron2/detectron2/structures/masks.py:16
↓ 1 callersMethodpolygons_to_mask
(self, polygons)
detectron2/detectron2/utils/visualizer.py:138
↓ 1 callersFunctionpool2d
Helper for building a pool2d layer.
detectron2/detectron2/modeling/backbone/regnet.py:40
↓ 1 callersMethodpostexecute
(cls: type, context: Dict[str, Any])
detectron2/projects/DensePose/apply_net.py:186
↓ 1 callersFunctionpre_calc_for_bilinear_interpolate
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:28
↓ 1 callersMethodpredict_boxes_for_gt_classes
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:488
↓ 1 callersMethodpredict_proposals
Decode all the predicted box regression deltas to proposals. Find the top proposals by applying NMS and removing boxes that are too s
detectron2/detectron2/modeling/proposal_generator/rpn.py:482
↓ 1 callersFunctionprediction_to_dict
Args: instances (Instances): the output of the model img_id (str): the image id in COCO Returns: list[dict]: the res
detectron2/projects/DensePose/densepose/evaluation/evaluator.py:200
↓ 1 callersMethodpreprocess_image
Normalize, pad and batch the input images.
detectron2/detectron2/modeling/meta_arch/dense_detector.py:123
↓ 1 callersMethodpreprocess_image
Normalize, pad and batch the input images.
detectron2/projects/TensorMask/tensormask/arch.py:744
↓ 1 callersMethodprocess
(self, inputs, outputs)
detectron2/detectron2/evaluation/evaluator.py:86
↓ 1 callersMethodprocess
Args: inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). It is a list of dict. Each dict corresponds to
detectron2/detectron2/evaluation/coco_evaluation.py:157
↓ 1 callersMethodprocess_annotation
(self, ann, mask_side_len=28)
detectron2/tests/layers/test_mask_ops.py:101
↓ 1 callersFunctionprocess_image
(image, model, device)
app.py:15
↓ 1 callersFunctionprocess_images
(validation_images, image_logs_folder, transform, model, device)
tools/testers/infer.py:92
↓ 1 callersMethodproduce_densepose_losses_segm
Losses for fine / coarse segmentation: cross-entropy for segmentation unnormalized scores given ground truth labels at annota
detectron2/projects/DensePose/densepose/modeling/losses/chart.py:245
↓ 1 callersMethodproduce_densepose_losses_uv
Compute losses for U/V coordinates: smooth L1 loss between estimated coordinates and the ground truth. Args: pro
detectron2/projects/DensePose/densepose/modeling/losses/chart.py:213
↓ 1 callersMethodproduce_fake_densepose_losses_segm
Fake losses for fine / coarse segmentation. These are used when no suitable ground truth data was found in a batch. The loss has a va
detectron2/projects/DensePose/densepose/modeling/losses/chart.py:189
↓ 1 callersMethodproduce_fake_densepose_losses_uv
Fake losses for U/V coordinates. These are used when no suitable ground truth data was found in a batch. The loss has a value 0
detectron2/projects/DensePose/densepose/modeling/losses/chart.py:166
↓ 1 callersFunctionquantize_densepose_chart_result
Applies quantization to DensePose chart-based result. Args: result (DensePoseChartResult): DensePose chart-based result Return:
detectron2/projects/DensePose/densepose/structures/chart_result.py:122
↓ 1 callersMethodquery
Args: config_path: relative config filename
detectron2/detectron2/model_zoo/model_zoo.py:99
↓ 1 callersFunctionrandom_colors
Args: N (int): number of unique colors needed rgb (bool): whether to return RGB colors or BGR colors. maximum (int): eith
detectron2/detectron2/utils/colormap.py:128
↓ 1 callersFunctionrasterize_polygons_with_grid_sample
(full_image_bit_mask, box, mask_size, threshold=0.5)
detectron2/tests/layers/test_mask_ops.py:35
↓ 1 callersFunctionrasterize_polygons_within_box
Rasterize the polygons into a mask image and crop the mask content in the given box. The cropped mask is resized to (mask_size, mask_size
detectron2/detectron2/structures/masks.py:39
↓ 1 callersFunctionread_keyframe_helper_data
Read keyframe data from a file in CSV format: the header should contain "video_id" and "keyframes" fields. Value specifications are: vi
detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py:179
↓ 1 callersFunctionread_keyframes
Reads keyframe data from a video file. Args: video_fpath (str): Video file path keyframes (List[int]): List of keyframe time
detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py:99
↓ 1 callersFunctionregister_all_ade20k
(root)
detectron2/detectron2/data/datasets/builtin.py:231
↓ 1 callersFunctionregister_all_cityscapes
(root)
detectron2/detectron2/data/datasets/builtin.py:184
↓ 1 callersFunctionregister_all_cityscapes_panoptic
(root)
detectron2/detectron2/data/datasets/cityscapes_panoptic.py:127
↓ 1 callersFunctionregister_all_coco
(root)
detectron2/detectron2/data/datasets/builtin.py:101
↓ 1 callersFunctionregister_all_coco_train_points
(root)
detectron2/projects/PointSup/point_sup/register_point_annotations.py:53
↓ 1 callersFunctionregister_all_lvis
(root)
detectron2/detectron2/data/datasets/builtin.py:165
↓ 1 callersFunctionregister_all_pascal_voc
(root)
detectron2/detectron2/data/datasets/builtin.py:215
↓ 1 callersFunctionregister_coco_instances
Register a dataset in COCO's json annotation format for instance detection, instance segmentation and keypoint detection. (i.e., Type 1 a
detectron2/detectron2/data/datasets/coco.py:489
↓ 1 callersFunctionregister_coco_instances_with_points
Register a dataset in COCO's json annotation format for instance segmentation with point annotation. The point annotation json does not
detectron2/projects/PointSup/point_sup/register_point_annotations.py:13
↓ 1 callersFunctionregister_coco_panoptic
Register a "standard" version of COCO panoptic segmentation dataset named `name`. The dictionaries in this registered dataset follows detectr
detectron2/detectron2/data/datasets/coco_panoptic.py:66
↓ 1 callersFunctionregister_coco_panoptic_separated
Register a "separated" version of COCO panoptic segmentation dataset named `name`. The annotations in this registered dataset will contain bo
detectron2/detectron2/data/datasets/coco_panoptic.py:102
↓ 1 callersFunctionregister_dataset
Registers provided LVIS DensePose dataset Args: dataset_data: CocoDatasetInfo Dataset data datasets_root: Option
detectron2/projects/DensePose/densepose/data/datasets/lvis.py:217
↓ 1 callersFunctionregister_dataset
Registers provided COCO DensePose dataset Args: dataset_data: CocoDatasetInfo Dataset data datasets_root: Optional[str]
detectron2/projects/DensePose/densepose/data/datasets/coco.py:393
↓ 1 callersFunctionregister_lvis_instances
Register a dataset in LVIS's json annotation format for instance detection and segmentation. Args: name (str): a name that identifie
detectron2/detectron2/data/datasets/lvis.py:25
↓ 1 callersFunctionregister_mesh
(mesh_info: MeshInfo, base_path: Optional[str])
detectron2/projects/DensePose/densepose/data/meshes/catalog.py:54
↓ 1 callersFunctionregister_meshes
(mesh_infos: Iterable[MeshInfo], base_path: Optional[str])
detectron2/projects/DensePose/densepose/data/meshes/catalog.py:71
↓ 1 callersFunctionregister_pascal_voc
(name, dirname, split, year, class_names=CLASS_NAMES)
detectron2/detectron2/data/datasets/pascal_voc.py:78
↓ 1 callersMethodremove
Remove the field called `name`.
detectron2/detectron2/structures/instances.py:90
↓ 1 callersFunctionremove_dead_end_ops
remove ops if its output is not used or not in external_output
detectron2/detectron2/export/shared.py:1016
↓ 1 callersFunctionremove_reshape_for_fc
In PyTorch nn.Linear has to take 2D tensor, this often leads to reshape a 4D tensor to 2D by calling .view(). However this (dynamic) resh
detectron2/detectron2/export/shared.py:888
↓ 1 callersFunctionrename_op_input
Rename the op_id-th operator in predict_net, change it's input_id-th input's name to the new_name. It also does automatic re-route and ch
detectron2/detectron2/export/shared.py:668
↓ 1 callersFunctionresample_confidences_to_bbox
Resamples confidences for the given bounding box Args: predictor_output (DensePoseChartPredictorOutput): DensePose predictor
detectron2/projects/DensePose/densepose/converters/chart_output_to_chart_result.py:103
↓ 1 callersFunctionresample_data
Args: z (:obj: `torch.Tensor`): tensor of size (N,C,H,W) with data to be resampled bbox_xywh_src (:obj: `torch.Tensor
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:197
↓ 1 callersMethodreset
(self)
detectron2/detectron2/evaluation/evaluator.py:82
↓ 1 callersMethodreset
(self)
detectron2/detectron2/evaluation/coco_evaluation.py:154
↓ 1 callersMethodreset_data_loader
Delete and replace the current data loader with a new one, which will be created by calling `data_loader_builder` (without argument).
detectron2/detectron2/engine/train_loop.py:348
↓ 1 callersMethodreset_parameters
Reset embeddings to random values
detectron2/projects/DensePose/densepose/modeling/cse/vertex_direct_embedder.py:35
↓ 1 callersMethodreset_parameters
(self)
detectron2/projects/DensePose/densepose/modeling/cse/vertex_feature_embedder.py:48
↓ 1 callersMethodreset_parameters
(self)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:98
↓ 1 callersFunctionresize_max_res_torch
Resize image to limit maximum edge length while keeping aspect ratio. Args: img (`torch.Tensor`): Image tensor to be res
distillanydepth/utils/image_util.py:133
↓ 1 callersFunctionrotate_box_inverse
rotated_box is a N * 4 array of [x0, y0, x1, y1] boxes When a bbox is rotated, it gets bigger, because we need to surround the tilted bbox
detectron2/projects/DensePose/densepose/modeling/test_time_augmentation.py:187
↓ 1 callersMethodrun
(self)
detectron2/demo/predictor.py:149
↓ 1 callersFunctionrun_and_save_graph
Run the caffe2 model on given inputs, recording the shape and draw the graph. predict_net/init_net: caffe2 model. tensor_inputs: a list
detectron2/detectron2/export/caffe2_export.py:171
↓ 1 callersMethodrun_on_image
Args: image (np.ndarray): an image of shape (H, W, C) (in BGR order). This is the format used by OpenCV.
detectron2/demo/predictor.py:37
↓ 1 callersMethodrun_step
(self)
detectron2/detectron2/engine/train_loop.py:192
↓ 1 callersFunctionsample_random_indices
Samples `n_samples` random indices from range `[0..n_indices - 1]`. If `n_indices` is smaller than `n_samples`, returns `None` meaning that a
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:428
↓ 1 callersFunctionsave_graph_base
(net, file_name, graph_name="net", op_only=True, blob_rename_func=None)
detectron2/detectron2/export/shared.py:534
↓ 1 callersFunctionscale_boxes
Args: boxes (tensor): A tensor of shape (B, 4) representing B boxes with 4 coords representing the corners x0, y0, x1, y1,
detectron2/detectron2/layers/mask_ops.py:237
↓ 1 callersFunctionselect_proposals_with_visible_keypoints
Args: proposals (list[Instances]): a list of N Instances, where N is the number of images. Returns: proposals: o
detectron2/detectron2/modeling/roi_heads/roi_heads.py:78
↓ 1 callersFunctionseparate_coco_semantic_from_panoptic
Create semantic segmentation annotations from panoptic segmentation annotations, to be used by PanopticFPN. It maps all thing categories
detectron2/datasets/prepare_panoptic_fpn.py:29
↓ 1 callersMethodsetDetParams
(self)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1257
↓ 1 callersMethodsetKpParams
(self)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1273
↓ 1 callersMethodsetUvParams
(self)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1284
↓ 1 callersFunctionset_caffe2_compatible_tensor_mode
(model, enable=True)
detectron2/detectron2/export/caffe2_modeling.py:99
↓ 1 callersFunctionset_default_dataset_from_list_serialize_method
Context manager for using custom serialize function when creating DatasetFromList
detectron2/detectron2/data/common.py:193
↓ 1 callersMethodset_low_quality_matches_
Produce additional matches for predictions that have only low-quality matches. Specifically, for each ground-truth G find the set of
detectron2/detectron2/modeling/matcher.py:106
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/tools/plain_train_net.py:172
↓ 1 callersFunctionsetup
(args)
detectron2/tools/visualize_data.py:17
↓ 1 callersFunctionsetup
(args)
detectron2/tools/analyze_model.py:25
← previousnext →1,401–1,500 of 3,350, ranked by callers