MCPcopy Create free account

hub / github.com/NVlabs/RADIO / functions

Functions572 in github.com/NVlabs/RADIO

↓ 1 callersMethodget_pos_enc
(self, batch_size: int, patch_idxs: Optional[torch.Tensor] = None,
radio/vit_patch_generator.py:173
↓ 1 callersMethodinit_weights
(self)
mmseg/radio.py:90
↓ 1 callersMethodinitialize
(self)
radio/vision_transformer_xpos.py:195
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
radio/dinov2_arch.py:682
↓ 1 callersFunctionmagneto_init
Initialization following [Magneto](http://arxiv.org/abs/2210.06423)
radio/radio1d.py:1733
↓ 1 callersFunctionmain
Main Routine. Construct and optionally push a RADIO model to Hugging Face. Usage: python3 -m hf_hub --model <model-name> --checkpoint-p
hf_hub.py:42
↓ 1 callersFunctionmain
Main Routine. Pull a model from HuggingFace and make sure its output features match those of the corresponding TorchHub model. Usage:
test_hf.py:31
↓ 1 callersFunctionmain
()
tools/im_join.py:17
↓ 1 callersFunctionmain
()
tools/photo_strip.py:16
↓ 1 callersFunctionmain
()
mmseg/train.py:80
↓ 1 callersFunctionmain
(rank: int = 0, world_size: int = 1)
examples/knn_classification.py:33
↓ 1 callersFunctionmain
Computes the RankMe (http://arxiv.org/abs/2210.02885) and LiDAR (http://arxiv.org/abs/2312.04000) estimates of the rank of the produced embed
examples/visualize_features.py:56
↓ 1 callersFunctionmain
Computes the RankMe (http://arxiv.org/abs/2210.02885) and LiDAR (http://arxiv.org/abs/2312.04000) estimates of the rank of the produced embed
examples/mode_switching.py:48
↓ 1 callersFunctionmain
Computes the RankMe (http://arxiv.org/abs/2210.02885) and LiDAR (http://arxiv.org/abs/2312.04000) estimates of the rank of the produced embed
examples/ssl_metrics.py:45
↓ 1 callersFunctionmain
Computes the PCA features for every frame in a supplied video and renders them into a new video.
examples/visualize_video_features.py:37
↓ 1 callersFunctionmain
(rank: int = 0, world_size: int = 1)
examples/cca_compare_models.py:177
↓ 1 callersFunctionmain
(rank: int = 0, world_size: int = 1)
examples/zero_shot_imagenet.py:44
↓ 1 callersFunctionmain
(rank: int = 0, world_size: int = 1)
examples/feature_distribution.py:35
↓ 1 callersFunctionmain
(rank: int = 0, world_size: int = 1)
examples/position_predictor.py:31
↓ 1 callersFunctionmain
(rank: int = 0, world_size: int = 1)
examples/count_params.py:54
↓ 1 callersFunctionmain
()
examples/model_stats.py:31
↓ 1 callersMethodmake_params
(self, flat_inputs: List[Any])
examples/common/resize_transform.py:127
↓ 1 callersMethodmodel
(self)
radio/hf_model.py:167
↓ 1 callersFunctionpaint_headers
(pil_buff)
tools/im_join.py:112
↓ 1 callersFunctionparse_args
()
mmseg/train.py:34
↓ 1 callersFunctionprocess_with_animation
Process images with radio1d_size animation. First pass: Extract PCA stats with max radio1d_size. Second pass: Generate frames for all rad
examples/visualize_features.py:301
↓ 1 callersFunctionrand_augment
Taken from https://towardsdatascience.com/augmentation-methods-using-albumentations-and-pytorch-35cd135382f8
examples/common/rand_augment.py:7
↓ 1 callersFunctionround_ste
Straight-through estimator for the rounding operation.
radio/radio1d.py:215
↓ 1 callersFunctionsample_multinomial_batch
Sample token counts for each sample in a batch. Uses torch.multinomial for sampling, ensuring reproducibility with torch.manual_seed(). Args
radio/radio1d.py:282
↓ 1 callersFunctionslice_1d_tokens
Slice variable numbers of 1D tokens per sample. Args: x: Input tensor of shape (B, N, C) where N = num_prefix + num_spatial num_t
radio/radio1d.py:339
↓ 1 callersFunctionssl_augment
(transform_reg, transform_aug, num_variants)
examples/ssl_metrics.py:264
↓ 1 callersMethodswitch_to_deploy
(self)
radio/eradio_model.py:104
↓ 1 callersMethodswitch_to_deploy
(self)
radio/conv.py:46
↓ 1 callersFunctiontrain
Training routine.
examples/position_predictor.py:399
↓ 1 callersMethodtrain
Intercept call.
mmseg/radio.py:83
↓ 1 callersMethodtransform
(self, inpt: Any, params: Dict[str, Any])
examples/common/resize_transform.py:135
↓ 1 callersFunctionvit_huge_patch16_224
ViT-Huge model (ViT-H/16) from original paper (https://arxiv.org/abs/2010.11929).
radio/extra_timm_models.py:121
Method__call__
(self, *args, **kwargs)
radio/utils.py:26
Method__call__
(self, text: List[str])
radio/siglip2_adaptor.py:59
Method__call__
(self, *args, **kwargs)
examples/common/rand_augment.py:83
Method__enter__
(self, *args, **kwargs)
radio/utils.py:35
Method__exit__
(self, *args, **kwargs)
radio/utils.py:39
Method__init__
(self, resize_factors=None, **kwargs)
mmseg/linear_head.py:21
Method__init__
( self, repo_id: str, token: Optional[str] = None, init_cfg=None, **kw
mmseg/radio.py:29
Method__init__
(self, num_intermediates: int, embed_dim: int, rot_per_layer: bool = False, dtype: torch.dtype = torch.float32
radio/feature_normalizer.py:50
Method__init__
(self, dtype: torch.dtype, device: torch.device)
radio/feature_normalizer.py:98
Method__init__
(self, ln_base: nn.LayerNorm, depth: int = 0)
radio/extra_timm_models.py:195
Method__init__
( self, img_size: Union[int, Tuple[int, int]] = 224, patch_size: Union[int, Tuple[int,
radio/dinov2_arch.py:65
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
radio/dinov2_arch.py:120
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
radio/dinov2_arch.py:213
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
radio/dinov2_arch.py:240
Method__init__
(self, drop_prob=None)
radio/dinov2_arch.py:275
Method__init__
( self, dim: int, init_values: Union[float, torch.Tensor] = 1e-5, inplace: boo
radio/dinov2_arch.py:284
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
radio/dinov2_arch.py:323
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
radio/dinov2_arch.py:561
Method__init__
(self, window_size: int, num_summary_tokens: int, num_windo
radio/vitdet.py:22
Method__init__
(self, embedder: nn.Module, blocks: nn.Sequential, args: Vi
radio/vitdet.py:49
Method__init__
(self, std: float)
radio/enable_damp.py:23
Method__init__
(self, c1, c2, shortcut=True, g=1, k=(3, 3), e=0.5, drop_path=0.0)
radio/eradio_model.py:69
Method__init__
(self, a, b, kernel_size=1, stride=1, padding=None, g=1, dilation=1, bn_weight_init=1, bias=False, act=True)
radio/eradio_model.py:86
Method__init__
(self, a, b, kernel_size=1, stride=1, padding=0, dilation=1, groups=1, bn_weight_init=1, bias=False)
radio/eradio_model.py:176
Method__init__
( self, window_size, pretrained_window_size, num_heads, seq_length, no_log=False, cpb_mlp_hidden=512,
radio/eradio_model.py:238
Method__init__
Global Resolution Attention Block , see README for details Attention with subsampling to get a bigger receptive field for attention
radio/eradio_model.py:370
Method__init__
Args: input_resolution: input image resolution window_size: window size compression_ratio: compression ra
radio/eradio_model.py:536
Method__init__
Args: in_features: input features dimension. hidden_features: hidden features dimension. out_features: ou
radio/eradio_model.py:588
Method__init__
Args: dim: feature size dimension. shuffle: idea with keep_dim: bool argument for maintaining the resolut
radio/eradio_model.py:626
Method__init__
Args: in_chans: number of input channels. in_dim: intermediate feature size dimension to speed up stem. d
radio/eradio_model.py:664
Method__init__
(self, dim, drop_path=0., layer_scale=None, kernel_size=3,
radio/eradio_model.py:702
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, resolution=0, seq_length=0, dim_out=N
radio/eradio_model.py:739
Method__init__
Args: dim: feature size dimension. depth: number of layers in each stage. input_resolution: input image r
radio/eradio_model.py:804
Method__init__
(self, size=None, scale_factor=None, mode='nearest')
radio/eradio_model.py:956
Method__init__
Hi Resolution neck to support output of high res features that are useful for dense tasks. depths - total number of layers in the bas
radio/eradio_model.py:971
Method__init__
Args: dim: feature size dimension. depths: number of layers in each stage. window_size: window size in ea
radio/eradio_model.py:1031
Method__init__
(self, ndim: int, num_tokens: int = 1, enabled: bool = True,
radio/cls_token.py:15
Method__init__
(self, c1, c2, shortcut=True, g=1, k=(3, 3), e=0.5, drop_path=0.0)
radio/block.py:48
Method__init__
(self, func = None)
radio/utils.py:23
Method__init__
(self, weight: torch.Tensor, num_chunks: int, *args, init_norm_to_current: bool = False, **kwargs)
radio/enable_spectral_reparam.py:104
Method__init__
(self, weight: torch.Tensor, *args, init_norm_to_current: bool = False, renorm_values: bool = False, **kwargs)
radio/enable_spectral_reparam.py:127
Method__init__
(self, input_size: int, hidden_size: int, output_size: int, num_inner: int = 0,
radio/adaptor_mlp.py:53
Method__init__
(self, main_config: Namespace, adaptor_config, state, mlp_config=None)
radio/adaptor_generic.py:19
Method__init__
(self)
radio/adaptor_registry.py:20
Method__init__
(self, patch_size: int, embed_dim: int, input_dims: input_d
radio/vit_patch_generator.py:28
Method__init__
(self, patch_size: int, embed_dim: int, bias: bool = False, **factory)
radio/vit_patch_generator.py:297
Method__init__
(self, main_config: Namespace, adaptor_config: dict_t, state: state_t)
radio/siglip2_adaptor.py:29
Method__init__
(self, proc)
radio/siglip2_adaptor.py:56
Method__init__
( self, args: Optional[dict] = None, version: Optional[str] = DEFAULT_VERSION,
radio/hf_model.py:56
Method__init__
( self, model: nn.Module, input_conditioner: InputConditioner, patch_size: int
radio/radio_model.py:30
Method__init__
(self, dim: int, window_size: int, num_heads: int = 16)
radio/dual_hybrid_vit.py:66
Method__init__
(self, vit: tvit.VisionTransformer, conv: tconv.ConvNeXt, pretrained: bool = False, concatena
radio/dual_hybrid_vit.py:109
Method__init__
(self, vis_model: nn.Module, embed_dim: int)
radio/extra_models.py:23
Method__init__
Args: dim: Number of input channels. out_dim: Number of output channels (or 2 * dim if None) norm_layer:
radio/radio1d.py:237
Method__init__
Args: dim: Number of input channels. out_dim: Number of output channels (or dim // 2 if None) norm_layer:
radio/radio1d.py:415
Method__init__
Args: input_embed_dim: Embedding dimension of input (after encoder downscaling). target_embed_dim: Target embedding d
radio/radio1d.py:464
Method__init__
(self, synchronized: bool = False)
radio/radio1d.py:670
Method__init__
(self, modes: List[int], mode_weights: List[float], max_tokens: Optional[int] = None, synchronized: bool = Fal
radio/radio1d.py:700
Method__init__
(self, target_pct: float = 0.25, synchronized: bool = False)
radio/radio1d.py:732
Method__init__
(self, dist_a: Union[KSampleDistribution, dict, str], dist_b: Union[KSampleDistribution, dict, str], num_steps
radio/radio1d.py:782
Method__init__
(self, d_model: int, n_head: int, pos_emb: XPosEmbedding2D)
radio/vision_transformer_xpos.py:121
Method__init__
(self, d_model: int, nhead: int, pos_emb: XPosEmbedding2D, num_encoder_layers: int, num_decod
radio/vision_transformer_xpos.py:174
Method__init__
Args: patch_size: Patch size. in_chans: Number of image input channels. embed_dim: Transformer embedding
radio/vision_transformer_xpos.py:231
← previousnext →201–300 of 572, ranked by callers