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
↓ 1 callers
Function
heatmap_focal_loss_with_pos_inds
( pred: Tensor, targets: Tensor, pos_inds: Tensor, alpha: float = 2.0,
projects/Detic_new/detic/heatmap_focal_loss.py:12
↓ 1 callers
Function
huber_loss
Huber loss. Args: pred (Tensor): The prediction. target (Tensor): The learning target of the prediction. beta (float, opt
projects/EfficientDet/efficientdet/huber_loss.py:13
↓ 1 callers
Method
image_label_losses
Inputs: cls_score: N x (C + 1) image_labels B x 1
projects/Detic_new/detic/detic_bbox_head.py:286
↓ 1 callers
Method
image_loss
Run forward function and calculate loss for box head in training. Args: stage (int): The current stage in Cascade RoI Head.
projects/Detic_new/detic/detic_roi_head.py:344
↓ 1 callers
Function
imrescale
Resize image while keeping the aspect ratio. Args: img (ndarray): The input image. scale (float | tuple[int]): The scaling factor
mmdet/datasets/transforms/transforms.py:101
↓ 1 callers
Function
imshow_mot_errors
Show the wrong tracks on the input image. Args: backend (str, optional): Backend of visualization. Defaults to 'cv2'.
mmdet/utils/mot_error_visualize.py:17
↓ 1 callers
Function
inference
(args, logger)
tools/analysis_tools/get_flops.py:47
↓ 1 callers
Function
inference_mot
Inference image(s) with the mot model. Args: model (nn.Module): The loaded mot model. img (np.ndarray): Loaded image. fra
mmdet/apis/inference.py:269
↓ 1 callers
Method
init_assigner_sampler
Initialize assigner and sampler.
mmdet/models/tracking_heads/quasi_dense_track_head.py:49
↓ 1 callers
Method
init_assigner_sampler
Initialize assigner and sampler.
mmdet/models/tracking_heads/roi_track_head.py:55
↓ 1 callers
Method
init_assigner_sampler
Initialize assigner and sampler.
mmdet/models/roi_heads/base_roi_head.py:65
↓ 1 callers
Method
init_bbox_head
Initialize ``bbox_head``
mmdet/models/roi_heads/base_roi_head.py:55
↓ 1 callers
Method
init_denoising
(self, dn_cfg)
projects/CO-DETR/codetr/co_dino_head.py:102
↓ 1 callers
Method
init_embed_
Initialize embedding vectors of codebook.
mmpretrain/models/utils/vector_quantizer.py:112
↓ 1 callers
Method
init_embed_head
Initialize ``embed_head`` Args: roi_extractor (dict, optional): Configuration of roi extractor. Defaults to None.
mmdet/models/tracking_heads/quasi_dense_track_head.py:37
↓ 1 callers
Method
init_embed_head
Initialize ``embed_head``
mmdet/models/tracking_heads/roi_track_head.py:50
↓ 1 callers
Method
init_layers
Initialize layers of the DeformableDetrTransformer.
projects/CO-DETR/codetr/transformer.py:225
↓ 1 callers
Method
init_mask_head
Initialize ``mask_head``
mmdet/models/roi_heads/base_roi_head.py:60
↓ 1 callers
Method
init_point_head
Initialize ``point_head``
mmdet/models/roi_heads/point_rend_roi_head.py:27
↓ 1 callers
Method
init_track
Initialize a track.
mmdet/models/trackers/base_tracker.py:111
↓ 1 callers
Function
init_track_model
Initialize a model from config file. Args: config (str or :obj:`mmengine.Config`): Config file path or the config object.
mmdet/apis/inference.py:305
↓ 1 callers
Method
init_weights
Initialize weights.
mmdet/models/seg_heads/panoptic_fpn_head.py:146
↓ 1 callers
Method
init_weights
Initialize the parameters.
mmdet/models/necks/ct_resnet_neck.py:71
↓ 1 callers
Method
init_weights
(self)
mmdet/models/backbones/detectors_resnet.py:296
↓ 1 callers
Method
init_weights
(self)
mmdet/models/backbones/pvt.py:524
↓ 1 callers
Method
init_weights
(self)
mmdet/models/backbones/swin.py:671
↓ 1 callers
Method
init_weights
Initialize the init_proposal_bboxes as normalized. [c_x, c_y, w, h], and we initialize it to the size of the entire image.
mmdet/models/dense_heads/embedding_rpn_head.py:51
↓ 1 callers
Method
init_weights
(self)
mmdet/models/dense_heads/atss_vlfusion_head.py:180
↓ 1 callers
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/retina_sepbn_head.py:86
↓ 1 callers
Method
init_weights
initialize weights.
mmdet/models/dense_heads/yolo_head.py:157
↓ 1 callers
Method
init_weights
Initialize weights of the head.
mmdet/models/dense_heads/yolox_head.py:189
↓ 1 callers
Method
init_weights
Initialize the weights.
mmdet/models/layers/normed_predictor.py:36
↓ 1 callers
Method
init_weights
(self)
mmpretrain/models/backbones/mvit.py:664
↓ 1 callers
Method
init_weights
(self)
mmpretrain/models/backbones/revvit.py:552
↓ 1 callers
Method
init_weights
(self)
mmpretrain/models/backbones/vision_transformer.py:383
↓ 1 callers
Method
init_weights
(self)
mmpretrain/models/utils/attention.py:112
↓ 1 callers
Method
initialize_parameters
Initialize the parameters. The pretrained weight will override the initialized parameters by this function.
mmpretrain/models/utils/clip_generator_helper.py:284
↓ 1 callers
Method
initialize_parameters
Initialize the parameters. The pretrained weight will override the initialized parameters by this function.
mmpretrain/models/multimodal/clip/clip.py:114
↓ 1 callers
Function
instances2dict
A wrapper of obj:``cityscapesscripts.evaluation. evalInstanceLevelSemanticLabeling.instances2dict``. Support loading groundtruth image from f
mmdet/evaluation/functional/cityscapes_utils.py:247
↓ 1 callers
Function
iou_loss
IoU loss. Computing the IoU loss between a set of predicted bboxes and target bboxes. The loss is calculated as negative log of IoU. Arg
mmdet/models/losses/iou_loss.py:16
↓ 1 callers
Function
is_head
(key)
tools/model_converters/upgrade_model_version.py:11
↓ 1 callers
Method
is_inside
Find boxes inside the image. Args: img_shape (Tuple[int, int]): A tuple of image height and width. all_inside (bool):
mmdet/structures/bbox/horizontal_boxes.py:277
↓ 1 callers
Function
is_pow2n
(x)
mmpretrain/models/necks/spark_neck.py:13
↓ 1 callers
Function
isabs
(uri)
mmpretrain/datasets/multi_task.py:21
↓ 1 callers
Function
isfloat
(value)
projects/LabelStudio/backend_template/_wsgi.py:97
↓ 1 callers
Function
iter_annotations
()
tools/dataset_converters/prepare_coco_semantic_annos_from_panoptic_annos.py:861
↓ 1 callers
Function
json_convert
(path)
projects/iSAID/isaid_json.py:6
↓ 1 callers
Function
json_load
(file, int_keys=False)
projects/LabelStudio/backend_template/mmdetection.py:142
↓ 1 callers
Function
kmeans
Run k-means algorithm.
mmpretrain/models/utils/vector_quantizer.py:39
↓ 1 callers
Method
kmeans_anchors
(self)
tools/analysis_tools/optimize_anchors.py:175
↓ 1 callers
Method
kmeans_expectation
Expectation part of EM algorithm(Expectation-Maximization)
tools/analysis_tools/optimize_anchors.py:220
↓ 1 callers
Function
knowledge_distillation_kl_div_loss
r"""Loss function for knowledge distilling using KL divergence. Args: pred (Tensor): Predicted logits with shape (N, n + 1). soft
mmdet/models/losses/kd_loss.py:13
↓ 1 callers
Function
l1_loss
L1 loss. Args: pred (Tensor): The prediction. target (Tensor): The learning target of the prediction. Returns: Tenso
mmdet/models/losses/smooth_l1_loss.py:37
↓ 1 callers
Function
legacy_bbox2delta
Compute deltas of proposals w.r.t. gt in the MMDet V1.x manner. We usually compute the deltas of x, y, w, h of proposals w.r.t ground truth b
mmdet/models/task_modules/coders/legacy_delta_xywh_bbox_coder.py:101
↓ 1 callers
Function
legacy_delta2bbox
Apply deltas to shift/scale base boxes in the MMDet V1.x manner. Typically the rois are anchor or proposed bounding boxes and the deltas are
mmdet/models/task_modules/coders/legacy_delta_xywh_bbox_coder.py:151
↓ 1 callers
Function
levenshtein_distance
(s1, s2)
mmpretrain/evaluation/metrics/ANLS.py:89
↓ 1 callers
Function
load_class_freq
(path='datasets/metadata/lvis_v1_train_cat_info.json', freq_weight=0.5)
projects/Detic_new/detic/detic_bbox_head.py:20
↓ 1 callers
Method
load_data_list
Load annotation from XML style ann_file. Returns: list[dict]: Annotation info from XML file.
mmdet/datasets/wider_face.py:23
↓ 1 callers
Method
load_data_list
Load annotations from an annotation file named as ``self.ann_file`` Returns: List[dict]: A list of annotation.
mmdet/datasets/coco.py:59
↓ 1 callers
Method
load_data_list
Load annotations from an annotation file. Args: ann_file (str): Absolute annotation file path if ``self.root=None``
mmpretrain/datasets/multi_task.py:207
↓ 1 callers
Method
load_eval_samples
Load data from annotations file and detection results. Args: result_file (str): The file path of the saved detection results.
mmdet/evaluation/metrics/crowdhuman_metric.py:222
↓ 1 callers
Method
load_gt_boxes
load ground_truth and transform [x, y, w, h] to [x1, y1, x2, y2]
mmdet/evaluation/metrics/crowdhuman_metric.py:630
↓ 1 callers
Function
load_json_logs
(json_logs)
tools/analysis_tools/analyze_logs.py:165
↓ 1 callers
Function
load_odgt
(filename)
tools/dataset_converters/crowdhuman2coco.py:29
↓ 1 callers
Method
load_proposals
Load proposals from proposals file. The `proposals_list` should be a dict[img_path: proposals] with the same length as `data_list`. A
mmdet/datasets/base_det_dataset.py:86
↓ 1 callers
Method
load_vocab
Loads a vocabulary file into a dictionary.
mmpretrain/models/utils/tokenizer.py:130
↓ 1 callers
Method
local_inject
inject the Local Perceptron into Partition Perceptron.
mmpretrain/models/backbones/repmlp.py:261
↓ 1 callers
Method
loss
Args: x (Union[Tensor, Tuple[Tensor]]): Feature maps. batch_data_samples (list[:obj:`DetDataSample`]): The batch
mmdet/models/seg_heads/panoptic_fpn_head.py:108
↓ 1 callers
Method
loss
HeuristicFusionHead has no training loss.
mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py:32
↓ 1 callers
Method
loss
MaskFormerFusionHead has no training loss.
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:37
↓ 1 callers
Method
loss
Perform forward propagation and loss calculation of the detection head on the features of the upstream network.
mmdet/models/dense_heads/embedding_rpn_head.py:109
↓ 1 callers
Method
loss
Perform forward propagation and loss calculation of the detection head on the queries of the upstream network. Args: hidd
mmdet/models/dense_heads/ddq_detr_head.py:155
↓ 1 callers
Method
loss
Perform forward propagation and loss calculation of the track head on the features of the upstream network. Args: x (tupl
mmdet/models/tracking_heads/mask2former_track_head.py:581
↓ 1 callers
Method
loss
Calculate the track loss and the auxiliary track loss. Args: key_roi_feats (Tensor): Embeds of positive bboxes in sampling
mmdet/models/tracking_heads/quasi_dense_embed_head.py:253
↓ 1 callers
Method
loss
Perform forward propagation and loss calculation of the detection roi on the features of the upstream network. Args: x (t
mmdet/models/roi_heads/pisa_roi_head.py:21
↓ 1 callers
Method
loss
Perform forward propagation and loss calculation of the detection roi on the features of the upstream network. Args: x (t
mmdet/models/roi_heads/grid_roi_head.py:125
↓ 1 callers
Method
loss
Calculate the loss based on the features extracted by the grid head. Args: grid_pred (dict[str, Tensor]): Outputs of grid_head fo
mmdet/models/roi_heads/mask_heads/grid_head.py:344
↓ 1 callers
Method
loss
Loss function. Args: pred (Tensor): Logits. labels (list[Tensor]): Grouth truths. Returns: Tenso
mmdet/models/roi_heads/mask_heads/global_context_head.py:112
↓ 1 callers
Method
loss
Loss function. Args: mask_preds (Tensor): Predicted mask logits. labels (Tensor): Ground truth. Returns:
mmdet/models/roi_heads/mask_heads/fused_semantic_head.py:130
↓ 1 callers
Method
loss
Calculate the loss based on the network predictions and targets. Args: cls_score (Tensor): Classification prediction
mmdet/models/roi_heads/bbox_heads/bbox_head.py:333
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples.
mmdet/models/detectors/base.py:102
↓ 1 callers
Method
loss
Args: batch_inputs (Tensor): Input images of shape (N, C, H, W). These should usually be mean centered and std sc
mmdet/models/detectors/single_stage_instance_seg.py:101
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples.
mmdet/models/mot/base.py:118
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. This is a abstract method, and subclass should overwrite this methods if ne
mmpretrain/models/selfsup/base.py:147
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. Args: inputs (torch.Tensor): The input tensor with shape
mmpretrain/models/classifiers/image.py:218
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. Args: inputs (torch.Tensor): The input tensor with shape
mmpretrain/models/classifiers/timm.py:115
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. Args: inputs (torch.Tensor): The input tensor with shape
mmpretrain/models/classifiers/hugging_face.py:127
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. Args: inputs (torch.Tensor): The input tensor with shape
mmpretrain/models/retrievers/image2image.py:172
↓ 1 callers
Method
loss
generate train_loss from the input tensor and data_samples. Args: inputs (Tensor): A batch of inputs. The shape of it should be
mmpretrain/models/multimodal/blip/blip_grounding.py:113
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. Args: images (torch.Tensor): The input tensor with shape
mmpretrain/models/multimodal/blip/blip_nlvr.py:167
↓ 1 callers
Method
loss
Calculate losses from a batch of inputs and data samples. Args: inputs (dict): A batch of inputs. The input tensor with of
mmpretrain/models/multimodal/blip/blip_retrieval.py:351
↓ 1 callers
Method
loss
Calculate losses from a batch of images and data samples. Args: images (torch.Tensor): The input images tensor with shape
mmpretrain/models/multimodal/blip/blip_caption.py:146
↓ 1 callers
Method
loss
The forward function in training. Args: images (torch.Tensor): The input tensor with shape (N, C, ...) in general
mmpretrain/models/multimodal/blip2/blip2_caption.py:135
↓ 1 callers
Method
loss
The forward function in training. Args: inputs (List[torch.Tensor]): The input images. data_samples (List[DataSample]
mmpretrain/models/multimodal/minigpt4/minigpt4.py:241
↓ 1 callers
Method
loss
Forward head. Args: pred (torch.Tensor): Predictions with shape B x L x C. target (torch.Tensor): Targets with shape
mmpretrain/models/heads/mim_head.py:22
↓ 1 callers
Method
loss_and_predict
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples.
mmdet/models/dense_heads/embedding_rpn_head.py:124
↓ 1 callers
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:998
↓ 1 callers
Method
loss_and_target
Calculate the loss and targets of MaskIoUHead. Args: mask_iou_pred (Tensor): Mask IoU predictions results, has shape
mmdet/models/roi_heads/mask_heads/maskiou_head.py:117
↓ 1 callers
Method
loss_aux
(self, x, pos_coords=None, head_idx=0, bat
projects/CO-DETR/codetr/co_dino_head.py:404
↓ 1 callers
Method
loss_aux_by_feat
(self, all_cls_scores, all_bbox_preds,
projects/CO-DETR/codetr/co_dino_head.py:546
← previous
next →
1,901–2,000 of 6,823, ranked by callers