MCPcopy Create free account

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

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

Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan.py:49
Functionannealing_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
Functionapi_warning_wrapper
(old_func)
annotator/uniformer/mmcv/utils/misc.py:301
Functionapply_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
Functionassert_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
Functionassert_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
Functionassert_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
Functionassert_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
Functionassert_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
Functionassert_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
Functionassert_tensor_type
(func)
annotator/uniformer/mmcv/parallel/data_container.py:7
Methodaug_test
Test with augmentations. Only rescale=True is supported.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:281
Functionaugment_img_np3
(img, mode=0)
ldm/modules/image_degradation/utils_image.py:441
Functionaugment_img_tensor
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:422
Functionaugment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:401
Functionaugment_imgs
(img_list, hflip=True, rot=True)
ldm/modules/image_degradation/utils_image.py:469
Methodauto_argparser
Generate argparser from config file automatically (experimental)
annotator/uniformer/mmcv/utils/config.py:366
Functionauto_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
Functionauto_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
Functionauto_fp16_wrapper
(old_func)
annotator/uniformer/mmcv/runner/fp16_utils.py:88
Methodbackward
(ctx, a=None, b=None)
annotator/uniformer/mmcv/ops/three_nn.py:47
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/carafe.py:58
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/carafe.py:147
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/border_align.py:48
Methodbackward
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
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:97
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/masked_conv.py:79
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/correlation.py:63
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/psa_mask.py:48
Methodbackward
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
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/tin_shift.py:35
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:32
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:53
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:74
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/corner_pool.py:95
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/roi_align.py:110
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/deform_conv.py:114
Methodbackward
(ctx, grad_voxel_feats, grad_voxel_coors=None)
annotator/uniformer/mmcv/ops/scatter_points.py:44
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/deform_roi_pool.py:67
Methodbackward
(ctx, gradgrad_input)
annotator/uniformer/mmcv/ops/upfirdn2d.py:152
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/upfirdn2d.py:225
Methodbackward
(ctx, a=None)
annotator/uniformer/mmcv/ops/ball_query.py:51
Methodbackward
(ctx, grad_out)
annotator/uniformer/mmcv/ops/roiaware_pool3d.py:105
Methodbackward
(ctx, grad_out)
annotator/uniformer/mmcv/ops/roipoint_pool3d.py:76
Methodbackward
(self, grad_output)
annotator/uniformer/mmcv/ops/sync_bn.py:129
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:142
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:181
Methodbackward
(xyz, a=None)
annotator/uniformer/mmcv/ops/furthest_point_sample.py:46
Methodbackward
(xyz, a=None)
annotator/uniformer/mmcv/ops/furthest_point_sample.py:78
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/roi_align_rotated.py:82
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/roi_pool.py:52
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/focal_loss.py:66
Methodbackward
(ctx, grad_output)
annotator/uniformer/mmcv/ops/focal_loss.py:171
Methodbackward
(ctx, grad_out)
annotator/uniformer/mmcv/ops/gather_points.py:40
Methodbackward
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
Methodbackward
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
Methodbackward
(ctx, grad)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:36
Methodbackward
(ctx, *output_grads)
ldm/modules/diffusionmodules/util.py:133
Functionbatch_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:498
Functionbatched_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
Functionbbox_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
Methodbefore_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/memory.py:19
Methodbefore_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/iter_timer.py:10
Methodbefore_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/sampler_seed.py:14
Methodbefore_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:139
Methodbefore_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:107
Methodbefore_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/iter_timer.py:13
Methodbefore_run
Preparing steps before Mixed Precision Training.
annotator/uniformer/mmcv/runner/hooks/optimizer.py:184
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/evaluation.py:202
Methodbefore_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
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:273
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:371
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/profiler.py:107
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/checkpoint.py:71
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:13
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:472
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:575
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:24
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:89
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:62
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:34
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:133
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:36
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:62
Methodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:50
Methodbefore_train_epoch
Evaluate the model only at the start of training by epoch.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:236
Methodbefore_train_epoch
We recover model's parameter from ema backup after last epoch's EvalHook.
annotator/uniformer/mmcv/runner/hooks/ema.py:78
Methodbefore_train_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:128
Methodbefore_train_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:31
Methodbefore_train_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:126
Methodbefore_train_iter
Evaluate the model only at the start of training by iteration.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:228
Methodbefore_train_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:134
Methodbefore_train_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:43
Methodbefore_train_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:137
Methodbefore_val_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:34
Methodbefore_val_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:46
Functionbetas_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
Functionbgr2ycbcr
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
Functionbinary_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
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan_light.py:127
← previousnext →1,401–1,500 of 2,265, ranked by callers