MCPcopy Create free account

hub / github.com/ShihaoZhaoZSH/Uni-ControlNet / functions

Functions2,265 in github.com/ShihaoZhaoZSH/Uni-ControlNet

↓ 1 callersFunction_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment var
annotator/uniformer/mmcv/runner/dist_utils.py:43
↓ 1 callersMethod_init_inputs
Check and initialize input transforms. The in_channels, in_index and input_transform must match. Specifically, when input_transform i
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:95
↓ 1 callersFunction_initialize_override
(module, override, cfg)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:520
↓ 1 callersMethod_is_in
(self, param_group, param_group_list)
annotator/uniformer/mmcv/runner/optimizer/default_constructor.py:128
↓ 1 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
annotator/uniformer/mmcv_custom/checkpoint.py:225
↓ 1 callersFunction_load_checkpoint_with_prefix
Load partial pretrained model with specific prefix. Args: prefix (str): The prefix of sub-module. filename (str): Accept local fi
annotator/uniformer/mmcv/runner/checkpoint.py:470
↓ 1 callersMethod_load_pretrained_model
(self)
annotator/mlsd/models/mbv2_mlsd_large.py:236
↓ 1 callersMethod_log_info
(self, log_dict, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:119
↓ 1 callersMethod_make_branches
Build multiple branch.
annotator/uniformer/mmseg/models/backbones/hrnet.py:109
↓ 1 callersFunction_make_efficientnet_backbone
(effnet)
annotator/midas/midas/blocks.py:88
↓ 1 callersMethod_make_fuse_layers
Build fuse layer.
annotator/uniformer/mmseg/models/backbones/hrnet.py:119
↓ 1 callersMethod_make_layer
(self)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:104
↓ 1 callersMethod_make_layer
Make each layer.
annotator/uniformer/mmseg/models/backbones/hrnet.py:418
↓ 1 callersMethod_make_one_branch
Build one branch.
annotator/uniformer/mmseg/models/backbones/hrnet.py:64
↓ 1 callersFunction_make_pretrained_efficientnet_lite3
(use_pretrained, exportable=False)
annotator/midas/midas/blocks.py:78
↓ 1 callersFunction_make_pretrained_resnext101_wsl
(use_pretrained)
annotator/midas/midas/blocks.py:114
↓ 1 callersFunction_make_pretrained_vitb16_384
(pretrained, use_readout="ignore", hooks=None)
annotator/midas/midas/vit.py:310
↓ 1 callersFunction_make_pretrained_vitb_rn50_384
( pretrained, use_readout="ignore", hooks=None, use_vit_only=False )
annotator/midas/midas/vit.py:478
↓ 1 callersFunction_make_pretrained_vitl16_384
(pretrained, use_readout="ignore", hooks=None)
annotator/midas/midas/vit.py:297
↓ 1 callersFunction_make_resnet_backbone
(resnet)
annotator/midas/midas/blocks.py:101
↓ 1 callersMethod_make_stem_layer
Make stem layer for ResNet.
annotator/uniformer/mmseg/models/backbones/resnet.py:532
↓ 1 callersFunction_make_vit_b_rn50_backbone
( model, features=[256, 512, 768, 768], size=[384, 384], hooks=[0, 1, 8, 11], vit_features
annotator/midas/midas/vit.py:343
↓ 1 callersFunction_minimal_ext_cmd
(cmd)
annotator/uniformer/mmcv/utils/version_utils.py:50
↓ 1 callersFunction_no_grad_trunc_normal_
Reference: https://people.sc.fsu.edu/~jburkardt/presentations /truncated_normal.pdf
annotator/uniformer/mmseg/models/utils/weight_init.py:10
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor: Tensor, mean: float, std: float, a: float, b: float)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:622
↓ 1 callersMethod_output_size
(ctx, input, weight)
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:137
↓ 1 callersMethod_output_size
(ctx, input1)
annotator/uniformer/mmcv/ops/correlation.py:96
↓ 1 callersMethod_output_size
(ctx, input, weight)
annotator/uniformer/mmcv/ops/deform_conv.py:173
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:321
↓ 1 callersMethod_pad_seg
Pad masks according to ``results['pad_shape']``.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:334
↓ 1 callersMethod_parse_int_float_bool
(val)
annotator/uniformer/mmcv/utils/config.py:607
↓ 1 callersMethod_parse_iterable
Parse iterable values in the string. All elements inside '()' or '[]' are treated as iterable values. Args: val (str): V
annotator/uniformer/mmcv/utils/config.py:621
↓ 1 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
annotator/uniformer/mmseg/models/segmentors/base.py:173
↓ 1 callersMethod_pos_embeding
Positiong embeding method. Resize the pos_embed, if the input image size doesn't match the training size. Args:
annotator/uniformer/mmseg/models/backbones/vit.py:359
↓ 1 callersMethod_pre_substitute_base_vars
Substitute base variable placehoders to string, so that parsing would work.
annotator/uniformer/mmcv/utils/config.py:128
↓ 1 callersFunction_process_mmcls_checkpoint
(checkpoint)
annotator/uniformer/mmcv/runner/checkpoint.py:151
↓ 1 callersFunction_process_mmcls_checkpoint
(checkpoint)
annotator/uniformer/mmcv_custom/checkpoint.py:214
↓ 1 callersMethod_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:139
↓ 1 callersFunction_register_handler
Register a handler for some file extensions. Args: handler (:obj:`BaseFileHandler`): Handler to be registered. file_formats (str
annotator/uniformer/mmcv/fileio/io.py:126
↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:177
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:199
↓ 1 callersMethod_round_float
(self, items)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:196
↓ 1 callersFunction_save_to_state_dict
Saves module state to `destination` dictionary. This method is modified from :meth:`torch.nn.Module._save_to_state_dict`. Args: modu
annotator/uniformer/mmcv/runner/checkpoint.py:570
↓ 1 callersFunction_save_to_state_dict
Saves module state to `destination` dictionary. This method is modified from :meth:`torch.nn.Module._save_to_state_dict`. Args: modu
annotator/uniformer/mmcv_custom/checkpoint.py:374
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive, case_sensitive)
annotator/uniformer/mmcv/utils/path.py:68
↓ 1 callersMethod_substitute_base_vars
Substitute variable strings to their actual values.
annotator/uniformer/mmcv/utils/config.py:147
↓ 1 callersMethod_substitute_predefined_vars
(filename, temp_config_name)
annotator/uniformer/mmcv/utils/config.py:107
↓ 1 callersMethod_validate_cfg
(self)
annotator/uniformer/mmcv/runner/optimizer/default_constructor.py:105
↓ 1 callersMethod_validate_py_syntax
(filename)
annotator/uniformer/mmcv/utils/config.py:96
↓ 1 callersFunctionabs_img_point_to_rel_img_point
Convert image based absolute point coordinates to image based relative coordinates for sampling. Args: abs_img_points (Tensor): Image
annotator/uniformer/mmcv/ops/point_sample.py:186
↓ 1 callersFunctionadd_args
(parser, cfg, prefix='')
annotator/uniformer/mmcv/utils/config.py:51
↓ 1 callersFunctionadd_batch_counter_hook_function
(module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:516
↓ 1 callersFunctionadd_batch_counter_variables_or_reset
(module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:511
↓ 1 callersFunctionadd_flops_counting_methods
(net_main_module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:320
↓ 1 callersMethodadd_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
annotator/uniformer/mmcv/runner/optimizer/default_constructor.py:137
↓ 1 callersFunctionadd_sharpening
USM sharpening. borrowed from real-ESRGAN Input image: I; Blurry image: B. 1. K = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > thresho
ldm/modules/image_degradation/bsrgan.py:299
↓ 1 callersMethodafter_train_epoch
Called after every training epoch to evaluate the results.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:264
↓ 1 callersMethodafter_train_iter
Called after every training iter to evaluate the results.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:244
↓ 1 callersMethodaggregate
(assignment_weights, x, codewords)
annotator/uniformer/mmseg/ops/encoding.py:46
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan_light.py:64
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan.py:65
↓ 1 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions. From https://github.com/crowsonkb/k-diffusion/blob/master/k_diffusi
ldm/models/diffusion/sampling_util.py:5
↓ 1 callersMethodaug_test
Placeholder for augmentation test.
annotator/uniformer/mmseg/models/segmentors/base.py:61
↓ 1 callersFunctionaugment_img
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:380
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
ldm/modules/diffusionmodules/util.py:241
↓ 1 callersFunctionbbox_scaling
Scaling bboxes w.r.t the box center. Args: bboxes (ndarray): Shape(..., 4). scale (float): Scaling factor. clip_shape (tu
annotator/uniformer/mmcv/image/geometric.py:360
↓ 1 callersMethodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:101
↓ 1 callersMethodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:107
↓ 1 callersFunctionbgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:573
↓ 1 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to a given probability value.
annotator/uniformer/mmcv/cnn/utils/weight_init.py:122
↓ 1 callersFunctionbias_leakyrelu_ref
(x, bias, negative_slope=0.2, scale=2**0.5)
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:257
↓ 1 callersFunctionbilinear_grid_sample
Given an input and a flow-field grid, computes the output using input values and pixel locations from grid. Supported only bilinear interpolation
annotator/uniformer/mmcv/ops/point_sample.py:12
↓ 1 callersFunctionbinary_dice_loss
(pred, target, valid_mask, smooth=1, exponent=2, **kwards)
annotator/uniformer/mmseg/models/losses/dice_loss.py:37
↓ 1 callersMethodbrightness
Brightness distortion.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:810
↓ 1 callersFunctionbuild_attention
Builder for attention.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:38
↓ 1 callersFunctionbuild_feedforward_network
Builder for feed-forward network (FFN).
annotator/uniformer/mmcv/cnn/bricks/transformer.py:43
↓ 1 callersFunctionbuild_optimizer
(model, cfg)
annotator/uniformer/mmcv/runner/optimizer/builder.py:33
↓ 1 callersFunctionbuild_optimizer_constructor
(cfg)
annotator/uniformer/mmcv/runner/optimizer/builder.py:29
↓ 1 callersFunctionbuild_padding_layer
Build padding layer. Args: cfg (None or dict): The padding layer config, which should contain: - type (str): Layer type.
annotator/uniformer/mmcv/cnn/bricks/padding.py:11
↓ 1 callersFunctionbuild_pixel_sampler
Build pixel sampler for segmentation map.
annotator/uniformer/mmseg/core/seg/builder.py:6
↓ 1 callersFunctionbuild_plugin_layer
Build plugin layer. Args: cfg (None or dict): cfg should contain: type (str): identify plugin layer type. layer a
annotator/uniformer/mmcv/cnn/bricks/plugin.py:55
↓ 1 callersFunctionbuild_runner
(cfg, default_args=None)
annotator/uniformer/mmcv/runner/builder.py:14
↓ 1 callersFunctionbuild_runner_constructor
(cfg)
annotator/uniformer/mmcv/runner/builder.py:10
↓ 1 callersFunctionbuild_segmentor
Build segmentor.
annotator/uniformer/mmseg/models/builder.py:35
↓ 1 callersFunctionbuild_transformer_layer
Builder for transformer layer.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:48
↓ 1 callersFunctionbuild_upsample_layer
Build upsample layer. Args: cfg (dict): The upsample layer config, which should contain: - type (str): Layer type.
annotator/uniformer/mmcv/cnn/bricks/upsample.py:50
↓ 1 callersFunctioncalc_square_dist
Calculating square distance between a and b. Args: point_feat_a (Tensor): (B, N, C) Feature vector of each point. point_feat_b (T
annotator/uniformer/mmcv/ops/points_sampler.py:11
↓ 1 callersMethodcam_cls_seg
CAM feature classification.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:135
↓ 1 callersFunctioncamel2snack
Convert camel case word into snack case. Modified from `inflection lib <https://inflection.readthedocs.io/en/latest/#inflection.under
annotator/uniformer/mmcv/cnn/bricks/plugin.py:29
↓ 1 callersMethodcheck_frequency
(self, check_idx)
models/logger.py:89
↓ 1 callersFunctioncheck_ops_exist
()
annotator/uniformer/mmcv/utils/ext_loader.py:69
↓ 1 callersFunctioncheck_time
Add check points in a single line. This method is suitable for running a task on a list of items. A timer will be registered when the method
annotator/uniformer/mmcv/utils/timer.py:92
↓ 1 callersFunctioncollate
Puts each data field into a tensor/DataContainer with outer dimension batch size. Extend default_collate to add support for :type:`~mmcv.
annotator/uniformer/mmcv/parallel/collate.py:11
↓ 1 callersFunctioncollect_env
Collect the information of the running environments.
annotator/uniformer/mmseg/utils/collect_env.py:7
↓ 1 callersFunctioncollect_results_cpu
Collect results with CPU.
annotator/uniformer/mmseg/apis/test.py:164
↓ 1 callersFunctioncollect_results_cpu
Collect results under cpu mode. On cpu mode, this function will save the results on different gpus to ``tmpdir`` and collect them by the rank
annotator/uniformer/mmcv/engine/test.py:91
↓ 1 callersFunctioncollect_results_gpu
Collect results with GPU.
annotator/uniformer/mmseg/apis/test.py:207
↓ 1 callersFunctioncollect_results_gpu
Collect results under gpu mode. On gpu mode, this function will encode results to gpu tensors and use gpu communication for results collectio
annotator/uniformer/mmcv/engine/test.py:155
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
ldm/models/diffusion/dpm_solver/dpm_solver.py:280
↓ 1 callersFunctionconv3x3
3x3 convolution with padding.
annotator/uniformer/mmcv/cnn/vgg.py:9
← previousnext →501–600 of 2,265, ranked by callers