Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/SegFormer
/ functions
Functions
711 in github.com/NVlabs/SegFormer
⨍
Functions
711
◇
Types & classes
147
↳
Endpoints
8
Method
__init__
(self, branch_channels=(32, 64), **kwargs)
mmseg/models/decode_heads/lraspp_head.py:23
Method
__init__
(self, filter_sizes=(1, 3, 5, 7), fusion=False, **kwargs)
mmseg/models/decode_heads/dm_head.py:106
Method
__init__
(self, mask_size, psa_type='bi-direction', compact=False,
mmseg/models/decode_heads/psa_head.py:35
Method
__init__
(self, channels, num_bases, num_stages, momentum)
mmseg/models/decode_heads/ema_head.py:31
Method
__init__
(self, reduction=2, use_scale=True, mode='embedded_gaussian
mmseg/models/decode_heads/nl_head.py:23
Method
__init__
(self, pool_scales=(1, 2, 3, 6), fusion=True, **kwargs)
mmseg/models/decode_heads/apc_head.py:124
Method
__init__
(self)
mmseg/models/decode_heads/da_head.py:52
Method
__init__
(self, pam_channels, **kwargs)
mmseg/models/decode_heads/da_head.py:85
Method
__init__
(self, loss_type='multi_class', classes='present', per_imag
mmseg/models/losses/lovasz_loss.py:248
Method
__init__
Module to calculate the accuracy. Args: topk (tuple, optional): The criterion used to calculate the accuracy. Def
mmseg/models/losses/accuracy.py:55
Method
__init__
(self, use_sigmoid=False, use_mask=False, reduction='mean',
mmseg/models/losses/cross_entropy_loss.py:154
Method
__init__
(self)
tests/test_eval_hook.py:28
Method
__init__
(self)
tests/test_models/test_segmentor.py:64
Method
__init__
(self)
tests/test_models/test_segmentor.py:74
Method
__init__
(self, cnt=0)
tests/test_data/test_dataset_builder.py:15
Method
__item__
(self, idx)
tests/test_data/test_dataset_builder.py:18
Method
__len__
Total number of samples of data.
mmseg/datasets/custom.py:115
Method
__len__
The length is multiplied by ``times``
mmseg/datasets/dataset_wrappers.py:48
Method
__len__
(self)
tests/test_eval_hook.py:22
Method
__len__
(self)
tests/test_data/test_dataset_builder.py:21
Method
__repr__
(self)
mmseg/ops/encoding.py:70
Method
__repr__
(self)
mmseg/datasets/pipelines/test_time_aug.py:128
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:227
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:455
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:515
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:583
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:625
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:672
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:716
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:792
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:850
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:926
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:985
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:1024
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:1064
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:1094
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:1207
Method
__repr__
(self)
mmseg/datasets/pipelines/loading.py:81
Method
__repr__
(self)
mmseg/datasets/pipelines/loading.py:149
Method
__repr__
(self)
mmseg/datasets/pipelines/compose.py:45
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:62
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:100
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:133
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:173
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:214
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:286
Function
_check_input_dim
(self, inputs)
tests/test_models/test_forward.py:182
Method
_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
mmseg/models/segmentors/cascade_encoder_decoder.py:80
Method
_init_decode_head
Initialize ``decode_head``
mmseg/models/segmentors/cascade_encoder_decoder.py:38
Method
_init_weights
(self, m)
mmseg/models/backbones/mix_transformer.py:33
Method
_init_weights
(self, m)
mmseg/models/backbones/mix_transformer.py:81
Method
_init_weights
(self, m)
mmseg/models/backbones/mix_transformer.py:138
Method
_init_weights
(self, m)
mmseg/models/backbones/mix_transformer.py:179
Method
_init_weights
(self, m)
mmseg/models/backbones/mix_transformer.py:261
Method
_inner_forward
(x)
mmseg/models/backbones/resnest.py:228
Method
_inner_forward
(x)
mmseg/models/backbones/cgnet.py:39
Method
_inner_forward
(x)
mmseg/models/backbones/cgnet.py:144
Method
_inner_forward
(x)
mmseg/models/backbones/resnet.py:70
Method
_inner_forward
(x)
mmseg/models/backbones/resnet.py:267
Method
_inner_forward
(x)
mmseg/models/utils/inverted_residual.py:83
Method
_inner_forward
(x)
mmseg/models/utils/inverted_residual.py:185
Function
ade_classes
ADE20K class names for external use.
mmseg/core/evaluation/class_names.py:14
Function
ade_palette
ADE20K palette for external use.
mmseg/core/evaluation/class_names.py:63
Method
after_train_epoch
After train epoch hook.
mmseg/core/evaluation/eval_hooks.py:33
Method
after_train_epoch
After train epoch hook.
mmseg/core/evaluation/eval_hooks.py:94
Method
after_train_iter
After train epoch hook.
mmseg/core/evaluation/eval_hooks.py:24
Method
after_train_iter
After train epoch hook.
mmseg/core/evaluation/eval_hooks.py:79
Method
aug_test
Test with augmentations. Only rescale=True is supported.
mmseg/models/segmentors/encoder_decoder.py:276
Function
binary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
mmseg/models/losses/cross_entropy_loss.py:57
Function
build_backbone
Build backbone.
mmseg/models/builder.py:36
Function
build_head
Build head.
mmseg/models/builder.py:46
Function
build_neck
Build neck.
mmseg/models/builder.py:41
Function
builder_inited_handler
(app)
docs/conf.py:83
Function
calculate_uncertainty
Estimate uncertainty based on seg logits. For each location of the prediction ``seg_logits`` we estimate uncertainty as the difference betwee
mmseg/models/decode_heads/point_head.py:14
Function
cityscapes_classes
Cityscapes class names for external use.
mmseg/core/evaluation/class_names.py:4
Function
cityscapes_palette
Cityscapes palette for external use.
mmseg/core/evaluation/class_names.py:54
Method
cls_seg
Classify each pixel.
mmseg/models/decode_heads/decode_head.py:209
Function
convert_json_to_label
(json_file)
tools/convert_datasets/cityscapes.py:8
Function
convert_mat
(mat_file, in_dir, out_dir)
tools/convert_datasets/voc_aug.py:13
Function
cross_entropy
The wrapper function for :func:`F.cross_entropy`
mmseg/models/losses/cross_entropy_loss.py:9
Method
embedded_gaussian
Embedded gaussian with temperature.
mmseg/models/decode_heads/dnl_head.py:21
Method
encode_decode
Placeholder for encode images with backbone and decode into a semantic segmentation map of the same size as input.
mmseg/models/segmentors/base.py:45
Method
encode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
mmseg/models/segmentors/cascade_encoder_decoder.py:65
Method
evaluate
Evaluation in Cityscapes/default protocol. Args: results (list): Testing results of the dataset. metric (str | list[s
mmseg/datasets/cityscapes.py:124
Method
extra_repr
Extra repr.
mmseg/models/decode_heads/decode_head.py:90
Method
forward
(self, x)
mmseg/ops/encoding.py:57
Method
forward
(self, x)
mmseg/ops/wrappers.py:48
Method
forward
Calls either :func:`forward_train` or :func:`forward_test` depending on whether ``return_loss`` is ``True``. Note this setting will c
mmseg/models/segmentors/base.py:111
Method
forward
(self, inputs)
mmseg/models/necks/fpn.py:162
Method
forward
(self, x)
mmseg/models/backbones/resnest.py:28
Method
forward
(self, x)
mmseg/models/backbones/resnest.py:117
Method
forward
(self, x)
mmseg/models/backbones/resnest.py:226
Method
forward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:48
Method
forward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:96
Method
forward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:153
Method
forward
(self, x)
mmseg/models/backbones/mix_transformer.py:194
Method
forward
(self, x)
mmseg/models/backbones/mix_transformer.py:351
Method
forward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:363
Method
forward
Forward function.
mmseg/models/backbones/unet.py:76
Method
forward
Forward function.
mmseg/models/backbones/unet.py:137
← previous
next →
401–500 of 711, ranked by callers