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
Function
analytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan.py:49
Function
annealing_linear
Calculate annealing linear learning rate. Linear anneal from `start` to `end` as percentage goes from 0.0 to 1.0. Args: start (float
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:645
Function
api_warning_wrapper
(old_func)
annotator/uniformer/mmcv/utils/misc.py:301
Function
apply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
annotator/midas/midas/transforms.py:6
Function
assert_attrs_equal
Check if attribute of class object is correct. Args: obj (object): Class object to be checked. expected_attrs (Dict[str, Any]): D
annotator/uniformer/mmcv/utils/testing.py:61
Function
assert_dict_contains_subset
Check if the dict_obj contains the expected_subset. Args: dict_obj (Dict[Any, Any]): Dict object to be checked. expected_subset (
annotator/uniformer/mmcv/utils/testing.py:42
Function
assert_dict_has_keys
Check if the obj has all the expected_keys. Args: obj (Dict[str, Any]): Object to be checked. expected_keys (List[str]): Keys exp
annotator/uniformer/mmcv/utils/testing.py:77
Function
assert_is_norm_layer
Check if the module is a norm layer. Args: module (nn.Module): The module to be checked. Returns: bool: Whether the module i
annotator/uniformer/mmcv/utils/testing.py:105
Function
assert_keys_equal
Check if target_keys is equal to result_keys. Args: result_keys (List[str]): Result keys to be checked. target_keys (List[str]):
annotator/uniformer/mmcv/utils/testing.py:92
Function
assert_params_all_zeros
Check if the parameters of the module is all zeros. Args: module (nn.Module): The module to be checked. Returns: bool: Wheth
annotator/uniformer/mmcv/utils/testing.py:120
Function
assert_tensor_type
(func)
annotator/uniformer/mmcv/parallel/data_container.py:7
Method
aug_test
Test with augmentations. Only rescale=True is supported.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:281
Function
augment_img_np3
(img, mode=0)
ldm/modules/image_degradation/utils_image.py:441
Function
augment_img_tensor
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:422
Function
augment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:401
Function
augment_imgs
(img_list, hflip=True, rot=True)
ldm/modules/image_degradation/utils_image.py:469
Method
auto_argparser
Generate argparser from config file automatically (experimental)
annotator/uniformer/mmcv/utils/config.py:366
Function
auto_contrast
Auto adjust image contrast. This function maximize (normalize) image contrast by first removing cutoff percent of the lightest and darkest pi
annotator/uniformer/mmcv/image/photometric.py:238
Function
auto_fp16
Decorator to enable fp16 training automatically. This decorator is useful when you write custom modules and want to support mixed precision t
annotator/uniformer/mmcv/runner/fp16_utils.py:55
Function
auto_fp16_wrapper
(old_func)
annotator/uniformer/mmcv/runner/fp16_utils.py:88
Method
backward
(ctx, a=None, b=None)
annotator/uniformer/mmcv/ops/three_nn.py:47
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/carafe.py:58
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/carafe.py:147
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/border_align.py:48
Method
backward
Args: grad_out (Tensor): (B, C, N) tensor with gradients of outputs Returns: Tensor: (B, C, M) tensor with g
annotator/uniformer/mmcv/ops/three_interpolate.py:47
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:97
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/masked_conv.py:79
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/correlation.py:63
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/psa_mask.py:48
Method
backward
Args: grad_out (torch.Tensor): (B, out_dim, npoint, K) Returns: grad_scores (torch.Tensor): (B, npoint, K, M
annotator/uniformer/mmcv/ops/assign_score_withk.py:81
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/tin_shift.py:35
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:32
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:53
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:74
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:95
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/roi_align.py:110
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/deform_conv.py:114
Method
backward
(ctx, grad_voxel_feats, grad_voxel_coors=None)
annotator/uniformer/mmcv/ops/scatter_points.py:44
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/deform_roi_pool.py:67
Method
backward
(ctx, gradgrad_input)
annotator/uniformer/mmcv/ops/upfirdn2d.py:152
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/upfirdn2d.py:225
Method
backward
(ctx, a=None)
annotator/uniformer/mmcv/ops/ball_query.py:51
Method
backward
(ctx, grad_out)
annotator/uniformer/mmcv/ops/roiaware_pool3d.py:105
Method
backward
(ctx, grad_out)
annotator/uniformer/mmcv/ops/roipoint_pool3d.py:76
Method
backward
(self, grad_output)
annotator/uniformer/mmcv/ops/sync_bn.py:129
Method
backward
(ctx, gradgrad_input, gradgrad_bias)
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:142
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:181
Method
backward
(xyz, a=None)
annotator/uniformer/mmcv/ops/furthest_point_sample.py:46
Method
backward
(xyz, a=None)
annotator/uniformer/mmcv/ops/furthest_point_sample.py:78
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/roi_align_rotated.py:82
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/roi_pool.py:52
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/focal_loss.py:66
Method
backward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/focal_loss.py:171
Method
backward
(ctx, grad_out)
annotator/uniformer/mmcv/ops/gather_points.py:40
Method
backward
GPU version of backward function. Args: grad_output (Tensor): Gradient of output tensor of forward. Retu
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:61
Method
backward
Args: grad_out (Tensor): (B, C, npoint, nsample) tensor of the gradients of the output from forward. Ret
annotator/uniformer/mmcv/ops/group_points.py:202
Method
backward
(ctx, grad)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:36
Method
backward
(ctx, *output_grads)
ldm/modules/diffusionmodules/util.py:133
Function
batch_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:498
Function
batched_nms
Performs non-maximum suppression in a batched fashion. Modified from https://github.com/pytorch/vision/blob /505cd6957711af790211896d32b40291
annotator/uniformer/mmcv/ops/nms.py:260
Function
bbox_overlaps
Calculate overlap between two set of bboxes. If ``aligned`` is ``False``, then calculate the ious between each bbox of bboxes1 and bboxes2, o
annotator/uniformer/mmcv/ops/bbox.py:7
Method
before_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/memory.py:19
Method
before_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/iter_timer.py:10
Method
before_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/sampler_seed.py:14
Method
before_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:139
Method
before_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:107
Method
before_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/iter_timer.py:13
Method
before_run
Preparing steps before Mixed Precision Training.
annotator/uniformer/mmcv/runner/hooks/optimizer.py:184
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/evaluation.py:202
Method
before_run
To resume model with it's ema parameters more friendly. Register ema parameter as ``named_buffer`` to model
annotator/uniformer/mmcv/runner/hooks/ema.py:41
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:273
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:371
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/profiler.py:107
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/checkpoint.py:71
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:13
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:472
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:575
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:24
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:89
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:62
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:34
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:133
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:36
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:62
Method
before_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:50
Method
before_train_epoch
Evaluate the model only at the start of training by epoch.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:236
Method
before_train_epoch
We recover model's parameter from ema backup after last epoch's EvalHook.
annotator/uniformer/mmcv/runner/hooks/ema.py:78
Method
before_train_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:128
Method
before_train_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:31
Method
before_train_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:126
Method
before_train_iter
Evaluate the model only at the start of training by iteration.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:228
Method
before_train_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:134
Method
before_train_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:43
Method
before_train_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:137
Method
before_val_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:34
Method
before_val_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:46
Function
betas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
ldm/modules/diffusionmodules/util.py:77
Function
bgr2ycbcr
Convert a BGR image to YCbCr image. The bgr version of rgb2ycbcr. It implements the ITU-R BT.601 conversion for standard-definition telev
annotator/uniformer/mmcv/image/colorspace.py:177
Function
binary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:57
Function
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan_light.py:127
← previous
next →
1,401–1,500 of 2,265, ranked by callers