MCPcopy Create free account

hub / github.com/Traffic-X/ViT-CoMer / functions

Functions528 in github.com/Traffic-X/ViT-CoMer

Method__init__
(self, as_two_stage=False, num_feature_levels=4, two_stage_
segmentation/mmseg_custom/models/utils/transformer.py:650
Method__init__
(self, in_channels=256, feat_channels=64, out_channels=None
segmentation/mmseg_custom/models/utils/transformer.py:1006
Method__init__
(self, num_gts, gt_inds, labels)
segmentation/mmseg_custom/models/utils/assigner.py:17
Method__init__
(self, cls_cost=dict(type='ClassificationCost', weight=1.0), dice_cost=dict(
segmentation/mmseg_custom/models/utils/assigner.py:61
Method__init__
(self, in_channels, feat_channels, out_channels,
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:57
Method__init__
(self, out_channels, num_queries=100, pixel_decoder=None,
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:52
Method__init__
(self, in_channels=[256, 512, 1024, 2048], strides=[4, 8, 16, 32],
segmentation/mmseg_custom/models/plugins/msdeformattn_pixel_decoder.py:39
Method__init__
(self, in_channels, feat_channels, out_channels,
segmentation/mmseg_custom/models/plugins/pixel_decoder.py:135
Method__init__
Dice Loss, there are two forms of dice loss is supported: - the one proposed in `V-Net: Fully Convolutional Neural Networ
segmentation/mmseg_custom/models/losses/dice_loss.py:86
Method__init__
(self, weight=1., alpha=0.25, gamma=2, eps=1e-12)
segmentation/mmseg_custom/models/losses/match_loss.py:32
Method__init__
(self, weight=1.)
segmentation/mmseg_custom/models/losses/match_loss.py:112
Method__init__
(self, weight=1., pred_act=False, eps=1e-3)
segmentation/mmseg_custom/models/losses/match_loss.py:144
Method__init__
(self, use_sigmoid=False, use_mask=False, reduction='mean',
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:213
Method__init__
`Focal Loss <https://arxiv.org/abs/1708.02002>`_ Args: use_sigmoid (bool, optional): Whether to the prediction is
segmentation/mmseg_custom/models/losses/focal_loss.py:107
Method__init__
(self, weight=1., alpha=0.25, gamma=2, eps=1e-12)
segmentation/mmseg_custom/models/losses/match_costs.py:32
Method__init__
(self, weight=1.)
segmentation/mmseg_custom/models/losses/match_costs.py:112
Method__init__
(self, weight=1., pred_act=False, eps=1e-3)
segmentation/mmseg_custom/models/losses/match_costs.py:144
Method__init__
(self, weight=1., use_sigmoid=True)
segmentation/mmseg_custom/models/losses/match_costs.py:191
Method__nice__
(self)
segmentation/mmseg_custom/core/box/samplers/mask_sampling_result.py:40
Method__nice__
(self)
segmentation/mmseg_custom/core/box/samplers/sampling_result.py:70
Method__repr__
(self)
segmentation/mmseg_custom/datasets/pipelines/transform.py:238
Method__repr__
(self)
segmentation/mmseg_custom/datasets/pipelines/transform.py:304
Method__repr__
(self)
segmentation/mmseg_custom/datasets/pipelines/transform.py:348
Method__repr__
(self)
segmentation/mmseg_custom/datasets/pipelines/formatting.py:48
Method__repr__
(self)
segmentation/mmseg_custom/datasets/pipelines/formatting.py:80
Method__repr__
str: a string that describes the module
segmentation/mmseg_custom/models/utils/positional_encoding.py:94
Method__repr__
str: a string that describes the module
segmentation/mmseg_custom/models/utils/positional_encoding.py:155
Method_attn_forward
(x)
detection/mmdet_custom/models/backbones/base/beit.py:141
Method_get_target_single
Compute classification and mask targets for one image. Args: cls_score (Tensor): Mask score logits from a single decoder layer
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:199
Method_get_target_single
Compute classification and mask targets for one image. Args: cls_score (Tensor): Mask score logits from a single decoder layer
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:198
Method_init_deform_weights
(self, m)
detection/mmdet_custom/models/backbones/vit_comer.py:92
Method_init_deform_weights
(self, m)
segmentation/mmseg_custom/models/backbones/vit_comer.py:90
Method_init_weights
(self, m)
detection/mmdet_custom/models/necks/extra_attention.py:99
Method_init_weights
(self, m)
detection/mmdet_custom/models/backbones/vit_baseline.py:46
Method_init_weights
(self, m)
detection/mmdet_custom/models/backbones/vit_comer.py:70
Method_init_weights
(self, m)
detection/mmdet_custom/models/backbones/base/beit.py:421
Method_init_weights
(self, m)
segmentation/mmseg_custom/models/backbones/vit_baseline.py:53
Method_init_weights
(self, m)
segmentation/mmseg_custom/models/backbones/beit_baseline.py:370
Method_init_weights
(self, m)
segmentation/mmseg_custom/models/backbones/vit_comer.py:68
Method_init_weights
(self, m)
segmentation/mmseg_custom/models/backbones/base/beit.py:368
Method_inner_forward
(feat)
detection/mmdet_custom/models/necks/extra_attention.py:117
Method_inner_forward
(query, feat)
detection/mmdet_custom/models/backbones/comer_modules.py:200
Method_inner_forward
(query, feat, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:241
Method_inner_forward
(query, feat, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:291
Method_inner_forward
(query, feat, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:339
Method_inner_forward
(x)
detection/mmdet_custom/models/backbones/base/vit.py:330
Method_inner_forward
(x)
detection/mmdet_custom/models/backbones/base/beit.py:225
Method_inner_forward
(x)
detection/mmdet_custom/models/backbones/base/uniperceiver.py:140
Method_inner_forward
(query, feat)
segmentation/mmseg_custom/models/backbones/comer_modules.py:200
Method_inner_forward
(query, feat, H, W)
segmentation/mmseg_custom/models/backbones/comer_modules.py:245
Method_inner_forward
(query, feat, H, W)
segmentation/mmseg_custom/models/backbones/comer_modules.py:298
Method_inner_forward
(query, feat, H, W)
segmentation/mmseg_custom/models/backbones/comer_modules.py:346
Method_inner_forward
(x)
segmentation/mmseg_custom/models/backbones/base/vit.py:234
Method_inner_forward
(x)
segmentation/mmseg_custom/models/backbones/base/beit.py:174
Method_inner_forward
(x)
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:140
Method_sample_neg
Sample negative samples.
segmentation/mmseg_custom/core/box/samplers/mask_pseudo_sampler.py:22
Method_sample_pos
Sample positive samples.
segmentation/mmseg_custom/core/box/samplers/mask_pseudo_sampler.py:18
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
detection/mmcv_custom/layer_decay_optimizer_constructor.py:35
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
segmentation/mmcv_custom/layer_decay_optimizer_constructor.py:45
Functionall_reduce_dict
Apply all reduce function for python dict object. The code is modified from https://github.com/Megvii- BaseDetection/YOLOX/blob/main/yolox/ut
segmentation/mmseg_custom/core/utils/dist_utils.py:96
Functionallreduce_grads
Allreduce gradients. Args: params (list[torch.Parameters]): List of parameters of a model coalesce (bool, optional): Whether allr
segmentation/mmseg_custom/core/utils/dist_utils.py:36
Methodassign
Computes one-to-one matching based on the weighted costs. This method assign each query prediction to a ground truth or background. T
segmentation/mmseg_custom/models/utils/assigner.py:69
Methodaug_test
(self, imgs, img_metas, rescale=False)
detection/mmdet_custom/models/detectors/htc_aug.py:23
Methodaug_test
Test with augmentations. Only rescale=True is supported.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:268
Methodaug_test
Test with augmentations. Only rescale=True is supported.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:272
Methodbackward
(ctx, grad_output)
detection/ops/functions/ms_deform_attn_func.py:38
Methodbboxes
torch.Tensor: concatenated positive and negative boxes
segmentation/mmseg_custom/core/box/samplers/sampling_result.py:51
Functionbinary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:88
Functionbuild_anchor_generator
(cfg, default_args=None)
segmentation/mmseg_custom/core/anchor/builder.py:15
Functionbuild_bbox_coder
Builder of box coder.
segmentation/mmseg_custom/core/box/builder.py:13
Functionbuild_transformer
Build Transformer.
segmentation/mmseg_custom/models/builder.py:21
Functioncosine_scheduler
(base_value, final_value, epochs, niter_per_ep, warmup_epochs=0, start_warmup_value=0, wa
detection/mmcv_custom/checkpoint.py:290
Functioncosine_scheduler
(base_value, final_value, epochs, niter_per_ep,
segmentation/mmcv_custom/checkpoint.py:291
Functioncross_entropy
cross_entropy. The wrapper function for :func:`F.cross_entropy` Args: pred (torch.Tensor): The prediction with shape (N, 1). labe
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:11
Functiondeform_inputs
(x)
detection/mmdet_custom/models/backbones/deformable_modules.py:21
Functionencode_mask_results
Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_resu
segmentation/mmseg_custom/core/mask/utils.py:38
Methodextra_repr
(self)
detection/mmdet_custom/models/backbones/base/beit.py:69
Methodextra_repr
(self)
segmentation/mmseg_custom/models/backbones/beit_baseline.py:36
Methodextra_repr
(self)
segmentation/mmseg_custom/models/backbones/base/beit.py:36
Methodextra_repr
Extra repr.
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:244
Methodfix_init_weight
(self)
detection/mmdet_custom/models/backbones/base/beit.py:413
Methodfix_init_weight
(self)
segmentation/mmseg_custom/models/backbones/base/beit.py:360
Methodforward
:param query (N, Length_{query}, C) :param reference_points (N, Length_{query}, n_levels, 2), range
detection/ops/modules/ms_deform_attn.py:83
Methodforward
(ctx, value, value_spatial_shapes, value_level_start_index, sampling_locations, attention_weig
detection/ops/functions/ms_deform_attn_func.py:22
Methodforward
Forward function.
detection/mmdet_custom/models/necks/channel_mapper.py:74
Methodforward
(self, x)
detection/mmdet_custom/models/necks/extra_attention.py:23
Methodforward
(self, x)
detection/mmdet_custom/models/necks/extra_attention.py:44
Methodforward
(self, inputs)
detection/mmdet_custom/models/necks/extra_attention.py:115
Methodforward
(self, x)
detection/mmdet_custom/models/backbones/vit_baseline.py:82
Methodforward
(self, x, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:78
Methodforward
(self, x, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:100
Methodforward
(self, x, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:115
Methodforward
(self, x, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:152
Methodforward
(self, query, reference_points, feat, spatial_shapes, level_start_index, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:198
Methodforward
(self, query, reference_points, feat, spatial_shapes, level_start_index, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:239
Methodforward
(self, query, reference_points, feat, spatial_shapes, level_start_index, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:289
Methodforward
(self, query, reference_points, feat, spatial_shapes, level_start_index, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:337
Methodforward
(self, x, c, blocks, deform_inputs1, deform_inputs2, H, W)
detection/mmdet_custom/models/backbones/comer_modules.py:399
Methodforward
(self, x)
detection/mmdet_custom/models/backbones/comer_modules.py:465
Methodforward
(self, x)
detection/mmdet_custom/models/backbones/vit_comer.py:102
← previousnext →301–400 of 528, ranked by callers