MCPcopy Create free account

hub / github.com/cosmicrealm/ComfyUI-Flux-FaceIR / functions

Functions99 in github.com/cosmicrealm/ComfyUI-Flux-FaceIR

↓ 14 callersMethod__init__
(self, in_channel: int, out_channels: int)
src/flux_faceir/retinaface_runtime.py:165
↓ 4 callersFunction_make_divisible
(value: float, divisor: int = 8)
src/flux_faceir/retinaface_runtime.py:100
↓ 4 callersMethod_make_layer
( self, block: type[BasicBlock] | type[Bottleneck], planes: int, blocks: int,
src/flux_faceir/retinaface_runtime.py:426
↓ 4 callersMethodapply
(self, model, lora_name)
src/nodes/apply_lora.py:22
↓ 4 callersFunctionensure_image_batch
(image: torch.Tensor)
src/nodes/common.py:13
↓ 3 callersFunctionclearNodePreview
(node)
web/js/preview_behavior.js:6
↓ 3 callersFunctioncombine_reference_batches
(*references, target_size: tuple[int, int] | None = None)
src/nodes/common.py:87
↓ 3 callersFunctioncomfy_images_to_numpy_rgb
(images: torch.Tensor)
src/nodes/common.py:21
↓ 3 callersFunctionconv1x1
(in_channels: int, out_channels: int, stride: int = 1)
src/flux_faceir/retinaface_runtime.py:349
↓ 3 callersFunctionconv3x3
(in_channels: int, out_channels: int, stride: int = 1)
src/flux_faceir/retinaface_runtime.py:345
↓ 2 callersFunction_device_key
(device: torch.device)
src/flux_faceir/retinaface_runtime.py:650
↓ 2 callersMethod_ordered_unique
(values)
src/nodes/detect_align_face.py:9
↓ 2 callersFunction_resolve_model_path
( *, folder_name: str, model_name: str, manual_model_path: str | None, allow_none: bool =
src/flux_faceir/comfy_paths.py:37
↓ 2 callersFunctionnumpy_rgb_list_to_comfy_image
(images: list[np.ndarray])
src/nodes/common.py:35
↓ 1 callersFunction_as_serializable
(value: Any)
src/flux_faceir/face_align.py:28
↓ 1 callersFunction_default_device
()
src/flux_faceir/retinaface_runtime.py:623
↓ 1 callersMethod_detect_with_fallbacks
( self, detector, source_image, *, conf_threshold, pre_nms_top
src/nodes/detect_align_face.py:16
↓ 1 callersFunction_ensure_model_folder
(folder_name: str, default_subdir: str)
src/flux_faceir/comfy_paths.py:13
↓ 1 callersFunction_extract_state_dict
(raw_state: Any)
src/flux_faceir/retinaface_runtime.py:664
↓ 1 callersFunction_get_release_ops
()
src/flux_faceir/runtime.py:15
↓ 1 callersFunction_load_checkpoint
(path: str, device: torch.device)
src/flux_faceir/retinaface_runtime.py:656
↓ 1 callersFunction_normalize_optional_path
(value: str | None)
src/flux_faceir/runtime.py:8
↓ 1 callersFunction_resize_image_batch
(batch: torch.Tensor, target_size: tuple[int, int])
src/nodes/common.py:71
↓ 1 callersFunctionalign_face
( image_rgb: np.ndarray, detection: np.ndarray, *, face_size: int = 512, crop_scale: float
src/flux_faceir/face_align.py:85
↓ 1 callersFunctionalign_params_to_json
(value: Any)
src/flux_faceir/face_align.py:42
↓ 1 callersFunctionbuild_backbone
(name: str)
src/flux_faceir/retinaface_runtime.py:473
↓ 1 callersFunctiondecode
(loc: Tensor, priors: Tensor, variances: list[float])
src/flux_faceir/retinaface_runtime.py:582
↓ 1 callersFunctiondecode_landmarks
(predictions: Tensor, priors: Tensor, variances: list[float])
src/flux_faceir/retinaface_runtime.py:591
↓ 1 callersMethoddetect
( self, image_rgb: np.ndarray, *, conf_threshold: float = 0.6, pre_nms
src/flux_faceir/retinaface_runtime.py:700
↓ 1 callersMethodgenerate_anchors
(self)
src/flux_faceir/retinaface_runtime.py:564
↓ 1 callersFunctionget_config
(network: str)
src/flux_faceir/retinaface_runtime.py:21
↓ 1 callersFunctionget_face_template
( *, face_size: int, crop_scale: float = 1.35, crop_shift_y: float = 0.0, )
src/flux_faceir/face_align.py:70
↓ 1 callersFunctionget_layer_extractor
(cfg: dict[str, Any], backbone: nn.Module)
src/flux_faceir/retinaface_runtime.py:467
↓ 1 callersFunctionget_lora_choices
()
src/flux_faceir/comfy_paths.py:29
↓ 1 callersFunctionget_retinaface_choices
()
src/flux_faceir/comfy_paths.py:33
↓ 1 callersFunctionget_retinaface_detector
(*, weights_path: str, network: str, device_name: str | None = None)
src/flux_faceir/retinaface_runtime.py:762
↓ 1 callersMethodload
(self, retinaface_name, network, device, manual_retinaface_path)
src/nodes/load_retinaface.py:37
↓ 1 callersFunctionmain
()
install.py:8
↓ 1 callersFunctionnms
(dets: np.ndarray, threshold: float)
src/flux_faceir/retinaface_runtime.py:597
↓ 1 callersFunctionnormalize_context_batch
(face_context: Any, expected: int)
src/nodes/common.py:59
↓ 1 callersFunctionnumpy_mask_list_to_comfy_mask
(masks: list[np.ndarray])
src/nodes/common.py:42
↓ 1 callersFunctionnumpy_rgb_to_comfy_image
(image_rgb: np.ndarray)
src/nodes/common.py:30
↓ 1 callersFunctionpaste_face_back
( image_rgb: np.ndarray, restored_face_rgb: np.ndarray, align_params: dict[str, Any], *, m
src/flux_faceir/face_align.py:131
↓ 1 callersFunctionpil_to_comfy_image
(image: Image.Image)
src/nodes/common.py:54
↓ 1 callersFunctionprepare_faceir_model
(*, model, lora_path: str | None)
src/flux_faceir/runtime.py:21
↓ 1 callersFunctionprepare_retinaface_model
(*, weights_path: str, network: str, device_name: str | None = None)
src/flux_faceir/retinaface_runtime.py:775
↓ 1 callersFunctionresolve_device
(device_name: str | None)
src/flux_faceir/retinaface_runtime.py:637
↓ 1 callersFunctionresolve_lora_path
(lora_name: str, manual_lora_path: str | None)
src/flux_faceir/comfy_paths.py:52
↓ 1 callersFunctionresolve_retinaface_path
(retinaface_name: str, manual_retinaface_path: str | None)
src/flux_faceir/comfy_paths.py:61
↓ 1 callersFunctionrestore_face
( *, faceir_model: dict[str, Any], clip, vae, face_image: torch.Tensor, prompt: str,
src/flux_faceir/runtime.py:29
↓ 1 callersFunctionselect_face_detection
(detections: np.ndarray, selection: str, image_shape: tuple[int, int, int])
src/flux_faceir/face_align.py:46
MethodINPUT_TYPES
(cls)
src/nodes/paste_back_face.py:14
MethodINPUT_TYPES
(cls)
src/nodes/restore_face.py:17
MethodINPUT_TYPES
(cls)
src/nodes/detect_align_face.py:59
MethodINPUT_TYPES
(cls)
src/nodes/apply_lora.py:9
MethodINPUT_TYPES
(cls)
src/nodes/load_retinaface.py:9
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int = 3, str
src/flux_faceir/retinaface_runtime.py:108
Method__init__
(self, in_channels: int, out_channels: int, stride: int)
src/flux_faceir/retinaface_runtime.py:148
Method__init__
(self, in_channels_list: list[int], out_channels: int)
src/flux_faceir/retinaface_runtime.py:200
Method__init__
(self, model: nn.Module, indexes: list[int])
src/flux_faceir/retinaface_runtime.py:220
Method__init__
(self, width_mult: float)
src/flux_faceir/retinaface_runtime.py:235
Method__init__
(self, in_planes: int, out_planes: int, stride: int, expand_ratio: int)
src/flux_faceir/retinaface_runtime.py:279
Method__init__
(self)
src/flux_faceir/retinaface_runtime.py:310
Method__init__
( self, in_channels: int, out_channels: int, stride: int = 1, downsamp
src/flux_faceir/retinaface_runtime.py:356
Method__init__
( self, in_channels: int, out_channels: int, stride: int = 1, downsamp
src/flux_faceir/retinaface_runtime.py:384
Method__init__
(self, block: type[BasicBlock] | type[Bottleneck], layers: list[int])
src/flux_faceir/retinaface_runtime.py:414
Method__init__
(self, in_channels: int, num_anchors: int = 2, fpn_num: int = 3)
src/flux_faceir/retinaface_runtime.py:490
Method__init__
(self, in_channels: int, num_anchors: int = 2, fpn_num: int = 3)
src/flux_faceir/retinaface_runtime.py:502
Method__init__
(self, in_channels: int, num_anchors: int = 2, fpn_num: int = 3)
src/flux_faceir/retinaface_runtime.py:514
Method__init__
(self, cfg: dict[str, Any])
src/flux_faceir/retinaface_runtime.py:526
Method__init__
(self, cfg: dict[str, Any], image_size: tuple[int, int])
src/flux_faceir/retinaface_runtime.py:557
Method__init__
(self, *, weights_path: str, network: str, device: torch.device)
src/flux_faceir/retinaface_runtime.py:688
FunctionbeforeRegisterNodeDef
(nodeType, nodeData)
web/js/preview_behavior.js:20
Functioncomfy_image_to_model_batch
(images: torch.Tensor)
src/nodes/common.py:49
Methoddetect_and_align
( self, retinaface_model, image, face_selection, face_size, cr
src/nodes/detect_align_face.py:82
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:191
Methodforward
(self, inputs: OrderedDict[str, Tensor] | dict[str, Tensor])
src/flux_faceir/retinaface_runtime.py:209
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:225
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:259
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:303
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:337
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:371
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:402
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:445
Methodforward
(self, features: list[Tensor])
src/flux_faceir/retinaface_runtime.py:496
Methodforward
(self, features: list[Tensor])
src/flux_faceir/retinaface_runtime.py:508
Methodforward
(self, features: list[Tensor])
src/flux_faceir/retinaface_runtime.py:520
Methodforward
(self, x: Tensor)
src/flux_faceir/retinaface_runtime.py:544
Functionmobilenet_v1
()
src/flux_faceir/retinaface_runtime.py:274
Functionmobilenet_v1_025
()
src/flux_faceir/retinaface_runtime.py:266
Functionmobilenet_v1_050
()
src/flux_faceir/retinaface_runtime.py:270
Functionmobilenet_v2
()
src/flux_faceir/retinaface_runtime.py:341
Methodpaste
(self, image, restored_face, align_params, mask_softness)
src/nodes/paste_back_face.py:29
Functionresnet18
()
src/flux_faceir/retinaface_runtime.py:455
Functionresnet34
()
src/flux_faceir/retinaface_runtime.py:459
Functionresnet50
()
src/flux_faceir/retinaface_runtime.py:463
Methodrestore
( self, faceir_model, clip, vae, face_image, prompt, r
src/nodes/restore_face.py:42
Methodtest_resizes_mismatched_references_to_target_size
(self)
tests/test_common.py:9
Methodtest_returns_none_without_references
(self)
tests/test_common.py:18