MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

Methodconvert_ids_to_tokens
(self, ids)
mmpretrain/models/utils/tokenizer.py:161
Functionconvert_to_trainID
(maskpath, out_mask_dir, is_train)
tools/dataset_converters/coco_stuff164k.py:190
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
mmpretrain/models/utils/tokenizer.py:165
Methodconverter_A
(bboxes)
tests/test_structures/test_bbox/test_box_type.py:86
Methodconverter_B
(bboxes)
tests/test_structures/test_bbox/test_box_type.py:90
Methodconverter_C
(bboxes)
tests/test_structures/test_bbox/test_box_type.py:104
Methodconverter_D
(bboxes)
tests/test_structures/test_bbox/test_box_type.py:111
Methodconverter_E
(bboxes)
tests/test_structures/test_bbox/test_box_type.py:115
MethodcreateIndex
Create index.
mmdet/datasets/api_wrappers/coco_api.py:65
MethodcreateIndex
Create index.
projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py:73
Methodcreate_custom_forward
(module)
mmpretrain/models/multimodal/blip/language_model.py:631
Methodcreate_custom_forward
(module)
mmpretrain/models/multimodal/blip2/Qformer.py:243
Methodcreate_custom_forward
(module)
mmpretrain/models/multimodal/blip2/modeling_opt.py:728
Methodcreate_ui
(self)
projects/gradio_demo/launch.py:182
Methodcreate_ui
(self)
projects/gradio_demo/launch.py:278
Methodcreate_ui
(self)
projects/gradio_demo/launch.py:454
Methodcrop
Crop each mask by the given bbox. Args: bbox (ndarray): Bbox in format [x1, y1, x2, y2], shape (4, ). Return:
mmdet/structures/mask/structures.py:69
Methodcrop
see :func:`BaseInstanceMasks.crop`
mmdet/structures/mask/structures.py:741
Methodcrop_and_resize
Crop and resize masks by the given bboxes. This function is mainly used in mask targets computation. It firstly align mask to bboxes
mmdet/structures/mask/structures.py:80
Methodcrop_and_resize
see :func:`BaseInstanceMasks.crop_and_resize`
mmdet/structures/mask/structures.py:808
Functioncross_entropy
Calculate the CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of classes.
mmpretrain/models/losses/cross_entropy_loss.py:9
Methodcuda
Convert all tensors to GPU in data.
mmdet/structures/track_data_sample.py:184
Methodcuda
Overrides this method to set the :attr:`device` Returns: nn.Module: The model itself.
mmdet/models/data_preprocessors/data_preprocessor.py:549
Methodcustom_accuracy
get custom_accuracy from loss_cls.
mmdet/models/roi_heads/bbox_heads/bbox_head.py:122
Methodcustom_activation
(self)
mmdet/models/tracking_heads/roi_embed_head.py:123
Methodcustom_activation
get custom_activation from loss_cls.
mmdet/models/roi_heads/bbox_heads/bbox_head.py:116
Methodcustom_cls_channels
get custom_cls_channels from loss_cls.
mmdet/models/roi_heads/bbox_heads/bbox_head.py:110
Methodcustom_forward
(*inputs)
mmpretrain/models/multimodal/blip/language_model.py:633
Methodcustom_forward
(*inputs)
mmpretrain/models/multimodal/blip2/Qformer.py:245
Methodcustom_forward
(*inputs)
mmpretrain/models/multimodal/blip2/modeling_opt.py:730
Functioncustom_round
Custom round function.
mmdet/utils/benchmark.py:29
Methodcxcywh
Return a tensor representing the cxcywh boxes.
mmdet/structures/bbox/horizontal_boxes.py:89
Functiondataloader_benchmark
(args, cfg, distributed, logger)
tools/analysis_tools/benchmark.py:84
Functiondataset_benchmark
(args, cfg, distributed, logger)
tools/analysis_tools/benchmark.py:96
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor or :obj:`BaseBoxes`): Basic boxes. pred_bbox
mmdet/models/task_modules/coders/legacy_delta_xywh_bbox_coder.py:67
Methoddecode
torch.Tensor: return the given ``pred_bboxes``
mmdet/models/task_modules/coders/pseudo_bbox_coder.py:24
Methoddecode
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). pred_bboxes (Tensor): D
mmdet/models/task_modules/coders/distance_point_bbox_coder.py:52
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor or :obj:`BaseBoxes`): Basic boxes, e.g.
mmdet/models/task_modules/coders/yolo_bbox_coder.py:67
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: boxes (torch.Tensor or :obj:`BaseBoxes`): Basic boxes. pred_bboxe
mmdet/models/task_modules/coders/bucketing_bbox_coder.py:79
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor or :obj:`BaseBoxes`): Basic boxes. Shape
mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:71
Methoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor or :obj:`BaseBoxes`): Basic boxes.Shape
mmdet/models/task_modules/coders/tblr_bbox_coder.py:60
Functiondecorator
(func: Callable)
mmdet/structures/bbox/box_type.py:262
Methoddevice
(self)
mmdet/models/data_preprocessors/data_preprocessor.py:532
Methoddevice
(self)
mmpretrain/models/multimodal/ofa/ofa_modules.py:1344
Methoddevice
(self)
mmpretrain/models/multimodal/blip/blip_nlvr.py:71
Methoddevice
(self)
mmpretrain/models/multimodal/blip/language_model.py:1036
Methoddevice
(self)
mmpretrain/models/multimodal/blip/blip_retrieval.py:177
Methoddevice
(self)
projects/Detic/detic/text_encoder.py:19
Functiondice_score
(inputs, targets)
projects/SparseInst/sparseinst/loss.py:24
Methoddim_out
(self)
projects/XDecoder/xdecoder/language_model.py:161
Methoddouble_step_seq
(step1, len1, step2, len2)
mmpretrain/models/backbones/davit.py:99
Methoddtype
Reload ``dtype`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:220
Methoddtype
(self)
projects/Detic/detic/text_encoder.py:23
Methoddtype
(self)
projects/Detic_new/detic/detic.py:33
Methoddump_items
(items, prefix='')
mmpretrain/structures/data_sample.py:127
Methoddump_prototype
Save the features extracted from the prototype to specific path. Args: path (str): Path to save feature.
mmpretrain/models/retrievers/image2image.py:306
Methodempty_results
Generate a empty results.
mmdet/models/dense_heads/solov2_head.py:704
Methodempty_results
Generate a empty results.
mmdet/models/dense_heads/solo_head.py:540
Methodempty_results
Generate a empty results.
mmdet/models/dense_heads/solo_head.py:1006
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
mmdet/models/task_modules/coders/legacy_delta_xywh_bbox_coder.py:45
Methodencode
torch.Tensor: return the given ``bboxes``
mmdet/models/task_modules/coders/pseudo_bbox_coder.py:18
Methodencode
Encode bounding box to distances. Args: points (Tensor): Shape (N, 2), The format is [x, y]. gt_bboxes (Tensor or :ob
mmdet/models/task_modules/coders/distance_point_bbox_coder.py:28
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
mmdet/models/task_modules/coders/yolo_bbox_coder.py:29
Methodencode
Get bucketing estimation and fine regression targets during training. Args: bboxes (torch.Tensor or :obj:`BaseBoxes`): so
mmdet/models/task_modules/coders/bucketing_bbox_coder.py:54
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:50
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:142
Methodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes`` in the (top, left, bottom
mmdet/models/task_modules/coders/tblr_bbox_coder.py:37
Methodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs. :return: None
mmdet/datasets/api_wrappers/cocoeval_mp.py:70
Methodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
mmdet/evaluation/metrics/youtube_vis_metric.py:378
Methodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
mmdet/evaluation/metrics/base_video_metric.py:50
MethodevaluateVid
perform evaluation for single category and image :return: dict (single image results)
mmdet/evaluation/functional/ytviseval.py:286
Methodexpand
see :class:`Expand`.
mmdet/structures/mask/structures.py:109
Methodexpand
See :func:`BaseInstanceMasks.expand`.
mmdet/structures/mask/structures.py:402
Methodexpand
TODO: Add expand for polygon
mmdet/structures/mask/structures.py:804
Methodexpand_label
(pred, gt_classes)
mmdet/models/losses/eqlv2_loss.py:120
Methodextra_repr
(self)
mmdet/models/backbones/trident_resnet.py:61
Methodextra_repr
(self)
mmdet/models/layers/dropblock.py:84
Methodextra_repr
Extra repr.
mmdet/models/losses/cross_entropy_loss.py:253
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/fgvcaircraft.py:93
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/oxfordiiitpet.py:92
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/inshop.py:154
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/imagenet.py:129
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/sun397.py:120
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/food101.py:97
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/cifar.py:173
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/cub.py:137
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/flowers102.py:99
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/voc.py:186
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/dtd.py:111
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/stanfordcars.py:143
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/caltech101.py:108
Methodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/mnist.py:145
Methodextra_repr
(self)
mmpretrain/models/backbones/mixmim.py:316
Methodextract_feat
(self, batch_inputs: Tensor)
mmdet/rsprompter/models.py:1077
Methodextract_feat
(self, batch_inputs: Tensor)
mmdet/rsprompter/models.py:1233
Methodextract_feat
(self, batch_inputs: Tensor)
mmdet/rsprompter/models.py:1262
Methodextract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
mmdet/models/detectors/semi_base.py:228
Methodextract_feat
Extract features from images. `extract_feat` will not be used in obj:``Detectron2Wrapper``.
mmdet/models/detectors/d2_wrapper.py:215
Methodextract_feat
(self, inputs: torch.Tensor)
mmpretrain/models/selfsup/mixmim.py:244
Methodextract_feat
(self, inputs: torch.Tensor)
mmpretrain/models/selfsup/beit.py:310
← previousnext →4,201–4,300 of 6,823, ranked by callers