MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

Methodbefore_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
Methodbefore_train
Obtain ``loss_lambda`` from algorithm.
mmpretrain/engine/hooks/densecl_hook.py:25
Methodbefore_train
change the margins in ArcFaceClsHead. Args: runner (obj: `Runner`): Runner.
mmpretrain/engine/hooks/margin_head_hooks.py:33
Methodbefore_train
(self, runner)
projects/ViTDet/vitdet/fp16_compression_hook.py:17
Methodbefore_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
Methodbefore_train_epoch
(self, runner)
mmdet/engine/hooks/set_epoch_info_hook.py:12
Methodbefore_train_epoch
do before train epoch.
mmpretrain/engine/hooks/switch_recipe_hook.py:103
Methodbefore_train_epoch
fix lr of predictor by epoch.
mmpretrain/engine/hooks/simsiam_hook.py:43
Methodbefore_train_iter
fix lr of predictor by iter.
mmpretrain/engine/hooks/simsiam_hook.py:30
Methodbefore_train_iter
Freeze layers before specific iters according to the config.
mmpretrain/engine/hooks/swav_hook.py:78
Methodbefore_train_iter
Set the warmup value before each train iter.
mmpretrain/engine/hooks/warmup_param_hook.py:56
Methodbefore_train_iter
Adjust ``loss_lambda`` every train iter.
mmpretrain/engine/hooks/densecl_hook.py:31
Methodbefore_val
(self, runner)
mmpretrain/engine/hooks/retriever_hooks.py:20
Methodbefore_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
Methodbefore_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
Functionbinary_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
Functionbinary_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
Functionbox_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
Functionbuild
(**kwargs)
mmpretrain/models/utils/huggingface.py:77
Functionbuild_assigner
Builder of box assigner.
mmdet/models/task_modules/builder.py:37
Functionbuild_backbone
Build backbone.
mmpretrain/models/builder.py:12
Functionbuild_bbox_coder
Builder of box coder.
mmdet/models/task_modules/builder.py:15
Functionbuild_classifier
Build classifier.
mmpretrain/models/builder.py:32
Methodbuild_concat_cell
(with_input1_conv, with_input2_conv)
mmdet/models/necks/nasfcos_fpn.py:84
Methodbuild_dataloader
(dataset)
mmpretrain/apis/multimodal_retrieval.py:108
Methodbuild_dataloader
(dataset)
mmpretrain/apis/multimodal_retrieval.py:399
Functionbuild_dataset
Build dataset. Examples: >>> from mmpretrain.datasets import build_dataset >>> mnist_train = build_dataset( ... dict(
mmpretrain/datasets/builder.py:5
Functionbuild_head
Build head.
mmpretrain/models/builder.py:22
Functionbuild_iou_calculator
Builder of IoU calculator.
mmdet/models/task_modules/builder.py:22
Functionbuild_loss
Build loss.
mmpretrain/models/builder.py:27
Functionbuild_match_cost
Builder of IoU calculator.
mmdet/models/task_modules/builder.py:30
Functionbuild_neck
Build neck.
mmpretrain/models/builder.py:17
Methodbuild_norm
(*args, **kwargs)
mmpretrain/models/backbones/timm_backbone.py:82
Methodbuild_pooling
(stride)
mmpretrain/models/backbones/mvit.py:222
Functionbuild_retriever
Build retriever.
mmpretrain/models/builder.py:37
Functionbuild_sampler
Builder of box sampler.
mmdet/models/task_modules/builder.py:44
Functionbuilder_inited_handler
(app)
docs/zh_cn/conf.py:113
Functionbuilder_inited_handler
(app)
docs/en/conf.py:111
Functioncal_train_time
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:11
Methodcalculate
Calculate the average precision. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction results. A :obj
mmpretrain/evaluation/metrics/retrieval.py:308
Methodcalculate
Calculate the confusion matrix for single-label task. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction
mmpretrain/evaluation/metrics/single_label.py:664
Methodcan_generate
(self)
mmpretrain/models/multimodal/ofa/ofa_modules.py:1347
Methodcat
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
Methodcat
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
Methodcenters
Return a tensor representing the centers of boxes.
mmdet/structures/bbox/base_boxes.py:366
Methodcenters
Return a tensor representing the centers of boxes.
mmdet/structures/bbox/horizontal_boxes.py:94
Methodcenters
(self)
tests/test_structures/test_bbox/utils.py:9
Functioncheckpoint_check_fn
(submodule, layer_cls: Union[nn.Module, Sequence[nn.Module]] = (
projects/example_largemodel/fsdp_utils.py:28
Functioncityscapes_classes
Class names of Cityscapes.
mmdet/evaluation/functional/class_names.py:121
Methodclass_to_idx
Map mapping class name to class index. Returns: dict: mapping from class name to class index.
mmpretrain/datasets/base_dataset.py:125
Methodclass_to_idx
Map mapping class name to class index. Returns: dict: mapping from class name to class index.
mmpretrain/datasets/dataset_wrappers.py:134
Methodclean_up_tokenization
Clean up a list of simple English tokenization artifacts like spaces before punctuations and abbreviated forms.
mmpretrain/models/utils/tokenizer.py:168
Methodclip_
(self, img_shape)
tests/test_structures/test_bbox/utils.py:30
Methodclone
Deep copy the current data element. Returns: BaseDataElement: The copy of current data element.
mmdet/structures/track_data_sample.py:255
Methodclosure
(*xs)
mmpretrain/models/backbones/densenet.py:70
Functioncoco_classes
Class names of COCO.
mmdet/evaluation/functional/class_names.py:72
Functioncoco_panoptic_classes
Class names of COCO panoptic.
mmdet/evaluation/functional/class_names.py:91
Functioncollect_env
Collect the information of the running environments.
mmpretrain/utils/collect_env.py:9
Methodcollect_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
Functioncompat_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
MethodcomputeOks
(self, imgId, catId)
mmdet/evaluation/functional/ytviseval.py:232
Methodcompute_coordinates_linspace
(self, x)
projects/SparseInst/sparseinst/decoder.py:153
Methodcompute_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
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/reid_metric.py:75
Methodcompute_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
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/coco_metric.py:393
Methodcompute_metrics
(self, results: list)
mmdet/evaluation/metrics/refseg_metric.py:50
Methodcompute_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
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/lvis_metric.py:221
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/openimages_metric.py:195
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/cityscapes_metric.py:165
Methodcompute_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
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/crowdhuman_metric.py:169
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/semseg_metric.py:105
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/retrieval.py:116
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/retrieval.py:293
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/multi_label.py:197
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/multi_label.py:530
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/gqa.py:53
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/single_label.py:161
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/single_label.py:432
Methodcompute_metrics
(self, results: list)
mmpretrain/evaluation/metrics/single_label.py:651
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/scienceqa.py:97
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch.
mmpretrain/evaluation/metrics/nocaps.py:45
Methodcompute_metrics
(self, results: list)
mmpretrain/evaluation/metrics/multi_task.py:82
Methodcompute_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
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/vqa.py:232
Methodcompute_metrics
Dump the result to json file.
mmpretrain/evaluation/metrics/vqa.py:310
Methodcompute_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
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/caption.py:69
Methodcompute_metrics
Compute the metrics from processed results. Args: results (dict): The processed results of each batch. Returns:
mmpretrain/evaluation/metrics/ANLS.py:57
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
projects/RF100-Benchmark/coco_metric.py:27
Methodcompute_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
Functioncompute_module_sizes
Compute the size of each submodule of a given model.
mmpretrain/apis/utils.py:225
Methodcompute_similarity
Extract images and texts features and compute cosine similarity.
mmpretrain/models/multimodal/clip/clip.py:217
Methodcompute_similarity
Extract images and texts features and compute cosine similarity.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:341
Functionconcurrent
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
Methodconfirmed_ids
Confirmed ids in the tracker.
mmdet/models/trackers/sort_tracker.py:70
Methodconfirmed_ids
Confirmed ids in the tracker.
mmdet/models/trackers/byte_tracker.py:67
Methodconvert_frozen_batchnorm
Convert all BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
mmdet/models/layers/brick_wrappers.py:111
← previousnext →4,101–4,200 of 6,823, ranked by callers