MCPcopy Create free account

hub / github.com/Fannovel16/comfyui_controlnet_aux / functions

Functions4,192 in github.com/Fannovel16/comfyui_controlnet_aux

↓ 2 callersFunctionget_torchvision_models
()
src/custom_controlnet_aux/uniformer/mmcv_custom/checkpoint.py:172
↓ 2 callersFunctionget_unfold
(pred_norm, ps, pad)
src/custom_controlnet_aux/dsine/models/submodules/__init__.py:161
↓ 2 callersFunctionget_upscale_method
(method_str)
src/custom_controlnet_aux/util.py:146
↓ 2 callersMethodget_valid_tsv
(self)
src/custom_mesh_graphormer/datasets/human_mesh_tsv.py:63
↓ 2 callersMethodget_valid_tsv
(self)
src/custom_mesh_graphormer/datasets/hand_mesh_tsv.py:63
↓ 2 callersMethodget_warmup_lr
(self, cur_iters)
src/custom_mmpkg/custom_mmcv/runner/hooks/lr_updater.py:85
↓ 2 callersMethodget_warmup_momentum
(self, cur_iters)
src/custom_mmpkg/custom_mmcv/runner/hooks/momentum_updater.py:71
↓ 2 callersFunctiongive_synsets_from_indices
(indices, path_to_yaml="data/imagenet_idx_to_synset.yaml")
src/custom_controlnet_aux/diffusion_edge/taming/data/imagenet.py:15
↓ 2 callersFunctiongray_to_colormap
Transfer gray map to matplotlib colormap
src/custom_controlnet_aux/metric3d/mono/utils/transform.py:394
↓ 2 callersMethodhas_overflow
Check if params contain overflow.
src/custom_mmpkg/custom_mmcv/runner/fp16_utils.py:349
↓ 2 callersFunctionhook
(b=1, bsize=1, tsize=None)
src/custom_controlnet_aux/diffusion_edge/taming/data/utils.py:35
↓ 2 callersFunctionimg_from_base64
(imagestring)
src/custom_mesh_graphormer/utils/image_ops.py:16
↓ 2 callersMethodimport_wandb
(self)
src/custom_mmpkg/custom_mmcv/runner/hooks/logger/wandb.py:25
↓ 2 callersFunctionimscale
(x, factor, keepshapes=False, keepmode="bicubic")
src/custom_controlnet_aux/diffusion_edge/taming/data/imagenet.py:416
↓ 2 callersFunctioninference_segmentor
Inference image(s) with the segmentor. Args: model (nn.Module): The loaded segmentor. imgs (str/ndarray or list[str/ndarray]): Ei
src/custom_controlnet_aux/uniformer/inference.py:68
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=list(), only_model=False, use_ema=False)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/ddm_const_sde.py:175
↓ 2 callersFunctioninit_net
Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights Parameters: net (network)
src/custom_controlnet_aux/leres/pix2pix/models/networks.py:101
↓ 2 callersMethodinit_weights
(self)
src/custom_mmpkg/custom_mmcv/ops/modulated_deform_conv.py:192
↓ 2 callersMethodinitialize
(self, input)
src/custom_controlnet_aux/diffusion_edge/taming/modules/util.py:22
↓ 2 callersFunctioninstall_deps
()
node_wrappers/mesh_graphormer.py:12
↓ 2 callersFunctionis_list_of
Check whether it is a list of some type. A partial method of :func:`is_seq_of`.
src/custom_mmpkg/custom_mmcv/utils/misc.py:152
↓ 2 callersFunctionis_method_overridden
Check if a method of base class is overridden in derived class. Args: method (str): the method name to check. base_class (type):
src/custom_mmpkg/custom_mmcv/utils/misc.py:348
↓ 2 callersFunctionis_normalized
(keypoints)
node_wrappers/pose_keypoint_postprocess.py:96
↓ 2 callersFunctionischumpy
(x)
src/custom_manopth/verts.py:28
↓ 2 callersFunctioniter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type.
src/custom_mmpkg/custom_mmcv/utils/misc.py:87
↓ 2 callersFunctioniwt
(x, inv_filters, in_size, level)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/wavelet.py:42
↓ 2 callersMethodjoin_path
Concatenate all file paths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:281
↓ 2 callersFunctionkeypoint_2d_loss
Compute 2D reprojection loss if 2D keypoint annotations are available. The confidence is binary and indicates whether the keypoints exist or
src/custom_mesh_graphormer/tools/run_gphmer_handmesh.py:75
↓ 2 callersFunctionkeypoint_2d_loss
Compute 2D reprojection loss if 2D keypoint annotations are available. The confidence (conf) is binary and indicates whether the keypoints ex
src/custom_mesh_graphormer/tools/run_gphmer_bodymesh.py:113
↓ 2 callersFunctionkeypoint_3d_loss
Compute 3D keypoint loss if 3D keypoint annotations are available.
src/custom_mesh_graphormer/tools/run_gphmer_handmesh.py:84
↓ 2 callersFunctionkeypoint_3d_loss
Compute 3D keypoint loss if 3D keypoint annotations are available.
src/custom_mesh_graphormer/tools/run_gphmer_bodymesh.py:122
↓ 2 callersFunctionlast_zero_init
(m)
src/custom_mmpkg/custom_mmcv/cnn/bricks/context_block.py:9
↓ 2 callersFunctionload_ckpt
Load the check point for resuming training or finetuning.
src/custom_controlnet_aux/metric3d/mono/utils/running.py:11
↓ 2 callersFunctionload_data_info
(module_name, data_info={}, mldb_type='mldb_info', module=None)
src/custom_controlnet_aux/metric3d/mono/utils/mldb.py:4
↓ 2 callersFunctionload_from_yaml_file
(yaml_file)
src/custom_mesh_graphormer/utils/tsv_file_ops.py:103
↓ 2 callersMethodload_networks
Load all the networks from the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, na
src/custom_controlnet_aux/leres/pix2pix/models/base_model.py:190
↓ 2 callersFunctionload_object_from_string
Source: https://stackoverflow.com/a/10773699
src/custom_controlnet_aux/diffusion_edge/taming/data/conditional_builder/utils.py:100
↓ 2 callersFunctionload_pred_json
(filepath)
src/custom_mesh_graphormer/tools/run_hand_multiscale.py:14
↓ 2 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
src/custom_mmpkg/custom_mmcv/runner/checkpoint.py:41
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors. See Alg. 1 in paper.
src/custom_mmpkg/custom_mmseg/models/losses/lovasz_loss.py:14
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [P], logits at each prediction (between -infty and +infty). la
src/custom_mmpkg/custom_mmseg/models/losses/lovasz_loss.py:59
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [P, C], class probabilities at each prediction (between 0 and 1)
src/custom_mmpkg/custom_mmseg/models/losses/lovasz_loss.py:128
↓ 2 callersFunctionmain_worker
(local_rank: int, cfg: dict, launcher: str, test_data: list)
src/custom_controlnet_aux/metric3d/mono/tools/test_scale_cano.py:113
↓ 2 callersFunctionmake_2tuple
(x)
src/custom_controlnet_aux/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO.py:58
↓ 2 callersFunctionmake_2tuple
(x)
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO_reg.py:133
↓ 2 callersFunctionmake_batch_data_sampler
(sampler, images_per_gpu, num_iters=None, start_iter=0)
src/custom_mesh_graphormer/datasets/build.py:55
↓ 2 callersFunctionmake_data_sampler
(dataset, shuffle, distributed)
src/custom_mesh_graphormer/datasets/build.py:66
↓ 2 callersFunctionmake_hand_data_loader
(args, yaml_file, is_distributed=True, is_train=True, start_iter=0, scale_factor=1)
src/custom_mesh_graphormer/datasets/build.py:118
↓ 2 callersFunctionmask_to_rle_pytorch
Encodes masks to an uncompressed RLE, in the format expected by pycoco tools.
src/custom_controlnet_aux/sam/utils/amg.py:107
↓ 2 callersFunctionmd5_hash
(path)
src/custom_controlnet_aux/diffusion_edge/taming/util.py:30
↓ 2 callersFunctionmd5_hash
(path)
src/custom_controlnet_aux/diffusion_edge/taming/modules/losses/util.py:30
↓ 2 callersFunctionmkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
src/custom_controlnet_aux/leres/pix2pix/util/util.py:98
↓ 2 callersMethodmode
(self)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/encoder_decoder.py:891
↓ 2 callersFunctionmulti_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
src/custom_mmpkg/custom_mmseg/apis/test.py:106
↓ 2 callersFunctionmuti_loss_fusion
(preds, target)
src/custom_controlnet_aux/anime_face_segment/isnet.py:12
↓ 2 callersFunctionmuti_loss_fusion_kl
(preds, target, dfs, fs, mode="MSE")
src/custom_controlnet_aux/anime_face_segment/isnet.py:35
↓ 2 callersFunctionmyimresize
(img, size, return_scale=False, interpolation='bilinear')
src/custom_mesh_graphormer/utils/image_ops.py:46
↓ 2 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO.py:537
↓ 2 callersFunctionnms
(x, t, s)
src/custom_controlnet_aux/util.py:96
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
src/custom_mmpkg/custom_mmseg/models/backbones/resnet.py:250
↓ 2 callersFunctionnorm_cdf
(x)
src/custom_mmpkg/custom_mmcv/cnn/utils/weight_init.py:628
↓ 2 callersFunctionnorm_cdf
(x)
src/custom_mmpkg/custom_mmseg/models/utils/weight_init.py:14
↓ 2 callersFunctionnormalize_tensor
(x,eps=1e-10)
src/custom_controlnet_aux/diffusion_edge/taming/modules/losses/lpips.py:119
↓ 2 callersFunctionnumpy2torch
[H, W, C] => [B=1, H, W, C]
node_wrappers/pose_keypoint_postprocess.py:269
↓ 2 callersMethodobject_representation
(self, annotation: Annotation)
src/custom_controlnet_aux/diffusion_edge/taming/data/conditional_builder/objects_center_points.py:106
↓ 2 callersMethodp_sample
(self, x, mask, t: int, x_self_cond = None, clip_denoised = True)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/ddm_const_sde.py:203
↓ 2 callersFunctionpad64
(x)
src/custom_controlnet_aux/util.py:150
↓ 2 callersFunctionpad64
(x)
src/custom_controlnet_aux/dsine/__init__.py:39
↓ 2 callersFunctionpad64
(x)
src/custom_controlnet_aux/zoe/transformers.py:30
↓ 2 callersFunctionpad_list
(list_: List, pad_element: Any, pad_to_length: int)
src/custom_controlnet_aux/diffusion_edge/taming/data/conditional_builder/utils.py:40
↓ 2 callersFunctionparams_to_string
Convert parameter number into a string. Args: num_params (float): Parameter number to be converted. units (str | None): Converted
src/custom_mmpkg/custom_mmcv/cnn/utils/flops_counter.py:161
↓ 2 callersFunctionparse
(x)
src/custom_mmpkg/custom_mmcv/utils/misc.py:16
↓ 2 callersFunctionplot_one_line
(ref, vertex, img, color_index, alpha=0.0, line_thickness=None)
src/custom_mesh_graphormer/utils/renderer.py:485
↓ 2 callersMethodpostprocess_masks
Remove padding and upscale masks to the original image size. Arguments: masks (torch.Tensor): Batched masks from the mask_
src/custom_controlnet_aux/sam/modeling/sam.py:131
↓ 2 callersMethodpre_pipeline
Prepare results dict for pipeline.
src/custom_mmpkg/custom_mmseg/datasets/custom.py:169
↓ 2 callersMethodpred_xtms_from_xt
(self, xt, noise, C, t, s)
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/ddm_const_sde.py:679
↓ 2 callersMethodpredict_masks
Predicts masks. See 'forward' for more details.
src/custom_controlnet_aux/sam/modeling/mask_decoder.py:112
↓ 2 callersMethodpredict_torch
Predict masks for the given input prompts, using the currently set image. Input prompts are batched torch tensors and are expected to
src/custom_controlnet_aux/sam/predictor.py:169
↓ 2 callersMethodprepare_attn_bias
(self, shape)
src/custom_controlnet_aux/metric3d/mono/model/backbones/ViT_DINO.py:1127
↓ 2 callersMethodpreprocess
Normalize pixel values and pad to a square input.
src/custom_controlnet_aux/sam/modeling/sam.py:162
↓ 2 callersMethodprocess
Process an image and return face landmarks.
src/custom_controlnet_aux/mediapipe_face/mediapipe_face_common.py:135
↓ 2 callersMethodput
Write data to a given ``filepath`` with 'wb' mode. Note: ``put`` should create a directory if the directory of ``filepath``
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:1007
↓ 2 callersMethodput_text
Write data to a given ``filepath`` with 'w' mode. Note: ``put_text`` should create a directory if the directory of ``
src/custom_mmpkg/custom_mmcv/fileio/file_client.py:1020
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
src/custom_mmpkg/custom_mmseg/datasets/pipelines/transforms.py:113
↓ 2 callersFunctionready_arguments
(fname_or_dict, posekey4vposed='pose')
src/custom_manopth/smpl_handpca_wrapper_HAND_only.py:30
↓ 2 callersMethodrefine
(self, h, feat_map, pred_norm, intrins, orig_H, orig_W, uv_8, ray_8)
src/custom_controlnet_aux/dsine/models/dsine_arch.py:114
↓ 2 callersFunctionrel_roi_point_to_rel_img_point
Convert roi based relative point coordinates to image based absolute point coordinates. Args: rois (Tensor): RoIs or BBoxes, shape (N
src/custom_mmpkg/custom_mmcv/ops/point_sample.py:216
↓ 2 callersFunctionremove_small_regions
Removes small disconnected regions and holes in a mask. Returns the mask and an indicator of if the mask has been modified.
src/custom_controlnet_aux/sam/utils/amg.py:267
↓ 2 callersMethodrepresentation_to_annotation
(self, representation: int)
src/custom_controlnet_aux/diffusion_edge/taming/data/conditional_builder/objects_center_points.py:116
↓ 2 callersFunctionreproject
(points_tgt, intrinsics, return_mask=False)
src/custom_controlnet_aux/unimatch/unimatch/geometry.py:132
↓ 2 callersFunctionreproject_coords
(depth_ref, intrinsics, extrinsics_ref=None, extrinsics_tgt=None, extrinsics_rel=None, re
src/custom_controlnet_aux/unimatch/unimatch/geometry.py:157
↓ 2 callersFunctionrescale_annotations
(annotations: List[Annotation], crop_coordinates: BoundingBox, flip: bool)
src/custom_controlnet_aux/diffusion_edge/taming/data/conditional_builder/utils.py:44
↓ 2 callersFunctionrescale_size
Calculate the new size to be rescaled to. Args: old_size (tuple[int]): The old size (w, h) of image. scale (float | tuple[int]):
src/custom_mmpkg/custom_mmcv/image/geometric.py:184
↓ 2 callersMethodresize_pos_embed
Resize pos_embed weights. Resize pos_embed using bicubic interpolate method. Args: pos_embed (torch.Tensor): pos_embed we
src/custom_mmpkg/custom_mmseg/models/backbones/vit.py:392
↓ 2 callersFunctionresnet101
ResNet-101 from `Deep Residual Learning for Image Recognition <https://arxiv.org/pdf/1512.03385.pdf>`__. .. note:: The bottleneck of Torch
src/custom_controlnet_aux/diffusion_edge/denoising_diffusion_pytorch/resnet.py:734
↓ 2 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
src/custom_mmpkg/custom_mmcv/runner/base_runner.py:345
↓ 2 callersFunctionrgb2gray
(rgb)
src/custom_controlnet_aux/leres/leres/depthmap.py:70
↓ 2 callersFunctionrgba_to_depth
(x)
src/custom_controlnet_aux/diffusion_edge/taming/data/imagenet.py:273
↓ 2 callersFunctionrle_to_mask
Compute a binary mask from an uncompressed RLE.
src/custom_controlnet_aux/sam/utils/amg.py:138
← previousnext →601–700 of 4,192, ranked by callers