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
loss
Generate loss. Args: feats (torch.Tensor): Features from backbone. feats_cls_pt (torch.Tensor) : Features from class
mmpretrain/models/heads/beitv2_head.py:37
Method
loss
Generate loss. Args: pred (torch.Tensor): The reconstructed image. target (torch.Tensor): The target image.
mmpretrain/models/heads/mae_head.py:91
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/cls_head.py:60
Method
loss
Generate loss. Args: feats (torch.Tensor): Features from backbone. target (torch.Tensor): Target generated by target_
mmpretrain/models/heads/beitv1_head.py:37
Method
loss
Generate loss. Args: logits (torch.Tensor): Logits generated by decoder. logits_target (img_target): Target generated
mmpretrain/models/heads/cae_head.py:43
Method
loss
Generate loss. Args: feats (torch.Tensor): Features from backbone. target (torch.Tensor): Target generated by target_
mmpretrain/models/heads/itpn_clip_head.py:38
Method
loss
Calculate losses from the extracted features. Args: feats (dict): The features extracted from the backbone. data_samp
mmpretrain/models/heads/vqa_head.py:107
Method
loss
Generate loss. Args: base_out (torch.Tensor): NxC features from base_encoder. momentum_out (torch.Tensor): NxC featur
mmpretrain/models/heads/mocov3_head.py:36
Method
loss
Calculate losses from the extracted features. Args: input_ids (torch.Tensor): The tokenized input text tensor. encode
mmpretrain/models/heads/seq_gen_head.py:59
Method
loss
Forward function to compute contrastive loss. Args: pos (torch.Tensor): Nx1 positive similarity. neg (torch.Tensor):
mmpretrain/models/heads/contrastive_head.py:34
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/multi_label_cls_head.py:67
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/margin_head.py:267
Method
loss
Generate loss. Args: pred (torch.Tensor): NxC input features. Returns: torch.Tensor: The SwAV loss.
mmpretrain/models/heads/swav_head.py:20
Method
loss
Forward head. Args: input (torch.Tensor): NxC input features. target (torch.Tensor): NxC target features. Re
mmpretrain/models/heads/latent_heads.py:35
Method
loss
Forward head. Args: input (torch.Tensor): NxC input features. target (torch.Tensor): NxC target features. Re
mmpretrain/models/heads/latent_heads.py:77
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/efficientformer_head.py:68
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/multi_task_head.py:81
Method
loss
Generate loss. Args: pred (torch.Tensor): The reconstructed image. target (torch.Tensor): The target image.
mmpretrain/models/heads/mixmim_head.py:25
Method
loss
Generate loss. This method will expand mask to the size of the original image. Args: pred (torch.Tensor): The reconstruc
mmpretrain/models/heads/simmim_head.py:22
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/itc_head.py:61
Method
loss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/itm_head.py:68
Method
loss
Perform forward propagation and loss calculation of the detection head on the features of the upstream network. Args: x (
projects/DiffusionDet/diffusiondet/head.py:301
Method
loss
Perform forward propagation and loss calculation of the detection roi on the features of the upstream network. Args: x (t
projects/Detic/detic/detic_roi_head.py:248
Method
loss
Calculate losses from a batch of inputs and data samples. Args: batch_inputs (Tensor): Input images of shape (N, C, H, W).
projects/SparseInst/sparseinst/sparseinst.py:172
Method
loss
(self, x: Tuple[Tensor], rpn_results_list: InstanceList, batch_data_samples: List[DetDataSample])
projects/CO-DETR/codetr/co_roi_head.py:18
Method
loss
(self, batch_inputs: Tensor, batch_data_samples: SampleList)
projects/CO-DETR/codetr/codetr.py:146
Method
loss
(self, x, batch_data_samples)
projects/CO-DETR/codetr/co_dino_head.py:302
Method
loss
Perform forward propagation and loss calculation of the detection roi on the features of the upstream network. Args: x (t
projects/Detic_new/detic/detic_roi_head.py:244
Method
loss
Calculate the loss based on the network predictions and targets. Args: cls_score (Tensor): Classification prediction
projects/Detic_new/detic/detic_bbox_head.py:166
Method
loss
Calculate losses from a batch of inputs and data samples. Args: batch_inputs (Tensor): Input images of shape (N, C, H, W).
projects/Detic_new/detic/detic.py:154
Method
loss_and_predict
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples. Over-write because im
mmdet/models/dense_heads/conditional_detr_head.py:97
Method
loss_and_predict
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples. Args: x
mmdet/models/dense_heads/base_dense_head.py:132
Method
loss_and_predict
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples. Args: x
mmdet/models/dense_heads/cascade_rpn_head.py:804
Method
loss_and_target
Calculate loss for MaskPointHead. Args: point_pred (Tensor): Point predication result, shape (num_rois, num_class
mmdet/models/roi_heads/mask_heads/mask_point_head.py:183
Method
loss_and_target
Calculate the loss based on the features extracted by the mask head. Args: mask_preds (Tensor): Predicted foreground masks, has s
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:178
Method
loss_and_target
Calculate the loss based on the features extracted by the mask head. Args: mask_preds (Tensor): Predicted foreground masks, has s
mmdet/models/roi_heads/mask_heads/dynamic_mask_head.py:129
Method
loss_and_target
Calculate the loss based on the features extracted by the bbox head. Args: cls_score (Tensor): Classification prediction
mmdet/models/roi_heads/bbox_heads/bbox_head.py:285
Method
loss_by_feat
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/rtmdet_head.py:212
Method
loss_by_feat
Calculate the loss based on the features extracted by the bbox head. When ``self.use_ohem == True``, it functions like ``SSDHead.loss``,
mmdet/models/dense_heads/yolact_head.py:149
Method
loss_by_feat
Calculate the loss based on the features extracted by the mask head. Args: mask_preds (list[Tensor]): List of predicted prototype
mmdet/models/dense_heads/yolact_head.py:736
Method
loss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (list[Tensor]): Box scores for
mmdet/models/dense_heads/anchor_free_head.py:251
Method
loss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (list[Tensor]): Box scores for
mmdet/models/dense_heads/tood_head.py:405
Method
loss_by_feat
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/rtmdet_ins_head.py:661
Method
loss_by_feat
Calculate the loss based on the features extracted by the mask head. Args: mlvl_mask_preds (list[Tensor]): Multi-level mask predi
mmdet/models/dense_heads/solo_head.py:232
Method
loss_by_feat
Calculate the loss based on the features extracted by the mask head. Args: mlvl_mask_preds_x (list[Tensor]): Multi-level mask pre
mmdet/models/dense_heads/solo_head.py:780
Method
loss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (list[Tensor]): Box scores for
projects/EfficientDet/efficientdet/efficientdet_head.py:142
Method
loss_by_feat
Loss function. Args: all_layers_cls_scores (Tensor): Classification scores of all decoder layers, has shape (num_
projects/HDINO/h_dino_head.py:25
Method
loss_by_feat
Loss function. AlignDETR: This method is based on `DINOHead.loss_by_feat`. Args: all_layers_cls_scores (Tensor): Clas
projects/AlignDETR/align_detr/align_detr_head.py:66
Method
loss_by_feat_single
Compute loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N, num
mmdet/models/dense_heads/rtmdet_head.py:149
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: cls_score (Tensor
mmdet/models/dense_heads/reppoints_head.py:587
Method
loss_by_feat_single
Compute loss of a single image. Args: cls_score (Tensor): Box scores for eachimage Has shape (num_total_anchors,
mmdet/models/dense_heads/ssd_head.py:215
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: pred_map (Tensor)
mmdet/models/dense_heads/yolo_head.py:344
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: cls_score (Tensor
mmdet/models/dense_heads/anchor_head.py:415
Method
loss_by_feat_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores (Tensor): Box score log
mmdet/models/dense_heads/grounding_dino_head.py:495
Method
loss_by_feat_single
Loss function on single scale.
mmdet/models/dense_heads/cascade_rpn_head.py:503
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: anchors (Tensor):
mmdet/models/dense_heads/tood_head.py:329
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: cls_score (Tensor
mmdet/models/dense_heads/atss_head.py:176
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: tl_hmp (Tensor):
mmdet/models/dense_heads/centripetal_head.py:298
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: anchors (Tensor):
mmdet/models/dense_heads/gfl_head.py:233
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: cls_score (Tensor
mmdet/models/dense_heads/sabl_retina_head.py:440
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: tl_hmp (Tensor):
mmdet/models/dense_heads/corner_head.py:596
Method
loss_by_feat_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores (Tensor): Box score log
mmdet/models/dense_heads/detr_head.py:251
Method
loss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: cls_score (Tensor
projects/EfficientDet/efficientdet/efficientdet_head.py:210
Method
loss_by_feat_single
Loss function for outputs from a single decoder layer of a single feature level. AlignDETR: This method is based on `DINOHead.loss
projects/AlignDETR/align_detr/align_detr_head.py:88
Method
loss_by_pseudo_instances
Calculate losses from a batch of inputs and pseudo data samples. Args: batch_inputs (Tensor): Input images of shape (N, C, H, W).
mmdet/models/detectors/soft_teacher.py:51
Method
loss_cls_by_feat_single
Compute cls loss of a single scale level. Args: cls_score (Tensor): Box scores for each scale level Has shape (N,
mmdet/models/dense_heads/ddod_head.py:179
Method
loss_reg_by_feat_single
Compute reg loss of a single scale level based on the features extracted by the detection head. Args: anchors (Tensor): B
mmdet/models/dense_heads/ddod_head.py:211
Method
loss_single
Calculate auxiliary branches loss for dense queries for one image. Args: cls_score (Tensor): Predicted normalized classification
mmdet/models/losses/ddq_detr_aux_loss.py:46
Function
make_cuda_ext
(name, module, sources, sources_cuda=[])
setup.py:31
Method
make_mobilenetv2_layer
Build mobilenetv2 layer, which consists of several InvertedResidual layers. Args: in_channels (int): The input channels.
mmpretrain/models/backbones/mobilevit.py:378
Method
make_mobilevit_layer
Build mobilevit layer, which consists of one InvertedResidual and one MobileVitBlock. Args: in_channels (int): The input
mmpretrain/models/backbones/mobilevit.py:336
Method
make_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdet/models/backbones/resnest.py:313
Method
make_res_layer
Pack all blocks in a stage into a ``ResLayer``
mmdet/models/backbones/resnext.py:148
Method
make_res_layer
(self, **kwargs)
mmdet/models/backbones/res2net.py:322
Method
make_res_layer
(self, **kwargs)
mmdet/models/backbones/detectors_resnext.py:118
Method
make_res_layer
(self, **kwargs)
mmpretrain/models/backbones/resnest.py:331
Method
make_res_layer
(self, **kwargs)
mmpretrain/models/backbones/resnext.py:143
Method
make_res_layer
(self, **kwargs)
mmpretrain/models/backbones/res2net.py:312
Method
make_res_layer
(self, **kwargs)
mmpretrain/models/backbones/seresnet.py:124
Method
make_res_layer
(self, **kwargs)
mmpretrain/models/backbones/seresnext.py:150
Function
mask_cross_entropy
Calculate the CrossEntropy loss for masks. Args: pred (torch.Tensor): The prediction with shape (N, C, *), C is the number of
mmdet/models/losses/cross_entropy_loss.py:149
Method
mask_loss
Run forward function and calculate loss for mask head and point head in training.
mmdet/models/roi_heads/point_rend_roi_head.py:31
Method
mask_loss
Perform forward propagation and loss calculation of the mask head on the features of the upstream network. Args: x (tuple
mmdet/models/roi_heads/mask_scoring_roi_head.py:76
Method
mask_loss
Run forward function and calculate loss for mask head in training. Args: x (tuple[Tensor]): Tuple of multi-level img features.
projects/Detic/detic/detic_roi_head.py:219
Function
mask_target_single
Compute mask target for each positive proposal in the image. Args: pos_proposals (Tensor): Positive proposals. pos_assigned_gt_in
mmdet/structures/mask/mask_target.py:67
Method
masks
torch.Tensor: concatenated positive and negative masks.
mmdet/models/task_modules/samplers/mask_sampling_result.py:45
Method
matching
Compare the prototype and calculate the similarity. Args: inputs (torch.Tensor): The input tensor with shape (N, C).
mmpretrain/models/retrievers/base.py:133
Method
max_decoder_positions
Maximum length supported by the decoder.
mmpretrain/models/multimodal/ofa/ofa_modules.py:1356
Method
memo
Return all buffers in the tracker.
mmdet/models/trackers/base_tracker.py:122
Method
memo
Get tracks memory.
mmdet/models/trackers/quasi_dense_tracker.py:154
Function
merge_aug_scores
Merge augmented bbox scores.
mmdet/models/test_time_augs/merge_augs.py:171
Method
merge_preds
Merge batch predictions of enhanced data. Args: data_samples_list (List[List[DetDataSample]]): List of predictions
mmdet/models/test_time_augs/det_tta.py:84
Method
merge_preds
Merge predictions of enhanced data to one prediction. Args: data_samples_list (List[List[DataSample]]): List of predictions
mmpretrain/models/tta/score_tta.py:13
Method
metainfo
Get the meta information of the multi-image-mixed dataset. Returns: dict: The meta information of multi-image-mixed dataset.
mmdet/datasets/dataset_wrappers.py:83
Method
metainfo
Get the meta information of ``self.dataset``. Returns: dict: Meta information of the dataset.
mmpretrain/datasets/dataset_wrappers.py:55
Method
metainfo
Get meta information of dataset. Returns: dict: meta information collected from ``cls.METAINFO``, annotation file and
mmpretrain/datasets/multi_task.py:269
Method
metainfo
(self)
tests/test_engine/test_runner/test_loops.py:68
Method
metainfo
(self)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:68
Method
mix
Mix the batch inputs and batch one-hot format ground truth. Args: batch_inputs (Tensor): A batch of images tensor in the shape of
mmpretrain/models/utils/batch_augments/cutmix.py:135
Method
mix
Mix the batch inputs and batch one-hot format ground truth. Args: batch_inputs (Tensor): A batch of images tensor in the shape of
mmpretrain/models/utils/batch_augments/resizemix.py:68
← previous
next →
5,401–5,500 of 6,823, ranked by callers