Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KyanChen/RSPrompter
/ functions
Functions
6,823 in github.com/KyanChen/RSPrompter
⨍
Functions
6,823
◇
Types & classes
1,658
↳
Endpoints
29
Method
forward
(self, x)
mmpretrain/models/utils/se_layer.py:73
Method
forward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:17
Method
forward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:28
Method
forward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:85
Method
forward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:128
Method
forward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:191
Method
forward
Get embedding vectors.
mmpretrain/models/utils/vector_quantizer.py:121
Method
forward
Forward function.
mmpretrain/models/utils/vector_quantizer.py:176
Method
forward
Perform normalization, padding, bgr2rgb conversion and batch augmentation based on ``BaseDataPreprocessor``. Args: data (
mmpretrain/models/utils/data_preprocessor.py:97
Method
forward
Performs normalization and bgr2rgb conversion based on ``BaseDataPreprocessor``. Args: data (dict): data sampled from dat
mmpretrain/models/utils/data_preprocessor.py:228
Method
forward
Performs normalization and bgr2rgb conversion based on ``BaseDataPreprocessor``. The ``batch_inputs`` in forward function is a list.
mmpretrain/models/utils/data_preprocessor.py:352
Method
forward
Performs normalization、padding and bgr2rgb conversion based on ``BaseDataPreprocessor``. Args: data (dict): data sampled
mmpretrain/models/utils/data_preprocessor.py:453
Method
forward
Perform normalization, padding, bgr2rgb conversion and batch augmentation based on ``BaseDataPreprocessor``. Args: data (
mmpretrain/models/utils/data_preprocessor.py:571
Method
forward
(self, x)
mmpretrain/models/utils/layer_scale.py:34
Method
forward
Forward method. Args: x (torch.Tensor): The input tensor. data_format (str): The format of the input tensor. If
mmpretrain/models/utils/norm.py:29
Method
forward
Forward method. Args: x (torch.Tensor): The input tensor. data_format (str): The format of the input tensor. If
mmpretrain/models/utils/norm.py:68
Method
forward
Args: x (tensor): input features with shape of (num_windows*B, N, C) mask (tensor, Optional): mask with shape of (nu
mmpretrain/models/utils/attention.py:117
Method
forward
Args: x (tensor): input features with shape of (num_windows*B, N, C) mask (tensor, Optional): mask with shape of (nu
mmpretrain/models/utils/attention.py:281
Method
forward
(self, query, hw_shape)
mmpretrain/models/utils/attention.py:389
Method
forward
(self, x)
mmpretrain/models/utils/attention.py:587
Method
forward
Args: x (tensor): input features with shape of (num_windows*B, N, C). rel_pos_bias (tensor): input relative position
mmpretrain/models/utils/attention.py:715
Method
forward
(self, x)
mmpretrain/models/utils/attention.py:825
Method
forward
(self, x)
mmpretrain/models/utils/attention.py:909
Method
forward
Forward function.
mmpretrain/models/utils/attention.py:981
Method
forward
Forward function for `PromptMultiheadAttention`. Args: x (torch.Tensor): Mask token features with shape N x L_m x C.
mmpretrain/models/utils/attention.py:1093
Method
forward
(self, x: torch.Tensor, identity: Optional[torch.Tensor] = None)
mmpretrain/models/utils/swiglu_ffn.py:54
Method
forward
Forward function. Args: x (torch.Tensor): The input tensor. Returns: torch.Tensor: The output tensor.
mmpretrain/models/utils/inverted_residual.py:92
Method
forward
(self, x)
mmpretrain/models/utils/embed.py:180
Method
forward
(self, x)
mmpretrain/models/utils/embed.py:269
Method
forward
Args: x (Tensor): Has shape (B, H*W, C_in). input_size (tuple[int]): The spatial shape of x, arrange as (H, W).
mmpretrain/models/utils/embed.py:371
Method
forward
(self, x, hw_shape)
mmpretrain/models/utils/position_encoding.py:46
Method
forward
(self, bhw_shape)
mmpretrain/models/utils/position_encoding.py:97
Method
forward
(self, x, patch_resolution)
mmpretrain/models/utils/position_encoding.py:230
Method
forward
Generate features for masked images. This function generates mask and masks some patches randomly and get the hidden features for vis
mmpretrain/models/selfsup/mixmim.py:172
Method
forward
The BEiT style forward function. The function supports two kind of forward behaviors. If the ``mask`` is not ``None``, the forward fu
mmpretrain/models/selfsup/beit.py:242
Method
forward
(self, x: torch.Tensor)
mmpretrain/models/selfsup/cae.py:91
Method
forward
Forward function of DALL-E encoder. Args: x (torch.Tensor): The input images with shape (B, C, H, W). Returns:
mmpretrain/models/selfsup/cae.py:177
Method
forward
Generate features for masked images. This function generates mask images and get the hidden features for visible patches. Th
mmpretrain/models/selfsup/cae.py:308
Method
forward
The unified entry for a forward process in both training and test. The method currently accepts two modes: "tensor" and "loss": - "t
mmpretrain/models/selfsup/base.py:95
Method
forward
(ctx: Any, input: torch.Tensor)
mmpretrain/models/selfsup/simclr.py:16
Method
forward
Get the features and attention from the last layer of CLIP. Args: x (torch.Tensor): The input image, which is of shape (N, 3, H,
mmpretrain/models/selfsup/milan.py:32
Method
forward
Generate features for masked images. The function supports two kind of forward behaviors. If the ``importance`` is ``None``, the func
mmpretrain/models/selfsup/milan.py:109
Method
forward
Generate features for masked images. The function supports two kind of forward behaviors. If the ``mask`` is not ``None``, the forwar
mmpretrain/models/selfsup/simmim.py:117
Method
forward
Generate features for masked images. The function supports two kind of forward behaviors. If the ``mask`` is ``True``, the function w
mmpretrain/models/selfsup/mae.py:353
Method
forward
Generate features for masked images. The function supports two kind of forward behaviors. If the ``mask`` is ``True``, the function w
mmpretrain/models/selfsup/mff.py:97
Method
forward
Generate hog feature for each batch images. Args: x (torch.Tensor): Input images of shape (N, 3, H, W). Returns:
mmpretrain/models/selfsup/maskfeat.py:80
Method
forward
Generate features for masked images. The function supports two kind of forward behaviors. If the ``mask`` is not ``None``, the forwar
mmpretrain/models/selfsup/maskfeat.py:256
Method
forward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
mmpretrain/models/classifiers/image.py:87
Method
forward
(self, inputs, data_samples=None, mode='tensor')
mmpretrain/models/classifiers/timm.py:97
Method
forward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
mmpretrain/models/classifiers/base.py:45
Method
forward
(self, inputs, data_samples=None, mode='tensor')
mmpretrain/models/classifiers/hugging_face.py:113
Method
forward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
mmpretrain/models/retrievers/base.py:55
Method
forward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
mmpretrain/models/retrievers/image2image.py:116
Method
forward
The unified entry for a forward process in both training and test. The method accepts the following modes: - "predict": Forward and r
mmpretrain/models/multimodal/ofa/ofa.py:177
Method
forward
( self, query, key_value=None, attn_mask=None, attn_bias=None,
mmpretrain/models/multimodal/ofa/ofa_modules.py:159
Method
forward
Forward the encoder layer. Args: x (torch.tensor): The input to the layer of shape ``(B, L, C)``. attention_mask (tor
mmpretrain/models/multimodal/ofa/ofa_modules.py:314
Method
forward
Forward the decoder layer. Args: x (torch.tensor): The input to the layer of shape ``(B, L, C)``. attention_mask (tor
mmpretrain/models/multimodal/ofa/ofa_modules.py:436
Method
forward
( self, input_ids: torch.Tensor = None, attention_mask: torch.Tensor = None, e
mmpretrain/models/multimodal/ofa/ofa_modules.py:1065
Method
forward
Forword the module. Args: input_ids (torch.Tensor): The indices of the input tokens in the vocabulary, and paddin
mmpretrain/models/multimodal/ofa/ofa_modules.py:1390
Method
forward
Forward function.
mmpretrain/models/multimodal/clip/clip.py:35
Method
forward
Forward function.
mmpretrain/models/multimodal/clip/clip_transformer.py:43
Method
forward
forward function. Args: inputs (Tuple): The features extracted from the backbone. Multiple stage inputs are acce
mmpretrain/models/multimodal/clip/clip_transformer.py:81
Method
forward
The unified entry for a forward process in both training and test. The method should accept only one mode "loss": - "loss": Forward a
mmpretrain/models/multimodal/blip/blip_grounding.py:66
Method
forward
The unified entry for a forward process in both training and test. The method should accept only one mode "loss": - "loss": Forward a
mmpretrain/models/multimodal/blip/blip_nlvr.py:94
Method
forward
The unified entry for a forward process in both training and test. - "loss": For training. Forward and return a dict of losses according
mmpretrain/models/multimodal/blip/blip_vqa.py:56
Method
forward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs
mmpretrain/models/multimodal/blip/language_model.py:69
Method
forward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:114
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:202
Method
forward
(self, hidden_states, input_tensor)
mmpretrain/models/multimodal/blip/language_model.py:325
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:381
Method
forward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:441
Method
forward
(self, hidden_states, input_tensor)
mmpretrain/models/multimodal/blip/language_model.py:456
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:568
Method
forward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:699
Method
forward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:722
Method
forward
(self, sequence_output)
mmpretrain/models/multimodal/blip/language_model.py:734
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
mmpretrain/models/multimodal/blip/language_model.py:858
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
mmpretrain/models/multimodal/blip/language_model.py:1105
Method
forward
The unified entry for a forward process in both training and test. The method should accept two modes: "tensor", and "loss": - "tenso
mmpretrain/models/multimodal/blip/blip_retrieval.py:206
Method
forward
The unified entry for a forward process in both training and test. The method should accept two modes: "predict" and "loss": - "predi
mmpretrain/models/multimodal/blip/blip_caption.py:61
Method
forward
The unified entry for a forward process in both training and test. - "predict": Forward and return the predictions, which are fully
mmpretrain/models/multimodal/llava/llava.py:126
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
mmpretrain/models/multimodal/llava/modules.py:60
Method
forward
(self, input_ids, token_type_ids=None, position_ids=None)
mmpretrain/models/multimodal/chinese_clip/bert.py:71
Method
forward
(self, hidden_states, attention_mask=None, head_mask=None)
mmpretrain/models/multimodal/chinese_clip/bert.py:99
Method
forward
(self, hidden_states, attention_mask=None, head_mask=None)
mmpretrain/models/multimodal/chinese_clip/bert.py:122
Method
forward
(self, input_ids, attention_mask=None, token_type_ids=None,
mmpretrain/models/multimodal/chinese_clip/bert.py:200
Method
forward
(self, x: torch.Tensor)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:54
Method
forward
(self, x)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:86
Method
forward
(self, x)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:194
Method
forward
The unified entry for a forward process in both training and test. The method accepts the following modes: - "predict": Forward and r
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:279
Method
forward
The unified entry for a forward process in both training and test. The method should accept two modes: "predict" and "loss": - "predi
mmpretrain/models/multimodal/blip2/blip2_caption.py:102
Method
forward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
mmpretrain/models/multimodal/blip2/Qformer.py:56
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip2/Qformer.py:111
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip2/Qformer.py:204
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
mmpretrain/models/multimodal/blip2/Qformer.py:429
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
mmpretrain/models/multimodal/blip2/Qformer.py:607
Method
forward
`input_ids_shape` is expected to be [bsz x seqlen].
mmpretrain/models/multimodal/blip2/modeling_opt.py:101
Method
forward
Input shape: Batch x Time x Channel.
mmpretrain/models/multimodal/blip2/modeling_opt.py:151
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
mmpretrain/models/multimodal/blip2/modeling_opt.py:303
Method
forward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
mmpretrain/models/multimodal/blip2/modeling_opt.py:570
← previous
next →
4,801–4,900 of 6,823, ranked by callers