MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

Methodloss
Generate loss. Args: feats (torch.Tensor): Features from backbone. feats_cls_pt (torch.Tensor) : Features from class
mmpretrain/models/heads/beitv2_head.py:37
Methodloss
Generate loss. Args: pred (torch.Tensor): The reconstructed image. target (torch.Tensor): The target image.
mmpretrain/models/heads/mae_head.py:91
Methodloss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/cls_head.py:60
Methodloss
Generate loss. Args: feats (torch.Tensor): Features from backbone. target (torch.Tensor): Target generated by target_
mmpretrain/models/heads/beitv1_head.py:37
Methodloss
Generate loss. Args: logits (torch.Tensor): Logits generated by decoder. logits_target (img_target): Target generated
mmpretrain/models/heads/cae_head.py:43
Methodloss
Generate loss. Args: feats (torch.Tensor): Features from backbone. target (torch.Tensor): Target generated by target_
mmpretrain/models/heads/itpn_clip_head.py:38
Methodloss
Calculate losses from the extracted features. Args: feats (dict): The features extracted from the backbone. data_samp
mmpretrain/models/heads/vqa_head.py:107
Methodloss
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
Methodloss
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
Methodloss
Forward function to compute contrastive loss. Args: pos (torch.Tensor): Nx1 positive similarity. neg (torch.Tensor):
mmpretrain/models/heads/contrastive_head.py:34
Methodloss
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
Methodloss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/margin_head.py:267
Methodloss
Generate loss. Args: pred (torch.Tensor): NxC input features. Returns: torch.Tensor: The SwAV loss.
mmpretrain/models/heads/swav_head.py:20
Methodloss
Forward head. Args: input (torch.Tensor): NxC input features. target (torch.Tensor): NxC target features. Re
mmpretrain/models/heads/latent_heads.py:35
Methodloss
Forward head. Args: input (torch.Tensor): NxC input features. target (torch.Tensor): NxC target features. Re
mmpretrain/models/heads/latent_heads.py:77
Methodloss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/efficientformer_head.py:68
Methodloss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/multi_task_head.py:81
Methodloss
Generate loss. Args: pred (torch.Tensor): The reconstructed image. target (torch.Tensor): The target image.
mmpretrain/models/heads/mixmim_head.py:25
Methodloss
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
Methodloss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/itc_head.py:61
Methodloss
Calculate losses from the classification score. Args: feats (tuple[Tensor]): The features extracted from the backbone.
mmpretrain/models/heads/itm_head.py:68
Methodloss
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
Methodloss
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
Methodloss
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
Methodloss
(self, x: Tuple[Tensor], rpn_results_list: InstanceList, batch_data_samples: List[DetDataSample])
projects/CO-DETR/codetr/co_roi_head.py:18
Methodloss
(self, batch_inputs: Tensor, batch_data_samples: SampleList)
projects/CO-DETR/codetr/codetr.py:146
Methodloss
(self, x, batch_data_samples)
projects/CO-DETR/codetr/co_dino_head.py:302
Methodloss
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
Methodloss
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
Methodloss
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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_by_feat_single
Loss function on single scale.
mmdet/models/dense_heads/cascade_rpn_head.py:503
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Methodloss_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
Functionmake_cuda_ext
(name, module, sources, sources_cuda=[])
setup.py:31
Methodmake_mobilenetv2_layer
Build mobilenetv2 layer, which consists of several InvertedResidual layers. Args: in_channels (int): The input channels.
mmpretrain/models/backbones/mobilevit.py:378
Methodmake_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
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdet/models/backbones/resnest.py:313
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``
mmdet/models/backbones/resnext.py:148
Methodmake_res_layer
(self, **kwargs)
mmdet/models/backbones/res2net.py:322
Methodmake_res_layer
(self, **kwargs)
mmdet/models/backbones/detectors_resnext.py:118
Methodmake_res_layer
(self, **kwargs)
mmpretrain/models/backbones/resnest.py:331
Methodmake_res_layer
(self, **kwargs)
mmpretrain/models/backbones/resnext.py:143
Methodmake_res_layer
(self, **kwargs)
mmpretrain/models/backbones/res2net.py:312
Methodmake_res_layer
(self, **kwargs)
mmpretrain/models/backbones/seresnet.py:124
Methodmake_res_layer
(self, **kwargs)
mmpretrain/models/backbones/seresnext.py:150
Functionmask_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
Methodmask_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
Methodmask_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
Methodmask_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
Functionmask_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
Methodmasks
torch.Tensor: concatenated positive and negative masks.
mmdet/models/task_modules/samplers/mask_sampling_result.py:45
Methodmatching
Compare the prototype and calculate the similarity. Args: inputs (torch.Tensor): The input tensor with shape (N, C).
mmpretrain/models/retrievers/base.py:133
Methodmax_decoder_positions
Maximum length supported by the decoder.
mmpretrain/models/multimodal/ofa/ofa_modules.py:1356
Methodmemo
Return all buffers in the tracker.
mmdet/models/trackers/base_tracker.py:122
Methodmemo
Get tracks memory.
mmdet/models/trackers/quasi_dense_tracker.py:154
Functionmerge_aug_scores
Merge augmented bbox scores.
mmdet/models/test_time_augs/merge_augs.py:171
Methodmerge_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
Methodmerge_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
Methodmetainfo
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
Methodmetainfo
Get the meta information of ``self.dataset``. Returns: dict: Meta information of the dataset.
mmpretrain/datasets/dataset_wrappers.py:55
Methodmetainfo
Get meta information of dataset. Returns: dict: meta information collected from ``cls.METAINFO``, annotation file and
mmpretrain/datasets/multi_task.py:269
Methodmetainfo
(self)
tests/test_engine/test_runner/test_loops.py:68
Methodmetainfo
(self)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:68
Methodmix
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
Methodmix
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
← previousnext →5,401–5,500 of 6,823, ranked by callers