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
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan.py:128
Function
box_iou_rotated
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x_center, y_center, width, height, angle)
annotator/uniformer/mmcv/ops/box_iou_rotated.py:7
Function
boxes_iou_bev
Calculate boxes IoU in the Bird's Eye View. Args: boxes_a (torch.Tensor): Input boxes a with shape (M, 5). boxes_b (torch.Tensor)
annotator/uniformer/mmcv/ops/iou3d.py:12
Function
build_backbone
Build backbone.
annotator/uniformer/mmseg/models/builder.py:15
Function
build_head
Build head.
annotator/uniformer/mmseg/models/builder.py:25
Function
build_model_from_cfg
Build a PyTorch model from config dict(s). Different from ``build_from_cfg``, if cfg is a list, a ``nn.Sequential`` will be built. Args:
annotator/uniformer/mmcv/cnn/builder.py:6
Function
build_neck
Build neck.
annotator/uniformer/mmseg/models/builder.py:20
Function
build_positional_encoding
Builder for Position Encoding.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:33
Function
build_transformer_layer_sequence
Builder for transformer encoder and transformer decoder.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:53
Function
caffe2_xavier_init
(module, bias=0)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:110
Function
calculate_psnr
(img1, img2, border=0)
ldm/modules/image_degradation/utils_image.py:621
Function
calculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
ldm/modules/image_degradation/utils_image.py:642
Function
calculate_uncertainty
Estimate uncertainty based on seg logits. For each location of the prediction ``seg_logits`` we estimate uncertainty as the difference betwee
annotator/uniformer/mmseg/models/decode_heads/point_head.py:14
Method
capacity
(self)
annotator/uniformer/mmcv/video/io.py:23
Function
channel_convert
(in_c, tar_type, img_list)
ldm/modules/image_degradation/utils_image.py:597
Function
check_python_script
Run the python cmd script with `__main__`. The difference between `os.system` is that, this function exectues code in the current process, so
annotator/uniformer/mmcv/utils/testing.py:10
Function
cityscapes_classes
Cityscapes class names for external use.
annotator/uniformer/mmseg/core/evaluation/class_names.py:4
Function
cityscapes_palette
Cityscapes palette for external use.
annotator/uniformer/mmseg/core/evaluation/class_names.py:54
Function
clahe
Use CLAHE method to process the image. See `ZUIDERVELD,K. Contrast Limited Adaptive Histogram Equalization[J]. Graphics Gems, 1994:474-485.`
annotator/uniformer/mmcv/image/photometric.py:405
Function
classical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
ldm/modules/image_degradation/bsrgan_light.py:283
Function
classical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
ldm/modules/image_degradation/bsrgan.py:284
Method
cls_seg
Classify each pixel.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:207
Function
collect_env
Collect the information of the running environments. Returns: dict: The environment information. The following fields are contained.
annotator/uniformer/mmcv/utils/env.py:16
Function
compute_average_flops_cost
Compute average FLOPs cost. A method to compute average FLOPs cost, which will be available after `add_flops_counting_methods()` is called on
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:337
Function
concat_list
Concatenate a list of list into a single list. Args: in_list (list): The list of list to be merged. Returns: list: The conca
annotator/uniformer/mmcv/utils/misc.py:194
Function
concat_video
Concatenate multiple videos into a single one. Args: video_list (list): A list of video filenames out_file (str): Output video fi
annotator/uniformer/mmcv/video/processing.py:128
Method
concatenation
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:143
Method
configure_optimizers
(self)
ldm/models/autoencoder.py:150
Method
configure_optimizers
(self)
ldm/models/diffusion/ddpm.py:514
Method
configure_optimizers
(self)
ldm/models/diffusion/ddpm.py:1278
Method
configure_optimizers
(self)
models/uni_controlnet.py:144
Function
contour_expand
Expand kernel contours so that foreground pixels are assigned into instances. Arguments: kernel_mask (np.array or Tensor): The instan
annotator/uniformer/mmcv/ops/contour_expand.py:10
Function
conv_flops_counter_hook
(conv_module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:467
Function
convert_color
(img)
annotator/uniformer/mmcv/image/colorspace.py:279
Function
convert_module_to_f16
(x)
ldm/modules/diffusionmodules/openaimodel.py:23
Function
convert_module_to_f32
(x)
ldm/modules/diffusionmodules/openaimodel.py:26
Method
convert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:738
Method
convert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:746
Method
count_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:374
Method
count_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:408
Method
cpu_only
(self)
annotator/uniformer/mmcv/parallel/data_container.py:68
Function
cross_entropy
The wrapper function for :func:`F.cross_entropy`
annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:9
Method
current_frame
Get the current frame (frame that is just visited). Returns: ndarray or None: If the video is fresh, return None, otherwise
annotator/uniformer/mmcv/video/io.py:187
Function
cut_video
Cut a clip from a video. Args: in_file (str): Input video filename. out_file (str): Output video filename. start (None or
annotator/uniformer/mmcv/video/processing.py:93
Function
cutout
Randomly cut out a rectangle from the original img. Args: img (ndarray): Image to be cutout. shape (int | tuple[int]): Expected c
annotator/uniformer/mmcv/image/geometric.py:538
Method
cvt2frames
Convert a video to frame images. Args: frame_dir (str): Output directory to store all the frame images. file_start (i
annotator/uniformer/mmcv/video/io.py:198
Method
data
(self)
annotator/uniformer/mmcv/parallel/data_container.py:57
Method
datatype
(self)
annotator/uniformer/mmcv/parallel/data_container.py:61
Method
decode
(self, x)
ldm/modules/diffusionmodules/upscaling.py:52
Method
decode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:209
Function
deconv_flops_counter_hook
(conv_module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:440
Function
degradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:441
Function
degradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:438
Function
degradation_bsrgan_plus
This is an extended degradation model by combining the degradation models of BSRGAN and Real-ESRGAN ---------- img: HXWXC, [0, 1], it
ldm/modules/image_degradation/bsrgan.py:617
Function
degradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:533
Function
degradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:530
Function
del_extra_repr
(m)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:295
Function
deprecated_api_warning
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict)
annotator/uniformer/mmcv/utils/misc.py:288
Function
dict_from_file
Load a text file and parse the content as a dict. Each line of the text file will be two or more columns split by whitespaces or tabs. The fi
annotator/uniformer/mmcv/fileio/parse.py:55
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
annotator/midas/api.py:26
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/encoders/modules.py:52
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:36
Method
dot_product
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:135
Function
dpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan_light.py:261
Function
dpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan.py:262
Function
draw_bodypose
(canvas, candidate, subset)
annotator/openpose/util.py:37
Function
draw_handpose
(canvas, all_hand_peaks, show_number=False)
annotator/openpose/util.py:74
Function
dump
Dump data to json/yaml/pickle strings or files. This method provides a unified api for dumping data as strings or to files, and also supports
annotator/uniformer/mmcv/fileio/io.py:69
Method
dump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:22
Method
dump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:18
Method
dump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:30
Method
dump_to_path
(self, obj, filepath, mode='w', **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:28
Method
dump_to_path
(self, obj, filepath, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:26
Method
dump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:18
Method
dump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:22
Method
dump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:34
Method
embedded_gaussian
Embedded gaussian with temperature.
annotator/uniformer/mmseg/models/decode_heads/dnl_head.py:21
Method
embedded_gaussian
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:124
Function
empty_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:400
Method
encode
(self, x)
ldm/modules/encoders/modules.py:21
Method
encode
(self, text)
ldm/modules/encoders/modules.py:84
Method
encode
(self, text)
ldm/modules/encoders/modules.py:130
Method
encode
(self, text)
ldm/modules/encoders/modules.py:192
Method
encode
(self, text)
ldm/modules/encoders/modules.py:205
Method
encode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:206
Method
encode_decode
Placeholder for encode images with backbone and decode into a semantic segmentation map of the same size as input.
annotator/uniformer/mmseg/models/segmentors/base.py:45
Method
encode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:65
Method
epoch
int: Current epoch.
annotator/uniformer/mmcv/runner/base_runner.py:160
Method
epoch
(self)
annotator/uniformer/mmcv/runner/iter_based_runner.py:27
Method
evaluate
Evaluation in Cityscapes/default protocol. Args: results (list): Testing results of the dataset. metric (str | list[s
annotator/uniformer/mmseg/datasets/cityscapes.py:124
Method
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:220
Method
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:581
Method
extra_repr
Extra repr.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:88
Function
fake_func
(*args, **kwargs)
annotator/uniformer/mmcv/utils/ext_loader.py:43
Method
filename
(self)
annotator/uniformer/mmcv/utils/config.py:399
Method
find_next_comma
Find the position of next comma in the string. If no ',' is found in the string, return the string length. All chars inside '
annotator/uniformer/mmcv/utils/config.py:641
Function
find_vcs_root
Finds the root directory (including itself) of specified markers. Args: path (str): Path of directory or file. markers (list[str]
annotator/uniformer/mmcv/utils/path.py:83
Function
flops_repr
(self)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:273
Function
flow_from_bytes
Read dense optical flow from bytes. .. note:: This load optical flow function works for FlyingChairs, FlyingThings3D, Sintel, Fly
annotator/uniformer/mmcv/video/optflow.py:204
Function
flow_warp
Use flow to warp img. Args: img (ndarray, float or uint8): Image to be warped. flow (ndarray, float): Optical Flow. filli
annotator/uniformer/mmcv/video/optflow.py:143
← previous
next →
1,501–1,600 of 2,265, ranked by callers