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
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
mmpretrain/models/multimodal/blip2/modeling_opt.py:902
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/minigpt4/minigpt4.py:371
Method
forward
Condition the Flamingo layers on the media locations before forward function.
mmpretrain/models/multimodal/flamingo/adapter.py:67
Method
forward
Forward function. Args: x (torch.Tensor): image features of shape (b, T, n1, D). latent (torch.Tensor): latent featur
mmpretrain/models/multimodal/flamingo/modules.py:48
Method
forward
Forward function for perceiver sampler. Args: x (torch.Tensor): image features of shape (b, T, F, v, D) Returns:
mmpretrain/models/multimodal/flamingo/modules.py:126
Method
forward
Forward function for perceiver sampler. Args: x (torch.Tensor): text features of shape (B, T_txt, D_txt). media (torc
mmpretrain/models/multimodal/flamingo/modules.py:191
Method
forward
Forward function for perceiver sampler. Args: x (torch.Tensor): text features of shape (B, T_txt, D_txt). media (torc
mmpretrain/models/multimodal/flamingo/modules.py:304
Method
forward
Forward function. Args: lang_x (torch.Tensor): language inputs. attention_mask (torch.Tensor, optional): text attenti
mmpretrain/models/multimodal/flamingo/modules.py:365
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/flamingo/flamingo.py:128
Method
forward
(self, text_embedding, text_embedding_mask, encoder_hidden_states, encoder_attention_mask)
mmpretrain/models/heads/grounding_head.py:64
Method
forward
The forward process.
mmpretrain/models/heads/linear_head.py:58
Method
forward
The forward process.
mmpretrain/models/heads/cls_head.py:53
Method
forward
The forward process.
mmpretrain/models/heads/deit_head.py:63
Method
forward
The forward process.
mmpretrain/models/heads/conformer_head.py:56
Method
forward
(self, feats: dict)
mmpretrain/models/heads/vqa_head.py:94
Method
forward
The forward process.
mmpretrain/models/heads/multi_label_csra_head.py:67
Method
forward
(self, x)
mmpretrain/models/heads/multi_label_csra_head.py:100
Method
forward
Forward to get decoder output. Args: input_ids (torch.Tensor): The tokenized input text tensor. encoder_hidden_states
mmpretrain/models/heads/seq_gen_head.py:33
Method
forward
The forward process.
mmpretrain/models/heads/multi_label_cls_head.py:60
Method
forward
(self, input: torch.Tensor)
mmpretrain/models/heads/margin_head.py:48
Method
forward
The forward process.
mmpretrain/models/heads/margin_head.py:248
Method
forward
The forward process.
mmpretrain/models/heads/stacked_head.py:37
Method
forward
The forward process.
mmpretrain/models/heads/stacked_head.py:130
Method
forward
The forward process.
mmpretrain/models/heads/efficientformer_head.py:47
Method
forward
The forward process.
mmpretrain/models/heads/multi_task_head.py:74
Method
forward
The forward process.
mmpretrain/models/heads/multi_label_linear_head.py:61
Method
forward
Forward function of MAE head. Args: pred (torch.Tensor): The reconstructed image. target (torch.Tensor): The target i
mmpretrain/models/heads/spark_head.py:69
Method
forward
The forward process.
mmpretrain/models/heads/vig_head.py:60
Method
forward
The forward process.
mmpretrain/models/heads/itc_head.py:57
Method
forward
(self, hidden_states)
mmpretrain/models/heads/itm_head.py:19
Method
forward
The forward process.
mmpretrain/models/heads/itm_head.py:62
Method
forward
The forward process.
mmpretrain/models/heads/vision_transformer_head.py:92
Method
forward
(self, x)
mmpretrain/models/heads/levit_head.py:30
Method
forward
(self, x)
mmpretrain/models/heads/levit_head.py:70
Method
forward
Forward function of cross correlation loss. Args: cross_correlation_matrix (torch.Tensor): The cross correlation
mmpretrain/models/losses/cross_correlation_loss.py:22
Method
forward
Forward function of cosine similarity loss. Args: pred (torch.Tensor): The predicted features. target (torch.Tensor):
mmpretrain/models/losses/cosine_similarity_loss.py:33
Method
forward
Forward function. Args: cls_score (torch.Tensor): The prediction with shape (N, C). labels (torch.Tensor): The learni
mmpretrain/models/losses/seesaw_loss.py:126
Method
forward
Run forward for every prototype.
mmpretrain/models/losses/swav_loss.py:83
Method
forward
Forward function of SwAV loss. Args: x (torch.Tensor): NxC input features. Returns: torch.Tensor: The returne
mmpretrain/models/losses/swav_loss.py:143
Method
forward
Forward function to compute the reconstrction loss. Args: pred (torch.Tensor): The reconstructed image. target (torch
mmpretrain/models/losses/reconstruction_loss.py:41
Method
forward
(self, cls_score, label, weight=None, avg_fact
mmpretrain/models/losses/cross_entropy_loss.py:178
Method
forward
r"""asymmetric loss. Args: pred (torch.Tensor): The prediction with shape (N, \*). target (torch.Tensor): The ground
mmpretrain/models/losses/asymmetric_loss.py:110
Method
forward
r"""Sigmoid focal loss. Args: pred (torch.Tensor): The prediction with shape (N, \*). target (torch.Tensor): The grou
mmpretrain/models/losses/focal_loss.py:80
Method
forward
Forward function of CAE Loss. Args: logits (torch.Tensor): The outputs from the decoder. target (torch.Tensor): The t
mmpretrain/models/losses/cae_loss.py:27
Method
forward
r"""Label smooth loss. Args: pred (torch.Tensor): The prediction with shape (N, \*). label (torch.Tensor): The ground
mmpretrain/models/losses/label_smooth_loss.py:132
Method
forward
(self, x: torch.Tensor)
mmpretrain/models/peft/lora.py:54
Method
forward
(self, *args, **kwargs)
mmpretrain/models/peft/lora.py:198
Method
forward
(self, outputs, batch_gt_instances, batch_img_metas)
projects/DiffusionDet/diffusiondet/loss.py:56
Method
forward
(self, outputs, batch_gt_instances, batch_img_metas)
projects/DiffusionDet/diffusiondet/loss.py:192
Method
forward
(self, time)
projects/DiffusionDet/diffusiondet/head.py:60
Method
forward
(self, features, init_bboxes, init_t, init_features=None)
projects/DiffusionDet/diffusiondet/head.py:272
Method
forward
:param bboxes: (N, num_boxes, 4) :param pro_features: (N, num_boxes, feat_channels)
projects/DiffusionDet/diffusiondet/head.py:869
Method
forward
Forward function. Args: pro_features: (1, N * num_boxes, self.feat_channels) roi_features: (49, N * num_boxes, self.
projects/DiffusionDet/diffusiondet/head.py:1003
Method
forward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
projects/Detic/detic/centernet_rpn_head.py:38
Method
forward
Inputs: x: B x D' classifier_info: (C', C' x D)
projects/Detic/detic/zero_shot_classifier.py:55
Method
forward
(self, text)
projects/Detic/detic/text_encoder.py:47
Method
forward
(self, x: torch.Tensor)
projects/EfficientDet/efficientdet/utils.py:36
Method
forward
(self, x)
projects/EfficientDet/efficientdet/utils.py:69
Method
forward
(self, x)
projects/EfficientDet/efficientdet/utils.py:117
Method
forward
(self, x)
projects/EfficientDet/efficientdet/utils.py:147
Method
forward
(self, x)
projects/EfficientDet/efficientdet/bifpn.py:178
Method
forward
(self, x)
projects/EfficientDet/efficientdet/bifpn.py:302
Method
forward
Forward function. Args: pred (Tensor): The prediction. target (Tensor): The learning target of the prediction.
projects/EfficientDet/efficientdet/huber_loss.py:57
Method
forward
(self, feats: Tuple[Tensor])
projects/EfficientDet/efficientdet/efficientdet_head.py:124
Method
forward
(self, x)
projects/ViTDet/vitdet/vit.py:29
Method
forward
(self, x)
projects/ViTDet/vitdet/vit.py:201
Method
forward
(self, x)
projects/ViTDet/vitdet/vit.py:245
Method
forward
(self, x)
projects/ViTDet/vitdet/vit.py:292
Method
forward
(self, x)
projects/ViTDet/vitdet/vit.py:337
Method
forward
(self, x)
projects/ViTDet/vitdet/vit.py:437
Method
forward
Forward function. Args: inputs (Tensor): Features from the upstream network, 4D-tensor Returns: tuple: Featur
projects/ViTDet/vitdet/simple_fpn.py:73
Method
forward
(self, outputs, batch_gt_instances, batch_img_metas, batch_gt_instances_ignore)
projects/SparseInst/sparseinst/loss.py:170
Method
forward
(self, outputs, batch_gt_instances)
projects/SparseInst/sparseinst/loss.py:205
Method
forward
(self, features)
projects/SparseInst/sparseinst/decoder.py:66
Method
forward
(self, features)
projects/SparseInst/sparseinst/decoder.py:109
Method
forward
(self, features)
projects/SparseInst/sparseinst/decoder.py:175
Method
forward
(self, features)
projects/SparseInst/sparseinst/decoder.py:260
Method
forward
(self, features)
projects/SparseInst/sparseinst/decoder.py:337
Method
forward
(self, feats)
projects/SparseInst/sparseinst/encoder.py:31
Method
forward
(self, features)
projects/SparseInst/sparseinst/encoder.py:82
Method
forward
Forward function for `Transformer`. Args: x (Tensor): Input query with shape [bs, c, h, w] where c = embed_dims.
projects/CO-DETR/codetr/transformer.py:62
Method
forward
Forward function for `TransformerDecoder`. Args: query (Tensor): Input query with shape `(num_query, bs, embed_di
projects/CO-DETR/codetr/transformer.py:127
Method
forward
Forward function for `Transformer`. Args: mlvl_feats (list(Tensor)): Input queries from different level. Each ele
projects/CO-DETR/codetr/transformer.py:380
Method
forward
Forward function for `TransformerDecoder`. Args: query (Tensor): Input query with shape `(num_query, bs, embed_di
projects/CO-DETR/codetr/transformer.py:570
Method
forward
Forward function for `Transformer`. Args: mlvl_feats (list(Tensor)): Input queries from different level. Each ele
projects/CO-DETR/codetr/transformer.py:705
Method
forward
(self, query, *args, reference_points=None, va
projects/CO-DETR/codetr/transformer.py:1021
Method
forward
(self, mlvl_feats, mlvl_masks, query_embed, ml
projects/CO-DETR/codetr/transformer.py:1113
Method
forward
Inputs: x: B x D' classifier_info: (C', C' x D)
projects/Detic_new/detic/zero_shot_classifier.py:55
Method
forward
Forward function. If you want to manually determine which positions are positive samples, you can set the pos_index and pos_label
projects/Detic_new/detic/heatmap_focal_loss.py:90
Method
forward
(self, pred, target, weight=None, reduction='sum')
projects/Detic_new/detic/iou_loss.py:12
Method
forward
(self, text)
projects/Detic_new/detic/detic.py:57
Method
forward
(self, input_ids, attention_mask=None)
projects/XDecoder/xdecoder/language_model.py:173
Method
forward
(self, x)
projects/XDecoder/xdecoder/language_model.py:198
Method
forward
(self, x: torch.Tensor)
projects/XDecoder/xdecoder/language_model.py:209
Method
forward
(self, x: torch.Tensor, key_padding_mask: torch.Tensor = None)
projects/XDecoder/xdecoder/language_model.py:247
Method
forward
(self, x)
projects/XDecoder/xdecoder/transformer_blocks.py:41
Method
forward
(self, x, mask=None)
projects/XDecoder/xdecoder/transformer_blocks.py:71
Method
forward
( self, src, mask: Optional[Tensor] = None, src_key_padding_mask: Optional[Ten
projects/XDecoder/xdecoder/transformer_blocks.py:120
Method
forward
( self, src, src_mask: Optional[Tensor] = None, src_key_padding_mask: Optional
projects/XDecoder/xdecoder/transformer_blocks.py:214
Method
forward
(self, tgt, tgt_mask: Optional[Tensor] = None, tgt_key_padding
projects/XDecoder/xdecoder/transformer_blocks.py:287
← previous
next →
4,901–5,000 of 6,823, ranked by callers