MCPcopy Create free account

hub / github.com/NVlabs/FoundationStereo / functions

Functions881 in github.com/NVlabs/FoundationStereo

↓ 131 callersMethodinfo
(self)
dinov2/dinov2/eval/segmentation_m2f/models/utils/assigner.py:27
↓ 43 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/sampling_result.py:58
↓ 25 callersMethodsplit
(self)
dinov2/dinov2/data/datasets/image_net.py:78
↓ 21 callersMethodupdate
(self, **kwargs)
dinov2/dinov2/logging/helpers.py:26
↓ 16 callersMethod__init__
(self, in_channels, out_channels, deconv=False, is_3d=False, concat=True, keep_concat=True, bn=True, relu=True
core/submodule.py:279
↓ 16 callersMethodload
(self, *args, **kwargs)
dinov2/dinov2/fsdp/__init__.py:114
↓ 14 callersMethodmax
(self)
dinov2/dinov2/logging/helpers.py:180
↓ 14 callersMethodupdate
(self, preds: Tensor, target: Tensor)
dinov2/dinov2/eval/metrics.py:87
↓ 13 callersMethodpad
(self, *inputs)
core/utils/utils.py:33
↓ 11 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
dinov2/dinov2/hub/backbones.py:18
↓ 11 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
dinov2/dinov2/eval/depth/ops/wrappers.py:11
↓ 10 callersMethod_make_layer
(self, dim, stride=1)
core/extractor.py:156
↓ 10 callersMethodnorm
(self)
dinov2/dinov2/hub/depth/decode_heads.py:453
↓ 10 callersFunctionto_2tuple
(x)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit.py:48
↓ 9 callersMethod__init__
( self, embed_dims=256, feedforward_channels=1024, num_fcs=2, act_cfg=
dinov2/dinov2/eval/segmentation_m2f/models/utils/transformer.py:265
↓ 9 callersMethodreset_parameters
(self)
dinov2/dinov2/layers/layer_scale.py:30
↓ 8 callersMethod__init__
(self, input_transform="resize_concat", in_index=(0, 1, 2, 3), upsample=1, **kwargs)
dinov2/dinov2/hub/depth/decode_heads.py:226
↓ 8 callersFunction_make_dinov2_linear_classifier
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
dinov2/dinov2/hub/classifiers.py:86
↓ 8 callersMethodget_output_image_file
(self, output_folder, left_image_name)
scripts/run_demo_batch.py:123
↓ 8 callersFunctionmake_dataset
Creates a dataset with the specified parameters. Args: dataset_str: A dataset string description (e.g. ImageNet:split=TRAIN).
dinov2/dinov2/data/loaders.py:67
↓ 7 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit.py:53
↓ 7 callersFunctionprint
(*args, **kwargs)
dinov2/dinov2/distributed/__init__.py:82
↓ 6 callersMethod__init__
(self, dim=768)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/adapter_modules.py:71
↓ 6 callersMethod_get_entries
(self)
dinov2/dinov2/data/datasets/image_net.py:105
↓ 6 callersFunction_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
dinov2/dinov2/hub/utils.py:17
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
depth_anything/util/transform.py:100
↓ 6 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: int | Sequence[int] = 1, # Layers or n last layers to tak
dinov2/dinov2/hub/text/dinov2_wrapper.py:26
↓ 6 callersMethodsave
Dump model and checkpointables to a file. Args: name (str): name of the file. kwargs (dict): extra arbitrary
dinov2/dinov2/fsdp/__init__.py:86
↓ 5 callersMethod__init__
(self, hidden_dim, input_dim, kernel_size=3)
core/update.py:34
↓ 5 callersMethod__init__
( self, embed_dims=768, post_process_channels=[96, 192, 384, 768], readout_typ
dinov2/dinov2/eval/depth/models/decode_heads/dpt_head.py:227
↓ 5 callersFunctionbuild_loss
Build loss.
dinov2/dinov2/eval/depth/models/builder.py:38
↓ 5 callersMethodcheckpoint
(self)
dinov2/dinov2/run/eval/knn.py:28
↓ 5 callersFunctionmake_data_loader
Creates a data loader with the specified parameters. Args: dataset: A dataset (third party, LaViDa or WebDataset). batch_siz
dinov2/dinov2/data/loaders.py:166
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
dinov2/dinov2/hub/depth/ops.py:11
↓ 5 callersFunctionsetup_logging
Setup logging. Args: output: A file name or a directory to save log files. If None, log files will not be saved. If outp
dinov2/dinov2/logging/__init__.py:82
↓ 5 callersMethodunpad
(self, x)
core/utils/utils.py:37
↓ 4 callersMethod__init__
(self, args)
core/extractor.py:325
↓ 4 callersMethod_load_extra
(self, extra_path: str)
dinov2/dinov2/data/datasets/image_net.py:84
↓ 4 callersFunction_make_dinov2_dpt_depther
( *, arch_name: str = "vit_large", pretrained: bool = True, weights: Union[Weights, str] = Wei
dinov2/dinov2/hub/depthers.py:180
↓ 4 callersFunction_make_dinov2_linear_depther
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
dinov2/dinov2/hub/depthers.py:70
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
depth_anything/dpt.py:10
↓ 4 callersFunctionextract_features
(model, dataset, batch_size, num_workers, gather_on_cpu=False)
dinov2/dinov2/eval/utils.py:98
↓ 4 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
dinov2/dinov2/run/submit.py:24
↓ 4 callersFunctionis_enabled
Returns: True if distributed training is enabled
dinov2/dinov2/distributed/__init__.py:19
↓ 4 callersMethodlog_every
(self, iterable, print_freq, header=None, n_iterations=None, start_iteration=0)
dinov2/dinov2/logging/helpers.py:66
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
dinov2/dinov2/models/vision_transformer.py:214
↓ 4 callersFunctionrankstr
()
dinov2/dinov2/fsdp/__init__.py:81
↓ 4 callersFunctionround_by_divider
(x)
Utils.py:93
↓ 4 callersFunctionsubmit_jobs
(task_class, args, name: str)
dinov2/dinov2/run/submit.py:92
↓ 3 callersMethod_get_entries_path
(self, root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net_22k.py:123
↓ 3 callersMethod_load_extra
(self, extra_path: str)
dinov2/dinov2/data/datasets/image_net_22k.py:185
↓ 3 callersFunction_run
(command)
dinov2/dinov2/utils/utils.py:49
↓ 3 callersMethod_save_extra
(self, extra_array: np.ndarray, extra_path: str)
dinov2/dinov2/data/datasets/image_net.py:88
↓ 3 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
dinov2/dinov2/eval/segmentation_m2f/core/utils/misc.py:31
↓ 3 callersFunctionall_gather_and_flatten
(tensor_rank)
dinov2/dinov2/eval/utils.py:86
↓ 3 callersFunctionbuild_match_cost
Build Match Cost.
dinov2/dinov2/eval/segmentation_m2f/models/builder.py:13
↓ 3 callersFunctionbuild_metric
(metric_type: MetricType, *, num_classes: int, ks: Optional[tuple] = None)
dinov2/dinov2/eval/metrics.py:43
↓ 3 callersMethoddecode
(self)
dinov2/dinov2/data/datasets/decoders.py:13
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:76
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:69
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
dinov2/dinov2/hub/depth/encoder_decoder.py:51
↓ 3 callersFunctionevaluate
( model: nn.Module, data_loader, postprocessors: Dict[str, nn.Module], metrics: Dict[str, Metr
dinov2/dinov2/eval/utils.py:48
↓ 3 callersFunctionevaluate_linear_classifiers
( feature_model, linear_classifiers, data_loader, metric_type, metrics_file_path, trai
dinov2/dinov2/eval/linear.py:260
↓ 3 callersMethodforward
Removes extra outputs and hyper-parameters
scripts/make_onnx.py:14
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:119
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
dinov2/dinov2/utils/cluster.py:31
↓ 3 callersFunctionget_fsdp_modules
(x)
dinov2/dinov2/fsdp/__init__.py:72
↓ 3 callersFunctionget_requirements
(path: str = HERE / "requirements.txt")
dinov2/setup.py:29
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:206
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:173
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
dinov2/dinov2/hub/depth/encoder_decoder.py:153
↓ 3 callersFunctionmake_classification_eval_transform
( *, resize_size: int = 256, interpolation=transforms.InterpolationMode.BICUBIC, crop_size: in
dinov2/dinov2/data/transforms.py:77
↓ 3 callersFunctionmake_normalize_transform
( mean: Sequence[float] = IMAGENET_DEFAULT_MEAN, std: Sequence[float] = IMAGENET_DEFAULT_STD, )
dinov2/dinov2/data/transforms.py:46
↓ 3 callersFunctionpool2x
(x)
core/update.py:71
↓ 3 callersFunctionremove_ddp_wrapper
(m: nn.Module)
dinov2/dinov2/eval/linear.py:159
↓ 3 callersFunctionsetup
Create configs and perform basic setups.
dinov2/dinov2/utils/config.py:63
↓ 3 callersFunctionsetup_and_build_model
(args)
dinov2/dinov2/eval/setup.py:70
↓ 3 callersFunctionvis_disparity
@disp: np array (H,W) @invalid_thres: > thres is invalid
Utils.py:108
↓ 2 callersMethod__init__
(self, enabled)
core/foundation_stereo.py:35
↓ 2 callersMethod__init__
(self, nclass, in_channels, features=256, use_bn=False, out_channels=[256, 512, 1024, 1024], use_clstoken=Fals
depth_anything/dpt.py:23
↓ 2 callersMethod__init__
(self, classifiers_dict)
dinov2/dinov2/eval/linear.py:205
↓ 2 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
dinov2/dinov2/layers/swiglu_ffn.py:15
↓ 2 callersFunction_check_env_variable
(key: str, new_value: str)
dinov2/dinov2/distributed/__init__.py:145
↓ 2 callersMethod_get_class_ids_path
(self, root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net_22k.py:126
↓ 2 callersFunction_get_depth_range
(pretrained: bool, weights: Weights = Weights.NYU)
dinov2/dinov2/hub/depthers.py:22
↓ 2 callersMethod_get_extra_full_path
(self, extra_path: str)
dinov2/dinov2/data/datasets/image_net.py:81
↓ 2 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
dinov2/dinov2/models/vision_transformer.py:285
↓ 2 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
dinov2/dinov2/models/vision_transformer.py:273
↓ 2 callersMethod_get_knn_sims_and_labels
(self, similarity, train_labels)
dinov2/dinov2/eval/knn.py:124
↓ 2 callersFunction_get_torch_dtype
(size: int)
dinov2/dinov2/data/samplers.py:59
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:40
↓ 2 callersMethod_reset_parameters
(self)
dinov2/dinov2/eval/segmentation_m2f/ops/modules/ms_deform_attn.py:99
↓ 2 callersMethod_save_extra
(self, extra_array: np.ndarray, extra_path: str)
dinov2/dinov2/data/datasets/image_net_22k.py:190
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
core/utils/utils.py:44
↓ 2 callersFunctionbuild_model_from_cfg
(cfg, only_teacher=False)
dinov2/dinov2/models/__init__.py:42
↓ 2 callersFunctionbuild_topk_accuracy_metric
(average_type: AccuracyAveraging, num_classes: int, ks: tuple = (1, 5))
dinov2/dinov2/eval/metrics.py:59
↓ 2 callersFunctioncreate_linear_input
(x_tokens_list, use_n_blocks, use_avgpool)
dinov2/dinov2/eval/linear.py:171
↓ 2 callersFunctioncross_entropy
cross_entropy. The wrapper function for :func:`F.cross_entropy` Args: pred (torch.Tensor): The prediction with shape (N, 1). labe
dinov2/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:15
↓ 2 callersFunctiondepth2xyzmap
(depth:np.ndarray, K, uvs:np.ndarray=None, zmin=0.1)
Utils.py:56
↓ 2 callersMethoddepth_pred
Prediction each pixel.
dinov2/dinov2/eval/depth/models/decode_heads/decode_head.py:155
next →1–100 of 881, ranked by callers