Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/FoundationStereo
/ functions
Functions
881 in github.com/NVlabs/FoundationStereo
⨍
Functions
881
◇
Types & classes
190
↳
Endpoints
1
Method
forward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]): L
dinov2/dinov2/eval/depth/models/decode_heads/decode_head.py:139
Method
forward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]): L
dinov2/dinov2/hub/depth/decode_heads.py:134
Method
forward_train
Forward function for training mode. Args: x (list[Tensor]): Multi-level features from the upstream network, each
dinov2/dinov2/eval/segmentation_m2f/models/decode_heads/mask2former_head.py:494
Method
forward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
dinov2/dinov2/eval/depth/models/decode_heads/decode_head.py:116
Method
forward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
dinov2/dinov2/hub/depth/decode_heads.py:112
Function
get_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
dinov2/dinov2/eval/setup.py:17
Method
get_checkpoint_file
Returns: str: The latest checkpoint file in target directory.
dinov2/dinov2/fsdp/__init__.py:126
Method
get_class_id
(self, index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:228
Method
get_class_ids
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:231
Method
get_class_name
(self, index: int)
dinov2/dinov2/data/datasets/image_net.py:161
Method
get_image_data
(self, index: int)
dinov2/dinov2/data/adapters.py:15
Method
get_image_data
(self, index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:203
Method
get_image_data
(self, index: int)
dinov2/dinov2/data/datasets/image_net.py:135
Method
get_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
dinov2/dinov2/models/vision_transformer.py:299
Function
get_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
dinov2/dinov2/distributed/__init__.py:43
Function
get_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
dinov2/dinov2/distributed/__init__.py:54
Method
get_logits
(self, image: Tensor, text: Tensor)
dinov2/dinov2/hub/text/dinotxt_model.py:115
Function
get_sha
()
dinov2/dinov2/utils/utils.py:46
Method
get_target
(self, index: int)
dinov2/dinov2/data/adapters.py:18
Method
get_target
(self, index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:222
Method
get_target
(self, index: int)
dinov2/dinov2/data/datasets/image_net.py:147
Method
get_targets
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:225
Method
get_targets
(self)
dinov2/dinov2/data/datasets/image_net.py:152
Method
get_teacher_output
()
dinov2/dinov2/train/ssl_meta_arch.py:158
Function
get_tokenizer
()
dinov2/dinov2/hub/dinotxt.py:65
Method
get_visual_class_and_patch_tokens
(self, image: Tensor)
dinov2/dinov2/hub/text/dinotxt_model.py:76
Method
global_avg
(self)
dinov2/dinov2/logging/helpers.py:176
Method
grid_priors
Generate grid points of multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:50
Method
has_checkpoint
Returns: bool: whether a checkpoint exists in the target directory.
dinov2/dinov2/fsdp/__init__.py:118
Method
info
Returns a dictionary of info about the object.
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_sampling_result.py:53
Method
info
Returns a dictionary of info about the object.
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/sampling_result.py:82
Method
init_weights
Initialize the transformer weights.
dinov2/dinov2/eval/segmentation_m2f/models/utils/transformer.py:624
Method
init_weights
(self)
dinov2/dinov2/eval/segmentation_m2f/models/decode_heads/mask2former_head.py:141
Method
init_weights
Initialize weights.
dinov2/dinov2/eval/segmentation_m2f/models/plugins/msdeformattn_pixel_decoder.py:124
Method
init_weights
(self)
dinov2/dinov2/hub/text/text_transformer.py:50
Method
init_weights
(self)
dinov2/dinov2/hub/text/vision_tower.py:134
Method
init_weights
(self)
dinov2/dinov2/hub/text/text_tower.py:83
Method
init_weights
( self, init_attn_std: float | None = None, init_proj_std: float | None = None,
dinov2/dinov2/layers/block.py:148
Method
init_weights
( self, init_attn_std: float | None = None, init_proj_std: float | None = None, factor: float = 1.0
dinov2/dinov2/layers/attention.py:57
Function
init_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
dinov2/dinov2/hub/text/vision_tower.py:14
Function
init_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
dinov2/dinov2/models/vision_transformer.py:333
Method
length
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:45
Method
length
(self)
dinov2/dinov2/data/datasets/image_net.py:27
Function
load_and_merge_config
(config_name: str)
dinov2/dinov2/configs/__init__.py:19
Function
load_pretrained_weights
(model, pretrained_weights, checkpoint_key)
dinov2/dinov2/utils/utils.py:20
Method
loss_name
Loss Name. This function must be implemented and will return the name of this loss function. This name will be used to combine differ
dinov2/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:267
Method
loss_single
Loss function for outputs from a single decoder layer. Args: cls_scores (Tensor): Mask score logits from a single decoder layer
dinov2/dinov2/eval/segmentation_m2f/models/decode_heads/mask2former_head.py:258
Function
mask_cross_entropy
Calculate the CrossEntropy loss for masks. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of cl
dinov2/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:149
Method
masks
torch.Tensor: concatenated positive and negative boxes
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_sampling_result.py:40
Method
median
(self)
dinov2/dinov2/logging/helpers.py:166
Method
num_base_priors
list[int]: The number of priors (points) at a point on the feature grid
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:35
Method
num_levels
int: number of feature levels that the generator will be applied
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:30
Function
pool4x
(x)
core/update.py:74
Method
random
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/sampling_result.py:95
Method
resize_pos_embed
Resize pos_embed weights. Resize pos_embed using bicubic interpolate method. Args: pos_embed (torch.Tensor): Position emb
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit.py:527
Method
sample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_pseudo_sampler.py:31
Method
set_epoch
(self, epoch)
dinov2/dinov2/data/samplers.py:51
Method
simple_test
Simple test with single image.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:241
Method
simple_test
Simple test with single image.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:208
Method
sinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_masked_patches_tensor, n_iterations=3)
dinov2/dinov2/loss/ibot_patch_loss.py:62
Method
softmax_center_teacher
(self, teacher_patch_tokens, teacher_temp)
dinov2/dinov2/loss/ibot_patch_loss.py:46
Method
sparse_priors
Generate sparse points according to the ``prior_idxs``. Args: prior_idxs (Tensor): The index of corresponding anchors
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:182
Method
synchronize_between_processes
Distributed synchronization of the metric Warning: does not synchronize the deque!
dinov2/dinov2/logging/helpers.py:151
Method
tokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]]
dinov2/dinov2/hub/text/tokenizer.py:12
Method
train_step
The iteration step during training. This method defines an iteration step during training, except for the back propagation and optimi
dinov2/dinov2/eval/depth/models/depther/base.py:109
Method
train_step
The iteration step during training. This method defines an iteration step during training, except for the back propagation and optimi
dinov2/dinov2/hub/depth/encoder_decoder.py:264
Function
transform
(sample)
dinov2/dinov2/data/loaders.py:33
Method
update_center
(self, teacher_patch_tokens)
dinov2/dinov2/loss/ibot_patch_loss.py:129
Method
val_step
The iteration step during validation. This method shares the same signature as :func:`train_step`, but used during val epochs. Note t
dinov2/dinov2/eval/depth/models/depther/base.py:152
Method
val_step
The iteration step during validation. This method shares the same signature as :func:`train_step`, but used during val epochs. Note t
dinov2/dinov2/hub/depth/encoder_decoder.py:307
Method
valid_flags
Generate valid flags of points of multiple feature levels. Args: featmap_sizes (list(tuple)): List of feature map sizes in
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:130
Method
value
(self)
dinov2/dinov2/logging/helpers.py:184
Function
vit_base
(patch_size=16, num_register_tokens=0, **kwargs)
dinov2/dinov2/models/vision_transformer.py:355
Function
vit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
dinov2/dinov2/models/vision_transformer.py:383
Function
vit_large
(patch_size=16, num_register_tokens=0, **kwargs)
dinov2/dinov2/models/vision_transformer.py:369
Function
vit_small
(patch_size=16, num_register_tokens=0, **kwargs)
dinov2/dinov2/models/vision_transformer.py:341
Function
window_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit.py:194
Function
window_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
dinov2/dinov2/eval/segmentation_m2f/models/backbones/vit.py:208
Method
with_auxiliary_head
bool: whether the depther has auxiliary head
dinov2/dinov2/eval/depth/models/depther/base.py:27
Method
with_decode_head
bool: whether the depther has decode head
dinov2/dinov2/eval/depth/models/depther/base.py:32
Method
with_neck
bool: whether the depther has neck
dinov2/dinov2/eval/depth/models/depther/base.py:22
← previous
801–881 of 881, ranked by callers