MCPcopy Create free account

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

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

↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list(), only_model=False)
ldm/models/diffusion/ddpm.py:1521
↓ 1 callersFunctioninit_global
(sd_weights_path, config_path, output_path)
utils/prepare_weights.py:28
↓ 1 callersFunctioninit_local
(sd_weights_path, config_path, output_path)
utils/prepare_weights.py:11
↓ 1 callersMethodinit_offset
(self)
annotator/uniformer/mmcv/ops/deform_conv.py:370
↓ 1 callersFunctioninit_pool
(process_num, initializer=None, initargs=None)
annotator/uniformer/mmcv/utils/progressbar.py:98
↓ 1 callersFunctioninit_segmentor
Initialize a segmentor from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
annotator/uniformer/mmseg/apis/inference.py:11
↓ 1 callersMethodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:59
↓ 1 callersMethodinit_weights
(self, pretrained)
annotator/uniformer/mmseg/models/backbones/uniformer.py:358
↓ 1 callersMethodinit_weights
Initialize weight of later layer.
annotator/uniformer/mmseg/models/utils/self_attention_block.py:93
↓ 1 callersMethodinit_weights
(self)
annotator/uniformer/mmcv/ops/saconv.py:81
↓ 1 callersMethodinit_weights
(self)
annotator/uniformer/mmcv/ops/carafe.py:258
↓ 1 callersMethodinit_weights
(self)
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:240
↓ 1 callersMethodinit_weights
Default initialization for Parameters of Module.
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:230
↓ 1 callersMethodinit_weights
(self)
annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:403
↓ 1 callersMethodinit_weights
(self)
annotator/uniformer/mmcv/cnn/bricks/conv_module.py:175
↓ 1 callersMethodinit_weights
(self)
annotator/uniformer/mmcv/cnn/bricks/upsample.py:41
↓ 1 callersMethodinit_weights
(self, std=0.01, zeros_init=True)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:99
↓ 1 callersFunctioninitialize
Initialize a module. Args: module (``torch.nn.Module``): the module will be initialized. init_cfg (dict | list[dict]): initializa
annotator/uniformer/mmcv/cnn/utils/weight_init.py:550
↓ 1 callersMethodinstantiate_cond_stage
(self, config)
ldm/models/diffusion/ddpm.py:622
↓ 1 callersMethodinstantiate_first_stage
(self, config)
ldm/models/diffusion/ddpm.py:615
↓ 1 callersMethodinstantiate_low_stage
(self, config)
ldm/models/diffusion/ddpm.py:1363
↓ 1 callersMethodinstantiate_low_stage
(self, config)
ldm/models/diffusion/ddpm.py:1752
↓ 1 callersFunctionintegrate
(local_weights, global_weights, config_path, output_path)
utils/prepare_weights.py:45
↓ 1 callersFunctionintersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray | str): Prediction segmentation map or predict result filename.
annotator/uniformer/mmseg/core/evaluation/metrics.py:25
↓ 1 callersFunctionis_filepath
(x)
annotator/uniformer/mmcv/utils/path.py:9
↓ 1 callersFunctionis_image_file
(filename)
ldm/modules/image_degradation/utils_image.py:29
↓ 1 callersFunctionis_in_onnx_export_without_custom_ops
()
annotator/uniformer/mmcv/ops/point_sample.py:87
↓ 1 callersMethodis_last_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:67
↓ 1 callersFunctionis_rocm_pytorch
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:9
↓ 1 callersMethodis_scalar
Tell the input variable is a scalar or not. Args: val: Input variable. include_np (bool): Whether include 0-d np.ndar
annotator/uniformer/mmcv/runner/hooks/logger/base.py:39
↓ 1 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:261
↓ 1 callersMethodkernel_normalizer
(self, mask)
annotator/uniformer/mmcv/ops/carafe.py:264
↓ 1 callersFunctionload
(module, prefix='')
annotator/uniformer/mmcv/runner/checkpoint.py:67
↓ 1 callersFunctionload
(module, prefix='')
annotator/uniformer/mmcv_custom/checkpoint.py:67
↓ 1 callersMethodload_annotations
Load annotation from directory. Args: img_dir (str): Path to image directory img_suffix (str): Suffix of images.
annotator/uniformer/mmseg/datasets/custom.py:120
↓ 1 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
annotator/uniformer/mmcv_custom/checkpoint.py:286
↓ 1 callersMethodload_checkpoint
load checkpoint through URL scheme path. Args: filename (str): checkpoint file name with given prefix map_location (s
annotator/uniformer/mmcv/runner/checkpoint.py:227
↓ 1 callersFunctionload_fileclient_dist
In distributed setting, this function only download checkpoint at local rank 0.
annotator/uniformer/mmcv_custom/checkpoint.py:151
↓ 1 callersFunctionload_model
(model_type)
annotator/midas/api.py:77
↓ 1 callersFunctionload_pavimodel_dist
In distributed setting, this function only download checkpoint at local rank 0.
annotator/uniformer/mmcv_custom/checkpoint.py:123
↓ 1 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
annotator/uniformer/mmcv_custom/checkpoint.py:41
↓ 1 callersMethodlog_images
(self, batch, N=4, n_row=2, sample=False, ddim_steps=50, ddim_eta=0.0, plot_denoise_rows=False,
models/uni_controlnet.py:73
↓ 1 callersMethodlog_img
(self, pl_module, batch, batch_idx, split="train")
models/logger.py:60
↓ 1 callersMethodlog_local
(self, save_dir, split, images, global_step, current_epoch, batch_idx)
models/logger.py:30
↓ 1 callersMethodlosses
Compute segmentation loss.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:215
↓ 1 callersMethodlosses
Compute segmentation loss.
annotator/uniformer/mmseg/models/decode_heads/point_head.py:248
↓ 1 callersMethodlosses
Compute ``pam_cam``, ``pam``, ``cam`` loss.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:164
↓ 1 callersFunctionmain
()
src/train/train.py:31
↓ 1 callersFunctionmake_color_wheel
Build a color wheel. Args: bins(list or tuple, optional): Specify the number of bins for each color range, corresponding to s
annotator/uniformer/mmcv/visualization/optflow.py:76
↓ 1 callersMethodmake_cond_schedule
(self, )
ldm/models/diffusion/ddpm.py:584
↓ 1 callersMethodmake_layer
Stack InvertedResidual blocks to build a layer for MobileNetV2. Args: out_channels (int): out_channels of block. num_
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:107
↓ 1 callersFunctionmake_res_layer
(block, inplanes, planes, blocks,
annotator/uniformer/mmcv/cnn/resnet.py:143
↓ 1 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
annotator/uniformer/mmseg/models/backbones/resnet.py:523
↓ 1 callersMethodmake_schedule
(self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0., verbose=True)
ldm/models/diffusion/ddim.py:23
↓ 1 callersMethodmake_schedule
(self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0., verbose=True)
ldm/models/diffusion/plms.py:25
↓ 1 callersMethodmake_schedule
(self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0., verbose=True)
models/ddim_hacked.py:23
↓ 1 callersMethodmake_stage_plugins
make plugins for ResNet 'stage_idx'th stage . Currently we support to insert 'context_block', 'empirical_attention_block', 'nonlocal_
annotator/uniformer/mmseg/models/backbones/resnet.py:470
↓ 1 callersFunctionmake_vgg_layer
(inplanes, planes, num_blocks, dilation=1,
annotator/uniformer/mmcv/cnn/vgg.py:19
↓ 1 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
ldm/modules/diffusionmodules/util.py:195
↓ 1 callersFunctionmodel_wrapper
Create a wrapper function for the noise prediction model. DPM-Solver needs to solve the continuous-time diffusion ODEs. For DPMs trained on discre
ldm/models/diffusion/dpm_solver/dpm_solver.py:161
↓ 1 callersFunctionmulti_scale_deformable_attn_pytorch
CPU version of multi-scale deformable attention. Args: value (Tensor): The value has shape (bs, num_keys, mum_heads, embed_di
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:94
↓ 1 callersMethodmultistep_dpm_solver_second_update
Multistep solver DPM-Solver-2 from time `t_prev_list[-1]` to time `t`. Args: x: A pytorch tensor. The initial value at ti
ldm/models/diffusion/dpm_solver/dpm_solver.py:723
↓ 1 callersMethodmultistep_dpm_solver_third_update
Multistep solver DPM-Solver-3 from time `t_prev_list[-1]` to time `t`. Args: x: A pytorch tensor. The initial value at ti
ldm/models/diffusion/dpm_solver/dpm_solver.py:780
↓ 1 callersMethodnorm0
nn.Module: the normalization layer named "norm0"
annotator/uniformer/mmseg/models/backbones/resnest.py:108
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
annotator/uniformer/mmseg/models/backbones/resnest.py:113
↓ 1 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:58
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
annotator/uniformer/mmseg/models/backbones/resnet.py:528
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:63
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:255
↓ 1 callersFunctionnorm_thresholding
(x0, value)
ldm/models/diffusion/sampling_util.py:14
↓ 1 callersFunctionnormal_kl
source: https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/losses.py#L12 Compute the K
ldm/modules/distributions/distributions.py:65
↓ 1 callersFunctionnormalize
Normalize input grid from [-1, 1] to [0, 1] Args: grid (Tensor): The grid to be normalize, range [-1, 1]. Returns: Tensor: Nor
annotator/uniformer/mmcv/ops/point_sample.py:94
↓ 1 callersMethodp_losses
(self, x_start, t, noise=None)
ldm/models/diffusion/ddpm.py:382
↓ 1 callersMethodp_losses
(self, x_start, cond, t, noise=None)
ldm/models/diffusion/ddpm.py:885
↓ 1 callersMethodp_mean_variance
(self, x, t, clip_denoised: bool)
ldm/models/diffusion/ddpm.py:313
↓ 1 callersMethodp_mean_variance
(self, x, c, t, clip_denoised: bool, return_codebook_ids=False, quantize_denoised=False,
ldm/models/diffusion/ddpm.py:922
↓ 1 callersMethodp_sample
(self, x, t, clip_denoised=True, repeat_noise=False)
ldm/models/diffusion/ddpm.py:326
↓ 1 callersMethodp_sample_loop
(self, shape, return_intermediates=False)
ldm/models/diffusion/ddpm.py:335
↓ 1 callersMethodp_sample_loop
(self, cond, shape, return_intermediates=False, x_T=None, verbose=True, callback=None, t
ldm/models/diffusion/ddpm.py:1041
↓ 1 callersMethodp_sample_plms
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
ldm/models/diffusion/plms.py:178
↓ 1 callersFunctionpad
(x, p, i)
models/hack.py:50
↓ 1 callersMethodpam_cls_seg
PAM feature classification.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:128
↓ 1 callersMethodparse_uri_prefix
Parse the prefix of a uri. Args: uri (str | Path): Uri to be parsed that contains the file prefix. Examples:
annotator/uniformer/mmcv/fileio/file_client.py:831
↓ 1 callersFunctionpatch_forward_method
Patch the forward method of a module. Args: func (callable): The original forward method. src_type (torch.dtype): Type of input a
annotator/uniformer/mmcv/runner/fp16_utils.py:283
↓ 1 callersFunctionpatch_norm_fp32
Recursively convert normalization layers from FP16 to FP32. Args: module (nn.Module): The modules to be converted in FP16. Returns:
annotator/uniformer/mmcv/runner/fp16_utils.py:263
↓ 1 callersFunctionpatches_from_image
(img, p_size=512, p_overlap=64, p_max=800)
ldm/modules/image_degradation/utils_image.py:93
↓ 1 callersMethodplms_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
ldm/models/diffusion/plms.py:118
↓ 1 callersFunctionpred_lines
(image, model, input_shape=[512, 512], score_thr=0.10, dist_thr=2
annotator/mlsd/utils.py:47
↓ 1 callersMethodprepare_test_img
Get testing data after pipeline. Args: idx (int): Index of data. Returns: dict: Testing data after pipeline
annotator/uniformer/mmseg/datasets/custom.py:211
↓ 1 callersMethodprepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
annotator/uniformer/mmseg/datasets/custom.py:194
↓ 1 callersFunctionprint_model_with_flops
Print a model with FLOPs for each layer. Args: model (nn.Module): The model to be printed. total_flops (float): Total FLOPs of th
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:198
↓ 1 callersMethodpsp_forward
Forward function of PSP module.
annotator/uniformer/mmseg/models/decode_heads/uper_head.py:76
↓ 1 callersMethodput
Save data to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data.
annotator/uniformer/mmcv/fileio/file_client.py:179
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
ldm/models/diffusion/ddpm.py:272
↓ 1 callersMethodq_sample
(self, x_start, t, noise=None)
ldm/modules/diffusionmodules/upscaling.py:44
↓ 1 callersFunctionquantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clippe
annotator/uniformer/mmcv/arraymisc/quantization.py:5
↓ 1 callersFunctionquantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args: flow
annotator/uniformer/mmcv/video/optflow.py:91
↓ 1 callersFunctionrandom_crop
(lq, hq, sf=4, lq_patchsize=64)
ldm/modules/image_degradation/bsrgan_light.py:430
↓ 1 callersMethodrandom_select
Randomly select an img_scale from given candidates. Args: img_scales (list[tuple]): Images scales for selection. Returns
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:68
↓ 1 callersFunctionread_anno
(anno_path)
src/train/util.py:6
← previousnext →701–800 of 2,265, ranked by callers