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 callersFunctionsetup
Create configs and perform basic setups.
detectron2/tools/lightning_train_net.py:225
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/tools/train_net.py:112
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/projects/TridentNet/train_net.py:28
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/projects/Panoptic-DeepLab/train_net.py:134
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/projects/PointSup/train_net.py:64
↓ 1 callersFunctionsetup
Setup the configuration from the specified file (relative to the base configuration directory)
detectron2/projects/DensePose/tests/common.py:118
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/projects/DeepLab/train_net.py:97
↓ 1 callersFunctionsetup
Create configs and perform basic setups.
detectron2/projects/PointRend/train_net.py:106
↓ 1 callersFunctionsetup_cfg
(args)
detectron2/tools/deploy/export_model.py:29
↓ 1 callersFunctionsetup_cfg
(args)
detectron2/demo/demo.py:23
↓ 1 callersMethodsetup_config
( cls: type, config_fpath: str, model_fpath: str, args: argparse.Namespace, opts: List[str] )
detectron2/projects/DensePose/apply_net.py:259
↓ 1 callersFunctionsetup_custom_environment
Load custom environment setup by importing a Python source file or a module, and run the setup function.
detectron2/detectron2/utils/env.py:120
↓ 1 callersFunctionsetup_dataset
(dataset_name)
detectron2/projects/DensePose/query_db.py:218
↓ 1 callersFunctionsetup_environment
Perform environment setup work. The default setup is a no-op, but this function allows the user to specify a Python source file or a module in
detectron2/detectron2/utils/env.py:98
↓ 1 callersFunctionshort_name
(x)
detectron2/detectron2/data/build.py:188
↓ 1 callersMethodshutdown
(self)
detectron2/demo/predictor.py:214
↓ 1 callersMethodsigmoid_cross_entropy_loss
Args: pred_class_logits: shape (N, K+1), scores for each of the N box. Each row contains the scores for K object cate
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:386
↓ 1 callersFunctionslice_if_not_none
(data, item)
detectron2/projects/DensePose/densepose/structures/cse_confidence.py:45
↓ 1 callersFunctionstem_b4_transpose
Modification of https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/levit.py: stem_b16 such that ConvTranspose2
distillanydepth/midas/backbones/levit.py:86
↓ 1 callersMethodtest
Evaluate the given model. The given model is expected to already contain weights to evaluate. Args: cfg (CfgNode
detectron2/detectron2/engine/defaults.py:581
↓ 1 callersMethodtest_batched_nms_rotated_0_degree_cpu
(self, device="cpu")
detectron2/tests/layers/test_nms_rotated.py:73
↓ 1 callersMethodtest_fast_rcnn_empty_batch
(self, device="cpu")
detectron2/tests/modeling/test_fast_rcnn.py:47
↓ 1 callersFunctiontest_nccl_ops
()
detectron2/detectron2/utils/collect_env.py:219
↓ 1 callersMethodtest_nms_rotated_0_degree_cpu
(self, device="cpu")
detectron2/tests/layers/test_nms_rotated.py:100
↓ 1 callersFunctiontest_opencv_video_format
(codec, file_ext)
detectron2/demo/demo.py:76
↓ 1 callersMethodtest_simple_trainer
(self, device="cpu")
detectron2/tests/test_engine.py:45
↓ 1 callersMethodtext
(self)
distillanydepth/utils/mmcv_config.py:514
↓ 1 callersMethodto
(self, *args: Any, **kwargs: Any)
detectron2/detectron2/structures/image_list.py:50
↓ 1 callersMethodto
Convert transform data to the specified device Args: device (torch.device): device to convert the data to co
detectron2/projects/DensePose/densepose/structures/transform_data.py:35
↓ 1 callersMethodto_heatmap
Convert keypoint annotations to a heatmap of one-hot labels for training, as described in :paper:`Mask R-CNN`. Arguments:
detectron2/detectron2/structures/keypoints.py:43
↓ 1 callersMethodto_py
Try to convert a config object into Python-like psuedo code. Note that perfect conversion is not always possible. So the returned
detectron2/detectron2/config/lazy.py:375
↓ 1 callersFunctiontrain
(cfg, args)
detectron2/tools/lightning_train_net.py:192
↓ 1 callersFunctiontransform_instance_annotations
Apply transforms to box, and point annotations of a single instance. It will use `transforms.apply_box` for the box, and `transforms.appl
detectron2/projects/PointSup/point_sup/detection_utils.py:66
↓ 1 callersFunctiontransform_keypoint_annotations
Transform keypoint annotations of an image. If a keypoint is transformed out of image boundary, it will be marked "unlabeled" (visibility=0)
detectron2/detectron2/data/detection_utils.py:336
↓ 1 callersMethodupdate_stats
Update the model with precise statistics. Users can manually call this method.
detectron2/detectron2/engine/hooks.py:612
↓ 1 callersMethodupgrade
(cls, cfg: CN)
detectron2/detectron2/config/compat.py:204
↓ 1 callersFunctionupsample_filt
(size)
detectron2/detectron2/export/shared.py:50
↓ 1 callersFunctionvalid
(anns)
detectron2/detectron2/data/build.py:60
↓ 1 callersFunctionvideo_list_from_file
Create a list of paths to video files from a text file. Args: video_list_fpath (str): path to a plain text file with the list of vid
detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py:164
↓ 1 callersFunctionvisible_keypoints_in_image
(dic)
detectron2/detectron2/data/build.py:89
↓ 1 callersMethodvisualize
( self, image_bgr: Image, results_and_boxes_xywh: Tuple[Optional[List[DensePoseChartRe
detectron2/projects/DensePose/densepose/vis/densepose_results.py:17
↓ 1 callersMethodvisualize
( self, image_bgr: Image, bbox_densepose_datas: Optional[Tuple[Iterable[Boxes], Iterab
detectron2/projects/DensePose/densepose/vis/densepose_data_points.py:47
↓ 1 callersMethodvisualize_iuv_arr
(self, context, iuv_arr: np.ndarray, bbox_xywh)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:39
↓ 1 callersMethodvisualize_training
A function used to visualize images and proposals. It shows ground truth bounding boxes on the original image and up to 20 top-scorin
detectron2/detectron2/modeling/meta_arch/rcnn.py:91
↓ 1 callersFunctionvit_base
(patch_size=14, **kwargs)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:1349
↓ 1 callersFunctionvit_giant2_reg
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:1274
↓ 1 callersFunctionvoc_ap
Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11-point method (default:False).
detectron2/detectron2/evaluation/pascal_voc_evaluation.py:155
↓ 1 callersFunctionvoc_eval
rec, prec, ap = voc_eval(detpath, annopath, imagesetfile,
detectron2/detectron2/evaluation/pascal_voc_evaluation.py:187
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
detectron2/detectron2/modeling/backbone/swin.py:63
↓ 1 callersMethodwrite
(self)
detectron2/projects/DensePose/densepose/engine/trainer.py:67
FunctionAccumulate
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:372
FunctionDINOv2
(model_name)
distillanydepth/modeling/backbones/vit/dinov2.py:398
FunctionDisparity_Normalization
(disparity)
distillanydepth/utils/image_util.py:313
FunctionDisparity_Normalization_mask
(disparity, min_value, max_value)
distillanydepth/utils/image_util.py:320
FunctionEvaluateImages
detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp:142
FunctionHFlip_rotated_box
Apply the horizontal flip transform on rotated boxes. Args: rotated_boxes (ndarray): Nx5 floating point array of (x_cent
detectron2/detectron2/data/transforms/transform.py:307
FunctionPYBIND11_MODULE
detectron2/detectron2/layers/csrc/vision.cpp:77
FunctionPYBIND11_MODULE
detectron2/projects/TensorMask/tensormask/layers/csrc/vision.cpp:8
FunctionPredictorOutput_getitem
(self, item)
detectron2/projects/DensePose/densepose/structures/cse_confidence.py:52
FunctionPredictorOutput_getitem
(self, item)
detectron2/projects/DensePose/densepose/structures/chart_confidence.py:62
FunctionPredictorOutput_to
Transfers all tensors to the given device
detectron2/projects/DensePose/densepose/structures/cse_confidence.py:62
FunctionPredictorOutput_to
Transfers all tensors to the given device
detectron2/projects/DensePose/densepose/structures/chart_confidence.py:77
FunctionROIAlignRotatedBackward
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:313
FunctionROIAlignRotatedForward
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:202
FunctionROIAlignRotated_backward
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:74
FunctionROIAlignRotated_forward
Interface for Python
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:50
FunctionResize_rotated_box
Apply the resizing transform on rotated boxes. For details of how these (approximation) formulas are derived, please refer to :meth:`RotatedB
detectron2/detectron2/data/transforms/transform.py:323
FunctionSwapAlign2Nat_backward
detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat.h:36
FunctionSwapAlign2Nat_forward
detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat.h:22
MethodT
(w)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:126
FunctionTORCH_LIBRARY
detectron2/detectron2/layers/csrc/vision.cpp:111
Method__call__
Args: dict: a dict in standard model input format. See tutorials for details. Returns: list[dict]:
detectron2/detectron2/modeling/test_time_augmentation.py:58
Method__call__
Same input/output format as :meth:`GeneralizedRCNN.forward`
detectron2/detectron2/modeling/test_time_augmentation.py:188
Method__call__
Args: match_quality_matrix (Tensor[float]): an MxN tensor, containing the pairwise quality between M ground-truth
detectron2/detectron2/modeling/matcher.py:62
Method__call__
(self, *args, **kwargs)
detectron2/detectron2/utils/serialize.py:25
Method__call__
Args: dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. Returns: dict: a format that
detectron2/detectron2/data/dataset_mapper.py:144
Method__call__
Augment the given `aug_input` **in-place**, and return the transform that's used. This method will be called to apply the augmentati
detectron2/detectron2/data/transforms/augmentation.py:151
Method__call__
(self, aug_input)
detectron2/detectron2/data/transforms/augmentation.py:264
Method__call__
(self, aug_input)
detectron2/detectron2/data/transforms/augmentation_impl.py:74
Method__call__
Args: original_image (np.ndarray): an image of shape (H, W, C) (in BGR order). Returns: predictions (dict):
detectron2/detectron2/engine/defaults.py:297
Method__call__
(self, **kwargs)
detectron2/detectron2/config/lazy.py:49
Method__call__
An interface that wraps around a Caffe2 model and mimics detectron2's models' input/output format. See details about the format at :d
detectron2/detectron2/export/api.py:218
Method__call__
(self, box_predictor, predictions, proposals)
detectron2/detectron2/export/c10.py:523
Method__call__
(self, pred_mask_logits, pred_instances)
detectron2/detectron2/export/c10.py:541
Method__call__
(self, pred_keypoint_logits, pred_instances)
detectron2/detectron2/export/c10.py:568
Method__call__
(self, values)
detectron2/detectron2/export/flatten.py:72
Method__call__
(self, values)
detectron2/detectron2/export/flatten.py:90
Method__call__
(self, values)
detectron2/detectron2/export/flatten.py:96
Method__call__
(self, values)
detectron2/detectron2/export/flatten.py:108
Method__call__
(self, values)
detectron2/detectron2/export/flatten.py:125
Method__call__
(self, values)
detectron2/detectron2/export/flatten.py:148
Method__call__
Generates the training target. reference: https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/preparation/createPanopti
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/target_generator.py:52
Method__call__
Args: dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. Returns: dict: a format that
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py:87
Method__call__
Args: dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. Returns: dict: a format that
detectron2/projects/PointSup/point_sup/dataset_mapper.py:72
Method__call__
(self, dataset_dict)
detectron2/projects/DensePose/densepose/modeling/test_time_augmentation.py:22
Method__call__
Filters proposals with targets to keep only the ones relevant for DensePose training Args: features (list[Tensor
detectron2/projects/DensePose/densepose/modeling/filter.py:19
Method__call__
Produces losses for estimated embeddings given annotated vertices. Embeddings for all the vertices of a mesh are computed by the embe
detectron2/projects/DensePose/densepose/modeling/losses/soft_embed.py:40
Method__call__
Computes segmentation loss as cross-entropy for raw unnormalized scores given ground truth labels. Args: proposa
detectron2/projects/DensePose/densepose/modeling/losses/mask.py:81
Method__call__
Compute segmentation loss as cross-entropy between aligned unnormalized score estimates and ground truth; with ground truth given
detectron2/projects/DensePose/densepose/modeling/losses/mask_or_segm.py:35
Method__call__
Compute segmentation loss as cross-entropy on aligned segmentation ground truth and estimated scores. Args: prop
detectron2/projects/DensePose/densepose/modeling/losses/segm.py:33
← previousnext →1,501–1,600 of 3,350, ranked by callers