MCPcopy Create free account

hub / github.com/OpenBMB/VisRAG / functions

Functions5,024 in github.com/OpenBMB/VisRAG

↓ 5 callersMethod__init__
Args: in_chans: Number of input image channels. num_classes: Number of classes for classification head. e
timm_modified/timm/models/focalnet.py:325
↓ 5 callersMethod__init__
( self, dim, num_heads, mlp_ratio=4., proj_drop=0.
timm_modified/timm/models/twins.py:193
↓ 5 callersMethod__init__
( self, dim, num_heads, mlp_ratio=4., sr_ratio=1,
timm_modified/timm/models/pvt_v2.py:149
↓ 5 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/selecsls.py:318
↓ 5 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/sknet.py:153
↓ 5 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/gcvit.py:519
↓ 5 callersFunction_create_edgenext
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/edgenext.py:480
↓ 5 callersFunction_create_gcvit
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/gcvit.py:512
↓ 5 callersFunction_create_mnv3
(variant: str, pretrained: bool = False, **kwargs)
timm_modified/timm/models/mobilenetv3.py:286
↓ 5 callersFunction_create_selecsls
(variant, pretrained, **kwargs)
timm_modified/timm/models/selecsls.py:185
↓ 5 callersFunction_create_skresnet
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/sknet.py:144
↓ 5 callersFunction_create_tiny_vit
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/tiny_vit.py:641
↓ 5 callersFunction_gen_lcnet
LCNet Essentially a MobileNet-V3 crossed with a MobileNet-V1 Paper: `PP-LCNet: A Lightweight CPU Convolutional Neural Network` - https://arx
timm_modified/timm/models/mobilenetv3.py:508
↓ 5 callersFunction_gen_tinynet
Creates a TinyNet model.
timm_modified/timm/models/efficientnet.py:868
↓ 5 callersFunction_mobileone_bcfg
(d=(2, 8, 10, 1), wf=(1., 1., 1., 1.), se_blocks=(), num_conv_branches=1)
timm_modified/timm/models/byobnet.py:98
↓ 5 callersFunction_parse_ksize
(ss)
timm_modified/timm/models/_efficientnet_builder.py:72
↓ 5 callersMethod_process_multi_modal_inputs
(self, data: DataProto)
src/rsgrpo/verl/workers/fsdp_workers.py:444
↓ 5 callersFunction_randomly_negate
With 50% prob, negate the value
timm_modified/timm/data/auto_augment.py:201
↓ 5 callersFunction_run_act_layer_grad
(act_type, inplace=True)
timm_modified/tests/test_layers.py:28
↓ 5 callersFunction_tf_cfg
()
timm_modified/timm/models/maxxvit.py:1404
↓ 5 callersFunction_xception
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/xception_aligned.py:297
↓ 5 callersFunctionapply_rot_embed_cat
(x: torch.Tensor, emb)
timm_modified/timm/layers/pos_embed_sincos.py:210
↓ 5 callersMethodbackward
(ctx: Any, grad_output: Tensor)
src/rsgrpo/verl/utils/ulysses.py:225
↓ 5 callersFunctionbuild_local_block
( in_channels: int, out_channels: int, stride: int, expand_ratio: floa
timm_modified/timm/models/efficientvit_mit.py:426
↓ 5 callersFunctioncreate_dataset
Dataset factory method In parentheses after each arg are the type of dataset supported for each arg, one of: * folder - default, timm fold
timm_modified/timm/data/dataset_factory.py:63
↓ 5 callersFunctioncreate_loader
Args: dataset: The image dataset to load. input_size: Target input size (channels, height, width) tuple or size scalar.
timm_modified/timm/data/loader.py:189
↓ 5 callersFunctioncreate_shortcut
( downsample_type: str, in_chs: int, out_chs: int, stride: int, dilati
timm_modified/timm/models/byobnet.py:192
↓ 5 callersFunctionefficientnet_init_weights
(model: nn.Module, init_fn=None)
timm_modified/timm/models/_efficientnet_builder.py:480
↓ 5 callersFunctionfn
()
timm_modified/tests/test_optim.py:42
↓ 5 callersMethodforward
(self, x)
timm_modified/tests/test_layers.py:21
↓ 5 callersMethodgenerate
( self, data_list=None, # List[str] img_list=None, # List[List[PIL.Image]] tok
src/openmatch/modeling/modeling_minicpmv/modeling_minicpmv.py:276
↓ 5 callersMethodget_bias
(self)
timm_modified/timm/layers/pos_embed_rel.py:382
↓ 5 callersMethodget_data
()
src/rsgrpo/verl/protocol.py:535
↓ 5 callersMethodget_embed
(self, shape: Optional[List[int]] = None)
timm_modified/timm/layers/pos_embed_sincos.py:345
↓ 5 callersFunctionget_idx
(obj)
src/openmatch/dataset/inference_dataset.py:25
↓ 5 callersFunctionget_padding_value
(padding, kernel_size, **kwargs)
timm_modified/timm/layers/padding.py:59
↓ 5 callersFunctionhas_hf_hub
(necessary=False)
timm_modified/timm/models/_hub.py:108
↓ 5 callersFunctionlecun_normal_
(tensor)
timm_modified/timm/layers/weight_init.py:124
↓ 5 callersFunctionpad
(orig_items, key, max_length=None, padding_value=0, padding_side="left")
src/openmatch/modeling/weighted_selection/MiniCPMV20/modeling_minicpmv.py:470
↓ 5 callersMethodpostprocess_data
(self, data: DataProto)
src/rsgrpo/verl/workers/sharding_manager/base.py:31
↓ 5 callersFunctionprepare_dynamic_batch
Prepare a batch for dynamic batching. Args: data (DataProto): The input data. max_token_len (int): The maximum token length
src/rsgrpo/verl/utils/seqlen_balancing.py:295
↓ 5 callersFunctionpretrained_cfg_for_features
(pretrained_cfg)
timm_modified/timm/models/_builder.py:248
↓ 5 callersMethodreduction
feature reduction (output stride) accessor
timm_modified/timm/models/_features.py:74
↓ 5 callersMethodreset_classifier
(self, num_classes, global_pool='avg')
timm_modified/timm/models/dla.py:356
↓ 5 callersFunctionrot
(x)
timm_modified/timm/layers/pos_embed_sincos.py:194
↓ 5 callersMethodselect
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
src/rsgrpo/verl/protocol.py:341
↓ 5 callersMethodstep
Performs a single optimization step. Args: closure (callable, optional): A closure that reevaluates the model and return
src/rsgrpo/verl/utils/torch_functional.py:264
↓ 5 callersMethodto_dict
(self)
src/rsgrpo/verl/trainer/config.py:179
↓ 4 callersMethod__init__
(self, inplace: bool = False)
timm_modified/timm/layers/activations_jit.py:41
↓ 4 callersMethod__init__
(self, inplace: bool = False)
timm_modified/timm/layers/activations_me.py:92
↓ 4 callersMethod__init__
(self, in_feature, out_feature, stride, padding_mode='zeros')
timm_modified/timm/models/pit.py:95
↓ 4 callersMethod__init__
( self, img_size=224, patch_size=16, in_chans=3, n
timm_modified/timm/models/cait.py:205
↓ 4 callersMethod__init__
( self, in_chs: int, out_chs: int, stride: int = 1,
timm_modified/timm/models/xception_aligned.py:97
↓ 4 callersMethod__init__
( self, img_size=224, img_scale=(1.0, 1.0), patch_size=(8, 16)
timm_modified/timm/models/crossvit.py:300
↓ 4 callersMethod__init__
Args: dim: Number of input channels. out_dim: Number of output channels (or 2 * dim if None) norm_layer:
timm_modified/timm/models/swin_transformer.py:334
↓ 4 callersMethod__init__
Args: img_size (int, tuple): input image size in_chans (int): number of input channels patch_size (int):
timm_modified/timm/models/nest.py:252
↓ 4 callersMethod__init__
(self, dim, init_values=1e-5, inplace=False)
timm_modified/timm/models/vision_transformer_relpos.py:101
↓ 4 callersMethod__init__
Args: dim (int): Number of input channels. out_dim (int): Number of output channels (or 2 * dim if None)
timm_modified/timm/models/swin_transformer_v2.py:334
↓ 4 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/inception_v3.py:413
↓ 4 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/vision_transformer_sam.py:581
↓ 4 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/efficientformer_v2.py:652
↓ 4 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/inception_next.py:375
↓ 4 callersMethod_convert_token_to_id
Converts a token (str) in an id using the vocab.
src/openmatch/modeling/modeling_siglip/tokenization_siglip.py:341
↓ 4 callersFunction_create_efficientformerv2
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/efficientformer_v2.py:679
↓ 4 callersFunction_create_efficientvit
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/efficientvit_mit.py:1003
↓ 4 callersFunction_create_tresnet
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/tresnet.py:284
↓ 4 callersFunction_create_vision_transformer
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/vision_transformer_sam.py:620
↓ 4 callersFunction_gen_efficientnetv2_base
Creates an EfficientNet-V2 base model Ref impl: https://github.com/google/automl/tree/master/efficientnetv2 Paper: `EfficientNetV2: Smaller
timm_modified/timm/models/efficientnet.py:644
↓ 4 callersFunction_gen_mnasnet_a1
Creates a mnasnet-a1 model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet Paper: https://arxiv.org/pdf/1807
timm_modified/timm/models/efficientnet.py:296
↓ 4 callersFunction_gen_mnasnet_b1
Creates a mnasnet-b1 model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet Paper: https://arxiv.org/pdf/1807
timm_modified/timm/models/efficientnet.py:332
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, groups, reduction, stride=1, downsample_kernel_size=1, downs
timm_modified/timm/models/senet.py:309
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, use_se=True, aa_layer=None, drop_path_rate=0.)
timm_modified/timm/models/tresnet.py:198
↓ 4 callersFunction_ntuple
(n)
timm_modified/timm/layers/helpers.py:10
↓ 4 callersMethod_params_per_elem
(self, batch_size)
timm_modified/timm/data/mixup.py:121
↓ 4 callersFunction_repeat_interleave
(value: Union[torch.Tensor, np.ndarray], repeats: int)
src/rsgrpo/verl/workers/rollout/vllm_rollout_spmd.py:34
↓ 4 callersFunctionadapt_input_conv
(in_chans, conv_weight)
timm_modified/timm/models/_manipulate.py:257
↓ 4 callersFunctionappend_to_dict
Append dict to a dict of list.
src/rsgrpo/verl/utils/py_functional.py:81
↓ 4 callersFunctionaverage_loss
Average the policy loss. Args: values: `(torch.Tensor)` shape: (bs, n_rewards, response_length) mask: `(torch.Tensor)
src/rsgrpo/verl/trainer/core_algos.py:362
↓ 4 callersFunctionbatch_collate
(features: List[Dict[str, Any]])
src/rsgrpo/verl/protocol.py:113
↓ 4 callersFunctionbuild_rotary_pos_embed
Args: feat_shape: Spatial shape of the target tensor for embedding. bands: Optional pre-generated frequency bands dim: O
timm_modified/timm/layers/pos_embed_sincos.py:223
↓ 4 callersMethodchat
( self, image_list, # List[ PIL.Image ] B*PIL.Image, one image for each data msgs_list
src/openmatch/modeling/modeling_minicpmv/modeling_minicpmv.py:321
↓ 4 callersMethoddist_gather_tensor
(self, t: Optional[torch.Tensor])
src/openmatch/trainer/dense_trainer.py:189
↓ 4 callersMethodencode_passage
(self, psg, **kwargs)
src/openmatch/modeling/dense_retrieval_model.py:227
↓ 4 callersFunctionensure_divide
(length, patch_size)
src/openmatch/modeling/weighted_selection/MiniCPMV20/modeling_minicpmv.py:575
↓ 4 callersFunctionensure_divide
(length, patch_size)
src/openmatch/modeling/modeling_minicpmv/modeling_minicpmv.py:540
↓ 4 callersFunctionfast_group_norm
( x: torch.Tensor, num_groups: int, weight: Optional[torch.Tensor] = None, bias: Optional[torc
timm_modified/timm/layers/fast_norm.py:40
↓ 4 callersFunctionfast_layer_norm
( x: torch.Tensor, normalized_shape: List[int], weight: Optional[torch.Tensor] = None, bias: O
timm_modified/timm/layers/fast_norm.py:62
↓ 4 callersMethodfeat_mult
(self)
timm_modified/timm/layers/adaptive_avgmax_pool.py:171
↓ 4 callersFunctionfill_template
Fill a template with data.
src/openmatch/utils.py:226
↓ 4 callersFunctionfreeze
Freeze parameters of the specified modules and those of all their hierarchical descendants. This is done in place. Args: root_module
timm_modified/timm/utils/model.py:175
↓ 4 callersFunctionfreq_bands
( num_bands: int, temperature: float = 10000., step: int = 2, device: Optional
timm_modified/timm/layers/pos_embed_sincos.py:28
↓ 4 callersMethodget_classifier
(self)
timm_modified/timm/models/dla.py:353
↓ 4 callersFunctionget_img_extensions
(as_set=False)
timm_modified/timm/data/readers/img_extensions.py:26
↓ 4 callersMethodget_placement_groups
(self, strategy: str = "STRICT_PACK", name: Optional[str] = None)
src/rsgrpo/verl/single_controller/ray/base.py:91
↓ 4 callersFunctionget_pretrained_cfg
(model_name: str, allow_unregistered: bool = True)
timm_modified/timm/models/_registry.py:317
↓ 4 callersFunctionget_rel_pos_cls
(cfg: MaxxVitTransformerCfg, window_size)
timm_modified/timm/models/maxxvit.py:668
↓ 4 callersFunctionget_same_padding
(x: int, kernel_size: int, stride: int, dilation: int)
timm_modified/timm/layers/padding.py:19
↓ 4 callersFunctiongroup_std
(x, groups: int = 32, eps: float = 1e-5, flatten: bool = False)
timm_modified/timm/layers/evo_norm.py:62
↓ 4 callersMethodinit_weights
(self)
timm_modified/timm/models/vision_transformer.py:213
↓ 4 callersFunctioninsert_cls
Insert CLS token.
timm_modified/timm/models/coat.py:675
← previousnext →301–400 of 5,024, ranked by callers