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

↓ 2 callersMethodhue
(self, img)
detectron2/projects/PointRend/point_rend/color_augmentation.py:91
↓ 2 callersMethodinference
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:465
↓ 2 callersMethodinstance_masks
(self)
detectron2/detectron2/utils/visualizer.py:220
↓ 2 callersFunctioninstances_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/detectron2/evaluation/coco_evaluation.py:392
↓ 2 callersMethodinterp2d
Bilinear interpolation method to be used for upscaling Args: tensor_nchw (tensor): tensor of shape (N, C, H, W)
detectron2/projects/DensePose/densepose/modeling/predictors/cse.py:47
↓ 2 callersMethodinverse
The inverse is to rotate it back with expand, and crop to get the original shape.
detectron2/detectron2/data/transforms/transform.py:235
↓ 2 callersFunctionis_fx_tracing
Returns whether execution is currently in Torch FX tracing mode
detectron2/detectron2/utils/tracing.py:30
↓ 2 callersMethodis_rotated
(box_list)
detectron2/detectron2/evaluation/rotated_coco_evaluation.py:17
↓ 2 callersMethodlatest_with_smoothing_hint
Similar to :meth:`latest`, but the returned values are either the un-smoothed original latest value, or a median of the given
detectron2/detectron2/utils/events.py:452
↓ 2 callersFunctionlaunch
(main_func, nprocs, args=())
detectron2/projects/DensePose/tests/test_tensor_storage.py:102
↓ 2 callersFunctionlink_val100
(dir_full, dir_100)
detectron2/datasets/prepare_panoptic_fpn.py:98
↓ 2 callersMethodlist
List all registered datasets. Returns: list[str]
detectron2/detectron2/data/catalog.py:60
↓ 2 callersMethodload
Load data from a file Args: fpath (str): file path to load data from
detectron2/projects/DensePose/densepose/modeling/cse/vertex_direct_embedder.py:53
↓ 2 callersMethodload
Load data from a file Args: fpath (str): file path to load data from
detectron2/projects/DensePose/densepose/modeling/cse/vertex_feature_embedder.py:64
↓ 2 callersFunctionload_cityscapes_instances
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
detectron2/detectron2/data/datasets/cityscapes.py:53
↓ 2 callersFunctionload_cityscapes_semantic
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
detectron2/detectron2/data/datasets/cityscapes.py:95
↓ 2 callersFunctionload_coco_json
Loads a JSON file with annotations in COCO instances format. Replaces `detectron2.data.datasets.coco.load_coco_json` to handle metadata i
detectron2/projects/DensePose/densepose/data/datasets/coco.py:349
↓ 2 callersFunctionload_coco_panoptic_json
Args: image_dir (str): path to the raw dataset. e.g., "~/coco/train2017". gt_dir (str): path to the raw annotations. e.g., "~/coc
detectron2/detectron2/data/datasets/coco_panoptic.py:14
↓ 2 callersFunctionload_lvis_json
Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annotation file. image_root
detectron2/detectron2/data/datasets/lvis.py:41
↓ 2 callersFunctionload_mesh_auxiliary_data
( fpath: str, device: Optional[torch.device] = None )
detectron2/projects/DensePose/densepose/structures/mesh.py:146
↓ 2 callersFunctionload_mesh_data
( mesh_fpath: str, field: str, device: Optional[torch.device] = None )
detectron2/projects/DensePose/densepose/structures/mesh.py:136
↓ 2 callersFunctionload_mesh_symmetry
( symmetry_fpath: str, device: Optional[torch.device] = None )
detectron2/projects/DensePose/densepose/structures/mesh.py:156
↓ 2 callersFunctionload_proposals_into_dataset
Load precomputed object proposals into the dataset. The proposal file should be a pickled dict with the following keys: - "ids": list[i
detectron2/detectron2/data/build.py:111
↓ 2 callersMethodlosses
(self, predictions, targets, weights=None)
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:347
↓ 2 callersFunctionmake_2tuple
(x)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:56
↓ 2 callersFunctionmake_2tuple
(x)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:135
↓ 2 callersFunctionmake_2tuple
(x)
distillanydepth/modeling/backbones/vit/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
distillanydepth/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_backbone_default
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11],
distillanydepth/midas/backbones/utils.py:144
↓ 2 callersMethodmake_default_stages
Created list of ResNet stages from pre-defined depth (one of 18, 34, 50, 101, 152). If it doesn't create the ResNet variant you need,
detectron2/detectron2/modeling/backbone/resnet.py:548
↓ 2 callersFunctionmake_mask
Makes a donut shaped binary mask.
detectron2/tests/data/test_coco.py:14
↓ 2 callersFunctionmask_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/detectron2/modeling/roi_heads/mask_head.py:33
↓ 2 callersMethodmask_to_polygons
(self, mask)
detectron2/detectron2/utils/visualizer.py:119
↓ 2 callersFunctionmaybe_to_cpu
(x)
detectron2/detectron2/utils/memory.py:57
↓ 2 callersFunctionmerge_branch_instances
Merge detection results from different branches of TridentNet. Return detection results by applying non-maximum suppression (NMS) on bounding
detectron2/projects/TridentNet/tridentnet/trident_rcnn.py:8
↓ 2 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:550
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
detectron2/detectron2/utils/visualizer.py:196
↓ 2 callersMethodnormalize_angles
Restrict angles to the range of [-180, 180) degrees
detectron2/detectron2/structures/rotated_boxes.py:248
↓ 2 callersFunctionoutput
(vis, fname)
detectron2/tools/visualize_data.py:58
↓ 2 callersMethodpack
Pack data into tensors
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:257
↓ 2 callersFunctionpairwise_intersection
Given two lists of boxes of size N and M, compute the intersection area between __all__ N x M pairs of boxes. The box order must be (xmin
detectron2/detectron2/structures/boxes.py:312
↓ 2 callersFunctionpatch
recursively (post-order) update all modules with the target type and its subclasses, make a initialization/composition/inheritance/... via th
detectron2/detectron2/export/caffe2_patch.py:60
↓ 2 callersFunctionpoint_sample_fine_grained_features
Get features from feature maps in `features_list` that correspond to specific point coordinates inside each bounding box from `boxes`.
detectron2/projects/PointRend/point_rend/point_features.py:146
↓ 2 callersMethodprepare_attn_bias
(self, shape)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:1141
↓ 2 callersFunctionprint_instances_class_histogram
Args: dataset_dicts (list[dict]): list of dataset dicts. class_names (list[str]): list of class names (zero-indexed).
detectron2/detectron2/data/build.py:165
↓ 2 callersMethodprocess
Process the pair of inputs and outputs. If they contain batches, the pairs can be consumed one-by-one using `zip`: .. code-b
detectron2/detectron2/evaluation/evaluator.py:33
↓ 2 callersMethodproduce_fake_losses
( self, densepose_predictor_outputs: Any, embedder: nn.Module )
detectron2/projects/DensePose/densepose/modeling/losses/cse.py:97
↓ 2 callersFunctionrandom_boxes
(mean_box, stdev, N, maxsize)
detectron2/tests/layers/test_roi_align.py:157
↓ 2 callersFunctionrandom_rotated_boxes
(mean_box, std_length, std_angle, N)
detectron2/tests/modeling/test_box2box_transform.py:46
↓ 2 callersFunctionreduce_param_groups
(params: List[Dict[str, Any]])
detectron2/detectron2/solver/build.py:254
↓ 2 callersFunctionregister_custom_op_onnx_export
Register `symbolic_fn` as PyTorch's symbolic `opname`-`opset_version` for ONNX export. The registration is performed only when current PyTorc
detectron2/detectron2/utils/testing.py:194
↓ 2 callersFunctionresample_coarse_segm_tensor_to_bbox
Resample coarse segmentation tensor to the given bounding box and derive labels for each pixel of the bounding box Args: coarse_
detectron2/projects/DensePose/densepose/converters/segm_to_mask.py:15
↓ 2 callersFunctionresample_fine_and_coarse_segm_tensors_to_bbox
Resample fine and coarse segmentation tensors to the given bounding box and derive labels for each pixel of the bounding box Args:
detectron2/projects/DensePose/densepose/converters/segm_to_mask.py:34
↓ 2 callersFunctionresample_uv_tensors_to_bbox
Resamples U and V coordinate estimates for the given bounding box Args: u (tensor [1, C, H, W] of float): U coordinates v (t
detectron2/projects/DensePose/densepose/converters/chart_output_to_chart_result.py:20
↓ 2 callersFunctionresample_uv_to_bbox
Resamples U and V coordinate estimates for the given bounding box Args: predictor_output (DensePoseChartPredictorOutput): DensePose
detectron2/projects/DensePose/densepose/converters/chart_output_to_chart_result.py:50
↓ 2 callersMethodrun_on_video
Visualizes predictions on frames of the input video. Args: video (cv2.VideoCapture): a :class:`VideoCapture` object, who
detectron2/demo/predictor.py:76
↓ 2 callersFunctionsample_point_labels
Sample point labels from ground truth mask given point_coords. Args: instances (list[Instances]): A list of N Instances, where N is
detectron2/projects/PointRend/point_rend/point_features.py:219
↓ 2 callersMethodsaturation
(self, img)
detectron2/projects/PointRend/point_rend/color_augmentation.py:82
↓ 2 callersMethodsave
Args: filepath (str): a string that contains the absolute path, including the file name, where the visualized ima
detectron2/detectron2/utils/visualizer.py:302
↓ 2 callersMethodsave_graph
Save the graph as SVG format. Args: output_file (str): a SVG file inputs: optional inputs given to the model
detectron2/detectron2/export/api.py:175
↓ 2 callersMethodsave_protobuf
Save the model as caffe2's protobuf format. It saves the following files: * "model.pb": definition of the graph. Can be
detectron2/detectron2/export/api.py:149
↓ 2 callersMethodscale
Scale the box with horizontal and vertical scaling factors
detectron2/detectron2/structures/boxes.py:271
↓ 2 callersMethodsemantic_masks
(self)
detectron2/detectron2/utils/visualizer.py:212
↓ 2 callersMethodset
(self, name, value)
detectron2/detectron2/export/c10.py:76
↓ 2 callersFunctionsetup
Create configs and perform basic setups.
detectron2/projects/TensorMask/train_net.py:29
↓ 2 callersFunctionsetup
(app)
detectron2/docs/conf.py:384
↓ 2 callersMethodstate_dict
(self)
detectron2/detectron2/engine/hooks.py:365
↓ 2 callersFunctionsubsample_labels
Return `num_samples` (or fewer, if not enough found) random samples from `labels` which is a mixture of positives & negatives. It will tr
detectron2/detectron2/modeling/sampling.py:9
↓ 2 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this function can *only* be applied on the default parameter setting
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1031
↓ 2 callersFunctionsynchronize
Helper function to synchronize (barrier) among all processes when using distributed training
detectron2/detectron2/utils/comm.py:106
↓ 2 callersFunctiontemp_image
(height, width)
detectron2/projects/DensePose/tests/test_image_list_dataset.py:15
↓ 2 callersMethodtest
(self)
detectron2/tests/data/test_coco.py:78
↓ 2 callersMethodtest_with_TTA
(cls, cfg, model)
detectron2/tools/train_net.py:95
↓ 2 callersMethodto
(self, device: torch.device)
detectron2/detectron2/structures/rotated_boxes.py:232
↓ 2 callersMethodto
(self, device)
detectron2/projects/DensePose/densepose/structures/list.py:33
↓ 2 callersMethodto
(self, device)
detectron2/projects/DensePose/densepose/structures/data_relative.py:77
↓ 2 callersMethodto_bitmasks
Args: see documentation of :func:`paste_masks_in_image`.
detectron2/detectron2/structures/masks.py:520
↓ 2 callersMethodto_d2_instances_list
Convert InstancesList to List[Instances]. The input `instances_list` can also be a List[Instances], in this case this method is a non
detectron2/detectron2/export/c10.py:110
↓ 2 callersFunctionuncompressed_rle
(mask)
detectron2/tests/data/test_coco.py:29
↓ 2 callersFunctionunregister_custom_op_onnx_export
Unregister PyTorch's symbolic `opname`-`opset_version` for ONNX export. The un-registration is performed only when PyTorch's version is < `mi
detectron2/detectron2/utils/testing.py:208
↓ 2 callersFunctionupgrade_config
Upgrade a config from its current version to a newer version. Args: cfg (CfgNode): to_version (int): defaults to the latest
detectron2/detectron2/config/compat.py:33
↓ 2 callersFunctionverbosity_to_level
(verbosity)
detectron2/projects/DensePose/densepose/utils/logger.py:7
↓ 2 callersMethodverify_rpn
(self, conv_dims, expected_conv_dims)
detectron2/tests/modeling/test_rpn.py:69
↓ 2 callersMethodvisualize
(self, image_bgr, boxes_xywh)
detectron2/projects/DensePose/densepose/vis/bounding_box.py:11
↓ 2 callersFunctionvit_large
(patch_size=14, checkpoint=None, **kwargs)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:1362
↓ 2 callersFunctionvit_large_reg
(patch_size=14, num_register_tokens=4, checkpoint=None, tuning_mode=None, **kwargs)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:1256
↓ 2 callersFunctionwindow_unpartition
Window unpartition into original sequences and removing padding. Args: x (tensor): input tokens with [B * num_windows, window_size, w
detectron2/detectron2/modeling/backbone/utils.py:40
↓ 2 callersFunctionwrap_shuffle
(module_type, method)
detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_shuffle.py:58
↓ 2 callersMethodwrite_metrics
Args: loss_dict (dict): dict of scalar losses data_time (float): time taken by the dataloader iteration p
detectron2/detectron2/engine/train_loop.py:376
↓ 1 callersFunctionBilinearInterpolation
(tensor_in, up_scale)
detectron2/detectron2/export/shared.py:47
↓ 1 callersFunctionBuildSortedDetectionList
Helper function to Accumulate() Considers the evaluation results applicable to a particular category, area range, and max_detections parameter setting
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:223
↓ 1 callersFunctionComputePrecisionRecallCurve
Helper function to Accumulate() Compute a precision recall curve given a sorted list of detected instances encoded in evaluations, evaluation_indices,
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:284
↓ 1 callersFunctionDINOv2
(model_name)
distillanydepth/depth_anything_v2/dinov2.py:398
↓ 1 callersMethodInstanceAnnotation
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.h:18
↓ 1 callersFunctionMatchDetectionsToGroundTruth
For each IOU threshold, greedily match each detected instance to a ground truth instance (if possible) and store the results
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:61
↓ 1 callersFunctionROIAlignRotated_backward_cpu
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:466
↓ 1 callersFunctionROIAlignRotated_forward_cpu
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:418
↓ 1 callersFunctionSortInstancesByDetectionScore
Sort detections from highest score to lowest, such that detection_instances[detection_sorted_indices[t]] >= detection_instances[detection_sorted_indic
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:18
↓ 1 callersFunctionSortInstancesByIgnore
Partition the ground truth objects based on whether or not to ignore them based on area
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:34
↓ 1 callersMethod__getattr__
(self, name)
distillanydepth/utils/mmcv_config.py:620
← previousnext →601–700 of 3,350, ranked by callers