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

↓ 4 callersMethod_convert_xywh_to_xywha
(self, x)
detectron2/tests/structures/test_boxes.py:19
↓ 4 callersMethod_convert_xywha_to_xyxy
(self, x)
detectron2/tests/structures/test_boxes.py:16
↓ 4 callersMethod_create_dp_data
(self, anns, blob_def=None)
detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py:170
↓ 4 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
detectron2/detectron2/utils/visualizer.py:1183
↓ 4 callersMethod_create_tensors
(self, N, device="cpu")
detectron2/tests/layers/test_nms_rotated.py:68
↓ 4 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): is_crowd (list[
detectron2/detectron2/utils/visualizer.py:230
↓ 4 callersFunction_dense_box_regression_loss
Compute loss for dense multi-level box regression. Loss is accumulated over ``fg_mask``. Args: anchors: #lvl anchor boxes, each
detectron2/detectron2/modeling/box_regression.py:310
↓ 4 callersMethod_generate_rlemask_on_image
(self, mask, imgId, data)
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:362
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
distillanydepth/modeling/archs/dam/dam.py:52
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
distillanydepth/depth_anything_v2/dpt.py:45
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
distillanydepth/midas/dpt_depth.py:18
↓ 4 callersFunction_make_swin_backbone
( model, hooks=[1, 1, 17, 1], patch_grid=[96, 96] )
distillanydepth/midas/backbones/swin_common.py:13
↓ 4 callersFunction_maybe_copy_to_device
( attribute: Optional[torch.Tensor], device: torch.device )
detectron2/projects/DensePose/densepose/structures/mesh.py:15
↓ 4 callersMethod_parse_error
(self, msg)
detectron2/projects/DensePose/densepose/utils/dbhelper.py:148
↓ 4 callersMethod_roi_pooler
Extract per-box feature. This is similar to RoIAlign(sampling_ratio=1) except: 1. It's implemented by point_sample 2. It pool
detectron2/projects/PointRend/point_rend/mask_head.py:245
↓ 4 callersMethod_simple_roi_align_rotated
RoiAlignRotated with scale 1.0 and 0 sample ratio.
detectron2/tests/layers/test_roi_align_rotated.py:87
↓ 4 callersMethod_test_setup
(self, config_file)
detectron2/projects/DensePose/tests/test_setup.py:15
↓ 4 callersMethod_test_template
(self, instances_lst)
detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py:39
↓ 4 callersMethod_transpose_dense_predictions
Transpose the dense per-level predictions. Args: predictions: a list of outputs, each is a list of per-level
detectron2/detectron2/modeling/meta_arch/dense_detector.py:136
↓ 4 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval. Does not support changing parameter settings from those u
detectron2/detectron2/evaluation/fast_eval_api.py:98
↓ 4 callersFunctionadd
detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:195
↓ 4 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
detectron2/detectron2/utils/comm.py:138
↓ 4 callersMethodapply_coords
(self, coords)
detectron2/detectron2/data/transforms/transform.py:272
↓ 4 callersFunctionattention_pool
(x, pool, norm=None)
detectron2/detectron2/modeling/backbone/mvit.py:21
↓ 4 callersMethodbenchmark_distributed
Benchmark the dataloader in each distributed worker, and log results of all workers. This helps understand the final performance as w
detectron2/detectron2/data/benchmark.py:195
↓ 4 callersFunctionbuild_anchor_generator
Built an anchor generator from `cfg.MODEL.ANCHOR_GENERATOR.NAME`.
detectron2/detectron2/modeling/anchor_generator.py:385
↓ 4 callersFunctionbuild_densepose_embedder
Build embedder used to embed mesh vertices into an embedding space. Embedder contains sub-embedders, one for each mesh ID. Args:
detectron2/projects/DensePose/densepose/modeling/build.py:77
↓ 4 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
detectron2/detectron2/solver/build.py:283
↓ 4 callersFunctionbuild_optimizer
Build an optimizer from config.
detectron2/detectron2/solver/build.py:119
↓ 4 callersFunctioncheck_metadata_consistency
Check that the datasets have consistent metadata. Args: key (str): a metadata key dataset_names (list[str]): a list of datas
detectron2/detectron2/data/detection_utils.py:602
↓ 4 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
detectron2/detectron2/structures/rotated_boxes.py:255
↓ 4 callersFunctioncollect_env_info
()
detectron2/detectron2/utils/collect_env.py:55
↓ 4 callersFunctionconvert_scripted_instances
Convert a scripted Instances object to a regular :class:`Instances` object
detectron2/detectron2/utils/testing.py:80
↓ 4 callersFunctioncreate_model_input
(img, inst=None)
detectron2/tests/modeling/test_model_e2e.py:51
↓ 4 callersFunctiondefault_writers
Build a list of :class:`EventWriter` to be used. It now consists of a :class:`CommonMetricPrinter`, :class:`TensorboardXWriter` and :clas
detectron2/detectron2/engine/defaults.py:230
↓ 4 callersMethoddraw_line
Args: x_data (list[int]): a list containing x values of all the points being drawn. Length of list should match t
detectron2/detectron2/utils/visualizer.py:1018
↓ 4 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
detectron2/detectron2/utils/visualizer.py:448
↓ 4 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
detectron2/detectron2/evaluation/evaluator.py:50
↓ 4 callersFunctionf
()
detectron2/tools/benchmark.py:114
↓ 4 callersFunctionf
(p)
detectron2/projects/DensePose/densepose/structures/transform_data.py:15
↓ 4 callersFunctionflop_count_operators
Implement operator-level flops counting using jit. This is a wrapper of :func:`fvcore.nn.flop_count` and adds supports for standard detec
detectron2/detectron2/utils/analysis.py:71
↓ 4 callersMethodforward
Args: input: NCHW images rois: Bx5 boxes. First column is the index into N. The other 4 columns are xyxy.
detectron2/detectron2/layers/roi_align.py:49
↓ 4 callersFunctionfreeze_training_mode
A context manager that annotates the "training" attribute of every submodule to constant, so that the training codepath in these modules can
detectron2/detectron2/export/torchscript_patch.py:392
↓ 4 callersFunctionget_class_to_mesh_name_mapping
(cfg: CfgNode)
detectron2/projects/DensePose/densepose/data/utils.py:29
↓ 4 callersMethodget_deltas
Get box regression transformation deltas (dx, dy, dw, dh) that can be used to transform the `src_boxes` into the `target_boxes`. That
detectron2/detectron2/modeling/box_regression.py:43
↓ 4 callersMethodget_mesh_name
(self, mesh_id: int)
detectron2/projects/DensePose/densepose/data/meshes/catalog.py:47
↓ 4 callersFunctionget_point_coords_wrt_image
Convert box-normalized [0, 1] x [0, 1] point cooordinates to image-level coordinates. Args: boxes_coords (Tensor): A tensor of shape
detectron2/projects/PointRend/point_rend/point_features.py:192
↓ 4 callersMethodinit_weights
(self)
detectron2/projects/DensePose/densepose/modeling/hrfpn.py:131
↓ 4 callersMethodlatest
Returns: dict[str -> (float, int)]: mapping from the name of each scalar to the most recent value and the iterati
detectron2/detectron2/utils/events.py:444
↓ 4 callersMethodlayers
(self, features)
detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py:340
↓ 4 callersFunctionload_coco_json
Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmentation, and person keypoi
detectron2/detectron2/data/datasets/coco.py:35
↓ 4 callersFunctionlog_first_n
Log only for the first n times. Args: lvl (int): the logging level msg (str): n (int): name (str): name of t
detectron2/detectron2/utils/logger.py:164
↓ 4 callersMethodlosses
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:307
↓ 4 callersFunctionmaybe_add_gradient_clipping
If gradient clipping is enabled through config options, wraps the existing optimizer type to become a new dynamically created class Optimizer
detectron2/detectron2/solver/build.py:83
↓ 4 callersFunctionnms_edit_distance
Compare the "keep" result of two nms call. They are allowed to be different in terms of edit distance due to floating point precision iss
detectron2/tests/layers/test_nms_rotated.py:13
↓ 4 callersMethodpredict_probs
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:549
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
distillanydepth/modeling/backbones/vit/dinov2.py:212
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:721
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None, step=-1)
distillanydepth/modeling/backbones/vit/ViT_DINO.py:1118
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:935
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
distillanydepth/depth_anything_v2/dinov2.py:212
↓ 4 callersMethodpreprocess_image
Normalize, pad and batch the input images.
detectron2/detectron2/modeling/meta_arch/rcnn.py:223
↓ 4 callersMethodput
(self, image)
detectron2/demo/predictor.py:187
↓ 4 callersMethodregister
Args: dataset_type (DatasetType): a DatasetType e.g. DatasetType.VIDEO_LIST factory (Callable[Metadata, CfgNode]): a
detectron2/projects/DensePose/densepose/data/build.py:726
↓ 4 callersFunctionreload_lazy_config
Save an object by LazyConfig.save and load it back. This is used to test that a config still works the same after serialization/deseriali
detectron2/detectron2/utils/testing.py:153
↓ 4 callersFunctionscripting_with_instances
Run :func:`torch.jit.script` on a model that uses the :class:`Instances` class. Since attributes of :class:`Instances` are "dynamically" adde
detectron2/detectron2/export/torchscript.py:13
↓ 4 callersFunctionselect_foreground_proposals
Given a list of N Instances (for N images), each containing a `gt_classes` field, return a list of Instances that contain only instances with
detectron2/detectron2/modeling/roi_heads/roi_heads.py:46
↓ 4 callersFunctionsetup
(args)
detectron2/tools/benchmark.py:36
↓ 4 callersMethodto
Transfers all tensors to the given device
detectron2/projects/DensePose/densepose/structures/chart_result.py:27
↓ 4 callersMethodtransform
In-place transform all attributes of this class. By "in-place", it means after calling this method, accessing an attribute such
detectron2/detectron2/data/transforms/augmentation.py:331
↓ 4 callersFunctiontypecheck_hook
Check that the model must be called with the given input/output dtype
detectron2/tests/modeling/test_model_e2e.py:16
↓ 4 callersMethodwrite
(self)
detectron2/detectron2/utils/events.py:237
↓ 3 callersFunctionRAM_msg
()
detectron2/tools/benchmark.py:62
↓ 3 callersMethod__call__
(self, values)
detectron2/detectron2/export/flatten.py:40
↓ 3 callersMethod__enter__
(self)
detectron2/detectron2/export/shared.py:141
↓ 3 callersMethod__init__
Args: optimizer, last_iter: See ``torch.optim.lr_scheduler.LRScheduler``. ``last_iter`` is the same as ``last_epo
detectron2/detectron2/solver/lr_scheduler.py:95
↓ 3 callersMethod__init__
(self, normalized_shape, eps=1e-6)
detectron2/detectron2/layers/batch_norm.py:341
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
detectron2/projects/DensePose/densepose/modeling/hrnet.py:34
↓ 3 callersMethod__init__
( self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, to_visualize=None, **kwargs )
detectron2/projects/DensePose/densepose/vis/densepose_outputs_iuv.py:15
↓ 3 callersMethod__init__
(self, densepose_data_to_value_fn=None, cmap=cv2.COLORMAP_PARULA, **kwargs)
detectron2/projects/DensePose/densepose/vis/densepose_data_points.py:42
↓ 3 callersMethod__init__
( self, mode, in_channels, features=256, use_bn=False, ou
distillanydepth/modeling/archs/dam/dam.py:184
↓ 3 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
distillanydepth/depth_anything_v2/dpt.py:72
↓ 3 callersMethod__init__
(self, start_index=1)
distillanydepth/midas/backbones/utils.py:7
↓ 3 callersMethod__new__
(cls, dataset, map_func)
detectron2/detectron2/data/common.py:107
↓ 3 callersMethod_box_to_rotated_box
(self, box, angle)
detectron2/tests/layers/test_roi_align_rotated.py:15
↓ 3 callersMethod_build_lazy_model
(self, name)
detectron2/tests/test_model_zoo.py:30
↓ 3 callersFunction_cast_to_f32
(f64)
detectron2/detectron2/export/caffe2_modeling.py:95
↓ 3 callersMethod_do_register
(cls, from_type: Type, converter: Any)
detectron2/projects/DensePose/densepose/converters/base.py:40
↓ 3 callersFunction_find_caller
Returns: str: module name of the caller tuple: a hashable key to be used to identify different callers
detectron2/detectron2/utils/logger.py:143
↓ 3 callersMethod_forward_keypoint
Forward logic of the keypoint prediction branch. Args: features (dict[str, Tensor]): mapping from feature map names to t
detectron2/detectron2/modeling/roi_heads/roi_heads.py:848
↓ 3 callersMethod_forward_mask
Forward logic of the mask prediction branch. Args: features (dict[str, Tensor]): mapping from feature map names to tenso
detectron2/detectron2/modeling/roi_heads/roi_heads.py:818
↓ 3 callersFunction_get_coco_instances_meta
()
detectron2/detectron2/data/datasets/builtin_meta.py:235
↓ 3 callersFunction_get_warmup_factor_at_iter
Return the learning rate warmup factor at a specific iteration. See :paper:`ImageNet in 1h` for more details. Args: method (str)
detectron2/detectron2/solver/lr_scheduler.py:221
↓ 3 callersMethod_jitter
Randomly modifies given color to produce a slightly different color than the color given. Args: color (tuple[double]): a
detectron2/detectron2/utils/visualizer.py:1164
↓ 3 callersFunction_log_api_usage
Internal function used to log the usage of different detectron2 components inside facebook's infra.
detectron2/detectron2/utils/logger.py:256
↓ 3 callersFunction_make_beit_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[0, 4, 8, 11],
distillanydepth/midas/backbones/beit.py:130
↓ 3 callersFunction_make_encoder
(backbone, features, use_pretrained, groups=1, expand=False, exportable=True, hooks=None, us
distillanydepth/midas/blocks.py:32
↓ 3 callersMethod_make_stage
(self, layer_config, num_inchannels, multi_scale_output=True)
detectron2/projects/DensePose/densepose/modeling/hrnet.py:407
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
detectron2/projects/DensePose/densepose/modeling/hrnet.py:343
↓ 3 callersMethod_point_pooler
(self, features, proposal_boxes, point_coords)
detectron2/projects/PointRend/point_rend/mask_head.py:288
← previousnext →201–300 of 3,350, ranked by callers