MCPcopy Create free account

hub / github.com/NVlabs/FoundationStereo / functions

Functions881 in github.com/NVlabs/FoundationStereo

Method_inner_forward
(x)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit.py:369
Function_make_bool_str
(b: bool)
dinov2/dinov2/data/loaders.py:28
Function_make_sample_transform
(image_transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)
dinov2/dinov2/data/loaders.py:32
Function_mmap_tarball
(class_id: str)
dinov2/dinov2/data/datasets/image_net_22k.py:61
Function_new_shuffle_tensor_slice
( *, tensor: torch.Tensor, start: int = 0, step: int = 1, generator: torch.Generator )
dinov2/dinov2/data/samplers.py:146
Function_pad_and_collate
(batch)
dinov2/dinov2/eval/linear.py:163
Method_sample_neg
Sample negative samples.
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_pseudo_sampler.py:27
Method_sample_pos
Sample positive samples.
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_pseudo_sampler.py:23
Function_shuffle_tensor_slice
( *, tensor: torch.Tensor, start: int = 0, step: int = 1, generator: torch.Generator )
dinov2/dinov2/data/samplers.py:125
Method_tarballs_root
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:197
Methodaccuracy_averaging
(self)
dinov2/dinov2/eval/metrics.py:27
Methodadd_meter
(self, name, meter)
dinov2/dinov2/logging/helpers.py:50
Methodafter_train_iter
(self, runner)
dinov2/dinov2/eval/segmentation/hooks/optimizer.py:28
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
depth_anything/util/transform.py:12
Methodassign
Computes one-to-one matching based on the weighted costs. This method assign each query prediction to a ground truth or background. T
dinov2/dinov2/eval/segmentation_m2f/models/utils/assigner.py:77
Methodattn_residual_func
(x: Tensor)
dinov2/dinov2/layers/block.py:90
Methodattn_residual_func
(x: Tensor, attn_bias=None)
dinov2/dinov2/layers/block.py:276
Methodaug_test
Test with augmentations. Only rescale=True is supported.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:254
Methodaug_test
Test with augmentations. Only rescale=True is supported.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:220
Methodavg
(self)
dinov2/dinov2/logging/helpers.py:171
Methodbboxes
torch.Tensor: concatenated positive and negative boxes
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/sampling_result.py:54
Methodbefore_run
(self, runner)
dinov2/dinov2/eval/segmentation/hooks/optimizer.py:25
Functionbinary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
dinov2/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:88
Functionbuild_anchor_generator
(cfg, default_args=None)
dinov2/dinov2/eval/segmentation_m2f/core/anchor/builder.py:19
Functionbuild_backbone
Build backbone.
dinov2/dinov2/eval/depth/models/builder.py:23
Functionbuild_bbox_coder
Builder of box coder.
dinov2/dinov2/eval/segmentation_m2f/core/box/builder.py:17
Functionbuild_depther
Build depther.
dinov2/dinov2/eval/depth/models/builder.py:43
Functionbuild_head
Build head.
dinov2/dinov2/eval/depth/models/builder.py:33
Functionbuild_neck
Build neck.
dinov2/dinov2/eval/depth/models/builder.py:28
Functionbuild_transformer
Build Transformer.
dinov2/dinov2/eval/segmentation_m2f/models/builder.py:23
Methodcheckpoint
(self)
dinov2/dinov2/run/eval/linear.py:28
Methodcheckpoint
(self)
dinov2/dinov2/run/eval/log_regression.py:28
Methodcheckpoint
(self)
dinov2/dinov2/run/train/train.py:28
Functioncollate_data_and_cast
(samples_list, mask_ratio_tuple, mask_probability, dtype, n_tokens=None, mask_generator=None)
dinov2/dinov2/data/collate.py:10
Functioncoords_grid
(batch, ht, wd)
core/utils/utils.py:59
Methoddecode
(self)
dinov2/dinov2/data/datasets/decoders.py:21
Methoddecode
(self)
dinov2/dinov2/data/datasets/decoders.py:30
Functiondinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:71
Functiondinov2_vitb14_dd
(*, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:235
Functiondinov2_vitb14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-B/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/dinov2/hub/classifiers.py:140
Functiondinov2_vitb14_ld
(*, layers: int = 4, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:149
Functiondinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:113
Functiondinov2_vitb14_reg_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-B/14 backbone with registers (optionally) pretrained on the LVD-142M dataset and trained
dinov2/dinov2/hub/classifiers.py:216
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:85
Functiondinov2_vitg14_dd
(*, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:243
Functiondinov2_vitg14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-g/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/dinov2/hub/classifiers.py:178
Functiondinov2_vitg14_ld
(*, layers: int = 4, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:161
Functiondinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:143
Functiondinov2_vitg14_reg_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-g/14 backbone with registers (optionally) pretrained on the LVD-142M dataset and trained
dinov2/dinov2/hub/classifiers.py:252
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:78
Functiondinov2_vitl14_dd
(*, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:239
Functiondinov2_vitl14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-L/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/dinov2/hub/classifiers.py:159
Functiondinov2_vitl14_ld
(*, layers: int = 4, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:155
Functiondinov2_vitl14_reg4_dinotxt_tet1280d20h24l
()
dinov2/dinov2/hub/dinotxt.py:8
Functiondinov2_vitl14_reg_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-L/14 backbone with registers (optionally) pretrained on the LVD-142M dataset and trained
dinov2/dinov2/hub/classifiers.py:234
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:64
Functiondinov2_vits14_dd
(*, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:231
Functiondinov2_vits14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-S/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/dinov2/hub/classifiers.py:121
Functiondinov2_vits14_ld
(*, layers: int = 4, pretrained: bool = True, weights: Union[Weights, str] = Weights.NYU, **kwargs)
dinov2/dinov2/hub/depthers.py:143
Functiondinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
dinov2/dinov2/hub/backbones.py:98
Functiondinov2_vits14_reg_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-S/14 backbone with registers (optionally) pretrained on the LVD-142M dataset and trained
dinov2/dinov2/hub/classifiers.py:198
Methoddump_extra
(self, root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net_22k.py:301
Methoddump_extra
(self)
dinov2/dinov2/data/datasets/image_net.py:288
Functionenable
Enable distributed mode Args: set_cuda_current_device: If True, call torch.cuda.set_device() to set the current PyTorch CUDA
dinov2/dinov2/distributed/__init__.py:239
Methodencode_decode
Placeholder for encode images with backbone and decode into a semantic depth map of the same size as input.
dinov2/dinov2/eval/depth/models/depther/base.py:42
Methodentries_path
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:51
Methodextra_repr
Extra repr.
dinov2/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:237
Methodextra_repr
Extra repr.
dinov2/dinov2/eval/depth/models/decode_heads/decode_head.py:105
Methodextract_feat
Placeholder for extract features from images.
dinov2/dinov2/eval/depth/models/depther/base.py:37
Methodf
(*args, **kwargs)
dinov2/dinov2/models/vision_transformer.py:131
Methodffn_residual_func
(x: Tensor)
dinov2/dinov2/layers/block.py:93
Methodffn_residual_func
(x: Tensor, attn_bias=None)
dinov2/dinov2/layers/block.py:279
Methodfind_class_id
(self, class_index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:200
Methodfind_class_id
(self, class_index: int)
dinov2/dinov2/data/datasets/image_net.py:127
Methodfind_class_name
(self, class_index: int)
dinov2/dinov2/data/datasets/image_net.py:131
Functionfix_random_seeds
Fix random seeds.
dinov2/dinov2/utils/utils.py:36
Methodflops
(self)
dinov2/dinov2/layers/patch_embed.py:83
Methodforward
(self, x)
core/extractor.py:69
Methodforward
(self, x, dual_inp=False, num_layers=3)
core/extractor.py:164
Methodforward
(self, x_in, vit_feat, dual_inp=False, num_layers=3)
core/extractor.py:263
Methodforward
@x: (B,C,H,W)
core/extractor.py:309
Methodforward
(self, x, features)
core/foundation_stereo.py:102
Methodforward
@x: (B,C,H,W)
core/submodule.py:33
Methodforward
(self, x)
core/submodule.py:76
Methodforward
@x: (B,C,D,H,W)
core/submodule.py:104
Methodforward
(self, x)
core/submodule.py:135
Methodforward
(self, x)
core/submodule.py:174
Methodforward
@query: (B,L,C)
core/submodule.py:207
Methodforward
(self, src, src_mask=None, window_size=(-1, -1))
core/submodule.py:244
Methodforward
(self, x)
core/submodule.py:266
Methodforward
(self, x, rem)
core/submodule.py:304
Methodforward
(self, x)
core/submodule.py:336
Methodforward
(self, x, rem)
core/submodule.py:372
Methodforward
@cv: cost volume (B,C,D,H,W) @feat: (B,C,H,W)
core/submodule.py:443
Methodforward
@x: (B,N,D)
core/submodule.py:487
Methodforward
@cv: (B,C,D,H,W) where D is max disparity
core/submodule.py:512
Methodforward
(self, x)
core/submodule.py:539
Methodforward
(self, x)
core/submodule.py:552
Methodforward
(self, x)
core/submodule.py:574
Methodforward
(self, x)
core/update.py:30
← previousnext →601–700 of 881, ranked by callers