MCPcopy Create free account

hub / github.com/LeapLabTHU/Agent-Attention / functions

Functions3,501 in github.com/LeapLabTHU/Agent-Attention

↓ 1 callersMethod__init__
(self, filter_size, fusion, in_channels, channels, conv_cfg, norm_cfg, act_cfg)
downstream/segmentation/mmseg/models/decode_heads/dm_head.py:25
↓ 1 callersMethod__init__
(self, ema_channels, num_bases, num_stages,
downstream/segmentation/mmseg/models/decode_heads/ema_head.py:95
↓ 1 callersMethod__init__
(self, pool_scale, fusion, in_channels, channels, conv_cfg, norm_cfg, act_cfg)
downstream/segmentation/mmseg/models/decode_heads/apc_head.py:26
↓ 1 callersMethod__init__
(self, root, loader, extensions, ann_file='', img_prefix='', transform=None, target_transform=None,
agent_transformer/data/cached_image_folder.py:92
↓ 1 callersMethod__len__
(self)
agent_transformer/data/cached_image_folder.py:161
↓ 1 callersMethod__repr__
str: the string of the module
downstream/detection/mmdet/utils/util_mixins.py:87
↓ 1 callersMethod__setattr__
(self, name, val)
downstream/detection/mmdet/core/data_structures/general_data.py:195
↓ 1 callersMethod__setattr__
Set attribute, i.e. self.name = value This reloading prevent the teacher model from being registered as a nn.Module. The teacher modu
downstream/detection/mmdet/models/detectors/kd_one_stage.py:92
↓ 1 callersMethod_add_conv_branch
Add the fc branch which consists of a sequential of conv layers.
downstream/detection/mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:136
↓ 1 callersMethod_add_default_meta_keys
Add default meta keys. We set default meta keys including `pad_shape`, `scale_factor` and `img_norm_cfg` to avoid the case where no `
downstream/detection/mmdet/datasets/pipelines/formatting.py:248
↓ 1 callersMethod_add_fc_branch
Add the fc branch which consists of a sequential of fc layers.
downstream/detection/mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:148
↓ 1 callersMethod_add_ground_truth
(self, runner)
downstream/detection/mmdet/core/hook/wandblogger_hook.py:324
↓ 1 callersMethod_add_ground_truth
(self, runner)
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:248
↓ 1 callersMethod_adjust_brightness_img
Adjust the brightness of image.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:821
↓ 1 callersMethod_adjust_color_img
Apply Color transformation to image.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:733
↓ 1 callersMethod_adjust_contrast_img
Adjust the image contrast.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:870
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
downstream/detection/mmdet/core/utils/dist_utils.py:15
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
downstream/segmentation/mmseg/models/segmentors/encoder_decoder.py:100
↓ 1 callersMethod_bbox_decode
(self, points, bbox_pred, stride, max_shape)
downstream/detection/mmdet/models/dense_heads/reppoints_head.py:756
↓ 1 callersMethod_bbox_decode
(self, priors, bbox_pred, base_len, max_shape)
downstream/detection/mmdet/models/dense_heads/fovea_head.py:358
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
downstream/detection/mmdet/models/roi_heads/pisa_roi_head.py:100
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
downstream/detection/mmdet/models/roi_heads/standard_roi_head.py:131
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
downstream/detection/mmdet/models/roi_heads/scnet_roi_head.py:150
↓ 1 callersMethod_bbox_forward_train
(self, x, sampling_results, gt_bboxes, gt_labels, img_metas)
downstream/detection/mmdet/models/roi_heads/dynamic_roi_head.py:109
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
downstream/detection/mmdet/models/roi_heads/htc_roi_head.py:86
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training.
downstream/detection/mmdet/models/roi_heads/cascade_roi_head.py:143
↓ 1 callersMethod_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually `with_nms` is
downstream/detection/mmdet/models/dense_heads/base_dense_head.py:226
↓ 1 callersMethod_bbox_post_process
bbox post-processing method. Do the nms operation for bboxes in same level. Args: mlvl_scores (list[Tensor]): Box scores
downstream/detection/mmdet/models/dense_heads/rpn_head.py:189
↓ 1 callersMethod_bboxes_nms
(self, bboxes, labels, cfg)
downstream/detection/mmdet/models/dense_heads/centernet_head.py:402
↓ 1 callersMethod_bboxes_nms
(self, bboxes, labels, cfg)
downstream/detection/mmdet/models/dense_heads/corner_head.py:777
↓ 1 callersMethod_binary_cross_entropy
Args: cls_pred (Tensor): The prediction with shape (num_query, 1, *) or (num_query, *). gt_labels (Te
downstream/detection/mmdet/core/bbox/match_costs/match_cost.py:320
↓ 1 callersMethod_build_layers
Build transformer encoding layers.
downstream/segmentation/mmseg/models/backbones/beit.py:361
↓ 1 callersMethod_build_patch_embedding
Build patch embedding layer.
downstream/segmentation/mmseg/models/backbones/beit.py:349
↓ 1 callersMethod_build_predictor
Initialize predictor layers of a single level head.
downstream/detection/mmdet/models/dense_heads/yolox_head.py:169
↓ 1 callersMethod_check_branches
(self, num_branches, num_blocks, in_channels, num_channels)
downstream/detection/mmdet/models/backbones/hrnet.py:49
↓ 1 callersMethod_check_branches
Check branches configuration.
downstream/segmentation/mmseg/models/backbones/hrnet.py:50
↓ 1 callersMethod_check_input_divisible
(self, x)
downstream/segmentation/mmseg/models/backbones/unet.py:427
↓ 1 callersFunction_class_to_index
(mask, _mapping, _key)
downstream/segmentation/tools/convert_datasets/pascal_context.py:23
↓ 1 callersMethod_compute_gamma
Compute the value of gamma according to paper. gamma is the parameter of bernoulli distribution, which controls the number of features
downstream/detection/mmdet/models/plugins/dropblock.py:62
↓ 1 callersFunction_concat_dataset
(cfg, default_args=None)
downstream/detection/mmdet/datasets/builder.py:32
↓ 1 callersFunction_concat_dataset
Build :obj:`ConcatDataset by.
downstream/segmentation/mmseg/datasets/builder.py:29
↓ 1 callersFunction_convert_batchnorm
(module)
downstream/segmentation/tools/pytorch2onnx.py:26
↓ 1 callersFunction_convert_batchnorm
(module)
downstream/segmentation/tools/pytorch2torchscript.py:38
↓ 1 callersMethod_convert_hierarchy_tree
Get matrix of the corresponding relationship between the parent class and the child class. Args: hierarchy_map (dict): In
downstream/detection/mmdet/datasets/openimages.py:380
↓ 1 callersMethod_convert_to_label_id
Convert trainId to id for cityscapes.
downstream/segmentation/mmseg/datasets/cityscapes.py:40
↓ 1 callersMethod_convert_to_onehot_labels
Convert segmentation label to onehot. Args: seg_label (Tensor): Segmentation label of shape (N, H, W). num_classes (i
downstream/segmentation/mmseg/models/decode_heads/enc_head.py:160
↓ 1 callersMethod_copy_paste
CopyPaste transform function. Args: dst_results (dict): Result dict of the destination image. src_results (dict): Res
downstream/detection/mmdet/datasets/pipelines/transforms.py:2854
↓ 1 callersMethod_crop_data
Function to randomly crop images, bounding boxes, masks, semantic segmentation maps. Args: results (dict): Result dict fr
downstream/detection/mmdet/datasets/pipelines/transforms.py:787
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
downstream/segmentation/mmseg/models/segmentors/encoder_decoder.py:94
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
downstream/segmentation/mmseg/models/segmentors/encoder_decoder.py:83
↓ 1 callersMethod_del_block_plugins
delete plugins for block if exist. Args: plugin_names (list[str]): List of plugins name to delete.
downstream/detection/mmdet/models/backbones/resnext.py:98
↓ 1 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions nu
downstream/segmentation/tools/pytorch2onnx.py:47
↓ 1 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions nu
downstream/segmentation/tools/pytorch2torchscript.py:59
↓ 1 callersMethod_det2json
Convert detection results to COCO json style.
downstream/detection/mmdet/datasets/coco.py:239
↓ 1 callersMethod_evaluate_cityscapes
Evaluation in Cityscapes protocol. Args: results (list): Testing results of the dataset. txtfile_prefix (str | None):
downstream/detection/mmdet/datasets/cityscapes.py:278
↓ 1 callersMethod_evaluate_cityscapes
Evaluation in Cityscapes protocol. Args: results (list): Testing results of the dataset. logger (logging.Logger | str
downstream/segmentation/mmseg/datasets/cityscapes.py:169
↓ 1 callersFunction_expand_onehot_labels
(labels, label_weights, label_channels)
downstream/detection/mmdet/models/losses/ghm_loss.py:10
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
downstream/detection/mmdet/models/losses/cross_entropy_loss.py:64
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
downstream/segmentation/mmseg/models/losses/cross_entropy_loss.py:66
↓ 1 callersMethod_filter_box_candidates
Filter out bboxes too small after Mosaic.
downstream/detection/mmdet/datasets/pipelines/transforms.py:2216
↓ 1 callersMethod_filter_box_candidates
Compute candidate boxes which include following 5 things: bbox1 before augment, bbox2 after augment, min_bbox_size (pixels), min_area
downstream/detection/mmdet/datasets/pipelines/transforms.py:2470
↓ 1 callersMethod_filter_imgs
Filter images too small.
downstream/detection/mmdet/datasets/custom.py:176
↓ 1 callersMethod_filter_invalid
Filter bboxes and corresponding masks too small after shear augmentation.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:267
↓ 1 callersMethod_filter_invalid
Filter bboxes and corresponding masks too small after rotate augmentation.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:487
↓ 1 callersMethod_filter_invalid
Filter bboxes and masks too small or translated out of image.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:668
↓ 1 callersMethod_focal_loss_cost
Args: cls_pred (Tensor): Predicted classification logits, shape (num_query, num_class). gt_labels (Te
downstream/detection/mmdet/core/bbox/match_costs/match_cost.py:92
↓ 1 callersMethod_forward_cls_reg
Forward function for classification and regression parts.
downstream/detection/mmdet/models/roi_heads/bbox_heads/scnet_bbox_head.py:31
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Li
downstream/segmentation/mmseg/models/decode_heads/uper_head.py:87
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Li
downstream/segmentation/mmseg/models/decode_heads/aspp_head.py:94
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Li
downstream/segmentation/mmseg/models/decode_heads/fcn_head.py:75
↓ 1 callersMethod_forward_shared
Forward function for shared part.
downstream/detection/mmdet/models/roi_heads/bbox_heads/scnet_bbox_head.py:14
↓ 1 callersMethod_freeze_stages
(self)
downstream/detection/mmdet/models/backbones/darknet.py:163
↓ 1 callersMethod_freeze_stages
(self)
downstream/detection/mmdet/models/backbones/csp_darknet.py:261
↓ 1 callersMethod_freeze_stages
(self)
downstream/detection/mmdet/models/backbones/swin.py:647
↓ 1 callersMethod_freeze_stages
(self)
downstream/detection/mmdet/models/backbones/efficientnet.py:404
↓ 1 callersMethod_freeze_stages
(self)
downstream/detection/mmdet/models/backbones/mobilenet_v2.py:167
↓ 1 callersMethod_freeze_stages
(self)
downstream/segmentation/mmseg/models/backbones/mobilenet_v3.py:254
↓ 1 callersMethod_freeze_stages
(self)
downstream/segmentation/mmseg/models/backbones/swin.py:642
↓ 1 callersMethod_freeze_stages
(self)
downstream/segmentation/mmseg/models/backbones/mobilenet_v2.py:181
↓ 1 callersMethod_geometric_sequence_interpolation
Get new sequence via geometric sequence interpolation. Args: src_size (int): Pos_embedding size in pre-trained model.
downstream/segmentation/mmseg/models/backbones/beit.py:388
↓ 1 callersMethod_get_bboxes_single
(self, cls_scores, bbox_preds,
downstream/detection/mmdet/models/dense_heads/guided_anchor_head.py:800
↓ 1 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores from all scale
downstream/detection/mmdet/models/dense_heads/base_dense_head.py:109
↓ 1 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox results. Args: center_heatmap_pred (Tensor): Center heatmap for current level with
downstream/detection/mmdet/models/dense_heads/centernet_head.py:297
↓ 1 callersMethod_get_bboxes_single
Similar to func:``AnchorHead._get_bboxes_single``, but additionally processes coeff_preds_list and uses fast NMS instead of traditional
downstream/detection/mmdet/models/dense_heads/yolact_head.py:358
↓ 1 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_scores (list[Tensor]): Box scores from all scale
downstream/detection/mmdet/models/dense_heads/cascade_rpn_head.py:547
↓ 1 callersMethod_get_bboxes_single
(self, cls_scores, bbox_cls_preds,
downstream/detection/mmdet/models/dense_heads/sabl_retina_head.py:567
↓ 1 callersMethod_get_bboxes_single
Transform outputs from the last decoder layer into bbox predictions for each image. Args: cls_score (Tensor): Box score l
downstream/detection/mmdet/models/dense_heads/detr_head.py:628
↓ 1 callersFunction_get_bias_color
Get different colors for each masks. Get different colors for each masks by adding a bias color to the base category color. Args:
downstream/detection/mmdet/core/visualization/image.py:63
↓ 1 callersMethod_get_crop_size
Randomly generates the absolute crop size based on `crop_type` and `image_size`. Args: image_size (tuple): (h, w).
downstream/detection/mmdet/datasets/pipelines/transforms.py:854
↓ 1 callersMethod_get_eval_results
Get model evaluation results.
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:231
↓ 1 callersMethod_get_guided_anchors_single
Get guided anchors and loc masks for a single level. Args: square (tensor): Squares of a single level. shape_pred (te
downstream/detection/mmdet/models/dense_heads/guided_anchor_head.py:350
↓ 1 callersMethod_get_l1_target
Convert gt bboxes to center offset and log width height.
downstream/detection/mmdet/models/dense_heads/yolox_head.py:488
↓ 1 callersMethod_get_points_single
Get points of a single scale level. This function will be deprecated soon.
downstream/detection/mmdet/models/dense_heads/anchor_free_head.py:282
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, patch_embed, H, W)
downstream/detection/mmdet/models/backbones/agent_pvt.py:342
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, patch_embed, H, W)
downstream/segmentation/mmseg/models/backbones/agent_pvt.py:342
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, patch_embed, H, W)
agent_transformer/models/agent_pvt.py:305
↓ 1 callersMethod_get_repeat_factors
Get repeat factor for each images in the dataset. Args: dataset (:obj:`CustomDataset`): The dataset repeat_thr (float
downstream/detection/mmdet/datasets/dataset_wrappers.py:267
↓ 1 callersMethod_get_results_single
Get processed mask related results of single image. Args: kernel_preds (Tensor): Dynamic kernel prediction of all points
downstream/detection/mmdet/models/dense_heads/solov2_head.py:645
↓ 1 callersMethod_get_results_single
Get processed mask related results of single image. Args: cls_scores (Tensor): Classification score of all points
downstream/detection/mmdet/models/dense_heads/solo_head.py:488
↓ 1 callersMethod_get_results_single
Get processed mask related results of single image. Args: cls_scores (Tensor): Classification score of all points
downstream/detection/mmdet/models/dense_heads/solo_head.py:939
← previousnext →601–700 of 3,501, ranked by callers