MCPcopy Create free account

hub / github.com/NVlabs/FoundationStereo / functions

Functions881 in github.com/NVlabs/FoundationStereo

↓ 2 callersMethoddepth_pred
Prediction each pixel.
dinov2/dinov2/hub/depth/decode_heads.py:149
↓ 2 callersFunctiondo_test
(cfg, model, iteration)
dinov2/dinov2/train/train.py:122
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
dinov2/dinov2/layers/block.py:173
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
dinov2/dinov2/layers/block.py:244
↓ 2 callersMethodencode_image
Encode an image into a vector descriptor containing both global and local features. Args: image (Tensor): Tensor of shap
dinov2/dinov2/hub/text/dinotxt_model.py:79
↓ 2 callersMethodencode_text
Encode a text input into a vector descriptor. Args: text (Tensor): Tensor of shape `(batch_size, seq_len)` containing to
dinov2/dinov2/hub/text/dinotxt_model.py:99
↓ 2 callersFunctionevaluate_model
(*, logreg_model, logreg_metric, test_data_loader, device)
dinov2/dinov2/eval/log_regression.py:147
↓ 2 callersMethodexport
(self, *, overwrite: bool)
dinov2/dinov2/distributed/__init__.py:219
↓ 2 callersMethodextract_feat
Extract features from images.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:69
↓ 2 callersMethodextract_feat
Extract features from images.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:62
↓ 2 callersMethodextract_feat
Extract features from images.
dinov2/dinov2/hub/depth/encoder_decoder.py:47
↓ 2 callersMethodforward
Estimate disparity between pair of frames
core/foundation_stereo.py:200
↓ 2 callersMethodforward
Forward function for `FFN`. The function would add x to the output tensor if residue is None.
dinov2/dinov2/eval/segmentation_m2f/models/utils/transformer.py:298
↓ 2 callersMethodforward
Placeholder of forward function.
dinov2/dinov2/eval/depth/models/decode_heads/decode_head.py:112
↓ 2 callersMethodforward
Placeholder of forward function.
dinov2/dinov2/hub/depth/decode_heads.py:108
↓ 2 callersMethodforward_features
(self, x, masks=None)
dinov2/dinov2/models/vision_transformer.py:255
↓ 2 callersMethodforward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (num_queries, batch_size, c
dinov2/dinov2/eval/segmentation_m2f/models/decode_heads/mask2former_head.py:383
↓ 2 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
dinov2/dinov2/eval/depth/models/depther/base.py:62
↓ 2 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
dinov2/dinov2/hub/depth/encoder_decoder.py:218
↓ 2 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
dinov2/dinov2/hub/depth/encoder_decoder.py:87
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
dinov2/dinov2/layers/block.py:220
↓ 2 callersMethodget_camera_transform
(self, camera_param_id: str)
scripts/run_demo_batch.py:89
↓ 2 callersMethodget_class_and_patch_tokens
(self, images: Tensor)
dinov2/dinov2/hub/text/vision_tower.py:151
↓ 2 callersMethodget_dirname
(self, class_id: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net.py:35
↓ 2 callersFunctionget_fsdp_wrapper
(model_cfg, modules_to_wrap=set())
dinov2/dinov2/fsdp/__init__.py:22
↓ 2 callersFunctionget_global_rank
Returns: The rank of the current process within the global process group.
dinov2/dinov2/distributed/__init__.py:35
↓ 2 callersFunctionget_global_size
Returns: The number of processes in the process group
dinov2/dinov2/distributed/__init__.py:27
↓ 2 callersFunctionget_reference_points
(spatial_shapes, device)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/adapter_modules.py:16
↓ 2 callersFunctionget_resize_keep_aspect_ratio
(H, W, divider=16, max_H=1232, max_W=1232)
Utils.py:89
↓ 2 callersFunctionget_slurm_partition
(cluster_type: Optional[ClusterType] = None)
dinov2/dinov2/utils/cluster.py:61
↓ 2 callersMethodget_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
dinov2/dinov2/eval/segmentation_m2f/models/decode_heads/mask2former_head.py:152
↓ 2 callersFunctiongroupwise_correlation
(fea1, fea2, num_groups)
core/submodule.py:384
↓ 2 callersMethodinit_weights
(self)
dinov2/dinov2/hub/text/vision_tower.py:80
↓ 2 callersMethodinit_weights
(self)
dinov2/dinov2/hub/text/text_tower.py:40
↓ 2 callersFunctioninterp
(x, dest)
core/update.py:77
↓ 2 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
dinov2/dinov2/eval/segmentation_m2f/models/utils/transformer.py:223
↓ 2 callersFunctionload_config
(config_name: str)
dinov2/dinov2/configs/__init__.py:11
↓ 2 callersFunctionmake_2tuple
(x)
dinov2/dinov2/layers/patch_embed.py:16
↓ 2 callersFunctionmake_eval_data_loader
(test_dataset_str, batch_size, num_workers, metric_type)
dinov2/dinov2/eval/linear.py:411
↓ 2 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
dinov2/dinov2/eval/segmentation_m2f/core/utils/misc.py:9
↓ 2 callersFunctionnormalize_image
@img: (B,C,H,W) in range 0-255, RGB order
core/foundation_stereo.py:43
↓ 2 callersFunctionpreprocess
(image_path, args)
scripts/run_demo_tensorrt.py:33
↓ 2 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/base_sampler.py:34
↓ 2 callersFunctionset_logging_format
(level=logging.INFO)
Utils.py:24
↓ 2 callersFunctionset_seed
(random_seed)
Utils.py:33
↓ 2 callersMethodsingle_level_grid_priors
Generate grid Points of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:82
↓ 2 callersMethodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_iterations=3)
dinov2/dinov2/loss/dino_clstoken_loss.py:35
↓ 2 callersMethodsoftmax_center_teacher
(self, teacher_output, teacher_temp)
dinov2/dinov2/loss/dino_clstoken_loss.py:29
↓ 2 callersMethodsynchronize_between_processes
(self)
dinov2/dinov2/logging/helpers.py:46
↓ 2 callersFunctiontoOpen3dCloud
(points,colors=None,normals=None)
Utils.py:43
↓ 2 callersFunctiontrain_for_C
(*, C, max_iter, train_features, train_labels, dtype=torch.float64, device=_CPU_DEVICE)
dinov2/dinov2/eval/log_regression.py:153
↓ 2 callersMethodupdate
(self, value, num=1)
dinov2/dinov2/logging/helpers.py:146
↓ 2 callersMethodupdate_center
(self, teacher_output)
dinov2/dinov2/loss/dino_clstoken_loss.py:77
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
depth_anything/blocks.py:41
↓ 1 callersMethod__init__
(self, model)
dinov2/dinov2/eval/utils.py:22
↓ 1 callersMethod__init__
(self, train_features, train_labels, nb_knn, T, device, num_classes=1000)
dinov2/dinov2/eval/knn.py:109
↓ 1 callersMethod__init__
( self, num_feats, temperature=10000, normalize=False, scale=2 * math.pi, eps=1e-6, offset=0.0, init_c
dinov2/dinov2/eval/segmentation_m2f/models/utils/positional_encoding.py:40
↓ 1 callersMethod__init__
( self, input_dim: int, embed_dim: int, num_heads: int, num_blocks: in
dinov2/dinov2/hub/text/vision_tower.py:46
↓ 1 callersMethod__init__
( self, input_dim: int, embed_dim: int, num_heads: int, num_blocks: in
dinov2/dinov2/hub/text/text_tower.py:10
↓ 1 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
dinov2/dinov2/layers/block.py:44
↓ 1 callersMethod_add_level_embed
(self, c2, c3, c4)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit_adapter.py:122
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:99
↓ 1 callersMethod_binary_cross_entropy
Args: cls_pred (Tensor): The prediction with shape (num_query, 1, *) or (num_query, *). gt_labels (Te
dinov2/dinov2/eval/segmentation_m2f/models/losses/match_costs.py:119
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
dinov2/dinov2/layers/dino_head.py:44
↓ 1 callersFunction_collect_env_vars
()
dinov2/dinov2/distributed/__init__.py:120
↓ 1 callersFunction_configure_logger
Configure a logger. Adapted from Detectron2. Args: name: The name of the logger to configure. level: The logging level
dinov2/dinov2/logging/__init__.py:18
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:93
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:93
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
dinov2/dinov2/hub/depth/encoder_decoder.py:75
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:84
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:85
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
dinov2/dinov2/hub/depth/encoder_decoder.py:67
↓ 1 callersMethod_dump_class_ids
(self, *args, **kwargs)
dinov2/dinov2/data/datasets/image_net_22k.py:280
↓ 1 callersMethod_dump_class_ids_and_names
(self)
dinov2/dinov2/data/datasets/image_net.py:252
↓ 1 callersMethod_dump_entries
(self, *args, **kwargs)
dinov2/dinov2/data/datasets/image_net_22k.py:242
↓ 1 callersMethod_dump_entries
(self)
dinov2/dinov2/data/datasets/image_net.py:186
↓ 1 callersMethod_dump_extra
(self, *args, **kwargs)
dinov2/dinov2/data/datasets/image_net_22k.py:297
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
dinov2/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:65
↓ 1 callersMethod_find_class_ids
(self, path: str)
dinov2/dinov2/data/datasets/image_net_22k.py:129
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Lis
dinov2/dinov2/eval/depth/models/decode_heads/linear_head.py:57
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Li
dinov2/dinov2/eval/segmentation/models/decode_heads/linear_head.py:24
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Lis
dinov2/dinov2/hub/depth/decode_heads.py:265
↓ 1 callersMethod_gather_all_knn_for_rank
(self, topk_sims, neighbors_labels, target_rank)
dinov2/dinov2/eval/knn.py:144
↓ 1 callersFunction_generate_randperm_indices
Generate the indices of a random permutation.
dinov2/dinov2/data/samplers.py:63
↓ 1 callersFunction_get_available_port
()
dinov2/dinov2/distributed/__init__.py:101
↓ 1 callersMethod_get_class_ids
(self)
dinov2/dinov2/data/datasets/image_net.py:111
↓ 1 callersMethod_get_class_names
(self)
dinov2/dinov2/data/datasets/image_net.py:119
↓ 1 callersFunction_get_master_port
(seed: int = 0)
dinov2/dinov2/distributed/__init__.py:90
↓ 1 callersFunction_get_numpy_dtype
(size: int)
dinov2/dinov2/data/samplers.py:55
↓ 1 callersMethod_get_pad
(self, size)
dinov2/dinov2/hub/utils.py:28
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit_adapter.py:107
↓ 1 callersFunction_get_tarball_path
(class_id: str)
dinov2/dinov2/data/datasets/image_net_22k.py:55
↓ 1 callersFunction_guess_cluster_type
()
dinov2/dinov2/utils/cluster.py:18
↓ 1 callersFunction_imdenormalize
(img, mean, std, to_bgr=True)
dinov2/dinov2/hub/depth/decode_heads.py:18
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:59
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:53
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:57
↓ 1 callersFunction_is_contiguous
(tensor: torch.Tensor)
core/submodule.py:18
↓ 1 callersFunction_is_power_of_2
(n)
dinov2/dinov2/eval/segmentation_m2f/ops/modules/ms_deform_attn.py:57
↓ 1 callersFunction_is_slurm_job_process
()
dinov2/dinov2/distributed/__init__.py:124
← previousnext →101–200 of 881, ranked by callers