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
Method
window_reverse
(windows, H, W, window_size)
mmpretrain/models/backbones/mixmim.py:178
↓ 1 callers
Method
window_reverse
(windows, H, W, window_size)
mmpretrain/models/utils/attention.py:461
↓ 1 callers
Function
window_unpartition
Window unpartition into original sequences and removing padding. Borrowed from https://github.com/facebookresearch/segment-anything/ Args:
mmpretrain/models/backbones/vit_sam.py:49
↓ 1 callers
Function
window_unpartition
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
projects/ViTDet/vitdet/vit.py:150
↓ 1 callers
Function
write_csv
(datas, args)
projects/RF100-Benchmark/scripts/log_extract.py:40
↓ 1 callers
Function
xy_pairwise_distance
Compute pairwise distance of a point cloud. Args: x: tensor (batch_size, num_points, num_dims) y: tensor (batch_size, num_points,
mmpretrain/models/backbones/vig.py:86
↓ 1 callers
Method
zero_init_last_bn
(self)
mmpretrain/models/backbones/conformer.py:107
Method
CLASSES
Return all categories names.
mmpretrain/datasets/base_dataset.py:120
Method
CLASSES
Return all categories names.
mmpretrain/datasets/dataset_wrappers.py:129
Method
GaussianMixture
(self, *args, **kwargs)
tests/test_models/test_dense_heads/test_paa_head.py:21
Method
OHEMloss_by_feat_single
Compute loss of a single image. Similar to func:``SSDHead.loss_by_feat_single`` Args: cls_score (Tensor): Box scores for
mmdet/models/dense_heads/yolact_head.py:264
Method
__call__
Call the inferencer. Args: inputs (InputsType): Inputs for the inferencer. batch_size (int): Inference batch size. De
mmdet/apis/det_inferencer.py:298
Method
__call__
Call function to convert data in results to :obj:`torch.Tensor`. Args: results (dict): Result dict contains the data to convert.
mmdet/datasets/transforms/formatting.py:160
Method
__call__
Call function to convert image in results to :obj:`torch.Tensor` and transpose the channel order. Args: results (dict): R
mmdet/datasets/transforms/formatting.py:193
Method
__call__
Call function to transpose the channel order of data in results. Args: results (dict): Result dict contains the data to transpose
mmdet/datasets/transforms/formatting.py:229
Method
__call__
Call function to wrap fields into lists. Args: results (dict): Result dict contains the data to wrap. Returns:
mmdet/datasets/transforms/formatting.py:269
Method
__call__
Calculate IoU between 2D bboxes. Args: bboxes1 (Tensor or :obj:`BaseBoxes`): bboxes have shape (m, 4) in <x1, y1,
mmdet/models/task_modules/assigners/iou2d_calculator.py:23
Method
__call__
(self, bboxes1, bboxes2, mode='iou', is_aligned=False)
mmdet/models/task_modules/assigners/iou2d_calculator.py:74
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): Instances of model predictions. It includes ``pri
mmdet/models/task_modules/assigners/match_cost.py:25
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): ``bboxes`` inside is predicted boxes with unnorma
mmdet/models/task_modules/assigners/match_cost.py:82
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): ``bboxes`` inside is predicted boxes with unnorma
mmdet/models/task_modules/assigners/match_cost.py:146
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): ``scores`` inside is predicted classification log
mmdet/models/task_modules/assigners/match_cost.py:210
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): Predicted instances which must contain ``scores``
mmdet/models/task_modules/assigners/match_cost.py:307
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): Predicted instances which must contain ``scores``
mmdet/models/task_modules/assigners/match_cost.py:359
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): Predicted instances which must contain ``masks``.
mmdet/models/task_modules/assigners/match_cost.py:434
Method
__call__
Compute match cost. Args: pred_instances (:obj:`InstanceData`): Predicted instances which must contain ``scores``
mmdet/models/task_modules/assigners/match_cost.py:501
Method
__call__
Generate contrastive denoising (cdn) queries with ground truth. Descriptions of the Number Values in code and comments: - num_tar
mmdet/models/layers/transformer/dino_layers.py:187
Method
__call__
Call the inferencer. Args: inputs (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/image_retrieval.py:144
Method
__call__
Call the inferencer. Args: images (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/visual_question_answering.py:41
Method
__call__
Call the inferencer. Args: inputs (InputsType): Inputs for the inferencer. return_datasamples (bool): Whether to retu
mmpretrain/apis/base.py:124
Method
__call__
Call the inferencer. Args: inputs (tuple, List[tuple]): The input data tuples, every tuple should include three i
mmpretrain/apis/nlvr.py:41
Method
__call__
Call the inferencer. Args: inputs (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/feature_extractor.py:42
Method
__call__
Call the inferencer. Args: images (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/visual_grounding.py:43
Method
__call__
Call the inferencer. Args: inputs (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/multimodal_retrieval.py:454
Method
__call__
Call the inferencer. Args: inputs (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/image_classification.py:75
Method
__call__
Call the inferencer. Args: images (str | array | list): The image path or array, or a list of images.
mmpretrain/apis/image_caption.py:41
Method
__call__
(self, results)
mmpretrain/datasets/transforms/processing.py:62
Method
__call__
Randomly apply batch augmentations to the batch inputs and batch data samples.
mmpretrain/models/utils/batch_augments/wrapper.py:65
Method
__call__
Mix the batch inputs and batch data samples.
mmpretrain/models/utils/batch_augments/mixup.py:58
Method
__call__
Call the inferencer. Args: inputs (InputsType): Inputs for the inferencer. batch_size (int): Inference batch size. De
projects/XDecoder/xdecoder/inference/texttoimage_regionretrieval_inferencer.py:97
Method
__call__
Call the inferencer. Args: inputs (InputsType): Inputs for the inferencer. batch_size (int): Inference batch size. De
projects/XDecoder/xdecoder/inference/image_caption.py:181
Method
__deepcopy__
Only clone the ``self.tensor`` when applying deepcopy.
mmdet/structures/bbox/base_boxes.py:173
Method
__del__
(self)
mmdet/evaluation/metrics/mot_challenge_metric.py:132
Method
__del__
Clean up.
mmdet/evaluation/metrics/coco_panoptic_metric.py:130
Method
__del__
Clean up the results if necessary.
mmdet/evaluation/metrics/cityscapes_metric.py:112
Method
__del__
(self)
tests/test_evaluation/test_metrics/test_mot_challenge_metrics.py:22
Method
__getitem__
(self, index)
mmdet/structures/track_data_sample.py:127
Method
__getitem__
Rewrite getitem to protect the last dimension shape.
mmdet/structures/bbox/base_boxes.py:131
Method
__getitem__
Index the BitmapMask. Args: index (int | ndarray): Indices in the format of integer or ndarray. Returns: :ob
mmdet/structures/mask/structures.py:272
Method
__getitem__
Index the polygon masks. Args: index (ndarray | List): The indices. Returns: :obj:`PolygonMasks`: The indexe
mmdet/structures/mask/structures.py:649
Method
__getitem__
(self, idx)
mmdet/datasets/dataset_wrappers.py:116
Method
__getitem__
(self, idx: int)
mmpretrain/datasets/sun397.py:111
Method
__getitem__
(self, idx)
mmpretrain/datasets/dataset_wrappers.py:117
Method
__getitem__
Get the idx-th image and data information of dataset after ``self.pipeline``. Args: idx (int): The index of of the data.
mmpretrain/datasets/multi_task.py:298
Method
__getitem__
Wrap method `__getitem__` to record its keys. Args: key: Key that is passed to the object. Returns: result
projects/AlignDETR/align_detr/utils.py:20
Method
__getitem__
(self, index)
tests/test_engine/test_runner/test_loops.py:74
Method
__getitem__
(self, index)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:74
Method
__getitem__
(self, index)
tests/test_utils/test_benchmark.py:43
Method
__getitem__
(self, index)
tests/test_utils/test_benchmark.py:65
Method
__getitem__
(self, idx)
tests/test_datasets/test_samplers/test_batch_sampler.py:22
Method
__getitem__
(self, idx)
tests/test_datasets/test_samplers/test_multi_source_sampler.py:23
Method
__init__
(self, show=False, wait_time=0, score_thr=0, runner=None)
tools/analysis_tools/analyze_results.py:85
Method
__init__
(self, num_anchors, iters, **kwargs)
tools/analysis_tools/optimize_anchors.py:165
Method
__init__
(self, num_anchors, iters, strategy='best1bin',
tools/analysis_tools/optimize_anchors.py:263
Method
__init__
(self, to_cpu=True, test=False)
mmdet/utils/memory.py:119
Method
__init__
(self, cfg: Config, checkpoint: str, distributed: bool,
mmdet/utils/benchmark.py:138
Method
__init__
(self, cfg: Config, distributed: bool, dataset_type: str,
mmdet/utils/benchmark.py:293
Method
__init__
(self, cfg: Config, dataset_type: str, max_iter: int = 2000
mmdet/utils/benchmark.py:420
Method
__init__
(self, name: str = 'visualizer', image: Optional[np.ndarray] = None,
mmdet/visualization/local_visualizer.py:539
Method
__init__
(self, optimizer: Optimizer, param_name: str, begin: int =
mmdet/engine/schedulers/quadratic_warmup.py:35
Method
__init__
(self, momentum: float = 0.001, interval: int = 1, skip_buf
mmdet/engine/hooks/mean_teacher_hook.py:38
Method
__init__
(self, draw: bool = False, interval: int = 50, score_thr: f
mmdet/engine/hooks/visualization_hook.py:50
Method
__init__
(self, draw: bool = False, frame_interval: int = 30, score_
mmdet/engine/hooks/visualization_hook.py:183
Method
__init__
(self, switch_epoch, switch_pipeline)
mmdet/engine/hooks/pipeline_switch_hook.py:17
Method
__init__
(self, interval: int = 50)
mmdet/engine/hooks/checkloss_hook.py:23
Method
__init__
(self, interval: int = 50)
mmdet/engine/hooks/memory_profiler_hook.py:21
Method
__init__
( self, num_last_epochs: int = 15, skip_type_keys: Sequence[str] = ('Mosaic', 'RandomA
mmdet/engine/hooks/yolox_mode_switch_hook.py:25
Method
__init__
(self, data: Union[Tensor, np.ndarray, Sequence], dtype: Optional[torch.dtyp
mmdet/structures/bbox/base_boxes.py:56
Method
__init__
(self, data: Union[Tensor, np.ndarray], dtype: torch.dtype = None,
mmdet/structures/bbox/horizontal_boxes.py:49
Method
__init__
(self, masks, height, width)
mmdet/structures/mask/structures.py:255
Method
__init__
(self, masks, height, width)
mmdet/structures/mask/structures.py:639
Method
__init__
(self, model: Optional[Union[ModelType, str]] = None, weights: Optional[str]
mmdet/apis/det_inferencer.py:86
Method
__init__
( self, shared_image_embedding, decoder_freeze=True, *args,
mmdet/rsprompter/models.py:55
Method
__init__
( self, shared_image_embedding, decoder_freeze=True, *args,
mmdet/rsprompter/models.py:175
Method
__init__
( self, mask_decoder, decoder_plus, with_sincos=True,
mmdet/rsprompter/models.py:276
Method
__init__
( self, hf_pretrain_name, extra_config=None, init_cfg=None,
mmdet/rsprompter/models.py:720
Method
__init__
( self, hf_pretrain_name, extra_config=None, init_cfg=None,
mmdet/rsprompter/models.py:746
Method
__init__
( self, hf_pretrain_name, extra_config=None, peft_config=None,
mmdet/rsprompter/models.py:764
Method
__init__
( self, hf_pretrain_name, img_size=1024, peft_config=None,
mmdet/rsprompter/models.py:814
Method
__init__
( self, hf_pretrain_name, extra_config=None, init_cfg=None,
mmdet/rsprompter/models.py:883
Method
__init__
( self, hf_pretrain_name, extra_config=None, init_cfg=None,
mmdet/rsprompter/models.py:901
Method
__init__
( self, feature_aggregator=None, feature_spliter=None, init_cf
mmdet/rsprompter/models.py:919
Method
__init__
( self, in_channels, hidden_channels=64, out_channels=256,
mmdet/rsprompter/models.py:945
Method
__init__
( self, in_channels, hidden_channels=64, out_channels=256,
mmdet/rsprompter/models.py:995
Method
__init__
( self, detector, segmentor, data_preprocessor=None,
mmdet/rsprompter/models.py:1062
Method
__init__
( self, *args, **kwargs, )
mmdet/rsprompter/models.py:1220
Method
__init__
( self, *args, **kwargs, )
mmdet/rsprompter/models.py:1249
Method
__init__
(self, backbone_channel: int, in_channels: List[int], out_c
mmdet/rsprompter/models.py:1279
Method
__init__
( self, with_extra_pe=False, *args, **kwargs )
mmdet/rsprompter/models.py:1368
Method
__init__
( self, mask_decoder, in_channels, roi_feat_size=14,
mmdet/rsprompter/models.py:1598
← previous
next →
2,501–2,600 of 6,823, ranked by callers