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 callersFunctioncheck_file_exist
(filename, msg_tmpl='file "{}" does not exist')
distillanydepth/utils/mmcv_config.py:81
↓ 1 callersFunctioncheck_if_dynamo_compiling
()
detectron2/detectron2/layers/wrappers.py:42
↓ 1 callersMethodclear_histograms
Delete all the stored histograms for visualization. This should be called after histograms are written to tensorboard.
detectron2/detectron2/utils/events.py:552
↓ 1 callersMethodclear_images
Delete all the stored images for visualization. This should be called after images are written to tensorboard.
detectron2/detectron2/utils/events.py:545
↓ 1 callersMethodclone
Clone the RotatedBoxes. Returns: RotatedBoxes
detectron2/detectron2/structures/rotated_boxes.py:223
↓ 1 callersFunctioncoco_test_fun
(dataset_info)
detectron2/projects/DensePose/tests/test_dataset_loaded_annotations.py:66
↓ 1 callersFunctioncocofy_lvis
Filter LVIS instance segmentation annotations to remove all categories that are not included in COCO. The new json files can be used to evalu
detectron2/datasets/prepare_cocofied_lvis.py:96
↓ 1 callersFunctioncollect_torch_env
()
detectron2/detectron2/utils/collect_env.py:17
↓ 1 callersFunctioncombine_semantic_and_instance_outputs
Implement a simple combining logic following "combine_semantic_and_instance_predictions.py" in panopticapi to produce panoptic segmentati
detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py:184
↓ 1 callersMethodcomputeDPIoU
(self, imgId, catId)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:379
↓ 1 callersMethodcomputeOgps_single_pair
(self, dt, gt, py, px, pt_mask)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:619
↓ 1 callersMethodcompute_ctrness_targets
(self, anchors: List[Boxes], gt_boxes: List[torch.Tensor])
detectron2/detectron2/modeling/meta_arch/fcos.py:240
↓ 1 callersMethodcompute_iou_dt_gt
(self, dt, gt, is_crowd)
detectron2/detectron2/evaluation/rotated_coco_evaluation.py:57
↓ 1 callersFunctionconstruct_init_net_from_params
Construct the init_net from params dictionary
detectron2/detectron2/export/shared.py:295
↓ 1 callersFunctioncontain_targets
(op_ssa)
detectron2/detectron2/export/shared.py:707
↓ 1 callersMethodcontext_to_image_bgr
(self, context)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:42
↓ 1 callersFunctionconvert
(input, output)
detectron2/datasets/prepare_ade20k_sem_seg.py:11
↓ 1 callersMethodconvert
Convert DensePose predictor outputs to DensePoseResult using some registered converter. Does recursive lookup for base classes, so th
detectron2/projects/DensePose/densepose/converters/to_chart_result.py:25
↓ 1 callersMethodconvert
Convert DensePose predictor outputs to DensePoseResult with confidences using some registered converter. Does recursive lookup for ba
detectron2/projects/DensePose/densepose/converters/to_chart_result.py:54
↓ 1 callersFunctionconvert_PIL_to_numpy
Convert PIL image to numpy array of target format. Args: image (PIL.Image): a PIL image format (str): the format of output i
detectron2/detectron2/data/detection_utils.py:60
↓ 1 callersFunctionconvert_basic_c2_names
Apply some basic name conversion to names in C2 weights. It only deals with typical backbone models. Args: original_keys (list[s
detectron2/detectron2/checkpoint/c2_model_loading.py:9
↓ 1 callersFunctionconvert_boxes_to_pooler_format
Convert all boxes in `box_lists` to the low-level format used by ROI pooling ops (see description under Returns). Args: box_list
detectron2/detectron2/modeling/poolers.py:72
↓ 1 callersFunctionconvert_c2_detectron_names
Map Caffe2 Detectron weight names to Detectron2 names. Args: weights (dict): name -> tensor Returns: dict: detectron2 n
detectron2/detectron2/checkpoint/c2_model_loading.py:65
↓ 1 callersFunctionconvert_to_coco_json
Converts dataset into COCO format and saves it to a json file. dataset_name must be registered in DatasetCatalog and in detectron2's standard
detectron2/detectron2/data/datasets/coco.py:455
↓ 1 callersFunctioncreate_argument_parser
()
detectron2/projects/DensePose/apply_net.py:330
↓ 1 callersFunctioncreate_argument_parser
()
detectron2/projects/DensePose/query_db.py:227
↓ 1 callersFunctioncreate_const_fill_op
Given a blob object, return the Caffe2 operator that creates this blob as constant. Currently support NumPy tensor and Caffe2 Int8Tensor.
detectron2/detectron2/export/shared.py:270
↓ 1 callersMethodcreate_context
(cls: type, args: argparse.Namespace, cfg: CfgNode)
detectron2/projects/DensePose/apply_net.py:181
↓ 1 callersMethodcreate_context
(cls: type, args: argparse.Namespace)
detectron2/projects/DensePose/query_db.py:184
↓ 1 callersMethodcreate_embed_loss
(cls, cfg: CfgNode)
detectron2/projects/DensePose/densepose/modeling/losses/cse.py:51
↓ 1 callersFunctioncreate_embedder
Create an embedder based on the provided configuration Args: embedder_spec (CfgNode): embedder configuration embedder_dim (i
detectron2/projects/DensePose/densepose/modeling/cse/embedder.py:31
↓ 1 callersFunctioncreate_extractor
Create an extractor for the provided visualizer
detectron2/projects/DensePose/densepose/vis/extractor.py:41
↓ 1 callersMethodcreate_from
(self, module)
detectron2/detectron2/export/caffe2_patch.py:38
↓ 1 callersFunctioncreate_instances
(predictions, image_size)
detectron2/tools/visualize_json_results.py:19
↓ 1 callersFunctioncreate_keypoint_hflip_indices
Args: dataset_names: list of dataset names Returns: list[int]: a list of size=#keypoints, storing the horizontally-f
detectron2/detectron2/data/detection_utils.py:524
↓ 1 callersFunctioncreate_prediction_pairs
Args: instances: predictions from current frame prev_instances: predictions from previous frame iou_all: 2D numpy array c
detectron2/detectron2/tracking/utils.py:8
↓ 1 callersFunctioncreate_video_frame_mapping
(dataset_name, dataset_dicts)
detectron2/projects/DensePose/densepose/data/datasets/coco.py:339
↓ 1 callersMethodcreate_visualization_context
(self, image_bgr: Image)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:36
↓ 1 callersFunctiondataset_id_map
(ds_id)
detectron2/tools/visualize_json_results.py:65
↓ 1 callersFunctiondecorate_cse_predictor_output_class_with_confidences
Create a new output class from an existing one by adding new attributes related to confidence estimation: - coarse_segm_confidence (tenso
detectron2/projects/DensePose/densepose/structures/cse_confidence.py:12
↓ 1 callersFunctiondecorate_predictor_output_class_with_confidences
Create a new output class from an existing one by adding new attributes related to confidence estimation: - sigma_1 (tensor) - sigma_
detectron2/projects/DensePose/densepose/structures/chart_confidence.py:12
↓ 1 callersFunctiondensepose_chart_predictions_to_dict
(instances)
detectron2/projects/DensePose/densepose/evaluation/evaluator.py:237
↓ 1 callersFunctiondensepose_chart_predictions_to_storage_dict
(instances)
detectron2/projects/DensePose/densepose/evaluation/evaluator.py:263
↓ 1 callersFunctiondensepose_cse_predictions_to_dict
(instances, embedder, class_to_mesh_name, use_storage)
detectron2/projects/DensePose/densepose/evaluation/evaluator.py:277
↓ 1 callersFunctiondensepose_inference
Splits DensePose predictor outputs into chunks, each chunk corresponds to detections on one image. Predictor output chunks are stored in `pre
detectron2/projects/DensePose/densepose/modeling/inference.py:11
↓ 1 callersMethoddevice
(self)
detectron2/detectron2/modeling/meta_arch/rcnn.py:85
↓ 1 callersMethoddevice
(self)
detectron2/detectron2/structures/keypoints.py:40
↓ 1 callersMethoddevice
(self)
detectron2/detectron2/structures/rotated_boxes.py:479
↓ 1 callersFunctiondo_train
(cfg, model, resume=False)
detectron2/tools/plain_train_net.py:113
↓ 1 callersFunctiondo_train
Args: cfg: an object with the following attributes: model: instantiate to a module dataloader.{train,test}: insta
detectron2/tools/lazyconfig_train_net.py:46
↓ 1 callersMethoddowngrade
(cls, cfg: CN)
detectron2/detectron2/config/compat.py:222
↓ 1 callersMethoddraw_and_connect_keypoints
Draws keypoints of an instance and follows the rules for keypoint connections to draw lines between appropriate keypoints. This follo
detectron2/detectron2/utils/visualizer.py:801
↓ 1 callersMethoddraw_box
Args: box_coord (tuple): a tuple containing x0, y0, x1, y1 coordinates, where x0 and y0 are the coordinates of th
detectron2/detectron2/utils/visualizer.py:911
↓ 1 callersMethoddraw_circle
Args: circle_coord (list(int) or tuple(int)): contains the x and y coordinates of the center of the circle.
detectron2/detectron2/utils/visualizer.py:1000
↓ 1 callersMethoddraw_panoptic_seg
Draw panoptic prediction annotations or results. Args: panoptic_seg (Tensor): of shape (height, width) where the values
detectron2/detectron2/utils/visualizer.py:484
↓ 1 callersMethoddraw_rotated_box_with_label
Draw a rotated box with label on its top-left corner. Args: rotated_box (tuple): a tuple containing (cnt_x, cnt_y, w, h,
detectron2/detectron2/utils/visualizer.py:945
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:64
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:143
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
distillanydepth/modeling/backbones/vit/dinov2_layers/drop_path.py:15
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
distillanydepth/depth_anything_v2/dinov2_layers/drop_path.py:15
↓ 1 callersFunctiondump_code
(prefix, mod)
detectron2/detectron2/export/torchscript.py:95
↓ 1 callersFunctiondump_dataclass
Dump a dataclass recursively into a dict that can be later instantiated. Args: obj: a dataclass object Returns: dict
detectron2/detectron2/config/instantiate.py:13
↓ 1 callersFunctionempty_input_loss_func_wrapper
(loss_func)
detectron2/detectron2/layers/wrappers.py:75
↓ 1 callersMethodencode_additional_info
Save extra metadata that will be used by inference in the output protobuf.
detectron2/detectron2/export/caffe2_modeling.py:178
↓ 1 callersMethodencode_json_sem_seg
Convert semantic segmentation to COCO stuff format with segments encoded as RLEs. See http://cocodataset.org/#format-results
detectron2/detectron2/evaluation/sem_seg_evaluation.py:232
↓ 1 callersMethodevaluate
(self)
detectron2/detectron2/evaluation/evaluator.py:90
↓ 1 callersMethodevaluate
Run per image evaluation on given images and store results in self.evalImgs_cpp, a datastructure that isn't readable from Python but
detectron2/detectron2/evaluation/fast_eval_api.py:19
↓ 1 callersMethodexecute_on_outputs
( cls: type, context: Dict[str, Any], entry: Dict[str, Any], outputs: Instances )
detectron2/projects/DensePose/apply_net.py:162
↓ 1 callersFunctionexport_caffe2_detection_model
Export a caffe2-compatible Detectron2 model to caffe2 format via ONNX. Arg: model: a caffe2-compatible version of detectron2 model,
detectron2/detectron2/export/caffe2_export.py:125
↓ 1 callersFunctionexport_caffe2_tracing
(cfg, torch_model, inputs)
detectron2/tools/deploy/export_model.py:40
↓ 1 callersMethodexport_onnx
Export the model to ONNX format. Note that the exported model contains custom ops only available in caffe2, therefore it cann
detectron2/detectron2/export/api.py:81
↓ 1 callersFunctionexport_onnx_model
Trace and export a model to onnx format. Args: model (nn.Module): inputs (tuple[args]): the model will be called by `model(*
detectron2/detectron2/export/caffe2_export.py:34
↓ 1 callersFunctionexport_scripting
(torch_model)
detectron2/tools/deploy/export_model.py:63
↓ 1 callersFunctionexport_tracing
(torch_model, inputs)
detectron2/tools/deploy/export_model.py:108
↓ 1 callersMethodextract_embedder_from_model
(cls, model: nn.Module)
detectron2/projects/DensePose/densepose/engine/trainer.py:78
↓ 1 callersMethodextract_iuv_from_quantized
(self, dt, gt, py, px, pt_mask)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:654
↓ 1 callersMethodextract_segmentation_mask
(annotation)
detectron2/projects/DensePose/densepose/structures/data_relative.py:92
↓ 1 callersMethodfake_value
Fake segmentation loss used when no suitable ground truth data was found in a batch. The loss has a value 0 and is primarily used to
detectron2/projects/DensePose/densepose/modeling/losses/segm.py:71
↓ 1 callersMethodfake_values
(self, densepose_predictor_outputs: Any, embedder: nn.Module)
detectron2/projects/DensePose/densepose/modeling/losses/embed.py:114
↓ 1 callersFunctionfast_rcnn_inference_rotated
Call `fast_rcnn_inference_single_image_rotated` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-spe
detectron2/detectron2/modeling/roi_heads/rotated_fast_rcnn.py:46
↓ 1 callersFunctionfast_rcnn_inference_single_image_rotated
Single-image inference. Return rotated bounding-box detection results by thresholding on scores and applying rotated non-maximum suppression
detectron2/detectron2/modeling/roi_heads/rotated_fast_rcnn.py:84
↓ 1 callersFunctionfetch_any_blob
(name)
detectron2/detectron2/export/shared.py:157
↓ 1 callersFunctionfilter_images_with_only_crowd_annotations
Filter out images with none annotations or only crowd annotations (i.e., images without non-crowd annotations). A common training-time pr
detectron2/detectron2/data/build.py:46
↓ 1 callersMethodfindAllClosestVertsGT
(self, gt)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1193
↓ 1 callersMethodfindAllClosestVertsUV
(self, U_points, V_points, Index_points)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1166
↓ 1 callersMethodfindClosestVertsCse
(self, embedding, py, px, mask, mesh_name)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:1184
↓ 1 callersFunctionfind_instance_center
Find the center points from the center heatmap. Args: center_heatmap: A Tensor of shape [1, H, W] of raw center heatmap output.
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py:9
↓ 1 callersFunctionfind_relative_file
(original_file, relative_import_path, level)
detectron2/detectron2/config/lazy.py:114
↓ 1 callersFunctionfind_top_rrpn_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/rrpn.py:20
↓ 1 callersFunctionfind_unused_parameters
Given a model, find parameters that do not contribute to the loss. Args: model: a model in training mode that returns losses
detectron2/detectron2/utils/analysis.py:158
↓ 1 callersFunctionfix_one
(qualname, name, obj)
detectron2/detectron2/utils/env.py:146
↓ 1 callersMethodforward
Args: x (list[Tensor]): A list of feature maps of NCHW shape, with scales matching those used to construct this m
detectron2/detectron2/modeling/poolers.py:206
↓ 1 callersMethodforward
(self, x)
detectron2/detectron2/layers/aspp.py:129
↓ 1 callersMethodforward
(self, x)
detectron2/detectron2/layers/batch_norm.py:348
↓ 1 callersMethodforward
See :class:`Res5ROIHeads.forward`.
detectron2/projects/TridentNet/tridentnet/trident_rcnn.py:60
↓ 1 callersMethodforward
(self, X)
detectron2/projects/TensorMask/tensormask/layers/swap_align2nat.py:53
↓ 1 callersMethodforward
(self, inputs)
detectron2/projects/DensePose/densepose/modeling/hrfpn.py:137
↓ 1 callersMethodforward
(self, features: List[torch.Tensor])
detectron2/projects/DensePose/densepose/modeling/roi_heads/roi_head.py:76
↓ 1 callersMethodforward
(self, x)
detectron2/projects/DensePose/densepose/modeling/roi_heads/deeplab.py:137
↓ 1 callersMethodforward
(self, x, predbox1, predbox2)
detectron2/tests/test_export_torchscript.py:220
← previousnext →1,101–1,200 of 3,350, ranked by callers