MCPcopy Create free account

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

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

↓ 1 callersMethod_get_rotation_matrix
(rotate_degrees)
downstream/detection/mmdet/datasets/pipelines/transforms.py:2679
↓ 1 callersMethod_get_scaling_matrix
(scale_ratio)
downstream/detection/mmdet/datasets/pipelines/transforms.py:2688
↓ 1 callersMethod_get_shear_matrix
(x_shear_degrees, y_shear_degrees)
downstream/detection/mmdet/datasets/pipelines/transforms.py:2702
↓ 1 callersMethod_get_targets_single
Compute targets for predictions of single image. Args: gt_bboxes (Tensor): Ground truth bbox of each instance, sh
downstream/detection/mmdet/models/dense_heads/solo_head.py:291
↓ 1 callersMethod_get_translation_matrix
(x, y)
downstream/detection/mmdet/datasets/pipelines/transforms.py:2711
↓ 1 callersMethod_imequalize
Equalizes the histogram of one image.
downstream/detection/mmdet/datasets/pipelines/auto_augment.py:775
↓ 1 callersMethod_indices_of_rank
Slice the infinite indices by rank.
downstream/detection/mmdet/datasets/samplers/infinite_sampler.py:82
↓ 1 callersMethod_indices_of_rank
Slice the infinite indices by rank.
downstream/detection/mmdet/datasets/samplers/infinite_sampler.py:166
↓ 1 callersMethod_infinite_indices
Infinitely yield a sequence of indices.
downstream/detection/mmdet/datasets/samplers/infinite_sampler.py:71
↓ 1 callersMethod_infinite_indices
Infinitely yield a sequence of indices.
downstream/detection/mmdet/datasets/samplers/infinite_sampler.py:155
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
downstream/segmentation/mmseg/models/segmentors/encoder_decoder.py:54
↓ 1 callersMethod_init_centripetal_layers
Initialize centripetal layers. Including feature adaption deform convs (feat_adaption), deform offset prediction convs (dcn_off), gui
downstream/detection/mmdet/models/dense_heads/centripetal_head.py:73
↓ 1 callersMethod_init_corner_emb_layers
Initialize corner embedding layers. Only include corner embedding branch with two parts: prefix `tl_` for top-left and `br_` for bott
downstream/detection/mmdet/models/dense_heads/corner_head.py:203
↓ 1 callersMethod_init_corner_kpt_layers
Initialize corner keypoint layers. Including corner heatmap branch and corner offset branch. Each branch has two parts: prefix `tl_`
downstream/detection/mmdet/models/dense_heads/corner_head.py:165
↓ 1 callersMethod_init_data_table
Initialize the W&B Tables for validation data.
downstream/detection/mmdet/core/hook/wandblogger_hook.py:314
↓ 1 callersMethod_init_data_table
Initialize the W&B Tables for validation data.
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:238
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
downstream/segmentation/mmseg/models/segmentors/encoder_decoder.py:47
↓ 1 callersMethod_init_inputs
Check and initialize input transforms. The in_channels, in_index and input_transform must match. Specifically, when input_transform i
downstream/segmentation/mmseg/models/decode_heads/decode_head.py:145
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/necks/dilated_encoder.py:78
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/dense_heads/solov2_head.py:66
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/dense_heads/guided_anchor_head.py:217
↓ 1 callersMethod_init_layers
Initialize layers of the head.
downstream/detection/mmdet/models/dense_heads/ssd_head.py:125
↓ 1 callersMethod_init_layers
Initialize a sparse set of proposal boxes and proposal features.
downstream/detection/mmdet/models/dense_heads/embedding_rpn_head.py:38
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/dense_heads/yolo_head.py:152
↓ 1 callersMethod_init_layers
Initialize layers of the head.
downstream/detection/mmdet/models/dense_heads/anchor_head.py:127
↓ 1 callersMethod_init_layers
Initialize layers of the head.
downstream/detection/mmdet/models/dense_heads/yolact_head.py:490
↓ 1 callersMethod_init_layers
A helper function to take a config setting and turn it into a network.
downstream/detection/mmdet/models/dense_heads/yolact_head.py:625
↓ 1 callersMethod_init_layers
Initialize layers of the head.
downstream/detection/mmdet/models/dense_heads/anchor_free_head.py:107
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/dense_heads/yolox_head.py:131
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/dense_heads/solo_head.py:103
↓ 1 callersMethod_init_layers
(self)
downstream/detection/mmdet/models/dense_heads/sabl_retina_head.py:163
↓ 1 callersMethod_init_layers
Initialize layers for CornerHead. Including two parts: corner keypoint layers and corner embedding layers
downstream/detection/mmdet/models/dense_heads/corner_head.py:221
↓ 1 callersMethod_init_layers
Initialize layers of the transformer head.
downstream/detection/mmdet/models/dense_heads/detr_head.py:152
↓ 1 callersMethod_init_pred_table
Initialize the W&B Tables for model evaluation.
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:243
↓ 1 callersMethod_init_predictor
Initialize predictor layers of the head.
downstream/detection/mmdet/models/dense_heads/anchor_free_head.py:153
↓ 1 callersMethod_init_qv_bias
(self)
downstream/segmentation/mmseg/models/backbones/beit.py:78
↓ 1 callersMethod_init_rel_pos_embedding
(self)
downstream/segmentation/mmseg/models/backbones/beit.py:82
↓ 1 callersFunction_init_vit_weights
ViT weight initialization * When called without n, head_bias, jax_impl args it will behave exactly the same as my original init for compati
agent_transformer/models/agent_deit.py:437
↓ 1 callersFunction_init_vit_weights
ViT weight initialization * When called without n, head_bias, jax_impl args it will behave exactly the same as my original init for compati
agent_transformer/models/deit.py:360
↓ 1 callersMethod_init_weights
(self)
downstream/detection/mmdet/models/necks/dyhead.py:91
↓ 1 callersMethod_lay_masks
Lay instance masks to a result map. Args: bboxes: The bboxes results, (K, 4). labels: The labels of bboxes, (K, ).
downstream/detection/mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py:27
↓ 1 callersMethod_load_anns
(self, results)
downstream/detection/mmdet/datasets/pipelines/instaboost.py:56
↓ 1 callersMethod_load_masks
Private function to load mask annotations. Args: results (dict): Result dict from :obj:`mmdet.CustomDataset`. Returns:
downstream/detection/mmdet/datasets/pipelines/loading.py:334
↓ 1 callersMethod_load_masks_and_semantic_segs
Private function to load mask and semantic segmentation annotations. In gt_semantic_seg, the foreground label is from `0` to `num_thi
downstream/detection/mmdet/datasets/pipelines/loading.py:453
↓ 1 callersMethod_load_semantic_seg
Private function to load semantic segmentation annotations. Args: results (dict): Result dict from :obj:`dataset`. Retur
downstream/detection/mmdet/datasets/pipelines/loading.py:359
↓ 1 callersFunction_load_weights
Load weights from .npz checkpoints for official Google Brain Flax implementation
agent_transformer/models/agent_deit.py:473
↓ 1 callersFunction_load_weights
Load weights from .npz checkpoints for official Google Brain Flax implementation
agent_transformer/models/deit.py:396
↓ 1 callersMethod_log_ckpt_as_artifact
Log model checkpoint as W&B Artifact. Args: model_path (str): Path of the checkpoint to log. aliases (list): List of
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:218
↓ 1 callersMethod_log_data_table
Log the W&B Tables for validation data as artifact and calls `use_artifact` on it so that the evaluation table can use the reference o
downstream/detection/mmdet/core/hook/wandblogger_hook.py:559
↓ 1 callersMethod_log_data_table
Log the W&B Tables for validation data as artifact and calls `use_artifact` on it so that the evaluation table can use the reference o
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:342
↓ 1 callersMethod_log_eval_table
Log the W&B Tables for model evaluation. The table will be logged multiple times creating new version. Use this to compare models at
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:357
↓ 1 callersMethod_log_predictions
(self, results, runner)
downstream/segmentation/mmseg/core/hook/wandblogger_hook.py:310
↓ 1 callersMethod_make_branches
(self, num_branches, block, num_blocks, num_channels)
downstream/detection/mmdet/models/backbones/hrnet.py:112
↓ 1 callersMethod_make_branches
Build multiple branch.
downstream/segmentation/mmseg/models/backbones/hrnet.py:115
↓ 1 callersMethod_make_deconv_layer
use deconv layers to upsample backbone's output.
downstream/detection/mmdet/models/necks/ct_resnet_neck.py:38
↓ 1 callersMethod_make_fuse_layers
(self)
downstream/detection/mmdet/models/backbones/hrnet.py:121
↓ 1 callersMethod_make_fuse_layers
Build fuse layer.
downstream/segmentation/mmseg/models/backbones/hrnet.py:125
↓ 1 callersMethod_make_layer
(self, block, inplanes, planes, blocks, stride=1)
downstream/detection/mmdet/models/backbones/hrnet.py:458
↓ 1 callersMethod_make_layer
(self)
downstream/segmentation/mmseg/models/backbones/mobilenet_v3.py:129
↓ 1 callersMethod_make_layer
Make each layer.
downstream/segmentation/mmseg/models/backbones/hrnet.py:481
↓ 1 callersMethod_make_one_branch
(self, branch_index, block, num_blo
downstream/detection/mmdet/models/backbones/hrnet.py:66
↓ 1 callersMethod_make_one_branch
Build one branch.
downstream/segmentation/mmseg/models/backbones/hrnet.py:68
↓ 1 callersMethod_make_stage
(self, in_channels, out_channels, strides, norm_cfg, act_cfg, bottleneck_type)
downstream/segmentation/mmseg/models/backbones/stdc.py:302
↓ 1 callersMethod_make_stem_layer
(self, in_channels, stem_channels)
downstream/detection/mmdet/models/backbones/resnet.py:565
↓ 1 callersMethod_make_stem_layer
(self, in_channels, base_channels)
downstream/detection/mmdet/models/backbones/regnet.py:238
↓ 1 callersMethod_make_stem_layer
Make stem layer for ResNet.
downstream/segmentation/mmseg/models/backbones/resnet.py:591
↓ 1 callersMethod_mask_focal_loss_cost
Args: cls_pred (Tensor): Predicted classfication logits in shape (num_query, d1, ..., dn), dtype=torch.float32.
downstream/detection/mmdet/core/bbox/match_costs/match_cost.py:111
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
downstream/detection/mmdet/models/roi_heads/sparse_roi_head.py:163
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
downstream/detection/mmdet/models/roi_heads/standard_roi_head.py:146
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
downstream/detection/mmdet/models/roi_heads/htc_roi_head.py:113
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
downstream/detection/mmdet/models/roi_heads/cascade_roi_head.py:170
↓ 1 callersMethod_mask_point_forward_train
Run forward function and calculate loss for point head in training.
downstream/detection/mmdet/models/roi_heads/point_rend_roi_head.py:45
↓ 1 callersMethod_mask_point_onnx_export
Export mask refining process with point head to onnx. Args: x (tuple[Tensor]): Feature maps of all scale level. rois
downstream/detection/mmdet/models/roi_heads/point_rend_roi_head.py:284
↓ 1 callersMethod_mixup_transform
MixUp transform function. Args: results (dict): Result dict. Returns: dict: Updated result dict.
downstream/detection/mmdet/datasets/pipelines/transforms.py:2347
↓ 1 callersMethod_mosaic_combine
Calculate global coordinate of mosaic image and local coordinate of cropped sub-image. Args: loc (str): Index for the sub
downstream/detection/mmdet/datasets/pipelines/transforms.py:2155
↓ 1 callersMethod_mosaic_transform
Mosaic transform function. Args: results (dict): Result dict. Returns: dict: Updated result dict.
downstream/detection/mmdet/datasets/pipelines/transforms.py:2058
↓ 1 callersMethod_mosaic_transform_img
Mosaic transform function. Args: results (dict): Result dict. Returns: dict: Updated result dict.
downstream/segmentation/mmseg/datasets/pipelines/transforms.py:1156
↓ 1 callersMethod_mosaic_transform_seg
Mosaic transform function for label annotations. Args: results (dict): Result dict. Returns: dict: Updated r
downstream/segmentation/mmseg/datasets/pipelines/transforms.py:1215
↓ 1 callersMethod_onnx_get_fine_grained_point_feats
Export the process of sampling fine grained feats to onnx. Args: x (tuple[Tensor]): Feature maps of all scale level.
downstream/detection/mmdet/models/roi_heads/point_rend_roi_head.py:250
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
downstream/detection/mmdet/datasets/pipelines/transforms.py:622
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
downstream/segmentation/mmseg/datasets/pipelines/transforms.py:408
↓ 1 callersMethod_pad_masks
Pad masks according to ``results['pad_shape']``.
downstream/detection/mmdet/datasets/pipelines/transforms.py:640
↓ 1 callersMethod_pad_seg
Pad semantic segmentation map according to ``results['pad_shape']``.
downstream/detection/mmdet/datasets/pipelines/transforms.py:647
↓ 1 callersMethod_pad_seg
Pad masks according to ``results['pad_shape']``.
downstream/segmentation/mmseg/datasets/pipelines/transforms.py:421
↓ 1 callersMethod_pan2json
Convert panoptic results to COCO panoptic json style.
downstream/detection/mmdet/datasets/coco_panoptic.py:410
↓ 1 callersMethod_parse_ann_info
Parse annotations and load panoptic ground truths. Args: img_info (int): Image info of an image. ann_info (list[dict]
downstream/detection/mmdet/datasets/coco_panoptic.py:322
↓ 1 callersMethod_parse_ann_info
Parse bbox and mask annotation. Args: ann_info (list[dict]): Annotation info of an image. with_mask (bool): Whether t
downstream/detection/mmdet/datasets/coco.py:145
↓ 1 callersMethod_parse_anns
(self, results, anns, img)
downstream/detection/mmdet/datasets/pipelines/instaboost.py:78
↓ 1 callersMethod_poly2mask
Private function to convert masks represented with polygon to bitmaps. Args: mask_ann (list | dict): Polygon mask annotat
downstream/detection/mmdet/datasets/pipelines/loading.py:290
↓ 1 callersMethod_polygon_area
Compute the area of a component of a polygon. Using the shoelace formula: https://stackoverflow.com/questions/24467972/calculate-area
downstream/detection/mmdet/core/mask/structures.py:884
↓ 1 callersMethod_pos_embeding
Positiong embeding method. Resize the pos_embed, if the input image size doesn't match the training size. Args:
downstream/segmentation/mmseg/models/backbones/vit.py:339
↓ 1 callersFunction_prepare_input_img
(img_path: str, test_pipeline: Iterable[dict], shape: Optional[I
downstream/segmentation/tools/onnx2tensorrt.py:27
↓ 1 callersFunction_prepare_input_img
(img_path, test_pipeline, shape=None, res
downstream/segmentation/tools/pytorch2onnx.py:77
↓ 1 callersMethod_preprocess
(self, img, gt_bboxes)
downstream/detection/mmdet/models/detectors/yolox.py:105
↓ 1 callersMethod_proposal2json
Convert proposal results to COCO json style.
downstream/detection/mmdet/datasets/coco.py:224
↓ 1 callersMethod_rand_another
Get another random index from the same group as the given index.
downstream/detection/mmdet/datasets/custom.py:199
↓ 1 callersMethod_random_jitter
Ramdom jitter positive proposals for training.
downstream/detection/mmdet/models/roi_heads/grid_roi_head.py:28
↓ 1 callersMethod_random_resize
(self, device)
downstream/detection/mmdet/models/detectors/yolox.py:119
↓ 1 callersMethod_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
downstream/segmentation/mmseg/datasets/pipelines/transforms.py:209
↓ 1 callersFunction_recalls
(all_ious, proposal_nums, thrs)
downstream/detection/mmdet/core/evaluation/recall.py:11
← previousnext →701–800 of 3,501, ranked by callers