MCPcopy Create free account

hub / github.com/Westlake-AGI-Lab/Distill-Any-Depth / types & classes

Types & classes677 in github.com/Westlake-AGI-Lab/Distill-Any-Depth

↓ 89 callersClassBoxes
This structure stores a list of boxes as a Nx4 torch.Tensor. It supports some common methods about boxes (`area`, `clip`, `nonempty`, etc
detectron2/detectron2/structures/boxes.py:130
↓ 76 callersClassInstances
This class represents a list of instances in an image. It stores the attributes of instances (e.g., boxes, masks, labels, scores) as "fields"
detectron2/detectron2/structures/instances.py:8
↓ 61 callersClassShapeSpec
A simple structure that contains basic shape specification about a tensor. It is often used as the auxiliary inputs/outputs of models, to
detectron2/detectron2/layers/shape_spec.py:8
↓ 59 callersClassConv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
detectron2/detectron2/layers/wrappers.py:102
↓ 40 callersClassRotatedBoxes
This structure stores a list of rotated boxes as a Nx5 torch.Tensor. It supports some common methods about boxes (`area`, `clip`, `nonemp
detectron2/detectron2/structures/rotated_boxes.py:11
↓ 36 callersClassVisualizer
Visualizer that draws data about detection/segmentation on images. It contains methods like `draw_{text,box,circle,line,binary_mask,polygon}
detectron2/detectron2/utils/visualizer.py:331
↓ 28 callersClassDetectionCheckpointer
Same as :class:`Checkpointer`, but is able to: 1. handle models in detectron & detectron2 model zoo, and apply conversions for legacy models.
detectron2/detectron2/checkpoint/detection_checkpoint.py:16
↓ 23 callersClassCocoDatasetInfo
detectron2/projects/DensePose/densepose/data/datasets/coco.py:29
↓ 19 callersClassBitMasks
This class stores the segmentation masks for all objects in one image, in the form of bitmaps. Attributes: tensor: bool Tensor o
detectron2/detectron2/structures/masks.py:88
↓ 19 callersClassEventStorage
The user-facing class that provides metric storage functionalities. In the future we may add support for storing / logging other types of da
detectron2/detectron2/utils/events.py:321
↓ 17 callersClassDatasetFromList
Wrap a list to a torch Dataset. It produces elements of the list as data.
detectron2/detectron2/data/common.py:205
↓ 16 callersClassNormalizeImage
Normlize image by given mean and std.
distillanydepth/midas/transforms.py:197
↓ 15 callersClassf
detectron2/tests/structures/test_instances.py:30
↓ 14 callersClassImageList
Structure that holds a list of images (of possibly varying sizes) as a single tensor. This works by padding the images to the same size.
detectron2/detectron2/structures/image_list.py:11
↓ 14 callersClassMeshInfo
detectron2/projects/DensePose/densepose/data/meshes/catalog.py:14
↓ 14 callersClassSizeData
detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py:19
↓ 12 callersClassBox2BoxTransform
The box-to-box transform defined in R-CNN. The transformation is parameterized by 4 deltas: (dx, dy, dw, dh). The transformation scales the b
detectron2/detectron2/modeling/box_regression.py:21
↓ 12 callersClassROIPooler
Region of interest feature map pooler that supports pooling from one or more feature maps.
detectron2/detectron2/modeling/poolers.py:114
↓ 12 callersClassRotationTransform
This method returns a copy of this image, rotated the given number of degrees counter clockwise around its center.
detectron2/detectron2/data/transforms/transform.py:162
↓ 12 callersClassTranspose
distillanydepth/midas/backbones/utils.py:42
↓ 11 callersClassDPTDepthModel
distillanydepth/midas/dpt_depth.py:142
↓ 9 callersClassCOCOEvaluator
Evaluate AR for object proposals, AP for instance detection/segmentation, AP for keypoint detection outputs using COCO's metrics. See htt
detectron2/detectron2/evaluation/coco_evaluation.py:34
↓ 9 callersClassDatasetEvaluators
Wrapper class to combine multiple :class:`DatasetEvaluator` instances. This class dispatches every evaluation call to all of its :class:
detectron2/detectron2/evaluation/evaluator.py:66
↓ 9 callersClassDensePoseList
detectron2/projects/DensePose/densepose/structures/list.py:9
↓ 9 callersClassMapDataset
Map a function over the elements in a dataset.
detectron2/detectron2/data/common.py:84
↓ 9 callersClassSimpleTrainer
A simple trainer for the most common type of task: single-cost single-optimizer single-data-source iterative optimization, optionally usi
detectron2/detectron2/engine/train_loop.py:226
↓ 9 callersClass_SimpleModel
detectron2/tests/test_engine.py:22
↓ 8 callersClassDinoVisionTransformer
distillanydepth/modeling/backbones/vit/ViT_DINO_reg.py:754
↓ 8 callersClassROIAlign
detectron2/detectron2/layers/roi_align.py:7
↓ 8 callersClassTrainingSampler
In training, we only care about the "infinite stream" of training data. So this sampler produces an infinite stream of indices and all wo
detectron2/detectron2/data/samplers/distributed_sampler.py:15
↓ 7 callersClassCommonMetricPrinter
Print **common** metrics to the terminal, including iteration time, ETA, memory, all losses, and the learning rate. It also applies smoot
detectron2/detectron2/utils/events.py:195
↓ 7 callersClassDeformConv
detectron2/detectron2/layers/deform_conv.py:316
↓ 7 callersClassFastRCNNOutputLayers
Two linear layers for predicting Fast R-CNN outputs: 1. proposal-to-detection box regression deltas 2. classification scores
detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:174
↓ 7 callersClassJSONWriter
Write scalars to a json file. It saves scalars as one json per line (instead of a big json) for easy parsing. Examples parsing such a j
detectron2/detectron2/utils/events.py:60
↓ 7 callersClassPolygonMasks
This class stores the segmentation masks for all objects in one image, in the form of polygons. Attributes: polygons: list[list[ndar
detectron2/detectron2/structures/masks.py:261
↓ 7 callersClassTracingAdapter
A model may take rich input/output format (e.g. dict or custom classes), but `torch.jit.trace` requires tuple of tensors as input/output.
detectron2/detectron2/export/flatten.py:186
↓ 7 callersClass_TestClassD
detectron2/tests/config/test_yacs_config.py:136
↓ 6 callersClassConfigDict
distillanydepth/utils/mmcv_config.py:134
↓ 6 callersClassDatasetMapper
A customized version of `detectron2.data.DatasetMapper`
detectron2/projects/DensePose/densepose/data/dataset_mapper.py:33
↓ 6 callersClassInferenceSampler
Produce indices for inference across all workers. Inference needs to run on the __exact__ set of samples, therefore when the total number
detectron2/detectron2/data/samplers/distributed_sampler.py:254
↓ 6 callersClassKeypoints
Stores keypoint **annotation** data. GT Instances have a `gt_keypoints` property containing the x,y location and visibility flag of each keyp
detectron2/detectron2/structures/keypoints.py:8
↓ 6 callersClassMaskFromDensePoseSampler
Produce mask GT from DensePose predictions This sampler simply converts DensePose predictions to BitMasks that a contain a bool tensor of
detectron2/projects/DensePose/densepose/data/samplers/mask_from_densepose.py:10
↓ 6 callersClassMatcher
This class assigns to each predicted "element" (e.g., a box) a ground-truth element. Each predicted element will have exactly zero or one mat
detectron2/detectron2/modeling/matcher.py:9
↓ 6 callersClassPredictionToGroundTruthSampler
Sampler implementation that converts predictions to GT using registered samplers for different fields of `Instances`.
detectron2/projects/DensePose/densepose/data/samplers/prediction_to_gt.py:29
↓ 6 callersClassResizeTransform
Resize the image to a target size.
detectron2/detectron2/data/transforms/transform.py:94
↓ 6 callersClass_TestClassA
detectron2/tests/config/test_yacs_config.py:66
↓ 6 callersClass_TestClassB
detectron2/tests/config/test_yacs_config.py:83
↓ 6 callersClass_TestClassC
detectron2/tests/config/test_yacs_config.py:127
↓ 5 callersClassBasicStem
The standard ResNet stem (layers before the first residual block), with a conv, relu and max_pool.
detectron2/detectron2/modeling/backbone/resnet.py:330
↓ 5 callersClassCityscapesSemSegEvaluator
Evaluate semantic segmentation results on cityscapes dataset using cityscapes API. Note: * It does not work in multi-machine distrib
detectron2/detectron2/evaluation/cityscapes_evaluation.py:132
↓ 5 callersClassDensePoseDataRelative
Dense pose relative annotations that can be applied to any bounding box: x - normalized X coordinates [0, 255] of annotated points
detectron2/projects/DensePose/densepose/structures/data_relative.py:13
↓ 5 callersClassDepthwiseSeparableConv2d
A kxk depthwise convolution + a 1x1 convolution. In :paper:`xception`, norm & activation are applied on the second conv. :paper:`mobilen
detectron2/detectron2/layers/blocks.py:58
↓ 5 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
distillanydepth/depth_anything_v2/dinov2_layers/drop_path.py:27
↓ 5 callersClassFeatureFusionBlock_custom
Feature fusion block.
distillanydepth/midas/blocks.py:379
↓ 5 callersClassLRMultiplier
A LRScheduler which uses fvcore :class:`ParamScheduler` to multiply the learning rate of each param in the optimizer. Every step, the lea
detectron2/detectron2/solver/lr_scheduler.py:61
↓ 5 callersClassRandomKFramesSelector
Selector that retains at most `k` random frames
detectron2/projects/DensePose/densepose/data/video/frame_selector.py:32
↓ 5 callersClassResNet
Implement :paper:`ResNet`.
detectron2/detectron2/modeling/backbone/resnet.py:362
↓ 5 callersClassSingleProcessFileTensorStorage
Implementation of a single process tensor storage which stores data in a file
detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py:140
↓ 5 callersClassUpsample2D
A 2D upsampling layer with an optional convolution. Parameters: channels (`int`): number of channels in the inputs and output
distillanydepth/modeling/archs/dinov2_dpt_elu.py:54
↓ 4 callersClassBox2BoxTransformRotated
The box-to-box transform defined in Rotated R-CNN. The transformation is parameterized by 5 deltas: (dx, dy, dw, dh, da). The transformation
detectron2/detectron2/modeling/box_regression.py:120
↓ 4 callersClassChartBasedAnnotationsAccumulator
Accumulates annotations by batches that correspond to objects detected on individual images. Can pack them together into single tensors.
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:305
↓ 4 callersClassCityscapesInstanceEvaluator
Evaluate instance segmentation results on cityscapes dataset using cityscapes API. Note: * It does not work in multi-machine distrib
detectron2/detectron2/evaluation/cityscapes_evaluation.py:50
↓ 4 callersClassDPTDepthEstimationHead
Output head head consisting of 3 convolutional layers. It progressively halves the feature dimension and upsamples the predictions to the inp
distillanydepth/modeling/archs/dinov2_dpt_elu.py:14
↓ 4 callersClassDensePoseChartPredictorOutput
Predictor output that contains segmentation and inner coordinates predictions for predefined body parts: * coarse segmentation, a tensor
detectron2/projects/DensePose/densepose/structures/chart.py:11
↓ 4 callersClassDensePoseEmbeddingPredictorOutput
Predictor output that contains embedding and coarse segmentation data: * embedding: float tensor of size [N, D, H, W], contains estimated em
detectron2/projects/DensePose/densepose/structures/cse.py:11
↓ 4 callersClassDinoVisionTransformer
distillanydepth/modeling/backbones/vit/dinov2.py:44
↓ 4 callersClassDinoVisionTransformer
distillanydepth/depth_anything_v2/dinov2.py:44
↓ 4 callersClassFeatureFusionBlock
Feature fusion block.
distillanydepth/midas/blocks.py:282
↓ 4 callersClassImageResizeTransform
Transform that resizes images loaded from a dataset (BGR data in NCHW channel order, typically uint8) to a format ready to be consumed by
detectron2/projects/DensePose/densepose/data/transform/image.py:8
↓ 4 callersClassMatrixVisualizer
Base visualizer for matrix data
detectron2/projects/DensePose/densepose/vis/base.py:13
↓ 4 callersClassMetadata
A class that supports simple attribute setter/getter. It is intended for storing metadata of a dataset and make it accessible globally.
detectron2/detectron2/data/catalog.py:91
↓ 4 callersClassModulatedDeformConv
detectron2/detectron2/layers/deform_conv.py:413
↓ 4 callersClassNaiveSyncBatchNorm
In PyTorch<=1.5, ``nn.SyncBatchNorm`` has incorrect gradient when the batch size on each worker is different. (e.g., when scale augmentat
detectron2/detectron2/layers/batch_norm.py:200
↓ 4 callersClassROIAlignRotated
detectron2/detectron2/layers/roi_align_rotated.py:51
↓ 4 callersClassScopedWS
detectron2/detectron2/export/shared.py:134
↓ 4 callersClassSemSegEvaluator
Evaluate semantic segmentation metrics.
detectron2/detectron2/evaluation/sem_seg_evaluation.py:36
↓ 4 callersClassSingleProcessRamTensorStorage
Implementation of a single process tensor storage which stores data in RAM
detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py:159
↓ 4 callersClassSwapAlign2Nat
The op `SwapAlign2Nat` described in https://arxiv.org/abs/1903.12174. Given an input tensor that predicts masks of shape (N, C=VxU, H, W),
detectron2/projects/TensorMask/tensormask/layers/swap_align2nat.py:32
↓ 4 callersClassToIterableDataset
Convert an old indices-based (also called map-style) dataset to an iterable-style dataset.
detectron2/detectron2/data/common.py:251
↓ 4 callersClassVideoKeyframeDataset
Dataset that provides keyframes for a set of videos.
detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py:219
↓ 4 callersClassWarmupParamScheduler
Add an initial warmup stage to another scheduler.
detectron2/detectron2/solver/lr_scheduler.py:22
↓ 3 callersClassASPP
Atrous Spatial Pyramid Pooling (ASPP).
detectron2/detectron2/layers/aspp.py:14
↓ 3 callersClassASPPConv
detectron2/projects/DensePose/densepose/modeling/roi_heads/deeplab.py:83
↓ 3 callersClassCOCOPanopticEvaluator
Evaluate Panoptic Quality metrics on COCO using PanopticAPI. It saves panoptic segmentation prediction in `output_dir` It contains a syn
detectron2/detectron2/evaluation/panoptic_evaluation.py:24
↓ 3 callersClassCfgNode
The same as `fvcore.common.config.CfgNode`, but different in: 1. Use unsafe yaml loading by default. Note that this may lead to arbit
detectron2/detectron2/config/config.py:12
↓ 3 callersClassCompoundExtractor
Extracts data for CompoundVisualizer
detectron2/projects/DensePose/densepose/vis/extractor.py:143
↓ 3 callersClassDeepLabCE
Hard pixel mining with cross entropy loss, for semantic segmentation. This is used in TensorFlow DeepLab frameworks. Paper: DeeperLab: Si
detectron2/projects/DeepLab/deeplab/loss.py:6
↓ 3 callersClassDefaultAnchorGenerator
Compute anchors in the standard ways described in "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks".
detectron2/detectron2/modeling/anchor_generator.py:86
↓ 3 callersClassDefaultPredictor
Create a simple end-to-end predictor with the given config that runs on single device for a single input image. Compared to using the mo
detectron2/detectron2/engine/defaults.py:252
↓ 3 callersClassDensePoseChartResultQuantized
DensePose results for chart-based methods represented by labels and quantized inner coordinates (U, V) of individual charts. Each chart is a
detectron2/projects/DensePose/densepose/structures/chart_result.py:80
↓ 3 callersClassDensePoseConfidenceBasedSampler
Samples DensePose data from DensePose predictions. Samples for each class are drawn using confidence value estimates.
detectron2/projects/DensePose/densepose/data/samplers/densepose_confidence_based.py:14
↓ 3 callersClassDepthAnythingV2
distillanydepth/depth_anything_v2/dpt.py:186
↓ 3 callersClassDinoVisionTransformer
distillanydepth/modeling/backbones/vit/ViT_DINO.py:571
↓ 3 callersClassFirstKFramesSelector
Selector that retains at most `k` first frames
detectron2/projects/DensePose/densepose/data/video/frame_selector.py:52
↓ 3 callersClassGenericMask
Attribute: polygons (list[ndarray]): list[ndarray]: polygons for this mask. Each ndarray has format [x, y, x, y, ...]
detectron2/detectron2/utils/visualizer.py:59
↓ 3 callersClassInterpolate
Interpolation module.
distillanydepth/midas/blocks.py:208
↓ 3 callersClassKRCNNConvDeconvUpsampleHead
A standard keypoint head containing a series of 3x3 convs, followed by a transpose convolution and bilinear interpolation for upsampling.
detectron2/detectron2/modeling/roi_heads/keypoint_head.py:218
↓ 3 callersClassLVISEvaluator
Evaluate object proposal and instance detection/segmentation outputs using LVIS's metrics and evaluation API.
detectron2/detectron2/evaluation/lvis_evaluation.py:22
↓ 3 callersClassLastKFramesSelector
Selector that retains at most `k` last frames from video data
detectron2/projects/DensePose/densepose/data/video/frame_selector.py:72
↓ 3 callersClassPatchEmbed
Image to Patch Embedding Args: patch_size (int): Patch token size. Default: 4. in_chans (int): Number of input image channels. Def
detectron2/detectron2/modeling/backbone/swin.py:468
next →1–100 of 677, ranked by callers