MCPcopy Create free account

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

Functions937 in github.com/VCIP-RGBD/DFormer

↓ 49 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=True)
mmseg/ops/wrappers.py:8
↓ 30 callersMethodformat
(self, record)
utils/pyt_utils.py:21
↓ 28 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
mmseg/models/decode_heads/decode_head.py:187
↓ 27 callersMethodcls_seg
Classify each pixel with fc.
mmseg/models/decode_heads/point_head.py:112
↓ 21 callersMethodupdate
(self, pred: Tensor, target: Tensor)
utils/metrics_new.py:16
↓ 11 callersFunctionevaluate_msf
( model, dataloader, config, device, scales, flip, engine, save_dir=None,
utils/val_mm.py:246
↓ 10 callersMethod__init__
(self, dim, kernel_size, stride, padding)
models/encoders/DFormerv2.py:73
↓ 10 callersFunctiondigit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha <
mmseg/__init__.py:13
↓ 10 callersFunctionpad_image_to_shape
(img, shape, border_mode, value)
utils/transforms.py:62
↓ 9 callersFunctionevaluate
(model, dataloader, config, device, engine, save_dir=None, sliding=False)
utils/val_mm.py:81
↓ 9 callersMethodformat
(self, record)
utils/engine/logger.py:24
↓ 9 callersFunctionget_root_logger
Get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHandler will be added. If `log_file` i
mmseg/utils/logger.py:7
↓ 9 callersFunctionnormalize
(img, mean, std)
utils/transforms.py:195
↓ 8 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
mmseg/core/utils/misc.py:2
↓ 8 callersMethodcompute_f1
(self)
utils/metrics_new.py:33
↓ 8 callersMethodcompute_iou
(self)
utils/metrics_new.py:24
↓ 8 callersMethodcompute_pixel_acc
(self)
utils/metrics_new.py:42
↓ 8 callersFunctionget_logger
(log_dir=None, log_file=None, rank=0)
utils/engine/logger.py:105
↓ 7 callersMethodnorm1
(self)
mmseg/models/backbones/beit.py:377
↓ 7 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
mmseg/models/losses/utils.py:48
↓ 7 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
models/losses/utils.py:48
↓ 6 callersMethod__init__
( self, in_channels, out_channels, exp_ratio=6, stride=1, conv
mmseg/models/backbones/bisenetv2.py:217
↓ 6 callersMethod__init__
( self, in_channels=3, embed_dims=[64, 128, 256], patch_sizes=[4, 2, 2, 2],
mmseg/models/backbones/twins.py:546
↓ 6 callersMethod__init__
(self, dim, reduction=1, num_heads=None, norm_layer=nn.LayerNorm)
models/net_utils.py:119
↓ 6 callersFunctionensure_dir
(path)
utils/pyt_utils.py:245
↓ 6 callersFunctionfangda
(mask, in_size=(480//20,640//20), out_size=(480,640))
utils/demo_geometry_prior.py:99
↓ 6 callersMethodforward_plugin
Forward function for plugins.
mmseg/models/backbones/resnet.py:217
↓ 6 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
mmseg/models/segmentors/base.py:61
↓ 6 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
mmseg/models/segmentors/encoder_decoder.py:209
↓ 6 callersFunctionload_state_dict
(module, state_dict, strict=False, logger=None)
utils/load_utils.py:20
↓ 6 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
mmseg/models/backbones/hrnet.py:401
↓ 5 callersMethod__init__
(self, ignore_index=255, reduction="mean", weight=None, class_num=37, beta=0.01)
utils/loss_opr.py:29
↓ 5 callersMethod__init__
(self, dim, mlp_ratio=4, norm_cfg=dict(type="SyncBN", requires_grad=True))
mmseg/models/backbones/scnet.py:56
↓ 5 callersMethodbuild_project
Build projection layer for key/query/value/out.
mmseg/models/utils/self_attention_block.py:118
↓ 5 callersFunctionget_dist_info
()
utils/load_utils.py:6
↓ 5 callersFunctionlink_file
(src, target)
utils/pyt_utils.py:239
↓ 4 callersMethod__init__
( self, backbone_cfg, in_channels=3, spatial_channels=(64, 64, 64, 128),
mmseg/models/backbones/bisenetv1.py:322
↓ 4 callersMethod__init__
( self, embed_dims, num_heads, window_size, qkv_bias=True, qk_
mmseg/models/backbones/swin.py:40
↓ 4 callersMethod__init__
( self, depth, in_channels=3, stem_channels=64, base_channels=64,
mmseg/models/backbones/resnet.py:368
↓ 4 callersMethod__init__
( self, low_in_channels, high_in_channels, channels, out_channels,
mmseg/models/decode_heads/ann_head.py:110
↓ 4 callersMethod__init__
(self, dim, mlp_ratio=4, norm_cfg=dict(type="SyncBN", requires_grad=True))
models/encoders/DFormer.py:53
↓ 4 callersMethod__init__
(self, **kwargs)
models/decoders/nl_head.py:344
↓ 4 callersMethod_open_image
(filepath, mode=cv2.IMREAD_COLOR, dtype=None)
utils/dataloader/RGBXDataset.py:244
↓ 4 callersFunctionangle_transform
(x, sin, cos)
models/encoders/DFormerv2.py:109
↓ 4 callersFunctionget_2dshape
(shape, *, zero=True)
utils/transforms.py:12
↓ 4 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
mmseg/models/losses/utils.py:10
↓ 4 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
models/losses/utils.py:10
↓ 4 callersFunctionget_val_loader
(engine, dataset, config, val_batch_size=1)
utils/dataloader/dataloader.py:191
↓ 4 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
mmseg/models/utils/make_divisible.py:2
↓ 4 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
mmseg/models/utils/shape_convert.py:2
↓ 4 callersMethodprocess_image
(self, img, crop_size=None)
utils/engine/dist_test.py:259
↓ 4 callersMethodreset_parameters
(self)
models/encoders/DFormerv2.py:327
↓ 4 callersMethodstart
(self)
utils/train.py:70
↓ 4 callersMethodupdate_hist
(self, hist)
utils/metrics_new.py:13
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, reduction_factor=4, avg_down_stride=True, **kwargs)
mmseg/models/backbones/resnest.py:285
↓ 3 callersMethod__init__
( self, stdc_type, in_channels, channels, bottleneck_type, nor
mmseg/models/backbones/stdc.py:222
↓ 3 callersMethod__init__
( self, embed_dims, feedforward_channels, act_cfg=dict(type="GELU"), f
mmseg/models/backbones/mit.py:39
↓ 3 callersMethod__init__
( self, in_channels=3, base_channels=64, num_stages=5, strides=(1, 1,
mmseg/models/backbones/unet.py:285
↓ 3 callersMethod__init__
( self, in_channels=3, num_channels=(32, 64, 128), num_blocks=(3, 21),
mmseg/models/backbones/cgnet.py:207
↓ 3 callersMethod__init__
( self, in_channels=3, downsample_dw_channels=(32, 48), global_in_channels=64,
mmseg/models/backbones/fast_scnn.py:319
↓ 3 callersMethod__init__
( self, in_channels=3, enc_downsample_channels=(16, 64, 128), enc_stage_non_bo
mmseg/models/backbones/erfnet.py:232
↓ 3 callersMethod__init__
( self, embed_dims=768, post_process_channels=[96, 192, 384, 768], readout_typ
mmseg/models/decode_heads/dpt_head.py:203
↓ 3 callersMethod__init__
(self, in_channels, atrous_rates, norm_layer)
models/decoders/deeplabv3plus.py:67
↓ 3 callersMethod__init__
(self, args=dict())
models/decoders/ham_head.py:105
↓ 3 callersMethod_make_layer
(self, in_channels, out_channels, blocks, stride=1, expand_ratio=6)
mmseg/models/backbones/fast_scnn.py:167
↓ 3 callersMethod_make_stage
Make each stage.
mmseg/models/backbones/hrnet.py:501
↓ 3 callersMethod_make_transition_layer
Make transition layer.
mmseg/models/backbones/hrnet.py:405
↓ 3 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class, ...)
mmseg/models/losses/accuracy.py:6
↓ 3 callersFunctionbuild_backbone
Build backbone.
mmseg/models/builder.py:18
↓ 3 callersFunctionbuild_loss
Build loss.
mmseg/models/builder.py:33
↓ 3 callersMethodcompute_metric
(self, results)
utils/engine/evaluator.py:192
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
mmseg/models/segmentors/encoder_decoder.py:72
↓ 3 callersFunctioneval_metrics
Calculate evaluation metrics Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
mmseg/core/evaluation/metrics.py:232
↓ 3 callersMethodforward_train
Placeholder for Forward function for training.
mmseg/models/segmentors/base.py:47
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
mmseg/models/segmentors/encoder_decoder.py:115
↓ 3 callersMethodlink_tb
(self, source, target)
utils/engine/engine.py:131
↓ 3 callersFunctionload_model
(model, model_file, is_restore=False)
utils/pyt_utils.py:162
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
mmseg/models/backbones/resnet.py:197
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
mmseg/models/utils/shape_convert.py:19
↓ 3 callersMethodprocess_image
(self, img, crop_size=None)
utils/engine/evaluator.py:294
↓ 3 callersFunctionput_mask
(image,mask,color_rgb=None,border_mask=False,color_temp='jet',num_c='',beta=2,fixed_num=None)
utils/demo_geometry_prior.py:107
↓ 3 callersFunctionrandom_crop_pad_to_shape
(img, crop_pos, crop_size, pad_label_value)
utils/transforms.py:28
↓ 3 callersFunctionset_img_color
(colors, background, img, pred, gt, show255=False)
utils/visualize.py:6
↓ 3 callersFunctionslide_inference
Inference by sliding-window with overlap. If h_crop > h_img or w_crop > w_img, the small patch will be used to decode without padding. A
utils/val_mm.py:182
↓ 3 callersMethodval_func_process
(self, input_data, device=None)
utils/engine/evaluator.py:273
↓ 3 callersMethodval_func_process
(self, input_data, device=None)
utils/engine/dist_test.py:235
↓ 2 callersMethod__init__
( self, img_size=224, patch_size=16, in_channels=3, embed_dims=768,
mmseg/models/backbones/beit.py:265
↓ 2 callersMethod__init__
( self, in_channels=3, embed_dims=768, conv_type="Conv2d", kernel_size
mmseg/models/utils/embed.py:105
↓ 2 callersMethod__init__
( self, in_channels=256, feat_channels=64, out_channels=None, gate_sig
mmseg/models/decode_heads/knet_head.py:35
↓ 2 callersMethod__init__
(self, ocr_channels, scale=1, **kwargs)
mmseg/models/decode_heads/ocr_head.py:93
↓ 2 callersMethod__init__
(self, in_channels, channels)
mmseg/models/decode_heads/da_head.py:21
↓ 2 callersFunction__init_weight
(feature, conv_init, norm_layer, bn_eps, bn_momentum, **kwargs)
utils/init_func.py:7
↓ 2 callersMethod__set_fmt
(self, fmt)
utils/pyt_utils.py:49
↓ 2 callersMethod__set_fmt
(self, fmt)
utils/engine/logger.py:52
↓ 2 callersMethod_build_bases
(self, B, S, D, R, cuda=False)
models/decoders/ham_head.py:40
↓ 2 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Li
mmseg/models/decode_heads/psp_head.py:95
↓ 2 callersMethod_freeze_stages
Freeze stages param and norm stats.
mmseg/models/backbones/hrnet.py:541
↓ 2 callersMethod_freeze_stages
Freeze stages param and norm stats.
mmseg/models/backbones/resnet.py:588
↓ 2 callersMethod_get_coarse_point_feats
Sample from fine grained features. Args: prev_output (list[Tensor]): Prediction of previous decode head. points (Tens
mmseg/models/decode_heads/point_head.py:148
↓ 2 callersMethod_get_fine_grained_point_feats
Sample from fine grained features. Args: x (list[Tensor]): Feature pyramid from by neck or backbone. points (Tensor):
mmseg/models/decode_heads/point_head.py:127
next →1–100 of 937, ranked by callers