MCPcopy Create free account

hub / github.com/Fannovel16/comfyui_controlnet_aux / functions

Functions4,192 in github.com/Fannovel16/comfyui_controlnet_aux

↓ 366 callersMethodsize
(self)
src/custom_mmpkg/custom_mmcv/video/io.py:27
↓ 315 callersMethodcat
(self, new_stats: "MaskData")
src/custom_controlnet_aux/sam/utils/amg.py:59
↓ 254 callersFunctionprint
(*args, **kwargs)
src/custom_controlnet_aux/unimatch/utils/dist_utils.py:100
↓ 200 callersMethodformat
(self, record)
log.py:34
↓ 165 callersMethoditems
(self)
src/custom_controlnet_aux/sam/utils/amg.py:41
↓ 144 callersMethodget
(self, key, default=None)
src/custom_mmpkg/custom_mmcv/video/io.py:37
↓ 141 callersMethodto
(self, device)
src/custom_controlnet_aux/open_pose/hand.py:19
↓ 97 callersMethodinterpolate
(self, x1, x2, mask, t = None, lam = 0.5)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/ddm_const_sde.py:266
↓ 86 callersMethodstack
(self)
src/custom_mmpkg/custom_mmcv/parallel/data_container.py:72
↓ 74 callersMethodload_state_dict
Loads the loss_scaler state dict. Args: state_dict (dict): scaler state.
src/custom_mmpkg/custom_mmcv/runner/fp16_utils.py:395
↓ 69 callersFunctionnorm_layer
(x)
src/custom_controlnet_aux/leres/pix2pix/models/networks.py:32
↓ 62 callersMethodeval
Make models eval mode during test time
src/custom_controlnet_aux/leres/pix2pix/models/base_model.py:95
↓ 55 callersMethodfrom_pretrained
(cls, pretrained_model_or_path=None, model_type="vit_t", filename="mobile_sam.pt", subfolder=None)
src/custom_controlnet_aux/sam/sam.py:28
↓ 54 callersMethodnorm
(self)
src/custom_mmpkg/custom_mmcv/cnn/bricks/conv_module.py:169
↓ 53 callersMethoddim
(self)
src/custom_mmpkg/custom_mmcv/parallel/data_container.py:88
↓ 52 callersMethodwrite
(self, text)
log.py:11
↓ 51 callersMethodupdate
(self, vars, count=1)
src/custom_mmpkg/custom_mmcv/runner/log_buffer.py:24
↓ 49 callersFunctiondefine_preprocessor_inputs
(**arguments)
utils.py:94
↓ 48 callersMethodRESOLUTION
(default=512, min=64, max=MAX_RESOLUTION, step=64)
utils.py:109
↓ 48 callersFunctioncommon_annotator_call
(model, tensor_image, input_batch=False, show_pbar=True, **kwargs)
utils.py:64
↓ 46 callersMethodexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:1043
↓ 46 callersMethodupdate
(self, val, n: float = 1)
src/custom_controlnet_aux/metric3d/mono/utils/avg_meter.py:19
↓ 42 callersMethodread
Read the next frame. If the next frame have been decoded before and in the cache, then return it directly, otherwise decode, cache an
src/custom_mmpkg/custom_mmcv/video/io.py:134
↓ 41 callersMethodpad
(self, *inputs)
src/custom_controlnet_aux/unimatch/utils/utils.py:18
↓ 39 callersMethodmodel
(self)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/ema.py:104
↓ 38 callersFunctionbuild_norm_layer
Build normalization layer. Args: cfg (dict): The norm layer config, which should contain: - type (str): Layer type.
src/custom_mmpkg/custom_mmcv/cnn/bricks/norm.py:72
↓ 38 callersMethodlog
(self, runner)
src/custom_mmpkg/custom_mmcv/runner/hooks/logger/base.py:35
↓ 35 callersFunctionremove_pad
(x)
src/custom_controlnet_aux/dsine/__init__.py:67
↓ 35 callersMethodstate_dict
Returns the state of the scaler as a :class:`dict`.
src/custom_mmpkg/custom_mmcv/runner/fp16_utils.py:385
↓ 34 callersFunctionconstant_init
(module, val, bias=0)
src/custom_mmpkg/custom_mmcv/cnn/utils/weight_init.py:48
↓ 33 callersFunctionHWC3
(x)
src/custom_controlnet_aux/util.py:63
↓ 33 callersFunctionbuild_conv_layer
Build convolution layer. Args: cfg (None or dict): The conv layer config, which should contain: - type (str): Layer type.
src/custom_mmpkg/custom_mmcv/cnn/bricks/conv.py:12
↓ 33 callersFunctioncommon_input_validate
(input_image, output_type, **kwargs)
src/custom_controlnet_aux/util.py:175
↓ 32 callersFunctiondigit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha <
src/custom_mmpkg/custom_mmcv/utils/version_utils.py:9
↓ 31 callersFunction_upsample_like
(src, tar)
src/custom_controlnet_aux/anime_face_segment/isnet.py:85
↓ 30 callersMethoddownsample
Downsample mesh.
src/custom_mesh_graphormer/modeling/_smpl.py:253
↓ 29 callersMethodCOMBO
(values, default=None)
utils.py:117
↓ 29 callersMethodclamp
(self, x)
src/custom_controlnet_aux/metric3d/mono/model/decode_heads/RAFTDepthNormalDPTDecoder5.py:802
↓ 29 callersFunctionresize_image_with_pad
(input_image, resolution, upscale_method = "", skip_hwc3=False, mode='edge')
src/custom_controlnet_aux/util.py:155
↓ 28 callersFunctioncustom_hf_download
(pretrained_model_or_path, filename, cache_dir=temp_dir, ckpts_dir=annotator_ckpts_path, subfolder='', use_sym
src/custom_controlnet_aux/util.py:289
↓ 28 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:1067
↓ 27 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
src/custom_mmpkg/custom_mmseg/models/backbones/hrnet.py:362
↓ 27 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
src/custom_mmpkg/custom_mmseg/ops/wrappers.py:7
↓ 27 callersMethodto
(self, device)
src/custom_controlnet_aux/metric3d/__init__.py:102
↓ 26 callersMethodINT
(default=0, min=0, max=MAX_RESOLUTION, step=1)
utils.py:111
↓ 26 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
src/custom_mmpkg/custom_mmseg/models/backbones/hrnet.py:367
↓ 26 callersMethodregister_module
Register a module. A record will be added to `self._module_dict`, whose key is the class name or the specified name, and value is the
src/custom_mmpkg/custom_mmcv/utils/registry.py:260
↓ 24 callersMethodFLOAT
(default=0, min=0, max=1, step=0.01)
utils.py:113
↓ 24 callersFunctionoutput
(name, img)
tests/test_controlnet_aux.py:19
↓ 23 callersMethodto
(self, device)
src/custom_controlnet_aux/diffusion_edge/model.py:106
↓ 22 callersMethodfromfile
(filename, use_predefined_variables=True, import_custom_modules=True)
src/custom_mmpkg/custom_mmcv/utils/config.py:328
↓ 21 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.ReLU, drop=0.)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/mask_cond_unet.py:136
↓ 21 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
src/custom_mmpkg/custom_mmseg/models/decode_heads/decode_head.py:137
↓ 21 callersMethodconvert
Args: box: can be a k-tuple, k-list or an Nxk array/tensor, where k = 4 or 5 from_mode, to_mode (BoxMode) Re
src/custom_controlnet_aux/densepose/densepose.py:48
↓ 21 callersMethoddecode
(self, c)
src/custom_controlnet_aux/diffusion_edge/taming/modules/misc/coord.py:27
↓ 21 callersMethodremove
Remove a file. Args: filepath (str, Path): Path to be removed.
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:1035
↓ 20 callersMethod__init__
(self, hidden_dim, input_dim, kernel_size=3, tuning_mode=None)
src/custom_controlnet_aux/metric3d/mono/model/decode_heads/RAFTDepthNormalDPTDecoder5.py:329
↓ 20 callersMethodcls_seg
Classify each pixel with fc.
src/custom_mmpkg/custom_mmseg/models/decode_heads/point_head.py:109
↓ 20 callersMethodsave
(self, label)
src/custom_controlnet_aux/leres/pix2pix/models/base_model_hg.py:37
↓ 19 callersMethoddump
(self, file=None)
src/custom_mmpkg/custom_mmcv/utils/config.py:534
↓ 18 callersMethodcall_hook
Call all hooks. Args: fn_name (str): The function name in each hook to be called, such as "before_train_epoch".
src/custom_mmpkg/custom_mmcv/runner/base_runner.py:299
↓ 17 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/encoder_decoder.py:235
↓ 17 callersMethoddevice
(self)
src/custom_controlnet_aux/sam/modeling/sam.py:50
↓ 17 callersFunctionget_dist_info
()
src/custom_mmpkg/custom_mmcv/runner/dist_utils.py:78
↓ 17 callersMethodupdate
(self, val, n=1)
src/custom_mesh_graphormer/utils/metric_logger.py:19
↓ 16 callersFunctionbuild_from_cfg
Build a module from config dict. Args: cfg (dict): Config dict. It should at least contain the key "type". registry (:obj:`Regist
src/custom_mmpkg/custom_mmcv/utils/registry.py:9
↓ 16 callersFunctionkaiming_init
(module, a=0, mode='fan_out', nonlinearity='relu',
src/custom_mmpkg/custom_mmcv/cnn/utils/weight_init.py:92
↓ 16 callersMethodto
(self, device)
src/custom_controlnet_aux/unimatch/__init__.py:177
↓ 15 callersFunctioncommon
(name, processor, img)
tests/test_controlnet_aux.py:22
↓ 15 callersMethodnormalize
(self, input)
src/custom_controlnet_aux/leres/pix2pix/models/pix2pix4depth_model.py:109
↓ 15 callersFunctionprint_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used.
src/custom_mmpkg/custom_mmcv/utils/logging.py:85
↓ 13 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
src/custom_mmpkg/custom_mmcv/runner/checkpoint.py:503
↓ 13 callersMethodupdate
(self, num_tasks=1)
src/custom_mmpkg/custom_mmcv/utils/progressbar.py:35
↓ 12 callersFunctionfind_file_path_in_yaml
(fname, root)
src/custom_mesh_graphormer/utils/tsv_file_ops.py:107
↓ 12 callersFunctionssf_ada
(x, scale, shift)
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO_reg.py:38
↓ 11 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO.py:168
↓ 11 callersMethod__init__
(self, size, interpolation2=None, **kwargs)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/data.py:396
↓ 11 callersFunction_efficientnet
( inverted_residual_setting: Sequence[Union[MBConvConfig, FusedMBConvConfig]], dropout: float, las
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/efficientnet.py:375
↓ 11 callersFunction_efficientnet_conf
( arch: str, **kwargs: Any, )
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/efficientnet.py:401
↓ 11 callersMethodclose
Closes the stream.
src/custom_mesh_graphormer/utils/logger.py:36
↓ 11 callersMethodeval
(self)
src/custom_controlnet_aux/diffusion_edge/taming/modules/misc/coord.py:8
↓ 11 callersFunctionexists
(x)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/mask_cond_unet.py:290
↓ 11 callersFunctionis_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
src/custom_mmpkg/custom_mmcv/utils/misc.py:31
↓ 11 callersFunctionnonlinearity
(x)
src/custom_controlnet_aux/diffusion_edge/taming/modules/diffusionmodules/model.py:29
↓ 11 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
src/custom_mmpkg/custom_mmcv/cnn/utils/weight_init.py:66
↓ 10 callersMethod__init__
(self, by_epoch=True, warmup=None, warmup_iters=0,
src/custom_mmpkg/custom_mmcv/runner/hooks/lr_updater.py:25
↓ 10 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO_reg.py:256
↓ 10 callersMethod_format_path
Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows enviro
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:134
↓ 10 callersMethod_map_path
Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str): Path
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:121
↓ 10 callersFunction_resnet
( block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], weights: Optional[WeightsEnum],
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/resnet.py:292
↓ 10 callersMethodchildren
(self)
src/custom_mmpkg/custom_mmcv/utils/registry.py:183
↓ 10 callersFunctionget_cls_net_gridfeat
(config, pretrained, **kwargs)
src/custom_mesh_graphormer/modeling/hrnet/hrnet_cls_net_gridfeat.py:521
↓ 10 callersMethodget_iter
Get the current training iteration step.
src/custom_mmpkg/custom_mmcv/runner/hooks/logger/base.py:84
↓ 10 callersFunctioninit_ssf_scale_shift
(dim)
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO_reg.py:29
↓ 10 callersMethodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:1054
↓ 10 callersFunctionkps_idxs
(start, end)
node_wrappers/pose_keypoint_postprocess.py:81
↓ 10 callersFunctionnonlinearity
(x)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/encoder_decoder.py:51
↓ 10 callersMethodregister_hook
Register a hook into the hook list. The hook will be inserted into a priority queue, with the specified priority (See :class:`Priorit
src/custom_mmpkg/custom_mmcv/runner/base_runner.py:255
↓ 10 callersMethodto
(self, device)
src/custom_controlnet_aux/dsine/__init__.py:186
↓ 10 callersFunctiontransform
Transform pixel location to different reference.
src/custom_mesh_graphormer/utils/image_ops.py:85
next →1–100 of 4,192, ranked by callers