MCPcopy Create free account

hub / github.com/GraftingRayman/Comfyui-reactor-node / functions

Functions1,050 in github.com/GraftingRayman/Comfyui-reactor-node

↓ 3 callersFunctionconv_bn1X1
(inp, oup, stride, leaky=0)
r_facelib/detection/retinaface/retinaface_net.py:19
↓ 3 callersFunctionconv_bn_no_relu
(inp, oup, stride)
r_facelib/detection/retinaface/retinaface_net.py:12
↓ 3 callersFunctiondequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum
r_basicsr/utils/flow_util.py:102
↓ 3 callersMethoddetect_faces
Params: imgs: BGR image
r_facelib/detection/retinaface/retinaface.py:211
↓ 3 callersMethoddownsample
(self, x)
r_basicsr/archs/hifacegan_arch.py:207
↓ 3 callersFunctionfindNonreflectiveSimilarity
(uv, xy, options=None)
r_facelib/detection/matlab_cp2tform.py:60
↓ 3 callersFunctionget_out_channel
(layer)
r_basicsr/archs/hifacegan_util.py:219
↓ 3 callersFunctionget_time_str
()
r_basicsr/utils/misc.py:20
↓ 3 callersFunctionload_file_from_url
Ref:https://github.com/1adrianb/face-alignment/blob/master/face_alignment/utils.py
r_facelib/utils/misc.py:86
↓ 3 callersFunctionmake_2d_mask
(mask)
scripts/r_masking/core.py:358
↓ 3 callersFunctionmake_divisible
(x, divisor)
r_facelib/detection/yolov5face/utils/general.py:17
↓ 3 callersFunctionmake_resample_kernel
Make resampling kernel for UpFirDn. Args: k (list[int]): A list indicating the 1D resample kernel magnitude. Returns:
r_basicsr/archs/stylegan2_arch.py:26
↓ 3 callersFunctionmesh_grid
Generate the mesh grid, centering at zero. Args: kernel_size (int): Returns: xy (ndarray): with the shape (kernel_size
r_basicsr/data/degradations.py:35
↓ 3 callersMethodmixing_noise
(self, batch, prob)
r_basicsr/models/stylegan2_model.py:179
↓ 3 callersFunctionmkdir_and_rename
mkdirs. If path exists, rename it with timestamp and create a new one. Args: path (str): Folder path.
r_basicsr/utils/misc.py:24
↓ 3 callersFunctionmove_path
(old_path, new_path)
reactor_utils.py:119
↓ 3 callersMethodnms
(self, mode=True)
r_facelib/detection/yolov5face/models/yolo.py:160
↓ 3 callersFunctionpatch_insightface
(get_model, faceanalysis_init, faceanalysis_prepare, inswapper_init, retinaface_prepare)
reactor_patcher.py:114
↓ 3 callersMethodpreload
(self)
r_basicsr/data/prefetch_dataloader.py:105
↓ 3 callersMethodput
(self, img_byte, key, img_shape)
r_basicsr/utils/lmdb_util.py:182
↓ 3 callersMethodrun
(self)
r_basicsr/data/prefetch_dataloader.py:25
↓ 3 callersFunctionshape_check
r_basicsr/ops/dcn/src/deform_conv_cuda.cpp:62
↓ 3 callersFunctionsigma_matrix2
Calculate the rotated sigma matrix (two dimensional matrix). Args: sig_x (float): sig_y (float): theta (float): Radi
r_basicsr/data/degradations.py:19
↓ 3 callersFunctionsort_by_order
(face, order: str)
scripts/reactor_swapper.py:127
↓ 3 callersMethodtest
(self)
r_basicsr/models/sr_model.py:121
↓ 3 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. From: https://github.com/rwightman/pytorch-image-models
r_basicsr/archs/arch_util.py:281
↓ 3 callersFunctionupfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
r_basicsr/ops/upfirdn2d/upfirdn2d.py:153
↓ 3 callersMethodvalidation
Validation function. Args: dataloader (torch.utils.data.DataLoader): Validation dataloader. current_iter (int): C
r_basicsr/models/base_model.py:36
↓ 2 callersMethod__detect_faces
(self, inputs)
r_facelib/detection/retinaface/retinaface.py:164
↓ 2 callersMethod__init__
(self, in_channels, out_channels, mode="down")
r_chainner/archs/face/gfpganv1_clean_arch.py:149
↓ 2 callersMethod__init__
(self, channel)
r_basicsr/archs/dfdnet_util.py:43
↓ 2 callersMethod__init__
(self, num_feat, num_grow_ch=32)
r_basicsr/archs/rrdbnet_arch.py:52
↓ 2 callersMethod__init__
(self, in_channels, out_channels, depth_multiplier, act_type='prelu', with_idt=False)
r_basicsr/archs/ecbsr_arch.py:169
↓ 2 callersMethod__init__
(self, adapt_official_weights=False)
r_basicsr/archs/tof_arch.py:111
↓ 2 callersMethod__init__
(self, loader)
r_basicsr/data/prefetch_dataloader.py:70
↓ 2 callersMethod__init__
(self, opt)
r_basicsr/data/video_test_dataset.py:45
↓ 2 callersMethod_do_register
(self, name, obj, suffix=None)
r_basicsr/utils/registry.py:38
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
reactor_utils.py:49
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
r_facelib/utils/misc.py:70
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
r_basicsr/utils/img_util.py:22
↓ 2 callersMethod_update_best_metric_result
(self, dataset_name, metric, val, current_iter)
r_basicsr/models/base_model.py:65
↓ 2 callersFunctionbatch_tensor_to_pil
(img_tensor)
reactor_utils.py:28
↓ 2 callersFunctionbox_area
(box)
r_facelib/detection/yolov5face/utils/general.py:79
↓ 2 callersFunctionbox_iou
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format. Arguments:
r_facelib/detection/yolov5face/utils/general.py:66
↓ 2 callersFunctionbuild_model
Build model from options. Args: opt (dict): Configuration. It must contain: model_type (str): Model type.
r_basicsr/models/__init__.py:18
↓ 2 callersFunctioncalc_mean_std
Calculate mean and std for adaptive_instance_normalization. Args: feat (Tensor): 4D tensor. eps (float): A small value added
scripts/r_archs/codeformer_arch.py:13
↓ 2 callersFunctioncalc_mean_std
Calculate mean and std for adaptive_instance_normalization. Args: feat (Tensor): 4D tensor. eps (float): A small value added
r_basicsr/archs/dfdnet_util.py:57
↓ 2 callersMethodcalculate_mask
(self, x_size)
r_basicsr/archs/swinir_arch.py:262
↓ 2 callersFunctioncalculate_weights_indices
Calculate weights and indices, used for imresize function. Args: in_length (int): Input length. out_length (int): Output leng
r_basicsr/utils/matlab_functions.py:16
↓ 2 callersMethodclean_all
(self)
r_facelib/utils/face_restoration_helper.py:448
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
r_facelib/parsing/resnet.py:5
↓ 2 callersFunctioncubic
cubic function used for calculate_weights_indices.
r_basicsr/utils/matlab_functions.py:6
↓ 2 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale in
r_chainner/archs/face/stylegan2_clean_arch.py:13
↓ 2 callersMethoddepthwise_conv
(i, o, kernel_size, stride=1, padding=0, bias=False)
r_facelib/detection/yolov5face/models/common.py:160
↓ 2 callersFunctiondict2str
dict to string for printing options. Args: opt (dict): Option dict. indent_level (int): Indent level. Default: 1. Retu
r_basicsr/utils/options.py:37
↓ 2 callersMethoddiscriminate
This is a conditional (on the input) discriminator In Batch Normalization, the fake and real images are recommended to be
r_basicsr/models/hifacegan_model.py:74
↓ 2 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
r_basicsr/models/sr_model.py:132
↓ 2 callersFunctionduf_downsample
Downsamping with Gaussian kernel used in the DUF official code. Args: x (Tensor): Frames to be downsampled, with shape (b, t, c, h, w)
r_basicsr/data/data_util.py:283
↓ 2 callersMethodencode
Encode input_tensor into feature maps, can be overridden in derived classes Default: nearest downsampling of 2**5 = 32 times
r_basicsr/archs/hifacegan_arch.py:61
↓ 2 callersFunctionestimate_aggd_param
Estimate AGGD (Asymmetric Generalized Gaussian Distribution) parameters. Args: block (ndarray): 2D Image block. Returns:
r_basicsr/metrics/niqe.py:13
↓ 2 callersMethodforward
(self, x)
r_basicsr/archs/hifacegan_arch.py:71
↓ 2 callersMethodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth
r_basicsr/losses/basic_loss.py:45
↓ 2 callersMethodforward
Args: input (Tensor): The input for the loss module, i.e., the network prediction. target_is_real
r_basicsr/losses/gan_loss.py:89
↓ 2 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2**0.5)
r_basicsr/ops/fused_act/fused_act.py:94
↓ 2 callersFunctiongenerate_frame_indices
Generate an index list for reading `num_frames` frames from a sequence of images. Args: crt_idx (int): Current center index.
r_basicsr/data/data_util.py:43
↓ 2 callersFunctiongenerate_gaussian_noise
Generate Gaussian noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. sigma (float): Noise s
r_basicsr/data/degradations.py:423
↓ 2 callersFunctiongenerate_gaussian_noise_pt
Add Gaussian noise (PyTorch version). Args: img (Tensor): Shape (b, c, h, w), range[0, 1], float32. scale (float | Tensor): N
r_basicsr/data/degradations.py:464
↓ 2 callersFunctiongenerate_poisson_noise
Generate poisson noise. Ref: https://github.com/scikit-image/scikit-image/blob/main/skimage/util/noise.py#L37-L219 Args: img (N
r_basicsr/data/degradations.py:563
↓ 2 callersFunctiongenerate_poisson_noise_pt
Generate a batch of poisson noise (PyTorch version) Args: img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
r_basicsr/data/degradations.py:613
↓ 2 callersFunctiongetFaceSwapModel
(model_path: str)
scripts/reactor_swapper.py:117
↓ 2 callersMethodget_avg_time
(self)
r_basicsr/utils/logger.py:41
↓ 2 callersFunctionget_env_info
Get environment information. Currently, only log the software version.
r_basicsr/utils/logger.py:188
↓ 2 callersFunctionget_face_gender
( face, face_index, gender_condition, operated: str, order: str,
scripts/reactor_swapper.py:143
↓ 2 callersFunctionget_largest_face
(det_faces, h, w)
r_facelib/utils/face_restoration_helper.py:12
↓ 2 callersFunctionget_models
()
scripts/reactor_faceswap.py:26
↓ 2 callersFunctionget_reference_facial_points
Function: ---------- get reference 5 key points according to crop settings: 0. Set default crop_size: if def
r_facelib/detection/align_trans.py:19
↓ 2 callersFunctionget_similarity_transform
Function: ---------- Find Similarity Transform Matrix 'trans': u = src_pts[:, 0] v = src_pts[:, 1]
r_facelib/detection/matlab_cp2tform.py:130
↓ 2 callersFunctionimg2tensor
(imgs, bgr2rgb=True, float32=True)
reactor_utils.py:47
↓ 2 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None
r_facelib/utils/misc.py:38
↓ 2 callersFunctioninference_bbox
( model, image: Image.Image, confidence: float = 0.3, device: str = "", )
scripts/r_masking/subcore.py:22
↓ 2 callersFunctioninit_detection_model
(model_name, half=False, device='cuda')
r_facelib/detection/__init__.py:15
↓ 2 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
r_basicsr/utils/dist_util.py:10
↓ 2 callersMethodinit_weights
(self)
r_basicsr/ops/dcn/deform_conv.py:322
↓ 2 callersFunctionis_same_device
(a, b)
scripts/r_masking/core.py:302
↓ 2 callersFunctionletterbox
(img, new_shape=(640, 640), color=(114, 114, 114), auto=True, scale_fill=False, scaleup=True)
r_facelib/detection/yolov5face/utils/datasets.py:5
↓ 2 callersFunctionmake_exp_dirs
Make dirs for experiments.
r_basicsr/utils/misc.py:38
↓ 2 callersMethodmake_noise
(self, batch, num_noise)
r_basicsr/models/stylegan2_model.py:172
↓ 2 callersFunctionmodel_names
()
nodes.py:123
↓ 2 callersMethodnext
(self)
r_basicsr/data/prefetch_dataloader.py:117
↓ 2 callersFunctionnon_max_suppression
Performs Non-Maximum Suppression (NMS) on inference results Returns: detections with shape: nx6 (x1, y1, x2, y2, conf, cls)
r_facelib/detection/yolov5face/utils/general.py:168
↓ 2 callersMethodnondist_validation
(self, dataloader, current_iter, tb_logger, save_img)
r_basicsr/models/sr_model.py:136
↓ 2 callersFunctionnorm_cdf
(x)
r_basicsr/archs/arch_util.py:247
↓ 2 callersMethodnormalize
(self, img)
r_basicsr/archs/tof_arch.py:131
↓ 2 callersFunctionnormalize_cropped_face
(cropped_face)
reactor_utils.py:202
↓ 2 callersFunctionnormalize_region
(limit, startp, size)
scripts/r_masking/core.py:224
↓ 2 callersFunctionpaired_paths_from_folder
Generate paired paths from folders. Args: folders (list[str]): A list of folder path. The order of list should be [input_
r_basicsr/data/data_util.py:198
↓ 2 callersFunctionpaired_paths_from_lmdb
Generate paired paths from lmdb files. Contents of lmdb. Taking the `lq.lmdb` for example, the file structure is: lq.lmdb ├── data.
r_basicsr/data/data_util.py:95
↓ 2 callersFunctionparse_options
(root_path, is_train=True)
r_basicsr/utils/options.py:82
↓ 2 callersFunctionpixel_unshuffle
Pixel unshuffle. Args: x (Tensor): Input feature with shape (b, c, hh, hw). scale (int): Downsample ratio. Returns:
r_basicsr/archs/arch_util.py:194
↓ 2 callersFunctionprepare_cropped_face
(cropped_face)
reactor_utils.py:196
← previousnext →101–200 of 1,050, ranked by callers