MCPcopy Create free account

hub / github.com/VCIP-RGBD/DFormer / functions

Functions937 in github.com/VCIP-RGBD/DFormer

Method__init__
( self, out_indices=(0, 1, 2, 3), embed_dims=[64, 128, 256, 512], depths=[2, 2
models/encoders/DFormerv2.py:495
Method__init__
( self, in_channels, channels, *, num_classes, dropout_ratio=0
models/decoders/decode_head.py:55
Method__init__
( self, in_channels=[96, 192, 384, 768], num_classes=40, channels=512,
models/decoders/UPernet.py:18
Method__init__
( self, in_channels=[64, 128, 320, 512], num_classes=40, dropout_ratio=0.1,
models/decoders/test.py:25
Method__init__
( self, in_channels=[64, 128, 320, 512], num_classes=40, dropout_ratio=0.1,
models/decoders/LMLPDecoder.py:25
Method__init__
(self, in_channels=[256, 512, 1024, 2048], num_classes=40, norm_layer=nn.BatchNorm2d)
models/decoders/deeplabv3plus.py:7
Method__init__
(self, in_channels, out_channels, atrous_rate, norm_layer)
models/decoders/deeplabv3plus.py:37
Method__init__
(self, in_channels, out_channels, norm_layer)
models/decoders/deeplabv3plus.py:50
Method__init__
(self, args=dict())
models/decoders/ham_head.py:13
Method__init__
(self, ham_channels=512, ham_kwargs=dict(), norm_cfg=None, **kwargs)
models/decoders/ham_head.py:150
Method__init__
(self, ham_channels=512, ham_kwargs=dict(), **kwargs)
models/decoders/ham_head.py:182
Method__init__
( self, in_channels=384, channels=None, kernel_size=3, dilation=1, num_classes=40, norm_layer=nn.Batch
models/decoders/fcnhead.py:10
Method__init__
( self, in_channels=[64, 128, 320, 512], num_classes=40, dropout_ratio=0.1,
models/decoders/MLPDecoder.py:25
Method__init__
( self, in_channels: int, reduction: int = 2, use_scale: bool = True,
models/decoders/nl_head.py:77
Method__init__
(self, in_channels: int, sub_sample: bool = False, conv_cfg: Dict = dict(type="Conv1d"), **kwargs)
models/decoders/nl_head.py:264
Method__init__
(self, in_channels: int, sub_sample: bool = False, conv_cfg: Dict = dict(type="Conv2d"), **kwargs)
models/decoders/nl_head.py:293
Method__init__
(self, in_channels: int, sub_sample: bool = False, conv_cfg: Dict = dict(type="Conv3d"), **kwargs)
models/decoders/nl_head.py:319
Method__init__
( self, smooth=1, class_weight=None, loss_weight=1.0, ignore_index=255
models/losses/tversky_loss.py:68
Method__init__
( self, smooth=1, exponent=2, reduction="mean", class_weight=None,
models/losses/dice_loss.py:66
Method__init__
( self, loss_type="multi_class", classes="present", per_image=False, r
models/losses/lovasz_loss.py:251
Method__init__
Module to calculate the accuracy. Args: topk (tuple, optional): The criterion used to calculate the accuracy. Def
models/losses/accuracy.py:66
Method__init__
( self, use_sigmoid=False, use_mask=False, reduction="mean", class_wei
models/losses/cross_entropy_loss.py:206
Method__init__
`Focal Loss <https://arxiv.org/abs/1708.02002>`_ Args: use_sigmoid (bool, optional): Whether to the prediction is
models/losses/focal_loss.py:137
Method__repr__
(self)
mmseg/ops/encoding.py:63
Method_build_bases
(self, B, S, D, R, cuda=False)
models/decoders/ham_head.py:110
Method_build_layers
(self)
mmseg/models/backbones/mae.py:132
Method_color_dbg
(msg)
utils/pyt_utils.py:57
Method_color_dbg
(msg)
utils/engine/logger.py:60
Method_color_err
(msg)
utils/pyt_utils.py:65
Method_color_err
(msg)
utils/engine/logger.py:68
Method_color_normal
(msg)
utils/pyt_utils.py:73
Method_color_normal
(msg)
utils/engine/logger.py:76
Method_color_omitted
(msg)
utils/pyt_utils.py:69
Method_color_omitted
(msg)
utils/engine/logger.py:72
Method_color_warn
(msg)
utils/pyt_utils.py:61
Method_color_warn
(msg)
utils/engine/logger.py:64
Function_dbg_interactive
(var, value)
utils/pyt_utils.py:255
Method_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
mmseg/models/segmentors/cascade_encoder_decoder.py:65
Method_do_evaluate
perform evaluation and save ckpt.
mmseg/core/evaluation/eval_hooks.py:41
Method_do_evaluate
perform evaluation and save ckpt.
mmseg/core/evaluation/eval_hooks.py:86
Method_init_decode_head
Initialize ``decode_head``
mmseg/models/segmentors/cascade_encoder_decoder.py:44
Method_init_weights
(m)
mmseg/models/backbones/beit.py:477
Method_init_weights
(m)
mmseg/models/backbones/mae.py:168
Method_init_weights
(self, m)
models/net_utils.py:60
Method_init_weights
(self, m)
models/net_utils.py:184
Method_init_weights
(self, m)
models/encoders/DFormerv2.py:559
Method_inner_forward
(x)
mmseg/models/backbones/resnest.py:219
Method_inner_forward
(x)
mmseg/models/backbones/mit.py:281
Method_inner_forward
(x)
mmseg/models/backbones/cgnet.py:42
Method_inner_forward
(x)
mmseg/models/backbones/cgnet.py:133
Method_inner_forward
(x)
mmseg/models/backbones/vit.py:113
Method_inner_forward
(x)
mmseg/models/backbones/swin.py:350
Method_inner_forward
(x)
mmseg/models/backbones/resnet.py:67
Method_inner_forward
(x)
mmseg/models/backbones/resnet.py:242
Method_inner_forward
(x)
mmseg/models/utils/inverted_residual.py:94
Method_inner_forward
(x)
mmseg/models/utils/inverted_residual.py:199
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
mmseg/core/optimizers/layer_decay_optimizer_constructor.py:107
Functionade_classes
ADE20K class names for external use.
mmseg/core/evaluation/class_names.py:30
Functionade_palette
ADE20K palette for external use.
mmseg/core/evaluation/class_names.py:457
Methodafter_run
(self, runner)
mmseg/core/hook/wandblogger_hook.py:220
Methodafter_train_iter
(self, runner)
mmseg/core/hook/wandblogger_hook.py:179
Methodaug_test
Test with augmentations. Only rescale=True is supported.
mmseg/models/segmentors/encoder_decoder.py:272
Methodaug_test_logits
Test with augmentations. Return seg_map logits. Only rescale=True is supported.
mmseg/models/segmentors/encoder_decoder.py:294
Methodbefore_run
(self, runner)
mmseg/core/hook/wandblogger_hook.py:106
Functionbinary_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:85
Functionbinary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
models/losses/cross_entropy_loss.py:85
Methodbuild_attn
(self, attn_cfg)
mmseg/models/backbones/beit.py:217
Methodbuild_attn
(self, attn_cfg)
mmseg/models/backbones/mae.py:40
Functionbuild_backbone
Build backbone.
models/builder.py:26
Functionbuild_head
Build head.
models/builder.py:36
Functionbuild_loss
Build loss.
models/builder.py:41
Functionbuild_neck
Build neck.
mmseg/models/builder.py:23
Functionbuild_neck
Build neck.
models/builder.py:31
Functionbuild_segmentor
Build segmentor.
models/builder.py:46
Functioncalculate_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:19
Functioncanonicalize
(s)
utils/transforms.py:82
Functioncenter_crop
(img, shape)
utils/transforms.py:166
Functioncheck_dist_init
()
mmseg/core/utils/dist_util.py:8
Functioncityscapes_classes
Cityscapes class names for external use.
mmseg/core/evaluation/class_names.py:5
Functioncityscapes_palette
Cityscapes palette for external use.
mmseg/core/evaluation/class_names.py:432
Methodcls_seg
Classify each pixel.
mmseg/models/decode_heads/decode_head.py:256
Functioncocostuff_classes
CocoStuff class names for external use.
mmseg/core/evaluation/class_names.py:213
Functioncocostuff_palette
CocoStuff palette for external use.
mmseg/core/evaluation/class_names.py:640
Methodcompute_coef
(self, x, bases, coef)
models/decoders/ham_head.py:138
Functioncompute_score
(hist, correct, labeled)
utils/metric.py:19
Methodconcatenation
(self, theta_x: torch.Tensor, phi_x: torch.Tensor)
models/decoders/nl_head.py:168
Functionconfigure_optimizers
This long function is unfortunately doing something very simple and is being very defensive: We are separating out all parameters of the mode
utils/init_func.py:72
Functioncross_entropy
cross_entropy. The wrapper function for :func:`F.cross_entropy` Args: pred (torch.Tensor): The prediction with shape (N, 1). labe
mmseg/models/losses/cross_entropy_loss.py:12
Functioncross_entropy
cross_entropy. The wrapper function for :func:`F.cross_entropy` Args: pred (torch.Tensor): The prediction with shape (N, 1). labe
models/losses/cross_entropy_loss.py:12
Methoddot_product
(self, theta_x: torch.Tensor, phi_x: torch.Tensor)
models/decoders/nl_head.py:160
Methodembedded_gaussian
Embedded gaussian with temperature.
mmseg/models/decode_heads/dnl_head.py:22
Methodembedded_gaussian
(self, theta_x: torch.Tensor, phi_x: torch.Tensor)
models/decoders/nl_head.py:148
Methodencode_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:41
Methodencode_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:55
Functionextant_file
'Type' for argparse - checks that file exists but does not open.
utils/pyt_utils.py:228
Methodextra_repr
Extra repr.
mmseg/models/decode_heads/decode_head.py:140
Methodextra_repr
Extra repr.
mmseg/models/losses/cross_entropy_loss.py:240
Methodextra_repr
Extra repr.
models/decoders/decode_head.py:108
Methodextra_repr
Extra repr.
models/losses/cross_entropy_loss.py:240
Methodforward
slen: (h, w) h * w == l recurrent is not implemented
utils/demo_geometry_prior.py:71
← previousnext →501–600 of 937, ranked by callers