MCPcopy Create free account

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

Functions937 in github.com/VCIP-RGBD/DFormer

↓ 1 callersMethod_init_qv_bias
(self)
mmseg/models/backbones/beit.py:79
↓ 1 callersMethod_init_rel_pos_embedding
(self)
mmseg/models/backbones/beit.py:83
↓ 1 callersMethod_log_ckpt_as_artifact
Log model checkpoint as W&B Artifact. Args: model_path (str): Path of the checkpoint to log. aliases (list): List of
mmseg/core/hook/wandblogger_hook.py:223
↓ 1 callersMethod_log_data_table
Log the W&B Tables for validation data as artifact and calls `use_artifact` on it so that the evaluation table can use the reference o
mmseg/core/hook/wandblogger_hook.py:325
↓ 1 callersMethod_log_eval_table
Log the W&B Tables for model evaluation. The table will be logged multiple times creating new version. Use this to compare models at
mmseg/core/hook/wandblogger_hook.py:340
↓ 1 callersMethod_log_predictions
(self, results, runner)
mmseg/core/hook/wandblogger_hook.py:300
↓ 1 callersMethod_make_branches
Build multiple branch.
mmseg/models/backbones/hrnet.py:108
↓ 1 callersMethod_make_fuse_layers
Build fuse layer.
mmseg/models/backbones/hrnet.py:117
↓ 1 callersMethod_make_layer
(self)
mmseg/models/backbones/mobilenet_v3.py:130
↓ 1 callersMethod_make_layer
Make each layer.
mmseg/models/backbones/hrnet.py:455
↓ 1 callersMethod_make_one_branch
Build one branch.
mmseg/models/backbones/hrnet.py:64
↓ 1 callersMethod_make_stage
(self, in_channels, out_channels, strides, norm_cfg, act_cfg, bottleneck_type)
mmseg/models/backbones/stdc.py:294
↓ 1 callersMethod_make_stem_layer
Make stem layer for ResNet.
mmseg/models/backbones/resnet.py:553
↓ 1 callersMethod_pos_embeding
Positioning embeding method. Resize the pos_embed, if the input image size doesn't match the training size. Args:
mmseg/models/backbones/vit.py:338
↓ 1 callersFunctionadd_path
(path)
local_configs/template/DFormer_Large.py:85
↓ 1 callersMethodaggregate
(assignment_weights, x, codewords)
mmseg/ops/encoding.py:42
↓ 1 callersFunctionall_reduce_tensor
(tensor, op=dist.ReduceOp.SUM, world_size=1)
utils/pyt_utils.py:125
↓ 1 callersMethodaug_test
Placeholder for augmentation test.
mmseg/models/segmentors/base.py:57
↓ 1 callersFunctionbinary_dice_loss
(pred, target, valid_mask, smooth=1, exponent=2, **kwargs)
mmseg/models/losses/dice_loss.py:30
↓ 1 callersFunctionbinary_dice_loss
(pred, target, valid_mask, smooth=1, exponent=2, **kwargs)
models/losses/dice_loss.py:30
↓ 1 callersFunctionbinary_tversky_loss
(pred, target, valid_mask, alpha=0.3, beta=0.7, smooth=1)
mmseg/models/losses/tversky_loss.py:31
↓ 1 callersFunctionbinary_tversky_loss
(pred, target, valid_mask, alpha=0.3, beta=0.7, smooth=1)
models/losses/tversky_loss.py:31
↓ 1 callersMethodbuild_attn
(self, attn_cfg)
mmseg/models/backbones/vit.py:98
↓ 1 callersFunctionbuild_ddp
Build DistributedDataParallel module by device type. If device is cuda, return a MMDistributedDataParallel module; if device is mlu, return a
mmseg/utils/util_distribution.py:39
↓ 1 callersFunctionbuild_dp
build DataParallel module by device type. if device is cuda, return a MMDataParallel module; if device is mlu, return a MLUDataParallel modul
mmseg/utils/util_distribution.py:13
↓ 1 callersMethodbuild_ffn
(self, ffn_cfg)
mmseg/models/backbones/vit.py:101
↓ 1 callersFunctionbuild_optimizer
(model, cfg)
mmseg/core/builder.py:20
↓ 1 callersFunctionbuild_optimizer_constructor
(cfg)
mmseg/core/builder.py:10
↓ 1 callersFunctionbuild_pixel_sampler
Build pixel sampler for segmentation map.
mmseg/core/seg/builder.py:7
↓ 1 callersFunctionbuild_segmentor
Build segmentor.
mmseg/models/builder.py:38
↓ 1 callersMethodcam_cls_seg
CAM feature classification.
mmseg/models/decode_heads/da_head.py:138
↓ 1 callersFunctioncollect_env
Collect the information of the running environments.
mmseg/utils/collect_env.py:8
↓ 1 callersMethodcompute_coef
(self, x, bases, coef)
models/decoders/ham_head.py:58
↓ 1 callersFunctiondice_loss
(pred, target, valid_mask, smooth=1, exponent=2, class_weight=None, ignore_index=255)
mmseg/models/losses/dice_loss.py:14
↓ 1 callersFunctiondice_loss
(pred, target, valid_mask, smooth=1, exponent=2, class_weight=None, ignore_index=255)
models/losses/dice_loss.py:14
↓ 1 callersMethoddouble_step_seq
(step1, len1, step2, len2)
mmseg/models/backbones/swin.py:116
↓ 1 callersMethodextract_feat
Placeholder for extract features from images.
mmseg/models/segmentors/base.py:36
↓ 1 callersFunctionf_score
calculate the f-score value. Args: precision (float | torch.Tensor): The precision value. recall (float | torch.Tensor): The reca
mmseg/core/evaluation/metrics.py:9
↓ 1 callersFunctionfind_latest_checkpoint
This function is for finding the latest checkpoint. It will be used when automatically resume, modified from https://github.com/open-mmlab/mm
mmseg/utils/misc.py:7
↓ 1 callersMethodfix_init_weight
Rescale the initialization according to layer id. This function is copied from https://github.com/microsoft/unilm/blob/master/beit/modeling_
mmseg/models/backbones/mae.py:152
↓ 1 callersMethodforward
Placeholder of forward function.
mmseg/models/decode_heads/decode_head.py:213
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/isa_head.py:95
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/ocr_head.py:117
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/da_head.py:145
↓ 1 callersMethodforward
(self, rgb, modal_x=None, label=None)
models/builder.py:241
↓ 1 callersMethodforward_add
(self, inputs)
mmseg/models/backbones/stdc.py:105
↓ 1 callersMethodforward_cat
(self, inputs)
mmseg/models/backbones/stdc.py:116
↓ 1 callersMethodfunc_per_iteration
(self, data, device)
utils/engine/dist_test.py:149
↓ 1 callersMethodgenerate_2d_depth_decay
generate 2d decay mask, the result is (HW)*(HW)
utils/demo_geometry_prior.py:46
↓ 1 callersMethodgenerate_depth_decay
generate 2d decay mask, the result is (HW)*(HW) H, W are the numbers of patches at each column and row
models/encoders/DFormerv2.py:127
↓ 1 callersMethodgenerate_pos_decay
generate 2d decay mask, the result is (HW)*(HW)
utils/demo_geometry_prior.py:33
↓ 1 callersMethodgenerate_pos_decay
generate 2d decay mask, the result is (HW)*(HW) H, W are the numbers of patches at each column and row
models/encoders/DFormerv2.py:139
↓ 1 callersFunctiongenerate_random_crop_pos
(ori_size, crop_size)
utils/transforms.py:44
↓ 1 callersFunctionget_layer_id_for_convnext
Get the layer id to set the different learning rates in ``layer_wise`` decay_type. Args: var_name (str): The key of the model.
mmseg/core/optimizers/layer_decay_optimizer_constructor.py:11
↓ 1 callersFunctionget_layer_id_for_vit
Get the layer id to set the different learning rates. Args: var_name (str): The key of the model. num_max_layer (int): Maximum nu
mmseg/core/optimizers/layer_decay_optimizer_constructor.py:77
↓ 1 callersMethodget_lr
(self, cur_iter)
utils/lr_policy.py:8
↓ 1 callersFunctionget_path
( dataset_name, _rgb_path, _rgb_format, _x_path, _x_format, _gt_path, _gt_format,
utils/dataloader/RGBXDataset.py:9
↓ 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:298
↓ 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:249
↓ 1 callersFunctionget_stage_id_for_convnext
Get the stage id to set the different learning rates in ``stage_wise`` decay_type. Args: var_name (str): The key of the model.
mmseg/core/optimizers/layer_decay_optimizer_constructor.py:53
↓ 1 callersFunctionget_train_loader
(engine, dataset, config)
utils/dataloader/dataloader.py:141
↓ 1 callersFunctiongroup_weight
(weight_group, module, norm_layer, lr)
utils/init_func.py:26
↓ 1 callersMethodinit_weights
Initialize weight of later layer.
mmseg/models/utils/self_attention_block.py:112
↓ 1 callersMethodinit_weights
(self, cfg, pretrained=None)
models/builder.py:200
↓ 1 callersMethodinit_weights
(self, std: float = 0.01, zeros_init: bool = True)
models/decoders/nl_head.py:123
↓ 1 callersMethodinject_default_parser
(self)
utils/engine/engine.py:73
↓ 1 callersFunctionintersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray | str): Prediction segmentation map or predict result filename.
mmseg/core/evaluation/metrics.py:25
↓ 1 callersFunctionis_mlu_available
Returns a bool indicating if MLU is currently available.
mmseg/utils/util_distribution.py:69
↓ 1 callersFunctionload
(module, prefix="")
utils/load_utils.py:31
↓ 1 callersMethodlocal_inference
(self, x, bases)
models/decoders/ham_head.py:47
↓ 1 callersMethodlocal_step
(self, x, bases, coef)
models/decoders/ham_head.py:43
↓ 1 callersMethodlosses
Compute segmentation loss.
mmseg/models/decode_heads/decode_head.py:264
↓ 1 callersMethodlosses
Compute segmentation loss.
mmseg/models/decode_heads/point_head.py:234
↓ 1 callersMethodlosses
Compute ``pam_cam``, ``pam``, ``cam`` loss.
mmseg/models/decode_heads/da_head.py:167
↓ 1 callersMethodlosses
Compute segmentation loss.
models/decoders/decode_head.py:230
↓ 1 callersFunctionmain
(cfg)
utils/val_mm.py:372
↓ 1 callersMethodmake_layer
Stack InvertedResidual blocks to build a layer for MobileNetV2. Args: out_channels (int): out_channels of block. num_
mmseg/models/backbones/mobilenet_v2.py:133
↓ 1 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmseg/models/backbones/resnet.py:544
↓ 1 callersMethodmake_stage_plugins
make plugins for ResNet 'stage_idx'th stage . Currently we support to insert 'context_block', 'empirical_attention_block', 'nonlocal_
mmseg/models/backbones/resnet.py:491
↓ 1 callersFunctionmulti_gpu_test
Test model with multiple gpus by progressive mode. This method tests model with multiple gpus and collects the results under two different mo
mmseg/apis/test.py:137
↓ 1 callersMethodmulti_process_evaluation
(self)
utils/engine/dist_test.py:109
↓ 1 callersMethodnorm0
nn.Module: the normalization layer named "norm0"
mmseg/models/backbones/resnest.py:108
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmseg/models/backbones/resnest.py:113
↓ 1 callersMethodnorm1
(self)
mmseg/models/backbones/vit.py:286
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmseg/models/backbones/hrnet.py:396
↓ 1 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmseg/models/backbones/resnet.py:55
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmseg/models/backbones/resnet.py:549
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmseg/models/backbones/resnet.py:60
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmseg/models/backbones/resnet.py:230
↓ 1 callersMethodpam_cls_seg
PAM feature classification.
mmseg/models/decode_heads/da_head.py:131
↓ 1 callersFunctionparse_version_info
(version_str)
mmseg/version.py:6
↓ 1 callersMethodpsp_forward
Forward function of PSP module.
mmseg/models/decode_heads/uper_head.py:81
↓ 1 callersMethodpsp_forward
Forward function of PSP module.
models/decoders/UPernet.py:63
↓ 1 callersFunctionrandom_mirror
(rgb, gt, modal_x)
utils/dataloader/dataloader.py:16
↓ 1 callersFunctionrandom_scale
(rgb, gt, modal_x, scales)
utils/dataloader/dataloader.py:25
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mmseg/models/losses/utils.py:28
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
models/losses/utils.py:28
↓ 1 callersFunctionreduce_mean
Reduce mean when distributed training.
mmseg/models/decode_heads/ema_head.py:14
↓ 1 callersMethodregister
(self, **kwargs)
utils/engine/engine.py:30
↓ 1 callersMethodreset_parameters
(self)
models/encoders/DFormerv2.py:271
← previousnext →201–300 of 937, ranked by callers