MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

Method_sample_pos
Sample positive samples.
mmdet/models/task_modules/samplers/mask_pseudo_sampler.py:21
Method_sample_pos
Sample positive boxes. Args: assign_result (:obj:`AssignResult`): The assigned results of boxes. num_expected (int):
mmdet/models/task_modules/samplers/instance_balanced_pos_sampler.py:14
Method_semantic_inference
(self, mask_cls, mask_pred, text_prompts)
projects/XDecoder/xdecoder/unified_head.py:291
Method_set_gradient_checkpointing
(self, module, value=False)
mmpretrain/models/multimodal/blip2/modeling_opt.py:424
Method_shape_offset
(anchors, stride, ks=3, dilation=1)
mmdet/models/dense_heads/cascade_rpn_head.py:439
Method_src_params
(self)
mmpretrain/engine/hooks/ema_hook.py:203
Method_state_dict_hook
Save only the lora parameters to the state dict.
mmpretrain/models/peft/lora.py:175
Method_summarize
(ap=1, iouThr=None, areaRng='all', maxDets=100)
mmdet/datasets/api_wrappers/cocoeval_mp.py:219
Method_summarize
(ap=1, iouThr=None, areaRng='all', maxDets=100)
mmdet/evaluation/functional/ytviseval.py:495
Method_summarizeDets
()
mmdet/datasets/api_wrappers/cocoeval_mp.py:255
Method_summarizeDets
()
mmdet/evaluation/functional/ytviseval.py:532
Method_summarizeKps
()
mmdet/datasets/api_wrappers/cocoeval_mp.py:275
Method_summarizeKps
()
mmdet/evaluation/functional/ytviseval.py:555
Method_toMask
(anns, coco)
mmdet/datasets/api_wrappers/cocoeval_mp.py:22
Method_toMask
(anns, coco)
mmdet/evaluation/functional/ytviseval.py:97
Method_transform_img
Apply Color transformation to image.
mmdet/datasets/transforms/colorspace.py:144
Method_transform_img
Adjust the brightness of image.
mmdet/datasets/transforms/colorspace.py:189
Method_transform_img
Adjust the image contrast.
mmdet/datasets/transforms/colorspace.py:233
Method_transform_img
Adjust the image sharpness.
mmdet/datasets/transforms/colorspace.py:277
Method_transform_img
Invert all pixel values above magnitude.
mmdet/datasets/transforms/colorspace.py:320
Method_transform_img
SolarizeAdd the image.
mmdet/datasets/transforms/colorspace.py:363
Method_transform_img
Posterize the image.
mmdet/datasets/transforms/colorspace.py:406
Method_transform_img
Equalizes the histogram of one image.
mmdet/datasets/transforms/colorspace.py:434
Method_transform_img
Auto adjust image contrast.
mmdet/datasets/transforms/colorspace.py:463
Method_transform_img
Invert the image.
mmdet/datasets/transforms/colorspace.py:490
Method_transform_img
Shear the image horizontally.
mmdet/datasets/transforms/geometric.py:286
Method_transform_img
Shear the image vertically.
mmdet/datasets/transforms/geometric.py:400
Method_transform_img
Rotate the image.
mmdet/datasets/transforms/geometric.py:510
Method_transform_img
Translate the image horizontally.
mmdet/datasets/transforms/geometric.py:615
Method_transform_img
Translate the image vertically.
mmdet/datasets/transforms/geometric.py:726
Method_transform_masks
Shear the masks horizontally.
mmdet/datasets/transforms/geometric.py:295
Method_transform_masks
Shear the masks vertically.
mmdet/datasets/transforms/geometric.py:409
Method_transform_masks
Rotate the masks.
mmdet/datasets/transforms/geometric.py:518
Method_transform_masks
Translate the masks horizontally.
mmdet/datasets/transforms/geometric.py:625
Method_transform_masks
Translate masks vertically.
mmdet/datasets/transforms/geometric.py:736
Method_transform_seg
Shear the segmentation map horizontally.
mmdet/datasets/transforms/geometric.py:304
Method_transform_seg
Shear the segmentation map vertically.
mmdet/datasets/transforms/geometric.py:418
Method_transform_seg
Rotate the segmentation map.
mmdet/datasets/transforms/geometric.py:526
Method_transform_seg
Translate the segmentation map horizontally.
mmdet/datasets/transforms/geometric.py:635
Method_transform_seg
Translate segmentation map vertically.
mmdet/datasets/transforms/geometric.py:746
Methodadd_params
Add all parameters of module to the params list. The parameters of the given module will be added to the list of param groups, with s
mmdet/engine/optimizers/layer_decay_optimizer_constructor.py:86
Methodadd_params
Add all parameters of module to the params list. The parameters of the given module will be added to the list of param groups, with s
mmpretrain/engine/optimizers/layer_decay_optim_wrapper_constructor.py:63
Methodadd_params
Add all parameters of module to the params list. The parameters of the given module will be added to the list of param groups, with s
projects/ViTDet/vitdet/layer_decay_optimizer_constructor.py:41
Methodafter_load_checkpoint
Resume ema parameters from checkpoint. Args: runner (Runner): The runner of the testing process.
mmpretrain/engine/hooks/ema_hook.py:180
Methodafter_test_epoch
We recover source model's parameter from ema model after test. Args: runner (Runner): The runner of the testing process.
mmpretrain/engine/hooks/ema_hook.py:148
Methodafter_test_iter
Visualize every ``self.interval`` samples during test. Args: runner (:obj:`Runner`): The runner of the testing process.
mmpretrain/engine/hooks/visualization_hook.py:116
Methodafter_train_epoch
(self, runner)
mmdet/testing/_fast_stop_training_hook.py:25
Methodafter_train_epoch
Save the queues locally.
mmpretrain/engine/hooks/swav_hook.py:113
Methodafter_train_epoch
Calculate prcise BN and broadcast BN stats across GPUs. Args: runner (obj:`Runner`): The runner of the training process.
mmpretrain/engine/hooks/precise_bn_hook.py:192
Methodafter_train_iter
Update teacher's parameter every self.interval iterations.
mmdet/engine/hooks/mean_teacher_hook.py:58
Methodafter_train_iter
(self, runner, batch_idx: int, data_batch: None, outputs: None)
mmdet/testing/_fast_stop_training_hook.py:16
Methodafter_train_iter
Calculate prcise BN and broadcast BN stats across GPUs. Args: runner (obj:`Runner`): The runner of the training process.
mmpretrain/engine/hooks/precise_bn_hook.py:205
Methodafter_val_epoch
We recover source model's parameter from ema model after validation. Args: runner (Runner): The runner of the validation process.
mmpretrain/engine/hooks/ema_hook.py:104
Methodafter_val_iter
Visualize every ``self.interval`` samples during validation. Args: runner (:obj:`Runner`): The runner of the validation process.
mmpretrain/engine/hooks/visualization_hook.py:99
Functionallreduce_grads
Allreduce gradients. Args: params (list[torch.Parameters]): List of parameters of a model coalesce (bool, optional): Whether allr
mmdet/utils/dist_utils.py:37
Functionanalyze_individual_category
(k, cocoDt, cocoGt,
tools/analysis_tools/coco_error_analysis.py:174
Methodanchor_generator
(self)
mmdet/models/dense_heads/anchor_head.py:114
MethodannToMask
Convert annotation which can be polygons, uncompressed RLE, or RLE to binary mask. :return: binary mask (numpy 2D array)
mmdet/evaluation/functional/ytvis.py:297
Methodann_prefix
The prefix of images.
mmpretrain/datasets/voc.py:137
Functionapply_constraint
( input_ids: torch.Tensor, logits: torch.Tensor, decoder_prompts: Optional[list], num_beams: i
mmpretrain/models/multimodal/ofa/ofa.py:43
Methodareas
Return a tensor representing the areas of boxes.
mmdet/structures/bbox/base_boxes.py:371
Methodareas
Return a tensor representing the areas of boxes.
mmdet/structures/bbox/horizontal_boxes.py:100
Methodareas
ndarray: areas of each instance.
mmdet/structures/mask/structures.py:114
Methodareas
See :py:attr:`BaseInstanceMasks.areas`.
mmdet/structures/mask/structures.py:547
Methodareas
Compute areas of masks. This func is modified from `detectron2 <https://github.com/facebookresearch/detectron2/blob/ffff8acc35ea88ad1
mmdet/structures/mask/structures.py:957
Methodareas
(self)
tests/test_structures/test_bbox/utils.py:13
Functionask_install
(*args, **kwargs)
mmpretrain/utils/dependency.py:52
Methodassign
Assign gt to bboxes. This method assign gt bboxes to every bbox (proposal/anchor), each bbox is assigned a set of gts, and the number
mmdet/models/task_modules/assigners/multi_instance_assigner.py:26
Methodassign
Assign gt to bboxes. This method assign a gt bbox to every bbox (proposal/anchor), each bbox will be assigned with -1, or a semi-posi
mmdet/models/task_modules/assigners/max_iou_assigner.py:144
Methodassign
Assign boxes to either a ground truth boxes or a negative boxes.
mmdet/models/task_modules/assigners/base_assigner.py:12
Methodassign
Assign gt to bboxes. This method assign a gt bbox to every bbox (proposal/anchor), each bbox will be assigned with -1, or a semi-posi
projects/EfficientDet/efficientdet/tensorflow/trans_max_iou_assigner.py:15
Functionasync_inference_detector
Async inference image(s) with the detector. Args: model (nn.Module): The loaded detector. img (str | ndarray): Either image files
mmdet/apis/inference.py:200
Methodasync_simple_test_rpn
(self, x, img_metas)
mmdet/models/dense_heads/dense_test_mixins.py:178
Methodasync_test_bboxes
Asynchronized test for box head without augmentation.
mmdet/models/roi_heads/test_mixins.py:19
Methodasync_test_mask
Asynchronized test for mask head without augmentation.
mmdet/models/roi_heads/test_mixins.py:98
Methodaug_test
Test function with test time augmentation. Args: aug_batch_feats (list[tuple[Tensor]]): The outer list indicates
mmdet/models/dense_heads/base_dense_head.py:494
Methodaug_test
Test function with test time augmentation. Args: aug_batch_feats (list[Tensor]): the outer list indicates test-time
mmdet/models/dense_heads/anchor_free_head.py:297
Methodaug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdet/models/detectors/trident_faster_rcnn.py:70
Methodaug_test_bboxes
Test det bboxes with test time augmentation.
mmdet/models/roi_heads/test_mixins.py:52
Methodaug_test_mask
Test for mask head with test time augmentation.
mmdet/models/roi_heads/test_mixins.py:141
Functionautocast_box_type
A decorator which automatically casts results['gt_bboxes'] to the destination box type. It commenly used in mmdet.datasets.transforms to make
mmdet/structures/bbox/box_type.py:245
Methodaverage_multiple_runs
Average the results of multiple runs.
mmdet/utils/benchmark.py:246
Methodaverage_multiple_runs
Average the results of multiple runs.
mmdet/utils/benchmark.py:373
Methodaverage_multiple_runs
Average the results of multiple runs.
mmdet/utils/benchmark.py:503
Methodavg_func
Compute the moving average of the parameters using the exponential momentum strategy. Args: averaged_param (Tensor): The
mmdet/models/layers/ema.py:53
Methodavg_func
Compute the moving average of the parameters using the cosine momentum strategy. Args: averaged_param (Tensor): The avera
mmpretrain/models/utils/ema.py:68
Methodavg_iou_cost
(anchor_params, bboxes)
tools/analysis_tools/optimize_anchors.py:313
Methodbackward
(ctx, grad_output)
mmdet/models/utils/misc.py:39
Methodbackward
(ctx: Any, *grads: torch.Tensor)
mmpretrain/models/selfsup/simclr.py:22
Functionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (Tensor | np.ndarray): shape (n, 5) labels (Tensor | np.ndarray
mmdet/structures/bbox/transforms.py:125
Functionbbox_map_eval
Evaluate mAP of single image det result. Args: det_result (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indi
tools/analysis_tools/analyze_results.py:23
Methodbbox_min_size
Return the minimum size of bounding boxes in the images.
mmdet/datasets/xml_style.py:67
Methodbboxes
torch.Tensor: concatenated positive and negative boxes
mmdet/models/task_modules/samplers/sampling_result.py:124
Methodbefore_run
Check whether the queues exist locally or not.
mmpretrain/engine/hooks/swav_hook.py:60
Methodbefore_test
Check whether the test dataset is compatible with head. Args: runner (obj:`IterBasedRunner`): Iter based Runner.
mmpretrain/engine/hooks/class_num_check_hook.py:57
Methodbefore_test_epoch
We load parameter values from ema model to source model before test. Args: runner (Runner): The runner of the training process.
mmpretrain/engine/hooks/ema_hook.py:134
Methodbefore_train
To check that teacher model and student model exist.
mmdet/engine/hooks/mean_teacher_hook.py:47
Methodbefore_train
before run setting. If resume form a checkpoint, do all switch before the current epoch. Args: runner (Runner): The runne
mmpretrain/engine/hooks/switch_recipe_hook.py:88
Methodbefore_train
(self, runner)
mmpretrain/engine/hooks/ema_hook.py:81
Methodbefore_train
Get the original value before train.
mmpretrain/engine/hooks/warmup_param_hook.py:52
← previousnext →4,001–4,100 of 6,823, ranked by callers