MCPcopy Create free account

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

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

↓ 2 callersMethodpreprocess
(self, tensor_input)
r_basicsr/archs/spynet_arch.py:45
↓ 2 callersFunctionpy_cpu_nms
Pure Python NMS baseline.
r_facelib/detection/retinaface/retinaface_utils.py:39
↓ 2 callersFunctionquality_to_factor
Calculate factor corresponding to quality Args: quality(float): Quality for jpeg compression. Returns: float: Compres
r_basicsr/utils/diffjpeg.py:32
↓ 2 callersFunctionrandom_bivariate_Gaussian
Randomly generate bivariate isotropic or anisotropic Gaussian kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and
r_basicsr/data/degradations.py:182
↓ 2 callersFunctionrandom_bivariate_generalized_Gaussian
Randomly generate bivariate generalized Gaussian kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `rotation_ra
r_basicsr/data/degradations.py:226
↓ 2 callersFunctionrandom_bivariate_plateau
Randomly generate bivariate plateau kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `rotation_range` is ignor
r_basicsr/data/degradations.py:278
↓ 2 callersFunctionrandom_mixed_kernels
Randomly generate mixed kernels. Args: kernel_list (tuple): a list name of kernel types, support ['iso', 'aniso', 'skew',
r_basicsr/data/degradations.py:330
↓ 2 callersMethodrecord
(self)
r_basicsr/utils/logger.py:23
↓ 2 callersMethodreset_parameters
(self)
r_basicsr/ops/dcn/deform_conv.py:225
↓ 2 callersMethodrestore_face
( self, input_image, face_restore_model, face_restore_visi
nodes.py:169
↓ 2 callersFunctionrgba2rgb_tensor
(rgba)
reactor_utils.py:105
↓ 2 callersFunctionsam_predict
(predictor, points, plabs, bbox, threshold)
scripts/r_masking/core.py:329
↓ 2 callersMethodsave
Save networks and training state.
r_basicsr/models/base_model.py:32
↓ 2 callersFunctionsave_face_model
(face: Face, filename: str)
reactor_utils.py:155
↓ 2 callersFunctionscale_coords
(img1_shape, coords, img0_shape, ratio_pad=None)
r_facelib/detection/yolov5face/utils/general.py:42
↓ 2 callersFunctionset_ort_session
(model_path, providers)
reactor_utils.py:186
↓ 2 callersFunctionsizeof_fmt
Get human readable file size. Args: size (int): File size. suffix (str): Suffix. Default: 'B'. Return: str: F
r_basicsr/utils/misc.py:127
↓ 2 callersFunctionswap_face
( source_img: Union[Image.Image, None], target_img: Image.Image, model: Union[str, None] = None
scripts/reactor_swapper.py:220
↓ 2 callersFunctionswish
(x)
scripts/r_archs/vqgan_arch.py:20
↓ 2 callersMethodto_device
(self, obj, device)
scripts/r_masking/core.py:311
↓ 2 callersFunctionwindow_partition
Args: x: (b, h, w, c) window_size (int): window size Returns: windows: (num_windows*b, window_size, window_siz
r_basicsr/archs/swinir_arch.py:63
↓ 2 callersFunctionxywh2xyxy
(x)
r_facelib/detection/yolov5face/utils/general.py:32
↓ 1 callersFunctionAttentionBlock
(in_channel)
r_basicsr/archs/dfdnet_util.py:91
↓ 1 callersMethod__align_multi
(self, image, boxes, landmarks, limit=None)
r_facelib/detection/retinaface/retinaface.py:258
↓ 1 callersMethod__init__
(self, init_imgs)
modules/processing.py:3
↓ 1 callersMethod__init__
(self, cfg="yolov5s.yaml", ch=3, nc=None)
r_facelib/detection/yolov5face/models/yolo.py:96
↓ 1 callersMethod__init__
(self, c1, c2, k=3, s=1, g=1, e=1.0, shortcut=False)
r_facelib/detection/yolov5face/models/experimental.py:12
↓ 1 callersMethod__init__
(self)
r_facelib/parsing/resnet.py:50
↓ 1 callersMethod__init__
(self, scale, num_feat)
r_basicsr/archs/arch_util.py:107
↓ 1 callersMethod__init__
(self, load_path=None)
r_basicsr/archs/spynet_arch.py:36
↓ 1 callersMethod__init__
(self, num_in_ch, num_feat=64, skip_connection=True)
r_basicsr/archs/discriminator_arch.py:102
↓ 1 callersMethod__init__
(self, mid_channels=64, num_blocks=7, max_residue_magnit
r_basicsr/archs/basicvsrpp_arch.py:42
↓ 1 callersMethod__init__
(self, num_feat, dict_path)
r_basicsr/archs/dfdnet_arch.py:67
↓ 1 callersMethod__init__
(self, opt)
r_basicsr/data/vimeo90k_dataset.py:52
↓ 1 callersMethod__init__
(self, opt)
r_basicsr/data/reds_dataset.py:53
↓ 1 callersMethod__init__
(self, optimizer, milestones, gamma=0.1, restarts=(0, ), restart_weights=(1, ), last_epoch=-1)
r_basicsr/models/lr_scheduler.py:19
↓ 1 callersMethod__init__
(self, gan_type, real_label_val=1.0, fake_label_val=0.0, loss_weight=1.0)
r_basicsr/losses/gan_loss.py:23
↓ 1 callersMethod__iter__
(self)
r_basicsr/data/prefetch_dataloader.py:36
↓ 1 callersMethod__len__
(self)
r_basicsr/data/ffhq_dataset.py:79
↓ 1 callersMethod__len__
(self)
r_basicsr/data/realesrgan_dataset.py:192
↓ 1 callersFunction_augment
(img)
r_basicsr/data/transforms.py:120
↓ 1 callersFunction_augment_flow
(flow)
r_basicsr/data/transforms.py:129
↓ 1 callersMethod_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch. Batch processing limits the diversity of synthetic degradations in a
r_basicsr/models/realesrnet_model.py:31
↓ 1 callersMethod_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch. Batch processing limits the diversity of synthetic degradations in a
r_basicsr/models/realesrgan_model.py:32
↓ 1 callersMethod_divide_pred
Take the prediction of fake and real images from the combined batch. The prediction contains the intermediate outputs of multiscale
r_basicsr/models/hifacegan_model.py:98
↓ 1 callersFunction_get_activation_fn
Return an activation function given a string
scripts/r_archs/codeformer_arch.py:89
↓ 1 callersMethod_get_init_lr
Get the initial lr, which is set by the scheduler.
r_basicsr/models/base_model.py:161
↓ 1 callersMethod_infer_shape
(ctx, input, weight)
r_basicsr/ops/dcn/deform_conv.py:177
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
r_basicsr/utils/dist_util.py:21
↓ 1 callersFunction_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment
r_basicsr/utils/dist_util.py:28
↓ 1 callersMethod_initialize_biases
(self, cf=None)
r_facelib/detection/yolov5face/models/yolo.py:134
↓ 1 callersMethod_log_validation_metric_values
(self, current_iter, dataset_name, tb_logger)
r_basicsr/models/video_base_model.py:118
↓ 1 callersMethod_make_grid
(nx=20, ny=20)
r_facelib/detection/yolov5face/models/yolo.py:89
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
r_basicsr/archs/arch_util.py:243
↓ 1 callersMethod_output_size
(input, weight, padding, dilation, stride)
r_basicsr/ops/dcn/deform_conv.py:107
↓ 1 callersMethod_postprocess
Postprocessing of raw pytorch model output. Returns: bboxes: list of arrays with 4 coordinates of bounding boxes with
r_facelib/detection/yolov5face/face_detector.py:69
↓ 1 callersFunction_postprocess_yml_value
(value)
r_basicsr/utils/options.py:58
↓ 1 callersMethod_preprocess
Preprocessing image before passing through the network. Resize and conversion to torch tensor.
r_facelib/detection/yolov5face/face_detector.py:48
↓ 1 callersMethod_print_different_keys_loading
Print keys with different name or different size when loading models. 1. Print keys with different names. 2. If strict=False, prin
r_basicsr/models/base_model.py:242
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive)
r_facelib/utils/misc.py:125
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive)
r_basicsr/utils/misc.py:73
↓ 1 callersMethod_set_lr
Set learning rate for warm-up. Args: lr_groups_l (list): List for lr_groups, each for an optimizer.
r_basicsr/models/base_model.py:151
↓ 1 callersFunction_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img (ndarray): Imag
r_basicsr/metrics/psnr_ssim.py:172
↓ 1 callersFunction_ssim_pth
Calculate SSIM (structural similarity) (PyTorch version). It is called by func:`calculate_ssim_pt`. Args: img (Tensor): Images
r_basicsr/metrics/psnr_ssim.py:203
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate featu
scripts/r_archs/codeformer_arch.py:30
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate featu
r_basicsr/archs/dfdnet_util.py:74
↓ 1 callersFunctionaddLoggingLevel
(levelName, levelNum, methodName=None)
reactor_utils.py:133
↓ 1 callersFunctionadd_jpg_compression
Add JPG compression artifacts. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. quality (float):
r_basicsr/data/degradations.py:735
↓ 1 callersMethodadd_restored_face
(self, face)
r_facelib/utils/face_restoration_helper.py:298
↓ 1 callersFunctionalign_crop_face_landmarks
Align and crop face with landmarks. The output_size and transform_size are based on width. The height is adjusted based on shrink_ratio_h/
r_facelib/utils/face_utils.py:31
↓ 1 callersMethodalign_warp_face
Align and warp faces with face template.
r_facelib/utils/face_restoration_helper.py:253
↓ 1 callersFunctionautopad
(k, p=None)
r_facelib/detection/yolov5face/models/common.py:18
↓ 1 callersFunctionbatched_decode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: b_loc (tensor
r_facelib/detection/retinaface/retinaface_utils.py:297
↓ 1 callersFunctionbatched_decode_landm
Decode landm from predictions using priors to undo the encoding we did for offset regression at train time. Args: pre (tensor): lan
r_facelib/detection/retinaface/retinaface_utils.py:320
↓ 1 callersFunctionbatched_pil_to_tensor
(images)
reactor_utils.py:42
↓ 1 callersMethodbatched_transform
Arguments: frames: a list of PIL.Image, or torch.Tensor(shape=[n, h, w, c], type=np.float32, BGR format).
r_facelib/detection/retinaface/retinaface.py:284
↓ 1 callersFunctionbivariate_Gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In the isotropic mode, only `sig_x` is used. `sig_y` and `theta` is ignored.
r_basicsr/data/degradations.py:87
↓ 1 callersFunctionbivariate_generalized_Gaussian
Generate a bivariate generalized Gaussian kernel. Described in `Parameter Estimation For Multivariate Generalized Gaussian Distribut
r_basicsr/data/degradations.py:115
↓ 1 callersFunctionbivariate_plateau
Generate a plateau-like anisotropic kernel. 1 / (1+x^(beta)) Ref: https://stats.stackexchange.com/questions/203629/is-there-a-plateau-shap
r_basicsr/data/degradations.py:150
↓ 1 callersMethodbuild_face_model
(self, image: Image.Image, det_size=(640, 640))
nodes.py:501
↓ 1 callersFunctionchannel_shuffle
(x, groups)
r_facelib/detection/yolov5face/models/common.py:25
↓ 1 callersFunctioncharbonnier_loss
(pred, target, eps=1e-12)
r_basicsr/losses/basic_loss.py:23
↓ 1 callersFunctioncheck_anchor_order
(m)
r_facelib/detection/yolov5face/utils/autoanchor.py:4
↓ 1 callersMethodcheck_if_mirror_extended
Check whether the input is a mirror-extended sequence. If mirror-extended, the i-th (i=0, ..., t-1) frame is equal to the (t-1-i)-th
r_basicsr/archs/basicvsrpp_arch.py:108
↓ 1 callersFunctioncheck_img_size
(img_size, s=32)
r_facelib/detection/yolov5face/utils/general.py:9
↓ 1 callersFunctioncheck_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
r_basicsr/utils/misc.py:94
↓ 1 callersFunctionclip_coords
(boxes, img_shape)
r_facelib/detection/yolov5face/utils/general.py:58
↓ 1 callersFunctioncombine_masks2
(masks)
scripts/r_masking/core.py:464
↓ 1 callersFunctioncompute_feature
Compute features. Args: block (ndarray): 2D Image block. Returns: list: Features with length of 18.
r_basicsr/metrics/niqe.py:41
↓ 1 callersMethodcompute_flow
Compute optical flow using SPyNet for feature alignment. Note that if the input is an mirror-extended sequence, 'flows_forward' is n
r_basicsr/archs/basicvsrpp_arch.py:122
↓ 1 callersFunctionconv_block
Conv block used in MSDilationBlock.
r_basicsr/archs/dfdnet_util.py:97
↓ 1 callersFunctionconvert_and_stack_masks
(masks)
scripts/r_masking/core.py:501
↓ 1 callersFunctioncopy_attr
(a, b, include=(), exclude=())
r_facelib/detection/yolov5face/utils/torch_utils.py:34
↓ 1 callersFunctioncopy_opt_file
(opt_file, experiments_root)
r_basicsr/utils/options.py:181
↓ 1 callersFunctioncreate_train_val_dataloader
(opt, logger)
r_basicsr/train.py:29
↓ 1 callersFunctioncvt_tform_mat_for_cv2
Function: ---------- Convert Transform Matrix 'trans' into 'cv2_trans' which could be directly used by cv2.warpAffine():
r_facelib/detection/matlab_cp2tform.py:170
↓ 1 callersFunctiondecode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: loc (tensor):
r_facelib/detection/retinaface/retinaface_utils.py:254
↓ 1 callersFunctiondecode_landm
Decode landm from predictions using priors to undo the encoding we did for offset regression at train time. Args: pre (tensor): lan
r_facelib/detection/retinaface/retinaface_utils.py:274
↓ 1 callersFunctiondeform_conv_backward_input_cuda
r_basicsr/ops/dcn/src/deform_conv_cuda.cpp:262
↓ 1 callersFunctiondeform_conv_backward_parameters_cuda
r_basicsr/ops/dcn/src/deform_conv_cuda.cpp:376
← previousnext →201–300 of 1,050, ranked by callers