MCPcopy Create free account

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

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

Methodoptimize_parameters
(self)
r_basicsr/models/base_model.py:26
Methodoptimize_parameters
(self, current_iter)
r_basicsr/models/srgan_model.py:85
Methodoptimize_parameters
(self, current_iter)
r_basicsr/models/edvr_model.py:48
Methodoptimize_parameters
(self, current_iter)
r_basicsr/models/stylegan2_model.py:185
Methodoptimize_parameters
(self, current_iter)
r_basicsr/models/video_recurrent_model.py:52
Methodoptimize_parameters
(self, current_iter)
r_basicsr/models/hifacegan_model.py:116
Methodoptimize_parameters
(self, current_iter)
r_basicsr/models/esrgan_model.py:12
Functionparse
(x)
r_basicsr/archs/arch_util.py:310
Functionpatched_faceanalysis_init
(self, name=DEFAULT_MP_NAME, root='~/.insightface', allowed_modules=None, **kwargs)
reactor_patcher.py:41
Functionpatched_faceanalysis_prepare
(self, ctx_id, det_thresh=0.5, det_size=(640, 640))
reactor_patcher.py:63
Functionpatched_get_model
(self, **kwargs)
reactor_patcher.py:20
Functionpatched_inswapper_init
(self, model_file=None, session=None)
reactor_patcher.py:74
Functionpathced_retinaface_prepare
(self, ctx_id, **kwargs)
reactor_patcher.py:100
Functionpaths_from_folder
Generate paths from folder. Args: folder (str): Folder path. Returns: list[str]: Returned path list.
r_basicsr/data/data_util.py:234
Methodpostprocess_batch
(self, p, *args, **kwargs)
scripts/reactor_faceswap.py:160
Methodpostprocess_image
(self, p, script_pp: scripts.PostprocessImageArgs, *args)
scripts/reactor_faceswap.py:164
Functionrandom_add_gaussian_noise
(img, sigma_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
r_basicsr/data/degradations.py:528
Functionrandom_add_jpg_compression
Randomly add JPG compression artifacts. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. quality
r_basicsr/data/degradations.py:754
Functionrandom_add_poisson_noise
(img, scale_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
r_basicsr/data/degradations.py:698
Functionread_data_from_tensorboard
Get raw data (steps and values) from tensorboard events. Args: log_path (str): Path to the tensorboard log. tag (str): tag to
r_basicsr/utils/plot_util.py:4
Functionread_data_from_txt_1v
Read data from txt with 1 returned values. Args: path (str): path to the txt file. pattern (str): re (regular expression) pat
r_basicsr/utils/plot_util.py:48
Functionread_data_from_txt_2v
Read data from txt with 2 returned values (usually [step, value]). Args: path (str): path to the txt file. pattern (str): re
r_basicsr/utils/plot_util.py:23
Methodregister
Register the given object under the the name `obj.__name__`. Can be used as either a decorator or not. See docstring of th
r_basicsr/utils/registry.py:46
Methodrep_params
(self)
r_basicsr/archs/ecbsr_arch.py:130
Methodreset
(self)
r_basicsr/data/prefetch_dataloader.py:80
Functionresize_flow
Resize a flow according to ratio or shape. Args: flow (Tensor): Precomputed flow. shape [N, 2, H, W]. size_type (str): 'ratio
r_basicsr/archs/arch_util.py:155
Methodsave
(self, epoch, current_iter)
r_basicsr/models/video_recurrent_gan_model.py:174
Methodsave
(self, epoch, current_iter)
r_basicsr/models/srgan_model.py:143
Methodsave
(self, epoch, current_iter)
r_basicsr/models/stylegan2_model.py:280
Methodsave
(self, epoch, current_iter)
r_basicsr/models/hifacegan_model.py:282
Methodsave_model
(self, save_mode, face_model_name, select_face_index, image=None, face_model=None, det_size=(640, 640))
nodes.py:631
Functionscandir
Scan a directory to find the interested files. Args: dir_path (str): Path of the directory. suffix (str | tuple(str), optional)
r_facelib/utils/misc.py:106
MethodsetAux
(self, x)
scripts/r_masking/subcore.py:116
Methodset_upscale_factor
(self, upscale_factor)
r_facelib/utils/face_restoration_helper.py:111
Methodsetup_optimizers
(self)
r_basicsr/models/edvr_model.py:18
Methodsetup_optimizers
(self)
r_basicsr/models/video_recurrent_model.py:22
Functionsmooth_data
Smooth data using 1st-order IIR low-pass filter (what tensorflow does). Ref: https://github.com/tensorflow/tensorboard/blob/f801ebf1f9fbfe2bae
r_basicsr/utils/plot_util.py:68
Functiontensor2img_fast
This implementation is slightly faster than tensor2img. It now only supports torch tensor with shape (1, c, h, w). Args: tensor (
r_basicsr/utils/img_util.py:97
Functiontensor2mask
(t: torch.Tensor)
scripts/r_masking/core.py:614
Functiontensor2rgba
(t: torch.Tensor)
scripts/r_masking/core.py:637
Methodtest
(self)
r_basicsr/models/swinir_model.py:11
Functionupfirdn2d
r_basicsr/ops/upfirdn2d/src/upfirdn2d.cpp:13
Functionusm_sharp
USM sharpening. Input image: I; Blurry image: B. 1. sharp = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > threshold, else: 0
r_basicsr/utils/img_process_util.py:34
Methodvalidation
Warning: HiFaceGAN requires train() mode even for validation For more info, see https://github.com/Lotayou/Face-Renovation/issues/3
r_basicsr/models/hifacegan_model.py:194
Functionweighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred,
r_basicsr/losses/loss_util.py:58
Functionworker_init_fn
(worker_id, num_workers, rank, seed)
r_basicsr/data/__init__.py:97
Functionwrapper
(*args, **kwargs)
r_basicsr/utils/dist_util.py:77
Functionwrapper
(pred, target, weight=None, reduction='mean', **kwargs)
r_basicsr/losses/loss_util.py:90
Functionycbcr2bgr
Convert a YCbCr image to BGR image. The bgr version of ycbcr2rgb. It implements the ITU-R BT.601 conversion for standard-definition t
r_basicsr/utils/color_util.py:100
Functionycbcr2rgb
Convert a YCbCr image to RGB image. This function produces the same results as Matlab's ycbcr2rgb function. It implements the ITU-R BT.601
r_basicsr/utils/color_util.py:71
← previous1,001–1,050 of 1,050, ranked by callers