MCPcopy Create free account

hub / github.com/NVlabs/FoundationStereo / functions

Functions881 in github.com/NVlabs/FoundationStereo

Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Methodforward_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
Functionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
dinov2/dinov2/eval/setup.py:17
Methodget_checkpoint_file
Returns: str: The latest checkpoint file in target directory.
dinov2/dinov2/fsdp/__init__.py:126
Methodget_class_id
(self, index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:228
Methodget_class_ids
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:231
Methodget_class_name
(self, index: int)
dinov2/dinov2/data/datasets/image_net.py:161
Methodget_image_data
(self, index: int)
dinov2/dinov2/data/adapters.py:15
Methodget_image_data
(self, index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:203
Methodget_image_data
(self, index: int)
dinov2/dinov2/data/datasets/image_net.py:135
Methodget_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
Functionget_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
dinov2/dinov2/distributed/__init__.py:43
Functionget_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
Methodget_logits
(self, image: Tensor, text: Tensor)
dinov2/dinov2/hub/text/dinotxt_model.py:115
Functionget_sha
()
dinov2/dinov2/utils/utils.py:46
Methodget_target
(self, index: int)
dinov2/dinov2/data/adapters.py:18
Methodget_target
(self, index: int)
dinov2/dinov2/data/datasets/image_net_22k.py:222
Methodget_target
(self, index: int)
dinov2/dinov2/data/datasets/image_net.py:147
Methodget_targets
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:225
Methodget_targets
(self)
dinov2/dinov2/data/datasets/image_net.py:152
Methodget_teacher_output
()
dinov2/dinov2/train/ssl_meta_arch.py:158
Functionget_tokenizer
()
dinov2/dinov2/hub/dinotxt.py:65
Methodget_visual_class_and_patch_tokens
(self, image: Tensor)
dinov2/dinov2/hub/text/dinotxt_model.py:76
Methodglobal_avg
(self)
dinov2/dinov2/logging/helpers.py:176
Methodgrid_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
Methodhas_checkpoint
Returns: bool: whether a checkpoint exists in the target directory.
dinov2/dinov2/fsdp/__init__.py:118
Methodinfo
Returns a dictionary of info about the object.
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_sampling_result.py:53
Methodinfo
Returns a dictionary of info about the object.
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/sampling_result.py:82
Methodinit_weights
Initialize the transformer weights.
dinov2/dinov2/eval/segmentation_m2f/models/utils/transformer.py:624
Methodinit_weights
(self)
dinov2/dinov2/eval/segmentation_m2f/models/decode_heads/mask2former_head.py:141
Methodinit_weights
Initialize weights.
dinov2/dinov2/eval/segmentation_m2f/models/plugins/msdeformattn_pixel_decoder.py:124
Methodinit_weights
(self)
dinov2/dinov2/hub/text/text_transformer.py:50
Methodinit_weights
(self)
dinov2/dinov2/hub/text/vision_tower.py:134
Methodinit_weights
(self)
dinov2/dinov2/hub/text/text_tower.py:83
Methodinit_weights
( self, init_attn_std: float | None = None, init_proj_std: float | None = None,
dinov2/dinov2/layers/block.py:148
Methodinit_weights
( self, init_attn_std: float | None = None, init_proj_std: float | None = None, factor: float = 1.0
dinov2/dinov2/layers/attention.py:57
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
dinov2/dinov2/hub/text/vision_tower.py:14
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
dinov2/dinov2/models/vision_transformer.py:333
Methodlength
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:45
Methodlength
(self)
dinov2/dinov2/data/datasets/image_net.py:27
Functionload_and_merge_config
(config_name: str)
dinov2/dinov2/configs/__init__.py:19
Functionload_pretrained_weights
(model, pretrained_weights, checkpoint_key)
dinov2/dinov2/utils/utils.py:20
Methodloss_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
Methodloss_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
Functionmask_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
Methodmasks
torch.Tensor: concatenated positive and negative boxes
dinov2/dinov2/eval/segmentation_m2f/core/box/samplers/mask_sampling_result.py:40
Methodmedian
(self)
dinov2/dinov2/logging/helpers.py:166
Methodnum_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
Methodnum_levels
int: number of feature levels that the generator will be applied
dinov2/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:30
Functionpool4x
(x)
core/update.py:74
Methodrandom
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
Methodresize_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
Methodsample
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
Methodset_epoch
(self, epoch)
dinov2/dinov2/data/samplers.py:51
Methodsimple_test
Simple test with single image.
dinov2/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:241
Methodsimple_test
Simple test with single image.
dinov2/dinov2/eval/depth/models/depther/encoder_decoder.py:208
Methodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_masked_patches_tensor, n_iterations=3)
dinov2/dinov2/loss/ibot_patch_loss.py:62
Methodsoftmax_center_teacher
(self, teacher_patch_tokens, teacher_temp)
dinov2/dinov2/loss/ibot_patch_loss.py:46
Methodsparse_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
Methodsynchronize_between_processes
Distributed synchronization of the metric Warning: does not synchronize the deque!
dinov2/dinov2/logging/helpers.py:151
Methodtokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]]
dinov2/dinov2/hub/text/tokenizer.py:12
Methodtrain_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
Methodtrain_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
Functiontransform
(sample)
dinov2/dinov2/data/loaders.py:33
Methodupdate_center
(self, teacher_patch_tokens)
dinov2/dinov2/loss/ibot_patch_loss.py:129
Methodval_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
Methodval_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
Methodvalid_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
Methodvalue
(self)
dinov2/dinov2/logging/helpers.py:184
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
dinov2/dinov2/models/vision_transformer.py:355
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
dinov2/dinov2/models/vision_transformer.py:383
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
dinov2/dinov2/models/vision_transformer.py:369
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
dinov2/dinov2/models/vision_transformer.py:341
Functionwindow_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
Functionwindow_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
Methodwith_auxiliary_head
bool: whether the depther has auxiliary head
dinov2/dinov2/eval/depth/models/depther/base.py:27
Methodwith_decode_head
bool: whether the depther has decode head
dinov2/dinov2/eval/depth/models/depther/base.py:32
Methodwith_neck
bool: whether the depther has neck
dinov2/dinov2/eval/depth/models/depther/base.py:22
← previous801–881 of 881, ranked by callers