MCPcopy Create free account

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

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

↓ 2 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
ldm/modules/ema.py:68
↓ 2 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
annotator/uniformer/mmcv/runner/base_runner.py:345
↓ 2 callersMethodrun_iter
(self, data_batch, train_mode, **kwargs)
annotator/uniformer/mmcv/runner/epoch_based_runner.py:24
↓ 2 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
models/uni_controlnet.py:134
↓ 2 callersFunctionsave_checkpoint
Save checkpoint to file. The checkpoint will have 3 fields: ``meta``, ``state_dict`` and ``optimizer``. By default ``meta`` will contain vers
annotator/uniformer/mmcv/runner/checkpoint.py:634
↓ 2 callersMethodsave_checkpoint
(self, out_dir, filename_tmpl, save_op
annotator/uniformer/mmcv/runner/base_runner.py:197
↓ 2 callersFunctionscandir
Scan a directory to find the interested files. Args: dir_path (str | obj:`Path`): Path of the directory. suffix (str | tuple(str)
annotator/uniformer/mmcv/utils/path.py:39
↓ 2 callersFunctionscatter
Scatter inputs to target gpus. The only difference from original :func:`scatter` is to add support for :type:`~mmcv.parallel.DataContainer`.
annotator/uniformer/mmcv/parallel/scatter_gather.py:9
↓ 2 callersFunctionscatter
Scatters tensor across multiple GPUs.
annotator/uniformer/mmcv/parallel/_functions.py:6
↓ 2 callersMethodscatter
(self, inputs, kwargs, device_ids)
annotator/uniformer/mmcv/parallel/distributed.py:26
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ldm/modules/image_degradation/bsrgan_light.py:98
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ldm/modules/image_degradation/bsrgan.py:99
↓ 2 callersMethodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor): The semantic segment
annotator/uniformer/mmseg/models/segmentors/base.py:208
↓ 2 callersMethodsince_last_check
Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns (float
annotator/uniformer/mmcv/utils/timer.py:74
↓ 2 callersFunctionsingle_gpu_test
Test with single GPU. Args: model (nn.Module): Model to be tested. data_loader (utils.data.Dataloader): Pytorch data loader.
annotator/uniformer/mmseg/apis/test.py:34
↓ 2 callersMethodsinglestep_dpm_solver_third_update
Singlestep solver DPM-Solver-3 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
ldm/models/diffusion/dpm_solver/dpm_solver.py:599
↓ 2 callersFunctionsplit
(x)
models/hack.py:47
↓ 2 callersMethodstart
Start the timer.
annotator/uniformer/mmcv/utils/timer.py:57
↓ 2 callersMethodstart
(self)
annotator/uniformer/mmcv/utils/progressbar.py:26
↓ 2 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
ldm/modules/ema.py:59
↓ 2 callersFunctiontrack_progress
Track the progress of tasks execution with a progress bar. Tasks are done with a simple for-loop. Args: func (callable): The functio
annotator/uniformer/mmcv/utils/progressbar.py:64
↓ 2 callersMethodtrain_step
(self, *inputs, **kwargs)
annotator/uniformer/mmcv/parallel/data_parallel.py:47
↓ 2 callersFunctiontrunc_normal_init
(module: nn.Module, mean: float = 0, std: float = 1,
annotator/uniformer/mmcv/cnn/utils/weight_init.py:73
↓ 2 callersFunctionuniform_init
(module, a=0, b=1, bias=0)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:85
↓ 2 callersMethodupdate_scale
update the current loss scale value when overflow happens.
annotator/uniformer/mmcv/runner/fp16_utils.py:372
↓ 2 callersMethodval_step
(self, *inputs, **kwargs)
annotator/uniformer/mmcv/parallel/data_parallel.py:69
↓ 2 callersFunctionwrap_fp16_model
Wrap the FP32 model to FP16. If you are using PyTorch >= 1.6, torch.cuda.amp is used as the backend, otherwise, original mmcv implementation
annotator/uniformer/mmcv/runner/fp16_utils.py:234
↓ 2 callersFunctionwrite_frame
(file_idx)
annotator/uniformer/mmcv/video/io.py:308
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
ldm/modules/attention.py:79
↓ 1 callersFunctionNEG_INF_DIAG
Returns a diagonal matrix of size [n, n]. The diagonal are all "-inf". This is for avoiding calculating the overlapped element in the Criss-C
annotator/uniformer/mmcv/ops/cc_attention.py:9
↓ 1 callersMethod__call__
(self, module)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:222
↓ 1 callersMethod__enter__
(self)
annotator/uniformer/mmcv/utils/timer.py:49
↓ 1 callersMethod__getattr__
(self, name)
annotator/uniformer/mmcv/utils/config.py:506
↓ 1 callersMethod__init__
(self, *args, by_epoch=False, efficient_test=False, **kwargs)
annotator/uniformer/mmseg/core/evaluation/eval_hooks.py:22
↓ 1 callersMethod__init__
(self, split, **kwargs)
annotator/uniformer/mmseg/datasets/pascal_context.py:47
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
annotator/uniformer/mmseg/models/backbones/resnext.py:134
↓ 1 callersMethod__init__
(self, extra, in_channels=3, conv_cfg=None,
annotator/uniformer/mmseg/models/backbones/hrnet.py:273
↓ 1 callersMethod__init__
(self, in_channels, out_channels, stride,
annotator/uniformer/mmseg/models/utils/inverted_residual.py:31
↓ 1 callersMethod__init__
(self, c1_in_channels, c1_channels, **kwargs)
annotator/uniformer/mmseg/models/decode_heads/sep_aspp_head.py:42
↓ 1 callersMethod__init__
(self, dilations=(1, 6, 12, 18), **kwargs)
annotator/uniformer/mmseg/models/decode_heads/aspp_head.py:64
↓ 1 callersMethod__init__
(self, reduction=2, use_scale=True, mode='embedded_gaussian
annotator/uniformer/mmseg/models/decode_heads/dnl_head.py:102
↓ 1 callersMethod__init__
(self, pool_scales, in_channels, channels, conv_cfg, norm_cfg, act_cfg, align_corners)
annotator/uniformer/mmseg/models/decode_heads/psp_head.py:24
↓ 1 callersMethod__init__
(self, num_codes=32, use_se_loss=True, add_lateral=False,
annotator/uniformer/mmseg/models/decode_heads/enc_head.py:78
↓ 1 callersMethod__init__
(self, filter_size, fusion, in_channels, channels, conv_cfg, norm_cfg, act_cfg)
annotator/uniformer/mmseg/models/decode_heads/dm_head.py:24
↓ 1 callersMethod__init__
(self, ema_channels, num_bases, num_stages,
annotator/uniformer/mmseg/models/decode_heads/ema_head.py:94
↓ 1 callersMethod__init__
(self, pool_scale, fusion, in_channels, channels, conv_cfg, norm_cfg, act_cfg)
annotator/uniformer/mmseg/models/decode_heads/apc_head.py:25
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:160
↓ 1 callersMethod__init__
(self, in_channels: int, out_channels: int, kernel_size: Un
annotator/uniformer/mmcv/ops/deform_conv.py:228
↓ 1 callersMethod__init__
(self, gamma, alpha, weight=None, reduction='mean')
annotator/uniformer/mmcv/ops/focal_loss.py:90
↓ 1 callersMethod__init__
(self, use_xyz: bool = True)
annotator/uniformer/mmcv/ops/group_points.py:141
↓ 1 callersMethod__init__
(self, start=True, print_tmpl=None)
annotator/uniformer/mmcv/utils/timer.py:38
↓ 1 callersMethod__init__
(self, dataloader, start=None, interval=1,
annotator/uniformer/mmcv/runner/hooks/evaluation.py:85
↓ 1 callersMethod__init__
(self, drop_prob=0.5, inplace=False)
annotator/uniformer/mmcv/cnn/bricks/drop.py:59
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:28
↓ 1 callersMethod__init__
(self)
annotator/openpose/model.py:25
↓ 1 callersMethod__init__
( self, head, features=256, backbone="vitb_rn50_384", readout="project
annotator/midas/midas/dpt_depth.py:27
↓ 1 callersMethod__init__
(self, ddconfig, lossconfig, embed_dim, ck
ldm/models/autoencoder.py:14
↓ 1 callersMethod_add_children
Add children for a registry. The ``registry`` will be added as children based on its scope. The parent registry could build objects f
annotator/uniformer/mmcv/utils/registry.py:214
↓ 1 callersFunction_augment
(img)
ldm/modules/image_degradation/utils_image.py:475
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:113
↓ 1 callersMethod_binary_op
(self, x1, x2)
annotator/uniformer/mmcv/ops/merge_cells.py:89
↓ 1 callersMethod_check_branches
Check branches configuration.
annotator/uniformer/mmseg/models/backbones/hrnet.py:46
↓ 1 callersMethod_check_input_divisible
(self, x)
annotator/uniformer/mmseg/models/backbones/unet.py:399
↓ 1 callersFunction_concat_dataset
Build :obj:`ConcatDataset by.
annotator/uniformer/mmseg/datasets/builder.py:25
↓ 1 callersMethod_convert_to_label_id
Convert trainId to id for cityscapes.
annotator/uniformer/mmseg/datasets/cityscapes.py:39
↓ 1 callersMethod_convert_to_onehot_labels
Convert segmentation label to onehot. Args: seg_label (Tensor): Segmentation label of shape (N, H, W). num_classes (i
annotator/uniformer/mmseg/models/decode_heads/enc_head.py:159
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:107
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:96
↓ 1 callersMethod_dump_init_info
Dump the initialization information to a file named `initialization.log.json` in workdir. Args: logger_name (str): The na
annotator/uniformer/mmcv/runner/base_module.py:137
↓ 1 callersMethod_evaluate_cityscapes
Evaluation in Cityscapes protocol. Args: results (list): Testing results of the dataset. logger (logging.Logger | str
annotator/uniformer/mmseg/datasets/cityscapes.py:164
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:35
↓ 1 callersMethod_file2dict
(filename, use_predefined_variables=True)
annotator/uniformer/mmcv/utils/config.py:179
↓ 1 callersMethod_forward_impl
(self, x)
annotator/mlsd/models/mbv2_mlsd_tiny.py:218
↓ 1 callersMethod_forward_impl
(self, x)
annotator/mlsd/models/mbv2_mlsd_large.py:218
↓ 1 callersMethod_freeze_stages
(self)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:242
↓ 1 callersMethod_freeze_stages
(self)
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:164
↓ 1 callersFunction_fuse_conv_bn
Fuse conv and bn into one module. Args: conv (nn.Module): Conv to be fused. bn (nn.Module): BN to be fused. Returns:
annotator/uniformer/mmcv/cnn/utils/fuse_conv_bn.py:6
↓ 1 callersMethod_get_checkpoint_loader
Finds a loader that supports the given path. Falls back to the local loader if no other loader is found. Args: path (str)
annotator/uniformer/mmcv/runner/checkpoint.py:211
↓ 1 callersFunction_get_conv
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:41
↓ 1 callersFunction_get_cuda_home
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:21
↓ 1 callersFunction_get_dataloader
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:49
↓ 1 callersFunction_get_extension
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:58
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:194
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:237
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:280
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:335
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:378
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:440
↓ 1 callersMethod_get_init_info
(self)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:506
↓ 1 callersMethod_get_max_memory
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:109
↓ 1 callersFunction_get_norm
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:81
↓ 1 callersFunction_get_paths_from_images
(path)
ldm/modules/image_degradation/utils_image.py:74
↓ 1 callersFunction_get_pool
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:69
↓ 1 callersFunction_get_shear_matrix
Generate the shear matrix for transformation. Args: magnitude (int | float): The magnitude used for shear. direction (str): The f
annotator/uniformer/mmcv/image/geometric.py:593
↓ 1 callersFunction_get_translate_matrix
Generate the translate matrix. Args: offset (int | float): The offset used for translate. direction (str): The translate directio
annotator/uniformer/mmcv/image/geometric.py:662
↓ 1 callersMethod_has_inf_or_nan
Check if params contain NaN.
annotator/uniformer/mmcv/runner/fp16_utils.py:358
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:49
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:43
↓ 1 callersFunction_init_dist_mpi
(backend, **kwargs)
annotator/uniformer/mmcv/runner/dist_utils.py:35
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
annotator/uniformer/mmcv/runner/dist_utils.py:27
← previousnext →401–500 of 2,265, ranked by callers