MCPcopy Create free account

hub / github.com/Gsunshine/Enjoy-Hamburger / functions

Functions1,928 in github.com/Gsunshine/Enjoy-Hamburger

↓ 136 callersMethodget
(self)
seg/HamNet/sync_bn/nn/modules/comm.py:32
↓ 48 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
seg_light_ham/mmseg/ops/wrappers.py:8
↓ 47 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
seg_mm/mmseg/ops/wrappers.py:8
↓ 29 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
seg_light_ham/mmseg/models/decode_heads/decode_head.py:154
↓ 28 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
seg_mm/mmseg/models/decode_heads/decode_head.py:154
↓ 27 callersMethodcls_seg
Classify each pixel with fc.
seg_light_ham/mmseg/models/decode_heads/point_head.py:116
↓ 26 callersMethodcls_seg
Classify each pixel with fc.
seg_mm/mmseg/models/decode_heads/point_head.py:116
↓ 24 callersFunctionblock
Builds the residual blocks used in the generator. Args: x: The 4D input tensor. labels: The labels of the class we seek to sample fro
gan/HamGAN/generator.py:62
↓ 13 callersFunctionsn_conv1x1
Builds graph for a spectrally normalized 1 by 1 convolution. This is used in the context of non-local networks to reduce channel count for st
gan/HamGAN/ops.py:244
↓ 12 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 <
seg_light_ham/mmseg/__init__.py:13
↓ 11 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0., linear=False)
seg_light_ham/van.py:22
↓ 11 callersFunctionbuild_dataset
Build datasets.
seg_light_ham/mmseg/datasets/builder.py:65
↓ 11 callersMethodput
(self, result)
seg/HamNet/sync_bn/nn/modules/comm.py:26
↓ 10 callersMethodassertTensorClose
(self, a, b, atol=1e-3, rtol=1e-3)
seg/HamNet/sync_bn/nn/modules/unittest.py:24
↓ 10 callersMethodconvert
Multiple with alpha and add beat with clip.
seg_mm/mmseg/datasets/pipelines/transforms.py:867
↓ 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 <
seg_mm/mmseg/__init__.py:13
↓ 9 callersFunctionbuild_segmentor
Build segmentor.
seg_light_ham/mmseg/models/builder.py:38
↓ 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
seg_light_ham/mmseg/utils/logger.py:7
↓ 8 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
seg_light_ham/mmseg/core/utils/misc.py:2
↓ 8 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
seg_mm/mmseg/core/utils/misc.py:2
↓ 8 callersFunctionbuild_dataset
Build datasets.
seg_mm/mmseg/datasets/builder.py:65
↓ 8 callersFunctioneval_main
(ckp_name, eval_steps, suffix)
seg/HamNet/eval.py:93
↓ 8 callersMethodget_grid_mask_from_1d
(self, gridI, gridO, **kwargs)
gan/HamGAN/masks.py:157
↓ 8 callersMethodwrite
(self, out)
seg/HamNet/train.py:123
↓ 7 callersFunctionbuild_segmentor
Build segmentor.
seg_mm/mmseg/models/builder.py:38
↓ 7 callersMethodevaluate
Evaluate the dataset. Args: results (list[tuple[torch.Tensor]] | list[str]): per image pre_eval results or predi
seg_mm/mmseg/datasets/custom.py:367
↓ 7 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
seg_mm/mmseg/utils/logger.py:7
↓ 7 callersMethodtrain
Convert the model into training mode while keep normalization layer freezed.
seg_mm/mmseg/models/backbones/unet.py:417
↓ 7 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
seg_light_ham/mmseg/models/losses/utils.py:47
↓ 7 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
seg_mm/mmseg/models/losses/utils.py:47
↓ 6 callersMethod__init__
(self, in_channels, out_channels, exp_ratio=6,
seg_light_ham/mmseg/models/backbones/bisenetv2.py:201
↓ 6 callersMethod__init__
(self, in_channels=3, embed_dims=[64, 128, 256], patch_size
seg_light_ham/mmseg/models/backbones/twins.py:546
↓ 6 callersMethod__init__
(self, in_channels, out_channels, exp_ratio=6,
seg_mm/mmseg/models/backbones/bisenetv2.py:201
↓ 6 callersMethod__init__
(self, in_channels=3, embed_dims=[64, 128, 256], patch_size
seg_mm/mmseg/models/backbones/twins.py:546
↓ 6 callersFunction_find_bn
(module)
seg/HamNet/sync_bn/nn/modules/tests/test_sync_batchnorm.py:30
↓ 6 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1, grids=None)
seg/HamNet/network.py:99
↓ 6 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
seg_light_ham/mmseg/datasets/builder.py:88
↓ 6 callersMethodforward_plugin
Forward function for plugins.
seg_light_ham/mmseg/models/backbones/resnet.py:245
↓ 6 callersMethodforward_plugin
Forward function for plugins.
seg_mm/mmseg/models/backbones/resnet.py:245
↓ 5 callersMethod_checkBatchNormResult
Check the forward and backward for the customized batch normalization.
seg/HamNet/sync_bn/nn/modules/tests/test_sync_batchnorm.py:44
↓ 5 callersFunction_unsqueeze_ft
add new dementions at the front and the tail
seg/HamNet/sync_bn/nn/modules/batchnorm.py:29
↓ 5 callersFunctionblock
Builds the residual blocks used in the discriminator. Args: x: The 4D input vector. out_channels: Number of features in the output la
gan/HamGAN/discriminator.py:29
↓ 5 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
seg_mm/mmseg/datasets/builder.py:88
↓ 5 callersMethodbuild_project
Build projection layer for key/query/value/out.
seg_light_ham/mmseg/models/utils/self_attention_block.py:100
↓ 5 callersMethodbuild_project
Build projection layer for key/query/value/out.
seg_mm/mmseg/models/utils/self_attention_block.py:100
↓ 5 callersMethodconvert
Multiple with alpha and add beat with clip.
seg_light_ham/mmseg/datasets/pipelines/transforms.py:867
↓ 5 callersMethodcumsum
(sequence)
seg/HamNet/sync_bn/utils/data/dataset.py:61
↓ 5 callersMethodevaluate
Evaluate the dataset. Args: results (list[tuple[torch.Tensor]] | list[str]): per image pre_eval results or predi
seg_light_ham/mmseg/datasets/custom.py:367
↓ 5 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
seg_light_ham/mmseg/models/segmentors/base.py:62
↓ 5 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
seg_mm/mmseg/models/segmentors/base.py:62
↓ 5 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
seg_light_ham/mmseg/models/backbones/hrnet.py:425
↓ 5 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
seg_light_ham/mmseg/models/backbones/hrnet.py:430
↓ 5 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
seg_mm/setup.py:26
↓ 4 callersMethod__init__
(self, backbone_cfg, in_channels=3, spatial_channels=(64, 6
seg_light_ham/mmseg/models/backbones/bisenetv1.py:294
↓ 4 callersMethod__init__
(self, embed_dims, num_heads, window_size,
seg_light_ham/mmseg/models/backbones/swin.py:42
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
seg_light_ham/mmseg/models/backbones/resnet.py:396
↓ 4 callersMethod__init__
(self, low_in_channels, high_in_channels, channels, out_channels, query_scales, key_pool_scal
seg_light_ham/mmseg/models/decode_heads/ann_head.py:100
↓ 4 callersMethod__init__
(self, args=dict())
seg_light_ham/mmseg/models/decode_heads/ham_head.py:105
↓ 4 callersMethod__init__
(self, backbone_cfg, in_channels=3, spatial_channels=(64, 6
seg_mm/mmseg/models/backbones/bisenetv1.py:294
↓ 4 callersMethod__init__
(self, embed_dims, num_heads, window_size,
seg_mm/mmseg/models/backbones/swin.py:42
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
seg_mm/mmseg/models/backbones/resnet.py:396
↓ 4 callersMethod__init__
(self, low_in_channels, high_in_channels, channels, out_channels, query_scales, key_pool_scal
seg_mm/mmseg/models/decode_heads/ann_head.py:100
↓ 4 callersMethod_assign_list
Tensorflow assign function for list of tensors.
gan/HamGAN/optimization.py:83
↓ 4 callersMethodconvert_to_1d
(i, j, cols)
gan/HamGAN/masks.py:72
↓ 4 callersFunctiondsample
Downsamples the input volume by means of average pooling. Args: x: The 4D input tensor. Returns: An downsampled version of the in
gan/HamGAN/discriminator.py:16
↓ 4 callersFunctioneval_metrics
Calculate evaluation metrics Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
seg_light_ham/mmseg/core/evaluation/metrics.py:256
↓ 4 callersFunctioneval_metrics
Calculate evaluation metrics Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
seg_mm/mmseg/core/evaluation/metrics.py:256
↓ 4 callersFunctionfeed
(x, target, training=False)
gan/HamGAN/explore_latent.py:37
↓ 4 callersFunctionfeed
(x, target, training=False)
gan/HamGAN/inverse_image.py:35
↓ 4 callersMethodgather
(self, outputs, output_device)
seg/HamNet/sync_bn/nn/parallel/data_parallel.py:50
↓ 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
seg_light_ham/mmseg/models/utils/make_divisible.py:2
↓ 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
seg_mm/mmseg/models/utils/make_divisible.py:2
↓ 4 callersFunctionmake_estimator
Creates a TPU Estimator.
gan/HamGAN/train_experiment.py:129
↓ 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.
seg_light_ham/mmseg/models/utils/shape_convert.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.
seg_mm/mmseg/models/utils/shape_convert.py:2
↓ 4 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
seg_mm/mmseg/models/backbones/hrnet.py:425
↓ 4 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
seg_mm/mmseg/models/backbones/hrnet.py:430
↓ 4 callersMethodpre_pipeline
Prepare results dict for pipeline.
seg_light_ham/mmseg/datasets/custom.py:181
↓ 4 callersMethodpre_pipeline
Prepare results dict for pipeline.
seg_mm/mmseg/datasets/custom.py:181
↓ 4 callersFunctionsetup_multi_processes
Setup multi-processing environment variables.
seg_light_ham/mmseg/utils/set_env.py:11
↓ 4 callersFunctionsingle_gpu_test
Test with single GPU by progressive mode. Args: model (nn.Module): Model to be tested. data_loader (utils.data.Dataloader): Pytor
seg_light_ham/mmseg/apis/test.py:34
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
seg_light_ham/mmseg/datasets/pipelines/formatting.py:12
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
seg_mm/mmseg/datasets/pipelines/formatting.py:12
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
seg_light_ham/mmseg/models/backbones/resnest.py:295
↓ 3 callersMethod__init__
(self, stdc_type, in_channels, channels, b
seg_light_ham/mmseg/models/backbones/stdc.py:232
↓ 3 callersMethod__init__
(self, embed_dims, feedforward_channels, act_cfg=dict(type=
seg_light_ham/mmseg/models/backbones/mit.py:39
↓ 3 callersMethod__init__
(self, in_channels=3, base_channels=64, num_stages=5,
seg_light_ham/mmseg/models/backbones/unet.py:283
↓ 3 callersMethod__init__
(self, in_channels=3, num_channels=(32, 64, 128), num_block
seg_light_ham/mmseg/models/backbones/cgnet.py:219
↓ 3 callersMethod__init__
(self, in_channels=3, downsample_dw_channels=(32, 48), glob
seg_light_ham/mmseg/models/backbones/fast_scnn.py:326
↓ 3 callersMethod__init__
(self, in_channels=3, enc_downsample_channels=(16, 64, 128),
seg_light_ham/mmseg/models/backbones/erfnet.py:230
↓ 3 callersMethod__init__
(self, embed_dims=768, post_process_channels=[96, 192, 384, 768],
seg_light_ham/mmseg/models/decode_heads/dpt_head.py:235
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
seg_mm/mmseg/models/backbones/resnest.py:295
↓ 3 callersMethod__init__
(self, stdc_type, in_channels, channels, b
seg_mm/mmseg/models/backbones/stdc.py:232
↓ 3 callersMethod__init__
(self, embed_dims, feedforward_channels, act_cfg=dict(type=
seg_mm/mmseg/models/backbones/mit.py:39
↓ 3 callersMethod__init__
(self, in_channels=3, base_channels=64, num_stages=5,
seg_mm/mmseg/models/backbones/unet.py:283
↓ 3 callersMethod__init__
(self, in_channels=3, num_channels=(32, 64, 128), num_block
seg_mm/mmseg/models/backbones/cgnet.py:219
↓ 3 callersMethod__init__
(self, in_channels=3, downsample_dw_channels=(32, 48), glob
seg_mm/mmseg/models/backbones/fast_scnn.py:326
↓ 3 callersMethod__init__
(self, in_channels=3, enc_downsample_channels=(16, 64, 128),
seg_mm/mmseg/models/backbones/erfnet.py:230
↓ 3 callersMethod__init__
(self, embed_dims=768, post_process_channels=[96, 192, 384, 768],
seg_mm/mmseg/models/decode_heads/dpt_head.py:235
↓ 3 callersMethod__init__
(self, block, layers, num_classes=1000, stride=8)
seg/HamNet/network.py:59
next →1–100 of 1,928, ranked by callers