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
before_train
Check whether the training dataset is compatible with head. Args: runner (obj: `IterBasedRunner`): Iter based Runner.
mmpretrain/engine/hooks/class_num_check_hook.py:41
Method
before_train
Obtain ``loss_lambda`` from algorithm.
mmpretrain/engine/hooks/densecl_hook.py:25
Method
before_train
change the margins in ArcFaceClsHead. Args: runner (obj: `Runner`): Runner.
mmpretrain/engine/hooks/margin_head_hooks.py:33
Method
before_train
(self, runner)
projects/ViTDet/vitdet/fp16_compression_hook.py:17
Method
before_train_epoch
Check whether the training dataset is compatible with head. Args: runner (:obj:`Runner`): The runner of the training or evaluatio
mmdet/engine/hooks/num_class_check_hook.py:52
Method
before_train_epoch
(self, runner)
mmdet/engine/hooks/set_epoch_info_hook.py:12
Method
before_train_epoch
do before train epoch.
mmpretrain/engine/hooks/switch_recipe_hook.py:103
Method
before_train_epoch
fix lr of predictor by epoch.
mmpretrain/engine/hooks/simsiam_hook.py:43
Method
before_train_iter
fix lr of predictor by iter.
mmpretrain/engine/hooks/simsiam_hook.py:30
Method
before_train_iter
Freeze layers before specific iters according to the config.
mmpretrain/engine/hooks/swav_hook.py:78
Method
before_train_iter
Set the warmup value before each train iter.
mmpretrain/engine/hooks/warmup_param_hook.py:56
Method
before_train_iter
Adjust ``loss_lambda`` every train iter.
mmpretrain/engine/hooks/densecl_hook.py:31
Method
before_val
(self, runner)
mmpretrain/engine/hooks/retriever_hooks.py:20
Method
before_val
Check whether the validation dataset is compatible with head. Args: runner (obj:`IterBasedRunner`): Iter based Runner.
mmpretrain/engine/hooks/class_num_check_hook.py:49
Method
before_val_epoch
Check whether the dataset in val epoch is compatible with head. Args: runner (:obj:`Runner`): The runner of the training or evalu
mmdet/engine/hooks/num_class_check_hook.py:61
Function
binary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1) or (N, ). When the shape
mmdet/models/losses/cross_entropy_loss.py:86
Function
binary_cross_entropy
r"""Calculate the binary CrossEntropy loss with logits. Args: pred (torch.Tensor): The prediction with shape (N, \*). label (torc
mmpretrain/models/losses/cross_entropy_loss.py:81
Function
box_iou
Return intersection-over-union (Jaccard index) between two sets of boxes. Both sets of boxes are expected to be in ``(x1, y1, x2, y2)`` forma
mmpretrain/models/utils/box_utils.py:18
Function
build
(**kwargs)
mmpretrain/models/utils/huggingface.py:77
Function
build_assigner
Builder of box assigner.
mmdet/models/task_modules/builder.py:37
Function
build_backbone
Build backbone.
mmpretrain/models/builder.py:12
Function
build_bbox_coder
Builder of box coder.
mmdet/models/task_modules/builder.py:15
Function
build_classifier
Build classifier.
mmpretrain/models/builder.py:32
Method
build_concat_cell
(with_input1_conv, with_input2_conv)
mmdet/models/necks/nasfcos_fpn.py:84
Method
build_dataloader
(dataset)
mmpretrain/apis/multimodal_retrieval.py:108
Method
build_dataloader
(dataset)
mmpretrain/apis/multimodal_retrieval.py:399
Function
build_dataset
Build dataset. Examples: >>> from mmpretrain.datasets import build_dataset >>> mnist_train = build_dataset( ... dict(
mmpretrain/datasets/builder.py:5
Function
build_head
Build head.
mmpretrain/models/builder.py:22
Function
build_iou_calculator
Builder of IoU calculator.
mmdet/models/task_modules/builder.py:22
Function
build_loss
Build loss.
mmpretrain/models/builder.py:27
Function
build_match_cost
Builder of IoU calculator.
mmdet/models/task_modules/builder.py:30
Function
build_neck
Build neck.
mmpretrain/models/builder.py:17
Method
build_norm
(*args, **kwargs)
mmpretrain/models/backbones/timm_backbone.py:82
Method
build_pooling
(stride)
mmpretrain/models/backbones/mvit.py:222
Function
build_retriever
Build retriever.
mmpretrain/models/builder.py:37
Function
build_sampler
Builder of box sampler.
mmdet/models/task_modules/builder.py:44
Function
builder_inited_handler
(app)
docs/zh_cn/conf.py:113
Function
builder_inited_handler
(app)
docs/en/conf.py:111
Function
cal_train_time
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:11
Method
calculate
Calculate the average precision. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction results. A :obj
mmpretrain/evaluation/metrics/retrieval.py:308
Method
calculate
Calculate the confusion matrix for single-label task. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction
mmpretrain/evaluation/metrics/single_label.py:664
Method
can_generate
(self)
mmpretrain/models/multimodal/ofa/ofa_modules.py:1347
Method
cat
Concatenate a sequence of masks into one single mask instance. Args: masks (Sequence[T]): A sequence of mask instances.
mmdet/structures/mask/structures.py:215
Method
cat
Concatenate a sequence of masks into one single mask instance. Args: masks (Sequence[PolygonMasks]): A sequence of mask instances
mmdet/structures/mask/structures.py:1131
Method
centers
Return a tensor representing the centers of boxes.
mmdet/structures/bbox/base_boxes.py:366
Method
centers
Return a tensor representing the centers of boxes.
mmdet/structures/bbox/horizontal_boxes.py:94
Method
centers
(self)
tests/test_structures/test_bbox/utils.py:9
Function
checkpoint_check_fn
(submodule, layer_cls: Union[nn.Module, Sequence[nn.Module]] = (
projects/example_largemodel/fsdp_utils.py:28
Function
cityscapes_classes
Class names of Cityscapes.
mmdet/evaluation/functional/class_names.py:121
Method
class_to_idx
Map mapping class name to class index. Returns: dict: mapping from class name to class index.
mmpretrain/datasets/base_dataset.py:125
Method
class_to_idx
Map mapping class name to class index. Returns: dict: mapping from class name to class index.
mmpretrain/datasets/dataset_wrappers.py:134
Method
clean_up_tokenization
Clean up a list of simple English tokenization artifacts like spaces before punctuations and abbreviated forms.
mmpretrain/models/utils/tokenizer.py:168
Method
clip_
(self, img_shape)
tests/test_structures/test_bbox/utils.py:30
Method
clone
Deep copy the current data element. Returns: BaseDataElement: The copy of current data element.
mmdet/structures/track_data_sample.py:255
Method
closure
(*xs)
mmpretrain/models/backbones/densenet.py:70
Function
coco_classes
Class names of COCO.
mmdet/evaluation/functional/class_names.py:72
Function
coco_panoptic_classes
Class names of COCO panoptic.
mmdet/evaluation/functional/class_names.py:91
Function
collect_env
Collect the information of the running environments.
mmpretrain/utils/collect_env.py:9
Method
collect_loss_level_single
Get the average loss in each FPN level w.r.t. each gt label. Args: cls_loss (Tensor): Classification loss of each feature map pix
mmdet/models/dense_heads/fsaf_head.py:373
Function
compat_cfg
This function would modify some filed to keep the compatibility of config. For example, it will move some args which will be deprecated to th
mmdet/utils/compat_config.py:8
Method
computeOks
(self, imgId, catId)
mmdet/evaluation/functional/ytviseval.py:232
Method
compute_coordinates_linspace
(self, x)
projects/SparseInst/sparseinst/decoder.py:153
Method
compute_ji_with_ignore
Compute JI with ignore. Args: result_queue(Queue): The Queue for save compute result when multi_process.
mmdet/evaluation/metrics/crowdhuman_metric.py:419
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/reid_metric.py:75
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmdet/evaluation/metrics/coco_caption_metric.py:71
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/coco_metric.py:393
Method
compute_metrics
(self, results: list)
mmdet/evaluation/metrics/refseg_metric.py:50
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. There are
mmdet/evaluation/metrics/coco_panoptic_metric.py:436
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/lvis_metric.py:221
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/openimages_metric.py:195
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/cityscapes_metric.py:165
Method
compute_metrics
Dump the processed results. Args: results (list): The processed results of each batch. Returns: dict: An emp
mmdet/evaluation/metrics/dump_proposals_metric.py:101
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/crowdhuman_metric.py:169
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/semseg_metric.py:105
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/retrieval.py:116
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/retrieval.py:293
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/multi_label.py:197
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/multi_label.py:530
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/gqa.py:53
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/single_label.py:161
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/single_label.py:432
Method
compute_metrics
(self, results: list)
mmpretrain/evaluation/metrics/single_label.py:651
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/scienceqa.py:97
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch.
mmpretrain/evaluation/metrics/nocaps.py:45
Method
compute_metrics
(self, results: list)
mmpretrain/evaluation/metrics/multi_task.py:82
Method
compute_metrics
Compute the metrics from the results. Args: results (List[dict]): A list of results. Returns: dict: A dict o
mmpretrain/evaluation/metrics/shape_bias_label.py:155
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/vqa.py:232
Method
compute_metrics
Dump the result to json file.
mmpretrain/evaluation/metrics/vqa.py:310
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/visual_grounding_eval.py:67
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/caption.py:69
Method
compute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/ANLS.py:57
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
projects/RF100-Benchmark/coco_metric.py:27
Method
compute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
projects/EfficientDet/efficientdet/tensorflow/coco_90metric.py:357
Function
compute_module_sizes
Compute the size of each submodule of a given model.
mmpretrain/apis/utils.py:225
Method
compute_similarity
Extract images and texts features and compute cosine similarity.
mmpretrain/models/multimodal/clip/clip.py:217
Method
compute_similarity
Extract images and texts features and compute cosine similarity.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:341
Function
concurrent
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for conc
mmdet/utils/contextmanagers.py:92
Method
confirmed_ids
Confirmed ids in the tracker.
mmdet/models/trackers/sort_tracker.py:70
Method
confirmed_ids
Confirmed ids in the tracker.
mmdet/models/trackers/byte_tracker.py:67
Method
convert_frozen_batchnorm
Convert all BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
mmdet/models/layers/brick_wrappers.py:111
← previous
next →
4,101–4,200 of 6,823, ranked by callers