Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Westlake-AGI-Lab/Distill-Any-Depth
/ functions
Functions
3,350 in github.com/Westlake-AGI-Lab/Distill-Any-Depth
⨍
Functions
3,350
◇
Types & classes
677
↳
Endpoints
2
↓ 1 callers
Function
get_version
()
detectron2/setup.py:17
↓ 1 callers
Function
get_xyz_vertex_embedding
(mesh_name: str, device: torch.device)
detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py:24
↓ 1 callers
Method
grid_anchors_with_unit_lengths_and_indexes
(self, grid_sizes)
detectron2/projects/TensorMask/tensormask/arch.py:235
↓ 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/detectron2/export/shared.py:569
↓ 1 callers
Function
group_pixels
Gives each pixel in the image an instance id. Args: center_points: A Tensor of shape [K, 2] where K is the number of center points.
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py:44
↓ 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/detectron2/config/compat.py:82
↓ 1 callers
Function
has_annotations
(instance: Instance)
detectron2/projects/DensePose/densepose/data/build.py:153
↓ 1 callers
Function
has_dynamic_axes
Return True when all ONNX input/output have only dynamic axes for all ranks
detectron2/detectron2/utils/testing.py:179
↓ 1 callers
Method
has_embeddings
(self, mesh_name: str)
detectron2/projects/DensePose/densepose/modeling/cse/embedder.py:129
↓ 1 callers
Function
has_inference_based_loaders
Returns True, if at least one inferense-based loader must be instantiated for training
detectron2/projects/DensePose/densepose/data/build.py:683
↓ 1 callers
Function
has_only_crowd_anotations
(instance: Instance)
detectron2/projects/DensePose/densepose/data/build.py:156
↓ 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/detectron2/structures/keypoints.py:165
↓ 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/detectron2/export/shared.py:861
↓ 1 callers
Method
image2tensor
(self, raw_image, input_size=518)
distillanydepth/depth_anything_v2/dpt.py:236
↓ 1 callers
Function
import_modules_from_strings
Import modules from the given list of strings. Args: imports (list | str | None): The given module names to be imported. allow_fa
distillanydepth/utils/mmcv_config.py:86
↓ 1 callers
Function
indent
(level, s)
detectron2/detectron2/export/torchscript_patch.py:105
↓ 1 callers
Method
inference
Run inference on the given inputs. Args: batched_inputs (list[dict]): same as in :meth:`forward` do_postproc
detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py:140
↓ 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/detectron2/evaluation/evaluator.py:222
↓ 1 callers
Method
inference_func
(model, image)
detectron2/tests/test_export_torchscript.py:102
↓ 1 callers
Method
inference_single_image
Identical to :meth:`RetinaNet.inference_single_image.
detectron2/detectron2/modeling/meta_arch/fcos.py:279
↓ 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/detectron2/modeling/meta_arch/retinanet.py:275
↓ 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/projects/TensorMask/tensormask/arch.py:675
↓ 1 callers
Method
init_weights
(self)
distillanydepth/modeling/backbones/vit/dinov2.py:172
↓ 1 callers
Method
init_weights
(self)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:690
↓ 1 callers
Method
init_weights
(self)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:1020
↓ 1 callers
Method
init_weights
(self)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:898
↓ 1 callers
Method
init_weights
(self)
distillanydepth/depth_anything_v2/dinov2.py:172
↓ 1 callers
Method
inside_box
Args: box_size (height, width): Size of the reference box. boundary_threshold (int): Boxes that extend beyond the ref
detectron2/detectron2/structures/boxes.py:245
↓ 1 callers
Method
instances_to_json
(self, instances, img_id)
detectron2/detectron2/evaluation/rotated_coco_evaluation.py:126
↓ 1 callers
Method
interpolate_pos_encoding
(self, x, w, h)
distillanydepth/modeling/backbones/vit/dinov2.py:179
↓ 1 callers
Method
interpolate_pos_encoding
(self, x, w, h)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:695
↓ 1 callers
Method
interpolate_pos_encoding
(self, x, w, h)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:1030
↓ 1 callers
Method
interpolate_pos_encoding
(self, x, w, h)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:905
↓ 1 callers
Method
interpolate_pos_encoding
(self, x, w, h)
distillanydepth/depth_anything_v2/dinov2.py:179
↓ 1 callers
Function
invoke_main
()
detectron2/tools/plain_train_net.py:207
↓ 1 callers
Function
invoke_main
()
detectron2/tools/lazyconfig_train_net.py:128
↓ 1 callers
Function
invoke_main
()
detectron2/tools/lightning_train_net.py:237
↓ 1 callers
Function
invoke_main
()
detectron2/tools/train_net.py:153
↓ 1 callers
Function
invoke_main
()
detectron2/projects/TridentNet/train_net.py:57
↓ 1 callers
Function
invoke_main
()
detectron2/projects/TensorMask/train_net.py:60
↓ 1 callers
Function
invoke_main
()
detectron2/projects/Panoptic-DeepLab/train_net.py:163
↓ 1 callers
Function
invoke_main
()
detectron2/projects/PointSup/train_net.py:105
↓ 1 callers
Function
invoke_main
()
detectron2/projects/DensePose/train_net.py:65
↓ 1 callers
Function
invoke_main
()
detectron2/projects/DeepLab/train_net.py:126
↓ 1 callers
Function
invoke_main
()
detectron2/projects/PointRend/train_net.py:137
↓ 1 callers
Function
iou_between_full_image_bit_masks
(a, b)
detectron2/tests/layers/test_mask_ops.py:29
↓ 1 callers
Function
is_aten_to_device_only
(args)
detectron2/detectron2/utils/testing.py:313
↓ 1 callers
Function
is_fx_tracing_legacy
Returns a bool indicating whether torch.fx is currently symbolically tracing a module. Can be useful for gating module logic that is incompat
detectron2/detectron2/utils/tracing.py:22
↓ 1 callers
Function
is_relative_local_path
(path: str)
detectron2/projects/DensePose/densepose/data/utils.py:11
↓ 1 callers
Function
iter_annotations
()
detectron2/datasets/prepare_panoptic_fpn.py:62
↓ 1 callers
Function
iter_benchmark
Benchmark an iterator/iterable for `num_iter` iterations with an extra `warmup` iterations of warmup. End early if `max_time_seconds` tim
detectron2/detectron2/data/benchmark.py:35
↓ 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/detectron2/modeling/roi_heads/keypoint_head.py:99
↓ 1 callers
Function
keypoint_rcnn_loss
Arguments: pred_keypoint_logits (Tensor): A tensor of shape (N, K, S, S) where N is the total number of instances in the batc
detectron2/detectron2/modeling/roi_heads/keypoint_head.py:40
↓ 1 callers
Method
label_anchors
Same interface as :meth:`RetinaNet.label_anchors`, but implemented with FCOS anchor matching rule. Unlike RetinaNet, there a
detectron2/detectron2/modeling/meta_arch/fcos.py:154
↓ 1 callers
Method
label_anchors
Args: anchors (list[Boxes]): A list of #feature level Boxes. The Boxes contains anchors of this image on the spec
detectron2/detectron2/modeling/meta_arch/retinanet.py:213
↓ 1 callers
Method
label_and_sample_anchors
Args: anchors (list[Boxes]): anchors for each feature map. gt_instances: the ground-truth instances for each image.
detectron2/detectron2/modeling/proposal_generator/rpn.py:307
↓ 1 callers
Method
layers
Neural network layers that makes predictions from regional input features.
detectron2/detectron2/modeling/roi_heads/keypoint_head.py:207
↓ 1 callers
Method
layers
Neural network layers that makes predictions from input features.
detectron2/detectron2/modeling/roi_heads/mask_head.py:204
↓ 1 callers
Method
layers
(self, features)
detectron2/detectron2/modeling/meta_arch/semantic_seg.py:246
↓ 1 callers
Method
layers
(self, features)
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:536
↓ 1 callers
Method
layers
(self, features)
detectron2/projects/DeepLab/deeplab/semantic_seg.py:237
↓ 1 callers
Function
list_keyframes
Traverses all keyframes of a video file. Returns a list of keyframe timestamps. Timestamps are counts in timebase units. Args: vi
detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py:23
↓ 1 callers
Function
load_cityscapes_panoptic
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_panoptic.py:51
↓ 1 callers
Function
load_for_dataset
(dataset_name)
detectron2/projects/DensePose/densepose/utils/transform.py:10
↓ 1 callers
Function
load_from_cfg
(cfg)
detectron2/projects/DensePose/densepose/utils/transform.py:16
↓ 1 callers
Method
load_from_model_checkpoint
(self, fpath: str, prefix: Optional[str] = None)
detectron2/projects/DensePose/densepose/modeling/cse/embedder.py:95
↓ 1 callers
Function
load_lvis_json
Loads a JSON file with annotations in LVIS instances format. Replaces `detectron2.data.datasets.coco.load_lvis_json` to handle metadata i
detectron2/projects/DensePose/densepose/data/datasets/lvis.py:170
↓ 1 callers
Function
load_model_by_name
(arch_name, checkpoint_path, device)
tools/testers/infer.py:39
↓ 1 callers
Method
load_protobuf
Args: dir (str): a directory used to save Caffe2Model with :meth:`save_protobuf`. The files "mode
detectron2/detectron2/export/api.py:198
↓ 1 callers
Function
load_voc_instances
Load Pascal VOC detection annotations to Detectron2 format. Args: dirname: Contain "Annotations", "ImageSets", "JPEGImages"
detectron2/detectron2/data/datasets/pascal_voc.py:25
↓ 1 callers
Function
log_every_n_seconds
Log no more than once per n seconds. Args: lvl (int): the logging level msg (str): n (int): name (str): name
detectron2/detectron2/utils/logger.py:215
↓ 1 callers
Method
losses
(self, predictions, targets)
detectron2/detectron2/modeling/meta_arch/semantic_seg.py:255
↓ 1 callers
Method
losses
Args: anchors (list[Boxes]): a list of #feature level Boxes gt_labels, gt_boxes: see output of :meth:`RetinaNet.label
detectron2/detectron2/modeling/meta_arch/retinanet.py:160
↓ 1 callers
Method
losses
Return the losses from a set of RPN predictions and their associated ground-truth. Args: anchors (list[Boxes or RotatedB
detectron2/detectron2/modeling/proposal_generator/rpn.py:366
↓ 1 callers
Method
losses
Args: For `gt_class_info`, `gt_delta_info`, `gt_mask_info` and `num_fg` parameters, see :meth:`TensorMask.get_gro
detectron2/projects/TensorMask/tensormask/arch.py:416
↓ 1 callers
Method
losses
(self, predictions, targets)
detectron2/projects/DeepLab/deeplab/semantic_seg.py:254
↓ 1 callers
Method
losses
(self, predictions, targets)
detectron2/projects/DeepLab/deeplab/semantic_seg.py:342
↓ 1 callers
Function
lvis_test_fun
(dataset_info)
detectron2/projects/DensePose/tests/test_dataset_loaded_annotations.py:78
↓ 1 callers
Function
main
()
detectron2/tools/benchmark.py:175
↓ 1 callers
Function
main
()
detectron2/tools/visualize_json_results.py:41
↓ 1 callers
Function
main
()
detectron2/tools/visualize_data.py:47
↓ 1 callers
Function
main
()
detectron2/tools/analyze_model.py:116
↓ 1 callers
Function
main
(args)
detectron2/tools/lightning_train_net.py:187
↓ 1 callers
Function
main
()
detectron2/tools/deploy/export_model.py:179
↓ 1 callers
Function
main
()
detectron2/detectron2/utils/collect_env.py:237
↓ 1 callers
Function
main
()
detectron2/detectron2/data/datasets/lvis.py:216
↓ 1 callers
Function
main
()
detectron2/detectron2/data/datasets/coco.py:520
↓ 1 callers
Function
main
()
detectron2/detectron2/data/datasets/cityscapes.py:281
↓ 1 callers
Function
main
()
detectron2/projects/DensePose/apply_net.py:342
↓ 1 callers
Function
main
()
detectron2/projects/DensePose/query_db.py:239
↓ 1 callers
Function
main
()
detectron2/demo/demo.py:93
↓ 1 callers
Function
make_dataset_dicts
Returns a list of dicts that represents a single COCO data point for object detection. The single instance given by `mask` is represented by
detectron2/tests/data/test_coco.py:45
↓ 1 callers
Function
make_model_inputs
(image, instances=None)
detectron2/projects/DensePose/tests/test_model_e2e.py:12
↓ 1 callers
Function
make_trident_stage
Create a resnet stage by creating many blocks for TridentNet.
detectron2/projects/TridentNet/tridentnet/trident_backbone.py:119
↓ 1 callers
Function
match
(a, b)
detectron2/detectron2/checkpoint/c2_model_loading.py:237
↓ 1 callers
Function
matched_pairwise_iou
Compute pairwise intersection over union (IOU) of two sets of matched boxes that have the same number of boxes. Similar to :func:`pairwis
detectron2/detectron2/structures/boxes.py:400
↓ 1 callers
Function
maybe_filter_and_map_categories_cocoapi
(dataset_name, coco_api)
detectron2/projects/DensePose/densepose/data/datasets/coco.py:314
↓ 1 callers
Function
maybe_filter_categories_cocoapi
(dataset_name, coco_api)
detectron2/projects/DensePose/densepose/data/datasets/coco.py:285
↓ 1 callers
Function
merge_semantic_and_instance
Post-processing for panoptic segmentation, by merging semantic segmentation label and class agnostic instance segmentation label. Arg
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py:111
↓ 1 callers
Function
merge_to_panoptic
Create dataset dicts for panoptic segmentation, by merging two dicts using "file_name" field to match their entries. Args: detec
detectron2/detectron2/data/datasets/coco_panoptic.py:168
← previous
next →
1,301–1,400 of 3,350, ranked by callers