MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

Methodforward
(self, x)
mmpretrain/models/utils/se_layer.py:73
Methodforward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:17
Methodforward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:28
Methodforward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:85
Methodforward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:128
Methodforward
Forward function.
mmpretrain/models/utils/clip_generator_helper.py:191
Methodforward
Get embedding vectors.
mmpretrain/models/utils/vector_quantizer.py:121
Methodforward
Forward function.
mmpretrain/models/utils/vector_quantizer.py:176
Methodforward
Perform normalization, padding, bgr2rgb conversion and batch augmentation based on ``BaseDataPreprocessor``. Args: data (
mmpretrain/models/utils/data_preprocessor.py:97
Methodforward
Performs normalization and bgr2rgb conversion based on ``BaseDataPreprocessor``. Args: data (dict): data sampled from dat
mmpretrain/models/utils/data_preprocessor.py:228
Methodforward
Performs normalization and bgr2rgb conversion based on ``BaseDataPreprocessor``. The ``batch_inputs`` in forward function is a list.
mmpretrain/models/utils/data_preprocessor.py:352
Methodforward
Performs normalization、padding and bgr2rgb conversion based on ``BaseDataPreprocessor``. Args: data (dict): data sampled
mmpretrain/models/utils/data_preprocessor.py:453
Methodforward
Perform normalization, padding, bgr2rgb conversion and batch augmentation based on ``BaseDataPreprocessor``. Args: data (
mmpretrain/models/utils/data_preprocessor.py:571
Methodforward
(self, x)
mmpretrain/models/utils/layer_scale.py:34
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
(self, query, hw_shape)
mmpretrain/models/utils/attention.py:389
Methodforward
(self, x)
mmpretrain/models/utils/attention.py:587
Methodforward
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
Methodforward
(self, x)
mmpretrain/models/utils/attention.py:825
Methodforward
(self, x)
mmpretrain/models/utils/attention.py:909
Methodforward
Forward function.
mmpretrain/models/utils/attention.py:981
Methodforward
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
Methodforward
(self, x: torch.Tensor, identity: Optional[torch.Tensor] = None)
mmpretrain/models/utils/swiglu_ffn.py:54
Methodforward
Forward function. Args: x (torch.Tensor): The input tensor. Returns: torch.Tensor: The output tensor.
mmpretrain/models/utils/inverted_residual.py:92
Methodforward
(self, x)
mmpretrain/models/utils/embed.py:180
Methodforward
(self, x)
mmpretrain/models/utils/embed.py:269
Methodforward
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
Methodforward
(self, x, hw_shape)
mmpretrain/models/utils/position_encoding.py:46
Methodforward
(self, bhw_shape)
mmpretrain/models/utils/position_encoding.py:97
Methodforward
(self, x, patch_resolution)
mmpretrain/models/utils/position_encoding.py:230
Methodforward
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
Methodforward
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
Methodforward
(self, x: torch.Tensor)
mmpretrain/models/selfsup/cae.py:91
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
(ctx: Any, input: torch.Tensor)
mmpretrain/models/selfsup/simclr.py:16
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
(self, inputs, data_samples=None, mode='tensor')
mmpretrain/models/classifiers/timm.py:97
Methodforward
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
Methodforward
(self, inputs, data_samples=None, mode='tensor')
mmpretrain/models/classifiers/hugging_face.py:113
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
( self, query, key_value=None, attn_mask=None, attn_bias=None,
mmpretrain/models/multimodal/ofa/ofa_modules.py:159
Methodforward
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
Methodforward
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
Methodforward
( self, input_ids: torch.Tensor = None, attention_mask: torch.Tensor = None, e
mmpretrain/models/multimodal/ofa/ofa_modules.py:1065
Methodforward
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
Methodforward
Forward function.
mmpretrain/models/multimodal/clip/clip.py:35
Methodforward
Forward function.
mmpretrain/models/multimodal/clip/clip_transformer.py:43
Methodforward
forward function. Args: inputs (Tuple): The features extracted from the backbone. Multiple stage inputs are acce
mmpretrain/models/multimodal/clip/clip_transformer.py:81
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs
mmpretrain/models/multimodal/blip/language_model.py:69
Methodforward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:114
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:202
Methodforward
(self, hidden_states, input_tensor)
mmpretrain/models/multimodal/blip/language_model.py:325
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:381
Methodforward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:441
Methodforward
(self, hidden_states, input_tensor)
mmpretrain/models/multimodal/blip/language_model.py:456
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:568
Methodforward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:699
Methodforward
(self, hidden_states)
mmpretrain/models/multimodal/blip/language_model.py:722
Methodforward
(self, sequence_output)
mmpretrain/models/multimodal/blip/language_model.py:734
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
mmpretrain/models/multimodal/llava/modules.py:60
Methodforward
(self, input_ids, token_type_ids=None, position_ids=None)
mmpretrain/models/multimodal/chinese_clip/bert.py:71
Methodforward
(self, hidden_states, attention_mask=None, head_mask=None)
mmpretrain/models/multimodal/chinese_clip/bert.py:99
Methodforward
(self, hidden_states, attention_mask=None, head_mask=None)
mmpretrain/models/multimodal/chinese_clip/bert.py:122
Methodforward
(self, input_ids, attention_mask=None, token_type_ids=None,
mmpretrain/models/multimodal/chinese_clip/bert.py:200
Methodforward
(self, x: torch.Tensor)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:54
Methodforward
(self, x)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:86
Methodforward
(self, x)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:194
Methodforward
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
Methodforward
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
Methodforward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
mmpretrain/models/multimodal/blip2/Qformer.py:56
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip2/Qformer.py:111
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip2/Qformer.py:204
Methodforward
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
Methodforward
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
Methodforward
`input_ids_shape` is expected to be [bsz x seqlen].
mmpretrain/models/multimodal/blip2/modeling_opt.py:101
Methodforward
Input shape: Batch x Time x Channel.
mmpretrain/models/multimodal/blip2/modeling_opt.py:151
Methodforward
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
Methodforward
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
← previousnext →4,801–4,900 of 6,823, ranked by callers