Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShihaoZhaoZSH/Uni-ControlNet
/ functions
Functions
2,265 in github.com/ShihaoZhaoZSH/Uni-ControlNet
⨍
Functions
2,265
◇
Types & classes
474
↳
Endpoints
1
↓ 1 callers
Function
conv_ws_2d
(input, weight, bias=None, stride=1, padding=0,
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:9
↓ 1 callers
Method
current_momentum
Get current momentums. Returns: list[float] | dict[str, list[float]]: Current momentums of all param groups. If t
annotator/uniformer/mmcv/runner/base_runner.py:224
↓ 1 callers
Method
ddim_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
ldm/models/diffusion/ddim.py:125
↓ 1 callers
Method
ddim_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
models/ddim_hacked.py:125
↓ 1 callers
Method
denoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
ldm/models/diffusion/dpm_solver/dpm_solver.py:463
↓ 1 callers
Method
deprecated_register_module
(self, cls=None, force=False)
annotator/uniformer/mmcv/utils/registry.py:250
↓ 1 callers
Function
dequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
annotator/uniformer/mmcv/arraymisc/quantization.py:32
↓ 1 callers
Function
dequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum value
annotator/uniformer/mmcv/video/optflow.py:119
↓ 1 callers
Function
dice_loss
(pred, target, valid_mask, smooth=1, exponent=2,
annotator/uniformer/mmseg/models/losses/dice_loss.py:12
↓ 1 callers
Method
dpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`.
ldm/models/diffusion/dpm_solver/dpm_solver.py:878
↓ 1 callers
Function
drop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). We follow the implementation https://github.com/
annotator/uniformer/mmcv/cnn/bricks/drop.py:9
↓ 1 callers
Method
dump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:21
↓ 1 callers
Function
enable_sliced_attention
()
models/hack.py:17
↓ 1 callers
Method
encode
(self, x)
ldm/models/autoencoder.py:82
↓ 1 callers
Method
encode_with_transformer
(self, text)
ldm/modules/encoders/modules.py:173
↓ 1 callers
Method
every_n_inner_iters
(self, runner, n)
annotator/uniformer/mmcv/runner/hooks/hook.py:58
↓ 1 callers
Method
extract_feat
Placeholder for extract features from images.
annotator/uniformer/mmseg/models/segmentors/base.py:40
↓ 1 callers
Function
f_score
calcuate the f-score value. Args: precision (float | torch.Tensor): The precision value. recall (float | torch.Tensor): The recal
annotator/uniformer/mmseg/core/evaluation/metrics.py:8
↓ 1 callers
Method
feature_reassemble
(self, x, mask)
annotator/uniformer/mmcv/ops/carafe.py:277
↓ 1 callers
Function
flow2rgb
Convert flow map to RGB image. Args: flow (ndarray): Array of optical flow. color_wheel (ndarray or None): Color wheel used to ma
annotator/uniformer/mmcv/visualization/optflow.py:24
↓ 1 callers
Function
flowread
Read an optical flow map. Args: flow_or_path (ndarray or str): A flow map or filepath. quantize (bool): whether to read quantized
annotator/uniformer/mmcv/video/optflow.py:12
↓ 1 callers
Method
format_results
Format the results into dir (standard format for Cityscapes evaluation). Args: results (list): Testing results of the dat
annotator/uniformer/mmseg/datasets/cityscapes.py:91
↓ 1 callers
Method
forward
(self, x)
annotator/sketch/model/module.py:68
↓ 1 callers
Method
forward
Forward function.
annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:119
↓ 1 callers
Method
forward
Forward function.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:142
↓ 1 callers
Method
forward
(self, x)
annotator/midas/midas/dpt_depth.py:67
↓ 1 callers
Method
forward
(self, x, t=None, context=None)
ldm/modules/diffusionmodules/model.py:400
↓ 1 callers
Method
forward_features
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:383
↓ 1 callers
Function
forward_vit
(pretrained, x)
annotator/midas/midas/vit.py:56
↓ 1 callers
Method
freeze
(self)
ldm/modules/encoders/modules.py:69
↓ 1 callers
Method
freeze
(self)
ldm/modules/encoders/modules.py:111
↓ 1 callers
Method
freeze
(self)
ldm/modules/encoders/modules.py:163
↓ 1 callers
Method
fromstring
Generate config from config str. Args: cfg_str (str): Config str. file_format (str): Config file format corresponding
annotator/uniformer/mmcv/utils/config.py:338
↓ 1 callers
Function
fspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan_light.py:186
↓ 1 callers
Function
fspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan.py:187
↓ 1 callers
Function
fspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan_light.py:200
↓ 1 callers
Function
fspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan.py:201
↓ 1 callers
Function
fused_bias_leakyrelu
Fused bias leaky ReLU function. This function is introduced in the StyleGAN2: http://arxiv.org/abs/1912.04958 The bias term comes from t
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:225
↓ 1 callers
Function
generate_grid
Generate regular square grid of points in [0, 1] x [0, 1] coordinate space. Args: num_grid (int): The number of grids to sample, one
annotator/uniformer/mmcv/ops/point_sample.py:116
↓ 1 callers
Method
get
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:694
↓ 1 callers
Method
get_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
annotator/uniformer/mmseg/datasets/custom.py:158
↓ 1 callers
Function
get_build_config
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:33
↓ 1 callers
Method
get_classes_and_palette
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
annotator/uniformer/mmseg/datasets/custom.py:243
↓ 1 callers
Function
get_compiler_version
()
annotator/uniformer/mmcv/ops/info.py:10
↓ 1 callers
Function
get_compiling_cuda_version
()
annotator/uniformer/mmcv/ops/info.py:13
↓ 1 callers
Function
get_deprecated_model_names
()
annotator/uniformer/mmcv/runner/checkpoint.py:142
↓ 1 callers
Function
get_deprecated_model_names
()
annotator/uniformer/mmcv_custom/checkpoint.py:205
↓ 1 callers
Function
get_external_models
()
annotator/uniformer/mmcv/runner/checkpoint.py:121
↓ 1 callers
Function
get_external_models
()
annotator/uniformer/mmcv_custom/checkpoint.py:184
↓ 1 callers
Function
get_fake_func
(name, e)
annotator/uniformer/mmcv/utils/ext_loader.py:41
↓ 1 callers
Function
get_git_hash
Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defau
annotator/uniformer/mmcv/utils/version_utils.py:66
↓ 1 callers
Method
get_gt_seg_maps
Get ground truth segmentation maps for evaluation.
annotator/uniformer/mmseg/datasets/custom.py:230
↓ 1 callers
Function
get_image_paths
(dataroot)
ldm/modules/image_degradation/utils_image.py:67
↓ 1 callers
Method
get_input
(self, batch, k, cond_key=None, bs=None, log_mode=False)
ldm/models/diffusion/ddpm.py:1371
↓ 1 callers
Method
get_input
(self, batch, k, bs=None, *args, **kwargs)
models/uni_controlnet.py:25
↓ 1 callers
Function
get_input_device
(input)
annotator/uniformer/mmcv/parallel/_functions.py:51
↓ 1 callers
Method
get_lr_tags
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:92
↓ 1 callers
Function
get_mmcls_models
()
annotator/uniformer/mmcv/runner/checkpoint.py:135
↓ 1 callers
Function
get_mmcls_models
()
annotator/uniformer/mmcv_custom/checkpoint.py:198
↓ 1 callers
Method
get_momentum_tags
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:102
↓ 1 callers
Function
get_obj_from_str
(string, reload=False)
ldm/util.py:82
↓ 1 callers
Function
get_onnxruntime_op_path
()
annotator/uniformer/mmcv/ops/info.py:27
↓ 1 callers
Method
get_orders_and_timesteps_for_singlestep_solver
Get the order of each step for sampling by the singlestep DPM-Solver. We combine both DPM-Solver-1,2,3 to use all the function evalua
ldm/models/diffusion/dpm_solver/dpm_solver.py:405
↓ 1 callers
Function
get_palette
Get class palette (RGB) of a dataset.
annotator/uniformer/mmseg/core/evaluation/class_names.py:138
↓ 1 callers
Method
get_palette_for_custom_classes
(self, class_names, palette=None)
annotator/uniformer/mmseg/datasets/custom.py:287
↓ 1 callers
Method
get_points_test
Sample points for testing. Find ``num_points`` most uncertain points from ``uncertainty_map``. Args: seg_logits (Tensor)
annotator/uniformer/mmseg/models/decode_heads/point_head.py:310
↓ 1 callers
Method
get_points_train
Sample points for training. Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The uncertainties are calcu
annotator/uniformer/mmseg/models/decode_heads/point_head.py:256
↓ 1 callers
Method
get_position_embedding
(self, h, w, h_kv
annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:166
↓ 1 callers
Function
get_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:388
↓ 1 callers
Function
get_priority
Get priority value. Args: priority (int or str or :obj:`Priority`): Priority. Returns: int: The priority value.
annotator/uniformer/mmcv/runner/priority.py:42
↓ 1 callers
Function
get_sampler_cls
Get the type and mode of points sampler. Args: sampler_type (str): The type of points sampler. The valid value are "D-FPS", "
annotator/uniformer/mmcv/ops/points_sampler.py:37
↓ 1 callers
Function
get_shape_from_feature_map
Get spatial resolution of input feature map considering exporting to onnx mode. Args: x (torch.Tensor): Input tensor, shape (N, C, H,
annotator/uniformer/mmcv/ops/point_sample.py:168
↓ 1 callers
Method
get_size
(self, width, height)
annotator/midas/midas/transforms.py:105
↓ 1 callers
Function
get_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
annotator/uniformer/mmcv/runner/checkpoint.py:590
↓ 1 callers
Function
get_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
annotator/uniformer/mmcv_custom/checkpoint.py:394
↓ 1 callers
Method
get_step
Get the total training step/epoch.
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:74
↓ 1 callers
Function
get_time_str
()
annotator/uniformer/mmcv/runner/utils.py:31
↓ 1 callers
Function
get_timestamp
()
ldm/modules/image_degradation/utils_image.py:33
↓ 1 callers
Function
get_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
ldm/modules/diffusionmodules/model.py:20
↓ 1 callers
Function
get_torchvision_models
()
annotator/uniformer/mmcv/runner/checkpoint.py:109
↓ 1 callers
Method
get_triggered_stages
(self)
annotator/uniformer/mmcv/runner/hooks/hook.py:73
↓ 1 callers
Method
get_unconditional_conditioning
(self, N)
models/uni_controlnet.py:69
↓ 1 callers
Function
gm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan_light.py:85
↓ 1 callers
Function
gm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan.py:86
↓ 1 callers
Function
gray2bgr
Convert a grayscale image to BGR image. Args: img (ndarray): The input image. Returns: ndarray: The converted BGR image.
annotator/uniformer/mmcv/image/colorspace.py:56
↓ 1 callers
Method
has_batch_norm
(self, module)
annotator/uniformer/mmcv/runner/hooks/optimizer.py:76
↓ 1 callers
Method
hue
Hue distortion.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:838
↓ 1 callers
Function
imnormalize_
Inplace normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used fo
annotator/uniformer/mmcv/image/photometric.py:25
↓ 1 callers
Function
impad
Pad the given image to a certain shape or pad on all sides with specified padding mode and padding value. Args: img (ndarray): Image
annotator/uniformer/mmcv/image/geometric.py:440
↓ 1 callers
Method
import_dvclive
(self)
annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:41
↓ 1 callers
Method
import_mlflow
(self)
annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:51
↓ 1 callers
Function
import_modules_from_strings
Import modules from the given list of strings. Args: imports (list | str | None): The given module names to be imported. allow_fa
annotator/uniformer/mmcv/utils/misc.py:39
↓ 1 callers
Method
import_neptune
(self)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:52
↓ 1 callers
Function
imread_uint
(path, n_channels=3)
ldm/modules/image_degradation/utils_image.py:185
↓ 1 callers
Function
imssave
imgs: list, N images of size WxHxC
ldm/modules/image_degradation/utils_image.py:112
↓ 1 callers
Function
infer_abbr
Infer abbreviation from the class name. When we build a norm layer with `build_norm_layer()`, we want to preserve the norm type in variable n
annotator/uniformer/mmcv/cnn/bricks/norm.py:23
↓ 1 callers
Function
infer_abbr
Infer abbreviation from the class name. This method will infer the abbreviation to map class types to abbreviations. Rule 1: If the clas
annotator/uniformer/mmcv/cnn/bricks/plugin.py:12
↓ 1 callers
Method
infer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Example: # in mmdet/mod
annotator/uniformer/mmcv/utils/registry.py:125
↓ 1 callers
Function
inference_segmentor
Inference image(s) with the segmentor. Args: model (nn.Module): The loaded segmentor. imgs (str/ndarray or list[str/ndarray]): Ei
annotator/uniformer/mmseg/apis/inference.py:69
↓ 1 callers
Method
init_from_ckpt
(self, path, ignore_keys=list())
ldm/models/autoencoder.py:52
← previous
next →
601–700 of 2,265, ranked by callers