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 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
detectron2/projects/DeepLab/deeplab/build_solver.py:11
↓ 2 callersFunctionbuild_mask_head
Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`.
detectron2/detectron2/modeling/roi_heads/mask_head.py:293
↓ 2 callersFunctionbuild_roi_heads
Build ROIHeads defined by `cfg.MODEL.ROI_HEADS.NAME`.
detectron2/detectron2/modeling/roi_heads/roi_heads.py:38
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
detectron2/detectron2/engine/defaults.py:543
↓ 2 callersFunctioncaffe2_fast_rcnn_outputs_inference
equivalent to FastRCNNOutputLayers.inference
detectron2/detectron2/export/c10.py:379
↓ 2 callersFunctioncaffe2_keypoint_rcnn_inference
(use_heatmap_max_keypoint, pred_keypoint_logits, pred_instances)
detectron2/detectron2/export/c10.py:545
↓ 2 callersFunctioncaffe2_mask_rcnn_inference
equivalent to mask_head.mask_rcnn_inference
detectron2/detectron2/export/c10.py:529
↓ 2 callersFunctioncalculate_uncertainty
We estimate uncerainty as L1 distance between 0.0 and the logit prediction in 'logits' for the foreground class in `classes`. Args:
detectron2/projects/PointRend/point_rend/mask_head.py:29
↓ 2 callersMethodcat
Concatenates a list of RotatedBoxes into a single RotatedBoxes Arguments: boxes_list (list[RotatedBoxes]) Retur
detectron2/detectron2/structures/rotated_boxes.py:459
↓ 2 callersMethodcat
Args: instance_lists (list[Instances]) Returns: Instances
detectron2/detectron2/structures/instances.py:154
↓ 2 callersFunctionchw2hwc
(chw)
distillanydepth/utils/image_util.py:124
↓ 2 callersMethodcleanup_annotation
(annotation)
detectron2/projects/DensePose/densepose/structures/data_relative.py:160
↓ 2 callersMethodclose
(self)
detectron2/detectron2/utils/events.py:190
↓ 2 callersFunctioncolorize_depth_maps
Colorize depth maps.
distillanydepth/utils/image_util.py:69
↓ 2 callersFunctioncombine_detection_dataset_dicts
Load and prepare dataset dicts for training / testing Args: dataset_names (Collection[str]): a list of dataset names keep_in
detectron2/projects/DensePose/densepose/data/build.py:372
↓ 2 callersMethodcomputeOgps_single_pair_cse
( self, dt, gt, py, px, pt_mask, coarse_segm, embedding, bbox_xywh_abs )
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:689
↓ 2 callersFunctionconcat_all_gather
(input)
detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_shuffle.py:10
↓ 2 callersMethodcontrast
(self, img)
detectron2/projects/PointRend/point_rend/color_augmentation.py:77
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
detectron2/projects/DensePose/densepose/modeling/hrnet.py:26
↓ 2 callersMethodconvert_frozen_batchnorm
Convert all BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
detectron2/detectron2/layers/batch_norm.py:102
↓ 2 callersFunctionconvert_image_to_rgb
Convert an image from given format to RGB. Args: image (np.ndarray or Tensor): an HWC image format (str): the format of inpu
detectron2/detectron2/data/detection_utils.py:93
↓ 2 callersMethodcreate_boxes
(self)
detectron2/tests/structures/test_boxes.py:153
↓ 2 callersFunctioncreate_data_benchmark
(cfg, args)
detectron2/tools/benchmark.py:50
↓ 2 callersFunctioncreate_dummy_class
When a dependency of a class is not available, create a dummy class which throws ImportError when used. Args: klass (str): name
detectron2/detectron2/utils/develop.py:8
↓ 2 callersFunctioncreate_dummy_func
When a dependency of a function is not available, create a dummy function which throws ImportError when used. Args: func (str):
detectron2/detectron2/utils/develop.py:37
↓ 2 callersMethodcreate_rotation_matrix
(self, offset=0)
detectron2/detectron2/data/transforms/transform.py:223
↓ 2 callersFunctiondigit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha <
distillanydepth/utils/mmcv_config.py:40
↓ 2 callersFunctiondo_test
(cfg, model)
detectron2/tools/lazyconfig_train_net.py:35
↓ 2 callersFunctiondowngrade_config
Downgrade a config from its current version to an older version. Args: cfg (CfgNode): to_version (int): Note: A
detectron2/detectron2/config/compat.py:55
↓ 2 callersMethoddraw_panoptic_seg_predictions
( self, frame, panoptic_seg, segments_info, area_threshold=None, alpha=0.5 )
detectron2/detectron2/utils/video_visualizer.py:155
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
detectron2/detectron2/utils/visualizer.py:1128
↓ 2 callersMethoddraw_soft_mask
Args: soft_mask (ndarray): float array of shape (H, W), each value in [0, 1]. color: color of the mask. Refer to `mat
detectron2/detectron2/utils/visualizer.py:1100
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, attn_bias=
distillanydepth/modeling/backbones/vit/ViT_DINO.py:405
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, attn_bias=
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:588
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
distillanydepth/modeling/backbones/vit/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
distillanydepth/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
distillanydepth/modeling/backbones/vit/ViT_DINO.py:476
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:659
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
distillanydepth/modeling/backbones/vit/dinov2_layers/block.py:181
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
distillanydepth/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersMethodevaluate
Args: img_ids: a list of image IDs to evaluate on. Default to None for the whole dataset
detectron2/detectron2/evaluation/coco_evaluation.py:177
↓ 2 callersMethodevaluate
(self, img_ids=None)
detectron2/projects/DensePose/densepose/evaluation/evaluator.py:122
↓ 2 callersMethodexecute_on_entry
(cls: type, entry: Dict[str, Any], context: Dict[str, Any])
detectron2/projects/DensePose/query_db.py:162
↓ 2 callersMethodexport_caffe2
Export the model to Caffe2's protobuf format. The returned object can be saved with its :meth:`.save_protobuf()` method. The
detectron2/detectron2/export/api.py:65
↓ 2 callersMethodexport_torchscript
Export the model to a ``torch.jit.TracedModule`` by tracing. The returned object can be saved to a file by ``.save()``. Retu
detectron2/detectron2/export/api.py:96
↓ 2 callersMethodextract_and_check_outputs_and_boxes
(self, outputs_boxes_xywh_classes)
detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py:99
↓ 2 callersFunctionextract_data_for_mask_loss_from_matches
Extract data for mask loss from instances that contain matched GT and estimated bounding boxes. Args: proposals_targets: Iterable
detectron2/projects/DensePose/densepose/modeling/losses/mask.py:25
↓ 2 callersMethodextract_iuv_from_raw
(self, dt, gt, py, px, pt_mask)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:662
↓ 2 callersFunctionextract_packed_annotations_from_matches
( proposals_with_targets: List[Instances], accumulator: AnnotationsAccumulator )
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:420
↓ 2 callersMethodf
(batched_inputs, c2_inputs, c2_results)
detectron2/detectron2/export/caffe2_modeling.py:385
↓ 2 callersMethodfake_value
(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str)
detectron2/projects/DensePose/densepose/modeling/losses/soft_embed.py:134
↓ 2 callersMethodfake_value
(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str)
detectron2/projects/DensePose/densepose/modeling/losses/embed.py:120
↓ 2 callersFunctionfast_rcnn_inference
Call `fast_rcnn_inference_single_image` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-specific or
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:46
↓ 2 callersFunctionfast_rcnn_inference_single_image
Single-image inference. Return bounding-box detection results by thresholding on scores and applying non-maximum suppression (NMS). Args
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:118
↓ 2 callersFunctionfile2id
(folder_path, file_path)
detectron2/detectron2/data/datasets/coco.py:263
↓ 2 callersFunctionfilter_images_with_few_keypoints
Filter out images with too few number of keypoints. Args: dataset_dicts (list[dict]): annotations in Detectron2 Dataset format.
detectron2/detectron2/data/build.py:77
↓ 2 callersMethodfind_spec
(self, name, path, target=None)
detectron2/detectron2/projects/__init__.py:20
↓ 2 callersFunctionflatten
(x)
detectron2/tests/modeling/test_model_e2e.py:25
↓ 2 callersFunctionflatten_results_dict
Expand a hierarchical dict of scalars into a flat dict of scalars. If results[k1][k2][k3] = v, the returned dict will have the entry {"k1
detectron2/detectron2/evaluation/testing.py:68
↓ 2 callersMethodforward
(self, inputs: Tuple[Dict[str, torch.Tensor]])
detectron2/tools/deploy/export_model.py:88
↓ 2 callersMethodforward
Args: input: NCHW images rois: Bx6 boxes. First column is the index into N. The other 5 columns are (
detectron2/detectron2/layers/roi_align_rotated.py:72
↓ 2 callersMethodforward
(self, x: Tensor)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:183
↓ 2 callersMethodforward
(self, x: Tensor)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:286
↓ 2 callersFunctionforward_adapted_unflatten
(pretrained, x, function_name="forward_features")
distillanydepth/midas/backbones/utils.py:83
↓ 2 callersFunctionforward_default
(pretrained, x, function_name="forward_features")
distillanydepth/midas/backbones/utils.py:63
↓ 2 callersMethodforward_features
(self, x, masks=None)
distillanydepth/modeling/backbones/vit/dinov2.py:253
↓ 2 callersMethodfrom_config
(cls, cfg)
detectron2/detectron2/modeling/roi_heads/roi_heads.py:167
↓ 2 callersMethodfrom_matches
Args: packed_annotations: annotations packed into tensors, the following attributes are required:
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:106
↓ 2 callersMethodfromstring
Generate config from config str. Args: cfg_str (str): Config str. file_format (str): Config file format corresponding
distillanydepth/utils/mmcv_config.py:446
↓ 2 callersFunctiongen_args
(arg)
detectron2/tests/layers/test_roi_align.py:192
↓ 2 callersMethodgeneric_test
(self, dataset_info, n_inst, loader_fun)
detectron2/projects/DensePose/tests/test_dataset_loaded_annotations.py:48
↓ 2 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
detectron2/detectron2/modeling/backbone/utils.py:128
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
distillanydepth/modeling/backbones/vit/ViT_DINO.py:452
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:635
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
distillanydepth/modeling/backbones/vit/dinov2_layers/block.py:157
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
distillanydepth/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersMethodget_best_param_group_id
(optimizer)
detectron2/detectron2/engine/hooks.py:338
↓ 2 callersFunctionget_bootstrap_dataset_config
()
detectron2/projects/DensePose/densepose/config.py:59
↓ 2 callersMethodget_centers
Returns: The box centers in a Nx2 array of (x, y).
detectron2/detectron2/structures/boxes.py:264
↓ 2 callersFunctionget_checkpoint_url
Returns the URL to the model trained using the given config Args: config_path (str): config file name relative to detectron2's "conf
detectron2/detectron2/model_zoo/model_zoo.py:111
↓ 2 callersFunctionget_closest_vertices_mask_from_ES
Interpolate Embeddings and Segmentations to the size of a given bounding box, and compute closest vertices and the segmentation mask Arg
detectron2/projects/DensePose/densepose/modeling/cse/utils.py:40
↓ 2 callersFunctionget_code
(mod)
detectron2/detectron2/export/torchscript.py:83
↓ 2 callersFunctionget_contiguous_id_to_category_id_map
(metadata)
detectron2/projects/DensePose/densepose/data/datasets/coco.py:275
↓ 2 callersMethodget_crop_size
Args: image_size (tuple): height, width Returns: crop_size (tuple): height, width in absolute pixels
detectron2/detectron2/data/transforms/augmentation_impl.py:408
↓ 2 callersMethodget_gt_and_features
(self)
detectron2/tests/modeling/test_rpn.py:22
↓ 2 callersMethodget_image_bgr_from_context
(self, context)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:45
↓ 2 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
distillanydepth/modeling/backbones/vit/dinov2.py:297
↓ 2 callersFunctionget_metadata
Returns metadata associated with COCO DensePose datasets Args: base_path: Optional[str] Base path used to load metadata from
detectron2/projects/DensePose/densepose/data/datasets/coco.py:133
↓ 2 callersFunctionget_model_config
Load and return the configuration from the specified file (relative to the base configuration directory)
detectron2/projects/DensePose/tests/common.py:96
↓ 2 callersMethodget_output_shape
Compute the output size given input size and target short edge length.
detectron2/detectron2/data/transforms/augmentation_impl.py:181
↓ 2 callersFunctionget_pb_arg_valf
(pb, arg_name, default_val)
detectron2/detectron2/export/shared.py:179
↓ 2 callersFunctionget_point_coords_from_point_annotation
Load point coords and their corresponding labels from point annotation. Args: instances (list[Instances]): A list of N Instances, wh
detectron2/projects/PointSup/point_sup/point_utils.py:7
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
distillanydepth/midas/backbones/utils.py:127
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
detectron2/detectron2/modeling/backbone/utils.py:63
↓ 2 callersFunctionget_sample_inputs
(args)
detectron2/tools/deploy/export_model.py:154
↓ 2 callersFunctionget_sub_graph_external_input_output
Return the list of external input/output of sub-graph, each element is tuple of the name and corresponding version in predict_net. exter
detectron2/detectron2/export/shared.py:756
↓ 2 callersFunctionget_texture_atlas
(path: Optional[str])
detectron2/projects/DensePose/densepose/vis/densepose_results_textures.py:15
↓ 2 callersFunctionget_uncertain_point_coords_on_grid
Find `num_points` most uncertain points from `uncertainty_map` grid. Args: uncertainty_map (Tensor): A tensor of shape (N, 1, H, W)
detectron2/projects/PointRend/point_rend/point_features.py:119
↓ 2 callersFunctionget_uncertain_point_coords_with_randomness
Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The unceratinties are calculated for each point using 'unce
detectron2/projects/PointRend/point_rend/point_features.py:63
↓ 2 callersFunctiongrid_sample_roi_align
(input, boxes, output_size, scale, sampling_ratio)
detectron2/tests/layers/test_roi_align.py:131
← previousnext →501–600 of 3,350, ranked by callers