MCPcopy Create free account

hub / github.com/NVlabs/RADIO / functions

Functions572 in github.com/NVlabs/RADIO

↓ 2 callersFunctionmake_2tuple
(x)
radio/dinov2_arch.py:44
↓ 2 callersMethodmake_preprocessor_external
(self)
radio/hf_model.py:198
↓ 2 callersFunctionpixel_unshuffle
(data, factor=2)
radio/eradio_model.py:132
↓ 2 callersMethodrelative_bias_initialization
(self, window_size, num_heads, pretrained_window_size, seq_length, no_log)
radio/eradio_model.py:267
↓ 2 callersFunctionrender_into
(draw_func)
tools/im_join.py:98
↓ 2 callersFunctionreplace_ls
(old_ls: TIMMLayerScale)
radio/extra_timm_models.py:175
↓ 2 callersFunctionreplace_prefix_in_state_dict
(state_dict, old_prefix, new_prefix, replace_all=False)
hf_hub.py:29
↓ 2 callersFunctionrotate_every_two
(x)
radio/vision_transformer_xpos.py:36
↓ 2 callersFunctionrun_rank_0_first
(group: Optional[dist.ProcessGroup] = None)
examples/common/utils.py:52
↓ 2 callersFunctionstrip_prefix
(state: Dict[str, torch.Tensor], prefix: str)
radio/adaptor_module_factory.py:34
↓ 2 callersMethodtrain
Intercept call. We want to train the conv2d but keep the radio model in eval mode.
examples/position_predictor.py:367
↓ 2 callersFunctionupdate_resolution
(tx, res: int)
examples/mode_switching.py:131
↓ 2 callersFunctionwindow_reverse
Windows to the full feature map Args: windows: local window features (num_windows*B, window_size, window_size, C) window_size
radio/eradio_model.py:203
↓ 1 callersMethod__init__
(self, C: int, init_alpha: float)
radio/extra_timm_models.py:207
↓ 1 callersMethod__init__
(self, c1, c2, n=1, shortcut=False, g=1, e=0.5, drop_path=None)
radio/block.py:22
↓ 1 callersMethod__init__
(self, input_size: int, hidden_size: int, output_size: int, num_inner: int = 0, device: torch
radio/adaptor_mlp.py:22
↓ 1 callersMethod__init__
(self, config: RADIOConfig)
radio/hf_model.py:102
↓ 1 callersMethod__init__
(self, dino_model: nn.Module)
radio/extra_models.py:120
↓ 1 callersMethod__init__
(self)
radio/adaptor_base.py:49
↓ 1 callersMethod__init__
(self, size: Iterable[int], resize_multiple: int = 1)
examples/position_predictor.py:231
↓ 1 callersFunction_apply_scaled_ln
(model: VisionTransformer)
radio/extra_timm_models.py:232
↓ 1 callersMethod_apply_upscale
Apply patch splitting upscale operation. Args: x: Input tensor of shape (B, N, C) where N = num_prefix_tokens + H*W u
radio/radio1d.py:542
↓ 1 callersFunction_attn_hook
(name: str)
examples/model_stats.py:123
↓ 1 callersFunction_distributed_topk
( queries: torch.Tensor, keys: torch.Tensor, labels: torch.Tensor, K: int, distributed: bo
examples/knn_classification.py:240
↓ 1 callersFunction_enable_cpe_for_dv2_reg_vit
(model: DinoWrapper, max_img_size: Union[int, Tuple[int, int]] = 1024,
radio/enable_cpe_support.py:135
↓ 1 callersMethod_ff_block
(self, x: torch.Tensor)
radio/vision_transformer_xpos.py:214
↓ 1 callersFunction_forward_cpe
(self: VisionTransformer, x: torch.Tensor)
radio/enable_cpe_support.py:27
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Li
mmseg/linear_head.py:51
↓ 1 callersFunction_forward_intermediates_cpe
( self, x: torch.Tensor, norm: bool = False, **kwargs, )
radio/enable_cpe_support.py:63
↓ 1 callersMethod_get_filler_tokens
Get filler tokens interpolated to the required spatial size. Args: H: Target height in patches W: Target width in pat
radio/radio1d.py:586
↓ 1 callersFunction_get_hadamard_matrix
(feature_dim: int, allow_approx: bool)
examples/common/hadamard.py:20
↓ 1 callersFunction_get_init_scale
(num_encoder_layers: int, num_decoder_layers: int, is_encoder: bool)
radio/vision_transformer_xpos.py:15
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
radio/dinov2_arch.py:787
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
radio/dinov2_arch.py:775
↓ 1 callersMethod_get_nearest
(self, value: int)
examples/position_predictor.py:237
↓ 1 callersMethod_get_nearest
(self, value: int)
examples/common/resize_transform.py:32
↓ 1 callersFunction_get_paligemma_model
(repo: str, embed_dim: int = None, dtype: torch.dtype = torch.bfloat16)
radio/extra_models.py:58
↓ 1 callersMethod_get_pos_embeddings
(self, batch_size: int, input_dims: Tuple[int, int], flatten: bool = True)
radio/vit_patch_generator.py:199
↓ 1 callersMethod_get_rotation
(self, rot_index: int)
radio/feature_normalizer.py:89
↓ 1 callersFunction_get_vote_cls
Uses e^`sim` as a weighted vote for the corresponding label in `labels`. Returns the label that received the most vote weight.
examples/knn_classification.py:195
↓ 1 callersFunction_init_layerscale
(model: VisionTransformer)
radio/radio1d.py:1757
↓ 1 callersFunction_is_paley_construction_1
(feature_dim: int)
examples/common/hadamard.py:170
↓ 1 callersFunction_is_paley_construction_2
(feature_dim: int)
examples/common/hadamard.py:175
↓ 1 callersFunction_is_prime
(n: int)
examples/common/hadamard.py:180
↓ 1 callersFunction_knn_top1_accuracy
Calculate k-NN Top-1 classification accuracy. Args: * train_split_embeddings: training split embeddings. * train_split_labels: training s
examples/knn_classification.py:299
↓ 1 callersFunction_mlp_hook
(name: str)
examples/model_stats.py:150
↓ 1 callersFunction_normalize_stats
(n_iter: int)
examples/model_stats.py:194
↓ 1 callersFunction_pad
Utility function to pad a tensor a return a validity mask.
examples/knn_classification.py:214
↓ 1 callersFunction_patch_layer_scale
(model: VisionTransformer)
radio/extra_timm_models.py:174
↓ 1 callersMethod_rearrange_patches
(self, patches: torch.Tensor)
radio/vitdet.py:149
↓ 1 callersMethod_reset_parameters
(self)
radio/vision_transformer_xpos.py:165
↓ 1 callersMethod_sa_block
(self, x: torch.Tensor, num_prefix_tokens: int, patch_shape: Tuple[int, int])
radio/vision_transformer_xpos.py:210
↓ 1 callersMethod_sample
(self, batch_size: int, max_tokens: int)
radio/radio1d.py:688
↓ 1 callersFunction_take_indices
( num_blocks: int, n: Optional[Union[int, List[int], Tuple[int]]], )
radio/forward_intermediates.py:18
↓ 1 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor:
mmseg/linear_head.py:69
↓ 1 callersFunctionaccuracy
Computes the accuracy over the k top predictions for the specified values of k
examples/zero_shot_imagenet.py:218
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
radio/dinov2_arch.py:480
↓ 1 callersMethodapply_aux_losses
(self, encoder_result: dict)
radio/radio1d.py:1437
↓ 1 callersMethodapply_pos_enc
(self, patches: torch.Tensor, patch_idxs: Optional[torch.Tensor] =
radio/vit_patch_generator.py:155
↓ 1 callersFunctionapply_vitdet_arch
(model: Union[VisionTransformer, DinoWrapper], args: VitDetArgs)
radio/vitdet.py:34
↓ 1 callersFunctionautopad
Pad to 'same' shape outputs.
radio/eradio_model.py:118
↓ 1 callersFunctionautopad
Pad to 'same' shape outputs.
radio/conv.py:16
↓ 1 callersMethodbackward
(ctx: torch.autograd.function.FunctionCtx, grad_output: torch.Tensor)
radio/radio1d.py:334
↓ 1 callersMethodblocks
(self)
radio/extra_models.py:147
↓ 1 callersFunctioncalc_lidar
(embeddings: torch.Tensor, delta: float = DELTA)
examples/ssl_metrics.py:330
↓ 1 callersFunctioncanonicalize_text
Returns canonicalized `text` (lowercase and punctuation removed). From: https://github.com/google-research/big_vision/blob/53f18caf27a9419231bbf0
radio/siglip2_adaptor.py:65
↓ 1 callersMethodchange_window_size
E-RADIO employs windowed attention, which may be sensitive to the choice of this parameter, especially in cases of uneven partitionin
radio/eradio_model.py:1215
↓ 1 callersFunctioncompute_feature_matrix
( model: nn.Module, preproc: nn.Module, adaptor: str, num_samples: int, resolution: int,
examples/cca_compare_models.py:63
↓ 1 callersFunctionconfigure_damp_from_args
(model: nn.Module, args)
radio/enable_damp.py:39
↓ 1 callersMethodcos_sin
( self, token_shape: Tuple[int, int], device="cuda", dtype=torch.bfloat16,
radio/vision_transformer_xpos.py:70
↓ 1 callersMethodcpe_video_mode
Context Manager. Puts the patch generator into video mode, with the specified number of temporal frames. In video mode, the
radio/radio_model.py:166
↓ 1 callersMethodcreate_adaptor
(self, name, main_config: Namespace, adaptor_config: dict_t, state: state_t)
radio/adaptor_registry.py:31
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
radio/dinov2_arch.py:260
↓ 1 callersMethodembed_patches
(self, x: torch.Tensor)
radio/vit_patch_generator.py:150
↓ 1 callersFunctionenable_cpe
(model: nn.Module, *args, **kwargs, )
radio/enable_cpe_support.py:176
↓ 1 callersFunctionenable_damp
(model: nn.Module, std: float)
radio/enable_damp.py:28
↓ 1 callersMethodencode_image
(self, image, normalize: bool = False)
examples/common/model_loader.py:111
↓ 1 callersMethodencode_text
(self, text, normalize: bool = False)
radio/siglip2_adaptor.py:45
↓ 1 callersFunctioneradio_large_fullres_ws16
(pretrained=False, **kwargs)
radio/eradio_model.py:1299
↓ 1 callersFunctionevaluate
Evaluation routine.
examples/position_predictor.py:460
↓ 1 callersMethodforward
(self, x: torch.Tensor)
radio/extra_timm_models.py:213
↓ 1 callersMethodforward_decoder
Forward pass through decoder only. Args: global_tokens: Global tokens from encoder (B, max_tokens, C) global_token_ma
radio/radio1d.py:1398
↓ 1 callersMethodforward_features
(self, x, masks=None)
radio/dinov2_arch.py:757
↓ 1 callersMethodforward_features
(self, x)
radio/eradio_model.py:1170
↓ 1 callersMethodforward_features
(self, x: torch.Tensor)
radio/dual_hybrid_vit.py:153
↓ 1 callersMethodforward_features
(self, x: torch.Tensor)
radio/extra_models.py:158
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
radio/dinov2_arch.py:737
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
radio/dinov2_arch.py:397
↓ 1 callersFunctiongather_cat
(t: torch.Tensor, rank: int, world_size: int, device: torch.device)
examples/ssl_metrics.py:532
↓ 1 callersFunctiongenerate_homography_grid
(homography: torch.Tensor, size)
examples/ssl_metrics.py:547
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
radio/dinov2_arch.py:472
↓ 1 callersFunctionget_cache_filename
(cache_dir: str, model_name: str, which: str, adaptor: str)
examples/cca_compare_models.py:52
↓ 1 callersFunctionget_clip_classifier
Build zero-shot classifier weights. Args: model: CLIP model instance tokenizer: CLIP tokenizer instance device: Devi
examples/zero_shot_imagenet.py:229
↓ 1 callersFunctionget_hadamard_matrix
(feature_dim: int, allow_approx: bool = True)
examples/common/hadamard.py:7
↓ 1 callersMethodget_instance
(dtype: torch.dtype, device: torch.device)
radio/feature_normalizer.py:103
↓ 1 callersFunctionget_joint_hadamard_matrix
(syl: torch.Tensor, paley: torch.Tensor)
examples/common/hadamard.py:143
↓ 1 callersMethodget_nearest_supported_resolution
(self, height: int, width: int)
radio/hf_model.py:201
↓ 1 callersMethodget_nearest_supported_resolution
(self, height: int, width: int)
radio/radio_model.py:152
↓ 1 callersFunctionget_paley_hadamard_matrix_1
(feature_dim: int)
examples/common/hadamard.py:80
↓ 1 callersFunctionget_paley_hadamard_matrix_2
(feature_dim: int)
examples/common/hadamard.py:92
← previousnext →101–200 of 572, ranked by callers