MCPcopy Create free account

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

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

Functionis_norm
Check if a layer is a normalization layer. Args: layer (nn.Module): The layer to be checked. exclude (type | tuple[type]): Types
annotator/uniformer/mmcv/cnn/bricks/norm.py:122
Methodis_running
bool: indicate whether the timer is running
annotator/uniformer/mmcv/utils/timer.py:45
Methodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
annotator/uniformer/mmcv/fileio/file_client.py:240
Methodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
annotator/uniformer/mmcv/fileio/file_client.py:592
Methodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:605
Methoditer
int: Current iteration.
annotator/uniformer/mmcv/runner/base_runner.py:165
Functionjit
(func=None, check_input=None, full_shape=True, derivate=False,
annotator/uniformer/mmcv/utils/parrots_jit.py:12
Methodjoin_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and
annotator/uniformer/mmcv/fileio/file_client.py:617
Methodkl
(self, other=None)
ldm/modules/distributions/distributions.py:39
Functionlinear_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:418
Functionlist_cast
Cast elements of an iterable object into a list of some type. A partial method of :func:`iter_cast`.
annotator/uniformer/mmcv/utils/misc.py:112
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: Petrel has no concept of directori
annotator/uniformer/mmcv/fileio/file_client.py:331
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
annotator/uniformer/mmcv/fileio/file_client.py:638
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
annotator/uniformer/mmcv/fileio/file_client.py:1123
Functionlist_from_file
Load a text file and parse the content as a list of strings. Note: In v1.3.16 and later, ``list_from_file`` supports loading a text file
annotator/uniformer/mmcv/fileio/parse.py:8
Functionload
Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. Note: In v1.3.16 a
annotator/uniformer/mmcv/fileio/io.py:18
Functionload_ext
(name, funcs)
annotator/uniformer/mmcv/utils/ext_loader.py:12
Functionload_from_ceph
load checkpoint through the file path prefixed with s3. In distributed setting, this function download ckpt at all ranks to different temporary
annotator/uniformer/mmcv/runner/checkpoint.py:327
Methodload_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:11
Methodload_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:14
Methodload_from_fileobj
(self, file)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:27
Functionload_from_local
load checkpoint by local file path. Args: filename (str): local checkpoint file path map_location (str, optional): Same as :func:
annotator/uniformer/mmcv/runner/checkpoint.py:249
Functionload_from_mmcls
load checkpoint through the file path prefixed with mmcls. Args: filename (str): checkpoint file path with mmcls prefix map_locat
annotator/uniformer/mmcv/runner/checkpoint.py:431
Functionload_from_openmmlab
load checkpoint through the file path prefixed with open-mmlab or openmmlab. Args: filename (str): checkpoint file path with open-mml
annotator/uniformer/mmcv/runner/checkpoint.py:391
Methodload_from_path
(self, filepath, mode='r', **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:24
Methodload_from_path
(self, filepath, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:14
Functionload_from_pavi
load checkpoint through the file path prefixed with pavi. In distributed setting, this function download ckpt at all ranks to different temporary
annotator/uniformer/mmcv/runner/checkpoint.py:295
Functionload_from_torchvision
load checkpoint through the file path prefixed with modelzoo or torchvision. Args: filename (str): checkpoint file path with modelzoo
annotator/uniformer/mmcv/runner/checkpoint.py:368
Functionload_midas_transform
(model_type)
annotator/midas/api.py:32
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:47
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:204
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:69
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:44
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:82
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:70
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:54
Methodlog_images
(self, batch, only_inputs=False, log_ema=False, **kwargs)
ldm/models/autoencoder.py:167
Methodlog_images
(self, batch, N=8, n_row=4, sample=True, ddim_steps=50, ddim_eta=0., return_keys=None, quan
ldm/models/diffusion/ddpm.py:1149
Methodlog_images
(self, batch, N=8, n_row=4, sample=True, ddim_steps=200, ddim_eta=1., return_keys=None, plo
ldm/models/diffusion/ddpm.py:1393
Methodlog_images
(self, batch, N=8, n_row=4, sample=True, ddim_steps=200, ddim_eta=1., return_keys=None, qua
ldm/models/diffusion/ddpm.py:1553
Methodlog_images
(self, *args, **kwargs)
ldm/models/diffusion/ddpm.py:1677
Methodlog_images
(self, *args, **kwargs)
ldm/models/diffusion/ddpm.py:1728
Methodlog_images
(self, *args, **kwargs)
ldm/models/diffusion/ddpm.py:1794
Methodloss_scale
(self)
annotator/uniformer/mmcv/runner/fp16_utils.py:409
Methodlosses
Compute segmentation and semantic encoding loss.
annotator/uniformer/mmseg/models/decode_heads/enc_head.py:178
Functionlovasz_hinge
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [B, H, W], logits at each pixel (between -infty and +infty). l
annotator/uniformer/mmseg/models/losses/lovasz_loss.py:83
Functionlovasz_softmax
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [B, C, H, W], class probabilities at each prediction (between 0
annotator/uniformer/mmseg/models/losses/lovasz_loss.py:171
Functionlut_transform
Transform array by look-up table. The function lut_transform fills the output array with values from the look-up table. Indices of the entrie
annotator/uniformer/mmcv/image/photometric.py:381
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
annotator/uniformer/mmseg/models/backbones/resnest.py:305
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``
annotator/uniformer/mmseg/models/backbones/resnext.py:139
Functionmask_cross_entropy
Calculate the CrossEntropy loss for masks. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of cl
annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:100
Functionmaster_only
(func)
annotator/uniformer/mmcv/runner/dist_utils.py:88
Methodmax_epochs
int: Maximum training epochs.
annotator/uniformer/mmcv/runner/base_runner.py:175
Methodmax_iters
int: Maximum training iterations.
annotator/uniformer/mmcv/runner/base_runner.py:180
Functionmax_neg_value
(t)
ldm/modules/attention.py:37
Functionmean_dice
Calculate Mean Dice (mDice) Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
annotator/uniformer/mmseg/core/evaluation/metrics.py:172
Functionmean_flat
https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/nn.py#L86 Take the mean over all no
ldm/util.py:57
Functionmean_fscore
Calculate Mean Intersection and Union (mIoU) Args: results (list[ndarray] | list[str]): List of prediction segmentation maps
annotator/uniformer/mmseg/core/evaluation/metrics.py:212
Functionmean_iou
Calculate Mean Intersection and Union (mIoU) Args: results (list[ndarray] | list[str]): List of prediction segmentation maps
annotator/uniformer/mmseg/core/evaluation/metrics.py:133
Methodmerge_from_dict
Merge list into cfg_dict. Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backb
annotator/uniformer/mmcv/utils/config.py:550
Functionmkdir_and_rename
(path)
ldm/modules/image_degradation/utils_image.py:166
Functionmkdirs
(paths)
ldm/modules/image_degradation/utils_image.py:158
Functionmodcrop
(img_in, scale)
ldm/modules/image_degradation/utils_image.py:494
Functionmodcrop_np
Args: img: numpy image, WxH or WxHxC sf: scale factor Return: cropped image
ldm/modules/image_degradation/bsrgan_light.py:28
Functionmodcrop_np
Args: img: numpy image, WxH or WxHxC sf: scale factor Return: cropped image
ldm/modules/image_degradation/bsrgan.py:29
Methodmode
(self)
ldm/modules/distributions/distributions.py:9
Methodmode
(self)
ldm/modules/distributions/distributions.py:61
Functionmodel_fn
The noise predicition model function that is used for DPM-Solver.
ldm/models/diffusion/dpm_solver/dpm_solver.py:289
Methodmodel_name
str: Name of the model, usually the module class name.
annotator/uniformer/mmcv/runner/base_runner.py:139
Methodmodule_dict
(self)
annotator/uniformer/mmcv/utils/registry.py:179
Functionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
annotator/uniformer/mmcv/engine/test.py:44
Methodname
(self)
annotator/uniformer/mmcv/utils/registry.py:171
Methodname
(self)
annotator/uniformer/mmcv/fileio/file_client.py:31
Methodname
(self)
annotator/uniformer/mmcv/fileio/file_client.py:823
Functionnew_forward
(*args, **kwargs)
annotator/uniformer/mmcv/runner/fp16_utils.py:296
Functionnew_func
(*args, **kwargs)
annotator/uniformer/mmcv/utils/misc.py:304
Functionnew_func
(*args, **kwargs)
annotator/uniformer/mmcv/runner/fp16_utils.py:91
Methodnll
(self, sample, dims=[1,2,3])
ldm/modules/distributions/distributions.py:53
Functionnms
Dispatch to either CPU or GPU NMS implementations. The input can be either torch tensor or numpy array. GPU NMS will be used if the input is
annotator/uniformer/mmcv/ops/nms.py:118
Functionnms
(x, t, s)
annotator/hed/__init__.py:117
Functionnms_bev
NMS function GPU implementation (for BEV boxes). The overlap of two boxes for IoU calculation is defined as the exact overlapping area of the
annotator/uniformer/mmcv/ops/iou3d.py:31
Functionnms_match
Matched dets into different groups by NMS. NMS match is Similar to NMS but when a bbox is suppressed, nms match will record the indice of sup
annotator/uniformer/mmcv/ops/nms.py:339
Functionnms_normal_bev
Normal NMS function GPU implementation (for BEV boxes). The overlap of two boxes for IoU calculation is defined as the exact overlapping area of
annotator/uniformer/mmcv/ops/iou3d.py:65
Functionnms_rotated
Performs non-maximum suppression (NMS) on the rotated boxes according to their intersection-over-union (IoU). Rotated NMS iteratively removes
annotator/uniformer/mmcv/ops/nms.py:376
Methodno_weight_decay
(self)
annotator/uniformer/mmseg/models/backbones/uniformer.py:373
Functionnorm_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:430
Functionnpmax
(array)
annotator/openpose/util.py:159
Functionobj_from_dict
Initialize an object from dict. The dict must contain the key "type", which indicates the object type, it can be either a string or type, suc
annotator/uniformer/mmcv/runner/utils.py:35
Methodon_train_batch_end
(self, *args, **kwargs)
ldm/models/autoencoder.py:78
Methodon_train_batch_end
(self, *args, **kwargs)
ldm/models/diffusion/ddpm.py:465
Methodon_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx, dataloader_idx)
models/logger.py:92
Methodon_train_batch_start
(self, batch, batch_idx, dataloader_idx)
ldm/models/diffusion/ddpm.py:591
Methodopened
bool: Indicate whether the video is opened.
annotator/uniformer/mmcv/video/io.py:85
FunctionpadRightDownCorner
(img, stride, padValue)
annotator/openpose/util.py:7
Methodpad_dims
(self)
annotator/uniformer/mmcv/parallel/data_container.py:80
Methodpadding_value
(self)
annotator/uniformer/mmcv/parallel/data_container.py:76
Functionparse_version_info
Parse a version string into a tuple. Args: version_str (str): The version string. length (int): The maximum number of version lev
annotator/uniformer/mmcv/version.py:5
Functionpixel_group
Group pixels into text instances, which is widely used text detection methods. Arguments: score (np.array or Tensor): The foreground
annotator/uniformer/mmcv/ops/pixel_group.py:10
Functionpoints_in_boxes_all
Find all boxes in which each point is (CUDA). Args: points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR/DEPTH coordinate boxes (
annotator/uniformer/mmcv/ops/points_in_boxes.py:95
Functionpoints_in_boxes_cpu
Find all boxes in which each point is (CPU). The CPU version of :meth:`points_in_boxes_all`. Args: points (torch.Tensor): [B, M, 3],
annotator/uniformer/mmcv/ops/points_in_boxes.py:58
← previousnext →2,001–2,100 of 2,265, ranked by callers