Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VCIP-RGBD/DFormer
/ functions
Functions
937 in github.com/VCIP-RGBD/DFormer
⨍
Functions
937
◇
Types & classes
246
Function
sigmoid_focal_loss
r"""A wrapper of cuda version `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape (
models/losses/focal_loss.py:71
Method
simple_test
Simple test with single image.
mmseg/models/segmentors/encoder_decoder.py:247
Method
simple_test_logits
Test without augmentations. Return numpy seg_map logits.
mmseg/models/segmentors/encoder_decoder.py:263
Method
sliding_eval
(self, img, crop_size, stride_rate, device=None)
utils/engine/evaluator.py:213
Method
sliding_eval
(self, img, crop_size, stride_rate, device=None)
utils/engine/dist_test.py:175
Method
sliding_eval_rgbX
(self, img, modal_x, crop_size, stride_rate, device=None)
utils/engine/evaluator.py:316
Function
stare_classes
stare class names for external use.
mmseg/core/evaluation/class_names.py:427
Function
stare_palette
STARE palette for external use.
mmseg/core/evaluation/class_names.py:854
Function
sync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used in
mmseg/core/utils/dist_util.py:12
Method
train
Convert the model into training mode will keeping the normalization layer freezed.
mmseg/models/backbones/cgnet.py:347
Method
train
(self, mode=True)
mmseg/models/backbones/vit.py:427
Method
train
(self, mode=True)
mmseg/models/backbones/mobilenet_v3.py:263
Method
train
Convert the model into training mode will keeping the normalization layer freezed.
mmseg/models/backbones/hrnet.py:603
Method
train
(self, mode=True)
mmseg/models/backbones/beit.py:538
Method
train
Convert the model into training mode while keep layers freezed.
mmseg/models/backbones/swin.py:631
Method
train
(self, mode=True)
mmseg/models/backbones/mobilenet_v2.py:188
Method
train
Convert the model into training mode while keep normalization layer freezed.
mmseg/models/backbones/resnet.py:624
Method
train
Convert the model into training mode while keep normalization layer freezed.
models/encoders/DFormerv2.py:639
Function
train_segmentor
Launch segmentor training.
mmseg/apis/train.py:69
Method
train_step
The iteration step during training. This method defines an iteration step during training, except for the back propagation and optimi
mmseg/models/segmentors/base.py:109
Method
uint82bin
returns the binary of integer n, count refers to amount of bits
utils/dataloader/RGBXDataset.py:260
Function
vaihingen_classes
Vaihingen class names for external use.
mmseg/core/evaluation/class_names.py:400
Function
vaihingen_palette
Vaihingen palette for external use.
mmseg/core/evaluation/class_names.py:827
Method
val_step
The iteration step during validation. This method shares the same signature as :func:`train_step`, but used during val epochs. Note t
mmseg/models/segmentors/base.py:142
Function
voc_classes
Pascal VOC class names for external use.
mmseg/core/evaluation/class_names.py:186
Function
voc_palette
Pascal VOC palette for external use.
mmseg/core/evaluation/class_names.py:613
Function
weighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred, ta
mmseg/models/losses/utils.py:83
Function
weighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred, ta
models/losses/utils.py:83
Method
whole_eval
(self, img, output_size, device=None)
utils/engine/evaluator.py:196
Method
whole_eval
(self, img, output_size, input_size=None, device=None)
utils/engine/dist_test.py:156
Method
with_auxiliary_head
bool: whether the segmentor has auxiliary head
mmseg/models/segmentors/base.py:26
Method
with_decode_head
bool: whether the segmentor has decode head
mmseg/models/segmentors/base.py:31
Method
with_neck
bool: whether the segmentor has neck
mmseg/models/segmentors/base.py:21
Method
worker
(self, shred_list, device)
utils/engine/evaluator.py:180
Method
worker
(self, shred_list, device)
utils/engine/dist_test.py:141
Function
wrapper
(pred, target, weight=None, reduction="mean", avg_factor=None, **kwargs)
mmseg/models/losses/utils.py:115
Function
wrapper
(pred, target, weight=None, reduction="mean", avg_factor=None, **kwargs)
models/losses/utils.py:115
← previous
901–937 of 937, ranked by callers