MCPcopy Create free account

hub / github.com/NVlabs/SegFormer / functions

Functions711 in github.com/NVlabs/SegFormer

↓ 2 callersFunctionmean_iou
Calculate Mean Intersection and Union (mIoU) Args: results (list[ndarray]): List of prediction segmentation maps. gt_seg_maps (li
mmseg/core/evaluation/metrics.py:105
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmseg/models/backbones/resnet.py:250
↓ 2 callersFunctionnorm_cdf
(x)
mmseg/models/utils/norm.py:9
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:69
↓ 2 callersMethodpre_pipeline
Prepare results dict for pipeline.
mmseg/datasets/custom.py:169
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
mmseg/datasets/pipelines/transforms.py:91
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
mmseg/datasets/pipelines/transforms.py:340
↓ 2 callersMethodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor): The semantic segment
mmseg/models/segmentors/base.py:208
↓ 2 callersMethodtrain
Convert the model into training mode whill keeping the normalization layer freezed.
mmseg/models/backbones/cgnet.py:359
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
mmseg/models/backbones/resnext.py:134
↓ 1 callersMethod__init__
(self, extra, in_channels=3, conv_cfg=None,
mmseg/models/backbones/hrnet.py:273
↓ 1 callersMethod__init__
(self, drop_prob=None)
mmseg/models/utils/drop.py:154
↓ 1 callersMethod__init__
(self, in_channels, out_channels, stride,
mmseg/models/utils/inverted_residual.py:31
↓ 1 callersMethod__init__
(self, c1_in_channels, c1_channels, **kwargs)
mmseg/models/decode_heads/sep_aspp_head.py:42
↓ 1 callersMethod__init__
(self, input_dim=2048, embed_dim=768)
mmseg/models/decode_heads/segformer_head.py:24
↓ 1 callersMethod__init__
(self, dilations=(1, 6, 12, 18), **kwargs)
mmseg/models/decode_heads/aspp_head.py:64
↓ 1 callersMethod__init__
(self, reduction=2, use_scale=True, mode='embedded_gaussian
mmseg/models/decode_heads/dnl_head.py:102
↓ 1 callersMethod__init__
(self, pool_scales, in_channels, channels, conv_cfg, norm_cfg, act_cfg, align_corners)
mmseg/models/decode_heads/psp_head.py:24
↓ 1 callersMethod__init__
(self, num_codes=32, use_se_loss=True, add_lateral=False,
mmseg/models/decode_heads/enc_head.py:78
↓ 1 callersMethod__init__
(self, filter_size, fusion, in_channels, channels, conv_cfg, norm_cfg, act_cfg)
mmseg/models/decode_heads/dm_head.py:24
↓ 1 callersMethod__init__
(self, ema_channels, num_bases, num_stages,
mmseg/models/decode_heads/ema_head.py:94
↓ 1 callersMethod__init__
(self, pool_scale, fusion, in_channels, channels, conv_cfg, norm_cfg, act_cfg)
mmseg/models/decode_heads/apc_head.py:25
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
mmseg/models/segmentors/encoder_decoder.py:113
↓ 1 callersMethod_check_branches
Check branches configuration.
mmseg/models/backbones/hrnet.py:46
↓ 1 callersFunction_check_decode_head
(decode_head_cfg, decode_head)
tests/test_config.py:127
↓ 1 callersMethod_check_input_devisible
(self, x)
mmseg/models/backbones/unet.py:398
↓ 1 callersFunction_class_to_index
(mask, _mapping, _key)
tools/convert_datasets/pascal_context.py:22
↓ 1 callersFunction_concat_dataset
Build :obj:`ConcatDataset by.
mmseg/datasets/builder.py:25
↓ 1 callersFunction_convert_batchnorm
(module)
tools/pytorch2onnx.py:19
↓ 1 callersFunction_convert_batchnorm
(module)
tests/test_models/test_forward.py:186
↓ 1 callersMethod_convert_to_label_id
Convert trainId to id for cityscapes.
mmseg/datasets/cityscapes.py:39
↓ 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
mmseg/models/decode_heads/enc_head.py:159
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
mmseg/models/segmentors/encoder_decoder.py:107
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
mmseg/models/segmentors/encoder_decoder.py:96
↓ 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
tools/pytorch2onnx.py:40
↓ 1 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
tests/test_models/test_segmentor.py:11
↓ 1 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
tests/test_models/test_forward.py:13
↓ 1 callersMethod_evaluate_cityscapes
Evaluation in Cityscapes protocol. Args: results (list): Testing results of the dataset. logger (logging.Logger | str
mmseg/datasets/cityscapes.py:164
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
mmseg/models/losses/cross_entropy_loss.py:35
↓ 1 callersMethod_freeze_stages
(self)
mmseg/models/backbones/mobilenet_v3.py:242
↓ 1 callersMethod_freeze_stages
(self)
mmseg/models/backbones/mobilenet_v2.py:164
↓ 1 callersFunction_get_config_directory
Find the predefined segmentor config directory.
tests/test_models/test_forward.py:49
↓ 1 callersFunction_get_config_module
Load a configuration as a python module.
tests/test_models/test_forward.py:64
↓ 1 callersFunction_get_segmentor_cfg
Grab configs necessary to create a segmentor. These are deep copied to allow for safe modification of parameters without influencing other te
tests/test_models/test_forward.py:73
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
mmseg/models/segmentors/encoder_decoder.py:49
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
mmseg/models/segmentors/encoder_decoder.py:43
↓ 1 callersMethod_init_inputs
Check and initialize input transforms. The in_channels, in_index and input_transform must match. Specifically, when input_transform i
mmseg/models/decode_heads/decode_head.py:97
↓ 1 callersMethod_make_branches
Build multiple branch.
mmseg/models/backbones/hrnet.py:109
↓ 1 callersMethod_make_fuse_layers
Build fuse layer.
mmseg/models/backbones/hrnet.py:119
↓ 1 callersMethod_make_layer
(self)
mmseg/models/backbones/mobilenet_v3.py:104
↓ 1 callersMethod_make_layer
Make each layer.
mmseg/models/backbones/hrnet.py:418
↓ 1 callersMethod_make_one_branch
Build one branch.
mmseg/models/backbones/hrnet.py:64
↓ 1 callersMethod_make_stem_layer
Make stem layer for ResNet.
mmseg/models/backbones/resnet.py:532
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
mmseg/models/utils/norm.py:6
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
mmseg/datasets/pipelines/transforms.py:548
↓ 1 callersMethod_pad_seg
Pad masks according to ``results['pad_shape']``.
mmseg/datasets/pipelines/transforms.py:561
↓ 1 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
mmseg/models/segmentors/base.py:173
↓ 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
mmseg/datasets/pipelines/transforms.py:117
↓ 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
mmseg/datasets/pipelines/transforms.py:366
↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
mmseg/datasets/pipelines/transforms.py:164
↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
mmseg/datasets/pipelines/transforms.py:404
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
mmseg/datasets/pipelines/transforms.py:193
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
mmseg/datasets/pipelines/transforms.py:426
↓ 1 callersMethodaggregate
(assigment_weights, x, codewords)
mmseg/ops/encoding.py:46
↓ 1 callersMethodaug_test
Placeholder for augmentation test.
mmseg/models/segmentors/base.py:61
↓ 1 callersMethodbrightness
Brightness distortion.
mmseg/datasets/pipelines/transforms.py:1136
↓ 1 callersFunctionbuild_pixel_sampler
Build pixel sampler for segmentation map.
mmseg/core/seg/builder.py:6
↓ 1 callersMethodcam_cls_seg
CAM feature classification.
mmseg/models/decode_heads/da_head.py:135
↓ 1 callersFunctioncollect_results_cpu
Collect results with CPU.
mmseg/apis/test.py:161
↓ 1 callersFunctioncollect_results_gpu
Collect results with GPU.
mmseg/apis/test.py:204
↓ 1 callersFunctiondrop_block_2d
DropBlock. See https://arxiv.org/pdf/1810.12890.pdf DropBlock with an experimental gaussian noise option. This layer has been tested on a few tra
mmseg/models/utils/drop.py:17
↓ 1 callersFunctiondrop_block_fast_2d
DropBlock. See https://arxiv.org/pdf/1810.12890.pdf DropBlock with an experimental gaussian noise option. Simplied from above without concern for
mmseg/models/utils/drop.py:64
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for Ef
mmseg/models/utils/drop.py:133
↓ 1 callersMethodextract_feat
Placeholder for extract features from images.
mmseg/models/segmentors/base.py:40
↓ 1 callersMethodformat_results
Place holder to format result to dataset specific output.
mmseg/datasets/custom.py:226
↓ 1 callersMethodformat_results
Format the results into dir (standard format for Cityscapes evaluation). Args: results (list): Testing results of the dat
mmseg/datasets/cityscapes.py:91
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/ocr_head.py:119
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/da_head.py:142
↓ 1 callersMethodforward
(self, img, img_metas, test_mode=False, **kwargs)
tests/test_eval_hook.py:33
↓ 1 callersMethodforward_features
(self, x)
mmseg/models/backbones/mix_transformer.py:313
↓ 1 callersMethodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
mmseg/models/decode_heads/point_head.py:203
↓ 1 callersMethodforward_test
Forward function for testing, ignore se_loss.
mmseg/models/decode_heads/enc_head.py:151
↓ 1 callersMethodforward_test
Forward function for testing, only ``pam_cam`` is used.
mmseg/models/decode_heads/da_head.py:160
↓ 1 callersFunctiongen_packages_items
()
setup.py:77
↓ 1 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
mmseg/datasets/custom.py:157
↓ 1 callersMethodget_classes_and_palette
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
mmseg/datasets/custom.py:243
↓ 1 callersMethodget_crop_bbox
Randomly get a crop bounding box.
mmseg/datasets/pipelines/transforms.py:807
↓ 1 callersMethodget_palette_for_custom_classes
(self, class_names, palette=None)
mmseg/datasets/custom.py:287
↓ 1 callersMethodget_points_test
Sample points for testing. Find ``num_points`` most uncertain points from ``uncertainty_map``. Args: seg_logits (Tensor)
mmseg/models/decode_heads/point_head.py:310
↓ 1 callersMethodget_points_train
Sample points for training. Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The uncertainties are calcu
mmseg/models/decode_heads/point_head.py:256
↓ 1 callersFunctionget_tr_flops
(net, input_shape)
tools/get_flops.py:33
↓ 1 callersFunctionget_version
()
setup.py:13
↓ 1 callersFunctionget_version
()
docs/conf.py:27
↓ 1 callersMethodhue
Hue distortion.
mmseg/datasets/pipelines/transforms.py:1164
↓ 1 callersMethodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
mmseg/models/segmentors/encoder_decoder.py:59
↓ 1 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
mmseg/models/backbones/unet.py:411
↓ 1 callersMethodinit_weights
(self, pretrained=None)
mmseg/models/backbones/fast_scnn.py:360
↓ 1 callersMethodinit_weights
Initialize weight of later layer.
mmseg/models/utils/self_attention_block.py:93
↓ 1 callersFunctionintersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray): Prediction segmentation map. label (ndarray): Ground truth segmenta
mmseg/core/evaluation/metrics.py:5
↓ 1 callersMethodload_annotations
Load annotation from directory. Args: img_dir (str): Path to image directory img_suffix (str): Suffix of images.
mmseg/datasets/custom.py:119
← previousnext →101–200 of 711, ranked by callers