MCPcopy Create free account

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

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

Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan.py:128
Functionbox_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
Functionboxes_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
Functionbuild_backbone
Build backbone.
annotator/uniformer/mmseg/models/builder.py:15
Functionbuild_head
Build head.
annotator/uniformer/mmseg/models/builder.py:25
Functionbuild_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
Functionbuild_neck
Build neck.
annotator/uniformer/mmseg/models/builder.py:20
Functionbuild_positional_encoding
Builder for Position Encoding.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:33
Functionbuild_transformer_layer_sequence
Builder for transformer encoder and transformer decoder.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:53
Functioncaffe2_xavier_init
(module, bias=0)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:110
Functioncalculate_psnr
(img1, img2, border=0)
ldm/modules/image_degradation/utils_image.py:621
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
ldm/modules/image_degradation/utils_image.py:642
Functioncalculate_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
Methodcapacity
(self)
annotator/uniformer/mmcv/video/io.py:23
Functionchannel_convert
(in_c, tar_type, img_list)
ldm/modules/image_degradation/utils_image.py:597
Functioncheck_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
Functioncityscapes_classes
Cityscapes class names for external use.
annotator/uniformer/mmseg/core/evaluation/class_names.py:4
Functioncityscapes_palette
Cityscapes palette for external use.
annotator/uniformer/mmseg/core/evaluation/class_names.py:54
Functionclahe
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
Functionclassical_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
Functionclassical_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
Methodcls_seg
Classify each pixel.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:207
Functioncollect_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
Functioncompute_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
Functionconcat_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
Functionconcat_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
Methodconcatenation
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:143
Methodconfigure_optimizers
(self)
ldm/models/autoencoder.py:150
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:514
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:1278
Methodconfigure_optimizers
(self)
models/uni_controlnet.py:144
Functioncontour_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
Functionconv_flops_counter_hook
(conv_module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:467
Functionconvert_color
(img)
annotator/uniformer/mmcv/image/colorspace.py:279
Functionconvert_module_to_f16
(x)
ldm/modules/diffusionmodules/openaimodel.py:23
Functionconvert_module_to_f32
(x)
ldm/modules/diffusionmodules/openaimodel.py:26
Methodconvert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:738
Methodconvert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:746
Methodcount_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:374
Methodcount_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:408
Methodcpu_only
(self)
annotator/uniformer/mmcv/parallel/data_container.py:68
Functioncross_entropy
The wrapper function for :func:`F.cross_entropy`
annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:9
Methodcurrent_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
Functioncut_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
Functioncutout
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
Methodcvt2frames
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
Methoddata
(self)
annotator/uniformer/mmcv/parallel/data_container.py:57
Methoddatatype
(self)
annotator/uniformer/mmcv/parallel/data_container.py:61
Methoddecode
(self, x)
ldm/modules/diffusionmodules/upscaling.py:52
Methoddecode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:209
Functiondeconv_flops_counter_hook
(conv_module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:440
Functiondegradation_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
Functiondegradation_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
Functiondegradation_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
Functiondegradation_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
Functiondegradation_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
Functiondel_extra_repr
(m)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:295
Functiondeprecated_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
Functiondict_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
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
annotator/midas/api.py:26
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/encoders/modules.py:52
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:36
Methoddot_product
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:135
Functiondpsr_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
Functiondpsr_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
Functiondraw_bodypose
(canvas, candidate, subset)
annotator/openpose/util.py:37
Functiondraw_handpose
(canvas, all_hand_peaks, show_number=False)
annotator/openpose/util.py:74
Functiondump
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
Methoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:22
Methoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:18
Methoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:30
Methoddump_to_path
(self, obj, filepath, mode='w', **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:28
Methoddump_to_path
(self, obj, filepath, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:26
Methoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:18
Methoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:22
Methoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:34
Methodembedded_gaussian
Embedded gaussian with temperature.
annotator/uniformer/mmseg/models/decode_heads/dnl_head.py:21
Methodembedded_gaussian
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:124
Functionempty_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:400
Methodencode
(self, x)
ldm/modules/encoders/modules.py:21
Methodencode
(self, text)
ldm/modules/encoders/modules.py:84
Methodencode
(self, text)
ldm/modules/encoders/modules.py:130
Methodencode
(self, text)
ldm/modules/encoders/modules.py:192
Methodencode
(self, text)
ldm/modules/encoders/modules.py:205
Methodencode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:206
Methodencode_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
Methodencode_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
Methodepoch
int: Current epoch.
annotator/uniformer/mmcv/runner/base_runner.py:160
Methodepoch
(self)
annotator/uniformer/mmcv/runner/iter_based_runner.py:27
Methodevaluate
Evaluation in Cityscapes/default protocol. Args: results (list): Testing results of the dataset. metric (str | list[s
annotator/uniformer/mmseg/datasets/cityscapes.py:124
Methodexists
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
Methodexists
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
Methodextra_repr
Extra repr.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:88
Functionfake_func
(*args, **kwargs)
annotator/uniformer/mmcv/utils/ext_loader.py:43
Methodfilename
(self)
annotator/uniformer/mmcv/utils/config.py:399
Methodfind_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
Functionfind_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
Functionflops_repr
(self)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:273
Functionflow_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
Functionflow_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
← previousnext →1,501–1,600 of 2,265, ranked by callers