MCPcopy Create free account

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

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

↓ 1 callersFunctiondeform_conv_forward_cuda
r_basicsr/ops/dcn/src/deform_conv_cuda.cpp:152
↓ 1 callersMethoddenormalize
(self, img)
r_basicsr/archs/tof_arch.py:134
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scala
r_basicsr/utils/flow_util.py:150
↓ 1 callersMethoddetect
(self, image, threshold, dilation, crop_factor, drop_size=1, detailer_hook=None)
scripts/r_masking/subcore.py:67
↓ 1 callersFunctiondilate_mask
(mask, dilation_factor, iter=1)
scripts/r_masking/core.py:483
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
r_basicsr/models/video_base_model.py:18
↓ 1 callersFunctiondownload
(url, path, name)
reactor_utils.py:112
↓ 1 callersFunctiondownload
(url, path, name)
install.py:52
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). From: https://github.com/rwightman/pytorch-image-model
r_basicsr/archs/swinir_arch.py:14
↓ 1 callersFunctionencode
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. A
r_facelib/detection/retinaface/retinaface_utils.py:200
↓ 1 callersFunctionencode_landm
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. A
r_facelib/detection/retinaface/retinaface_utils.py:224
↓ 1 callersMethodexecute
(self, enabled, input_image, swap_model, detect_gender_source, detect_gender_input, source_faces_index, input_
nodes.py:320
↓ 1 callersFunctionfid_inception_v3
Build pretrained Inception model for FID computation. The Inception model for FID computation uses a different set of weights and has a sl
r_basicsr/archs/inception.py:155
↓ 1 callersFunctionfindSimilarity
(uv, xy, options=None)
r_facelib/detection/matlab_cp2tform.py:94
↓ 1 callersMethodforward
(self)
r_facelib/detection/retinaface/retinaface_utils.py:19
↓ 1 callersMethodforward
(self, x)
r_facelib/detection/yolov5face/models/yolo.py:120
↓ 1 callersMethodforward_once
(self, x)
r_facelib/detection/yolov5face/models/yolo.py:123
↓ 1 callersFunctionfuse_conv_and_bn
(conv, bn)
r_facelib/detection/yolov5face/utils/torch_utils.py:5
↓ 1 callersFunctiong_path_regularize
(fake_img, latents, mean_path_length, decay=0.01)
r_basicsr/losses/gan_loss.py:160
↓ 1 callersMethodgaussian_blur
(self, image, kernel_size, sigma)
nodes.py:1006
↓ 1 callersFunctiongen_detection_hints_from_mask_area
(x, y, mask, threshold, use_negative)
scripts/r_masking/core.py:367
↓ 1 callersFunctiongen_negative_hints
(w, h, x1, y1, x2, y2)
scripts/r_masking/core.py:388
↓ 1 callersFunctiongenerate_config
(network_name)
r_facelib/detection/retinaface/retinaface.py:35
↓ 1 callersFunctiongenerate_detection_hints
(image, seg, center, detection_hint, dilated_bbox, mask_hint_threshold, use_small_negative,
scripts/r_masking/core.py:404
↓ 1 callersFunctiongenerate_gaussian_kernel
Generate Gaussian kernel used in `duf_downsample`. Args: kernel_size (int): Kernel size. Default: 13. sigma (float): Sigma of
r_basicsr/data/data_util.py:265
↓ 1 callersMethodget
(self, filepath, client_key='default')
r_basicsr/utils/file_client.py:158
↓ 1 callersFunctiongetAnalysisModel
(det_size = (640, 640))
scripts/reactor_swapper.py:106
↓ 1 callersFunctionget_affine_transform_matrix
Function: ---------- get affine transform matrix 'tfm' from src_pts to dst_pts Parameters: ---------- @src_pts:
r_facelib/detection/align_trans.py:112
↓ 1 callersFunctionget_center_face
(det_faces, h=0, w=0, center=None)
r_facelib/utils/face_restoration_helper.py:34
↓ 1 callersMethodget_codebook_feat
(self, indices, shape)
scripts/r_archs/vqgan_arch.py:74
↓ 1 callersFunctionget_confirm_token
(response)
r_basicsr/utils/download_util.py:42
↓ 1 callersFunctionget_current_faces_model
()
scripts/reactor_swapper.py:102
↓ 1 callersMethodget_current_learning_rate
(self)
r_basicsr/models/base_model.py:192
↓ 1 callersMethodget_current_log
(self)
r_basicsr/models/base_model.py:84
↓ 1 callersMethodget_face_landmarks_5
(self, only_keep_largest=False, only_center_face=F
r_facelib/utils/face_restoration_helper.py:133
↓ 1 callersMethodget_flow
(self, x)
r_basicsr/archs/basicvsr_arch.py:44
↓ 1 callersMethodget_flow
(self, x)
r_basicsr/archs/basicvsr_arch.py:192
↓ 1 callersMethodget_inverse_affine
Get inverse affine matrix.
r_facelib/utils/face_restoration_helper.py:285
↓ 1 callersMethodget_keyframe_feature
(self, x, keyframe_idx)
r_basicsr/archs/basicvsr_arch.py:203
↓ 1 callersFunctionget_local_weights
Get local weights for generating the artifact map of LDL. It is only called by the `get_refined_artifact_map` function. Args: r
r_basicsr/losses/loss_util.py:99
↓ 1 callersFunctionget_nonspade_norm_layer
(norm_type='instance')
r_basicsr/archs/hifacegan_util.py:217
↓ 1 callersFunctionget_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_
r_basicsr/models/lr_scheduler.py:36
↓ 1 callersFunctionget_refined_artifact_map
Calculate the artifact map of LDL (Details or Artifacts: A Locally Discriminative Learning Approach to Realistic Image Super-Resolution. In CVPR
r_basicsr/losses/loss_util.py:121
↓ 1 callersFunctionget_similarity_transform_for_cv2
Function: ---------- Find Similarity Transform Matrix 'cv2_trans' which could be directly used by cv2.warpAffine():
r_facelib/detection/matlab_cp2tform.py:198
↓ 1 callersMethodget_target_label
Get target label. Args: input (Tensor): Input tensor. target_is_real (bool): Whether the target is real or fake.
r_basicsr/losses/gan_loss.py:72
↓ 1 callersFunctionimg2tensor
Numpy array to tensor. Args: imgs (list[ndarray] | ndarray): Input images. bgr2rgb (bool): Whether to change bgr to rgb.
r_facelib/utils/misc.py:57
↓ 1 callersFunctionimresize
imresize function same as MATLAB. It now only supports bicubic. The same scale applies for both height and width. Args: im
r_basicsr/utils/matlab_functions.py:86
↓ 1 callersMethodinit_offset
(self)
r_basicsr/ops/dcn/deform_conv.py:279
↓ 1 callersMethodinit_offset
(self)
r_basicsr/archs/basicvsrpp_arch.py:372
↓ 1 callersFunctioninit_parsing_model
(model_name='bisenet', half=False, device='cuda')
r_facelib/parsing/__init__.py:8
↓ 1 callersFunctioninit_retinaface_model
(model_name, half=False, device='cuda')
r_facelib/detection/__init__.py:26
↓ 1 callersFunctioninit_tb_logger
(log_dir)
r_basicsr/utils/logger.py:119
↓ 1 callersFunctioninit_tb_loggers
(opt)
r_basicsr/train.py:17
↓ 1 callersMethodinit_training_settings
(self)
r_basicsr/models/sr_model.py:35
↓ 1 callersMethodinit_training_settings
(self)
r_basicsr/models/stylegan2_model.py:42
↓ 1 callersFunctioninit_wandb_logger
We now only use wandb to sync tensorboard log.
r_basicsr/utils/logger.py:126
↓ 1 callersMethodinit_weights
(self)
r_basicsr/ops/dcn/deform_conv.py:367
↓ 1 callersFunctioninit_yolov5face_model
(model_name, device='cuda')
r_facelib/detection/__init__.py:50
↓ 1 callersFunctioninsert_bn
Insert bn layer after each conv. Args: names (list): The list of layer names. Returns: list: The list of layer names w
r_basicsr/archs/vgg_arch.py:36
↓ 1 callersFunctionintersect
We resize both tensors to [A,B,2] without new malloc: [A,2] -> [A,1,2] -> [A,B,2] [B,2] -> [1,B,2] -> [A,B,2] Then we compute the area
r_facelib/detection/retinaface/retinaface_utils.py:79
↓ 1 callersFunctionisListempty
(inList)
r_facelib/detection/yolov5face/face_detector.py:22
↓ 1 callersFunctionjaccard
Compute the jaccard overlap of two sets of boxes. The jaccard overlap is simply the intersection over union of two boxes. Here we operate on
r_facelib/detection/retinaface/retinaface_utils.py:98
↓ 1 callersFunctionl1_loss
(pred, target)
r_basicsr/losses/basic_loss.py:13
↓ 1 callersFunctionlip2d
(x, logit, kernel=3, stride=2, padding=1)
r_basicsr/archs/hifacegan_util.py:154
↓ 1 callersFunctionload_face_model
(filename: str)
reactor_utils.py:174
↓ 1 callersFunctionload_resume_state
(opt)
r_basicsr/train.py:68
↓ 1 callersFunctionmake_bbox_head
(fpn_num=3, inchannels=64, anchor_num=2)
r_facelib/detection/retinaface/retinaface_net.py:185
↓ 1 callersFunctionmake_class_head
(fpn_num=3, inchannels=64, anchor_num=2)
r_facelib/detection/retinaface/retinaface_net.py:178
↓ 1 callersFunctionmake_landmark_head
(fpn_num=3, inchannels=64, anchor_num=2)
r_facelib/detection/retinaface/retinaface_net.py:192
↓ 1 callersFunctionmerge_and_stack_masks
(stacked_masks, group_size)
scripts/r_masking/core.py:516
↓ 1 callersFunctionmod_crop
Mod crop images, used during testing. Args: img (ndarray): Input image. scale (int): Scale factor. Returns: n
r_basicsr/data/transforms.py:6
↓ 1 callersFunctionmodulated_deform_conv_cuda_backward
r_basicsr/ops/dcn/src/deform_conv_cuda.cpp:571
↓ 1 callersFunctionmodulated_deform_conv_cuda_forward
r_basicsr/ops/dcn/src/deform_conv_cuda.cpp:490
↓ 1 callersFunctionmse_loss
(pred, target)
r_basicsr/losses/basic_loss.py:18
↓ 1 callersFunctionnamedtuple
Returns a new subclass of tuple with named fields. >>> Point = namedtuple('Point', ['x', 'y']) >>> Point.__doc__ # docst
scripts/r_masking/core.py:24
↓ 1 callersFunctionniqe
Calculate NIQE (Natural Image Quality Evaluator) metric. Ref: Making a "Completely Blind" Image Quality Analyzer. This implementation coul
r_basicsr/metrics/niqe.py:68
↓ 1 callersFunctionnon_max_suppression_face
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:89
↓ 1 callersMethodnondist_validation
(self, dataloader, current_iter, tb_logger, save_img)
r_basicsr/models/stylegan2_model.py:265
↓ 1 callersMethodnondist_validation
TODO: Validation using updated metric system The metrics are now evaluated after all images have been tested This allows b
r_basicsr/models/hifacegan_model.py:216
↓ 1 callersMethodoptimize_parameters
(self, current_iter)
r_basicsr/models/sr_model.py:92
↓ 1 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: yaml Loader and Dumper.
r_basicsr/utils/options.py:12
↓ 1 callersMethodpad_spatial
Apply padding spatially. Since the PCD module in EDVR requires that the resolution is a multiple of 4, we apply padding to the inp
r_basicsr/archs/basicvsr_arch.py:169
↓ 1 callersFunctionpaired_paths_from_meta_info_file
Generate paired paths from an meta information file. Each line in the meta information file contains the image names and image shape (usua
r_basicsr/data/data_util.py:154
↓ 1 callersFunctionparse_model
(d, ch)
r_facelib/detection/yolov5face/models/yolo.py:181
↓ 1 callersFunctionpaste_face_back
(img, face, inverse_affine)
r_facelib/utils/face_utils.py:190
↓ 1 callersMethodpaste_faces_to_input_image
(self, save_path=None, upsample_img=None, draw_box=False, face_upsampler=None)
r_facelib/utils/face_restoration_helper.py:302
↓ 1 callersFunctionpaths_from_lmdb
Generate paths from lmdb. Args: folder (str): Folder path. Returns: list[str]: Returned path list.
r_basicsr/data/data_util.py:249
↓ 1 callersFunctionpdf2
Calculate PDF of the bivariate Gaussian distribution. Args: sigma_matrix (ndarray): with the shape (2, 2) grid (ndarray): gen
r_basicsr/data/degradations.py:53
↓ 1 callersFunctionpil_to_tensor
(image)
reactor_utils.py:33
↓ 1 callersFunctionpoint_form
Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth data. Args: boxes: (tenso
r_facelib/detection/retinaface/retinaface_utils.py:50
↓ 1 callersMethodprocess
( self, p: StableDiffusionProcessing, img, enable, source_faces_i
scripts/reactor_faceswap.py:35
↓ 1 callersMethodprocess
(self, ref, supp)
r_basicsr/archs/spynet_arch.py:49
↓ 1 callersMethodpropagate
Propagate the latent features throughout the sequence. Args: feats dict(list[tensor]): Features from previous branches. Each
r_basicsr/archs/basicvsrpp_arch.py:153
↓ 1 callersMethodput_dict_to_device
(self, x)
r_basicsr/archs/dfdnet_arch.py:126
↓ 1 callersFunctionquantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be cl
r_basicsr/utils/flow_util.py:126
↓ 1 callersFunctionquantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args:
r_basicsr/utils/flow_util.py:76
↓ 1 callersFunctionr1_penalty
R1 regularization for discriminator. The core idea is to penalize the gradient on real data alone: when the generator distribution p
r_basicsr/losses/gan_loss.py:143
↓ 1 callersFunctionrandom_generate_gaussian_noise
(img, sigma_range=(0, 10), gray_prob=0)
r_basicsr/data/degradations.py:519
↓ 1 callersFunctionrandom_generate_gaussian_noise_pt
(img, sigma_range=(0, 10), gray_prob=0)
r_basicsr/data/degradations.py:540
↓ 1 callersFunctionrandom_generate_poisson_noise
(img, scale_range=(0, 1.0), gray_prob=0)
r_basicsr/data/degradations.py:689
← previousnext →301–400 of 1,050, ranked by callers