Model
Trends
.ai
Model
Trends
.ai
i migliori modelli di IA open source

Nodo ReActor Fast Face Swap in ComfyUI

ReActor swaps a face from a source photo onto the generated picture with InsightFace, with optional restoration (GFPGAN, CodeFormer) and face boosting, for consistent characters without training a LoRA.
Pacchetto di nodi: ComfyUI-ReActor
Categoria: Pacchetti di nodi personalizzati popolari
Questa pagina non è ancora tradotta, quindi è mostrata in inglese.

Cosa fa ReActor Fast Face Swap

ReActor (ComfyUI-ReActor, previously comfyui-reactor-node) runs the inswapper_128 model: it detects faces in the input image and the source image, swaps the identity, then runs a restoration model to clean up the low-resolution swap. Options select which face index to swap, gender detection, restore_face model and visibility, and codeformer_weight. A Face Boost option re-upscales the swapped face.
Use it after your sampler and before Save Image: generate the scene with any face, then swap in the character. It is fast (a second per face) and works with any base model since it operates on pixels. For the best quality combine it with a FaceDetailer pass at low denoise after the swap.

Ingressi

Nome
Tipo
Cos'è
input_image
IMAGE
The generated picture.
source_image
IMAGE
A photo of the face to transplant (or a saved face model).
swap_model
COMBO
inswapper_128.onnx.
facedetection
COMBO
retinaface_resnet50 and others.
face_restore_model / face_restore_visibility / codeformer_weight
COMBO / FLOAT
Post-restoration settings.
detect_gender_input / detect_gender_source / input_faces_index / source_faces_index
COMBO / STRING
Which faces to swap, 0 is the largest or leftmost.

Uscite

Nome
Tipo
Cos'è
IMAGE
IMAGE
The swapped picture.
FACE_MODEL
FACE_MODEL
Reusable embedding of the source face.
AD
Salta la configurazione: workflow ComfyUI preinstallati sul cloud
BitVector esegue workflow ComfyUI pronti all'uso sulle proprie GPU. Niente installazione, niente nodi mancanti, niente riquadri rossi. Aprilo dal telefono o dal portatile e genera in un minuto.

Come usare ReActor Fast Face Swap

  1. Install ComfyUI-ReActor from Manager; on Windows install the insightface wheel and Visual C++ build tools if prompted.
  2. Add ReActor Fast Face Swap after VAE Decode; connect input_image and a source_image from Load Image.
  3. Pick inswapper_128.onnx and restore with GFPGANv1.4 at visibility 1, codeformer_weight 0.5.
  4. Queue; adjust input_faces_index when the wrong person is swapped.
  5. Optional: follow with FaceDetailer at denoise 0.3 for sharper skin.

Impostazioni e consigli

  • A frontal, well-lit source photo gives the best swap.
  • Save a FACE_MODEL with Save Face Model and reuse it across workflows.
  • The swap is 128 px: the restoration step matters; try CodeFormer for sharpness, GFPGAN for naturalness.
  • For a group picture, set input_faces_index to "0,1" and source_faces_index to "0,0".

Risoluzione dei problemi di ReActor Fast Face Swap

ModuleNotFoundError: insightface or onnxruntime

Perché succede
The Python dependencies did not compile; common on Windows without build tools.

Come risolverlo
Install the prebuilt insightface wheel for your Python version into the ComfyUI environment and onnxruntime-gpu, then restart.

No face detected in source image

Perché succede
The photo is too small, side-on or occluded.

Come risolverlo
Use a larger frontal photo; crop it to the face area.

The swapped face is blurry or plastic

Perché succede
The inswapper output is 128 px and the restorer smooths it.

Come risolverlo
Enable Face Boost or follow with FaceDetailer at denoise 0.3; lower face_restore_visibility to 0.7.

The node is red / NSFW filter error

Perché succede
The pack has an NSFW detector step that needs its model download; failed downloads block the node.

Come risolverlo
Check the console for the download URL, place the model where indicated and restart.

AD
Esegui questo workflow dal telefono
Ogni workflow di questa pagina è preinstallato su BitVector con modelli e nodi personalizzati già al loro posto. Scegline uno, scrivi un prompt, fatto. Zero configurazione, niente da scaricare.

Domande su ReActor Fast Face Swap

Is ReActor better than a LoRA?

It is faster and needs one photo, but copies only the face region at 128 px. A LoRA captures body, hair and expression and renders at full quality.

Can it swap faces in video?

Yes, per frame: batch the frames from Load Video and swap, then recombine with Video Combine.

Nodi correlati

FaceDetailer (Impact Pack)
ComfyUI-Impact-Pack
FaceDetailer finds faces (or hands, eyes) with a YOLO detector, crops each one, re-renders it at full resolution with your model and prompt, and pastes it back, fixing the small, mushy faces in wide shots.
Load Image
ComfyUI core
Load Image reads a picture from the ComfyUI input folder (or an upload) and outputs an IMAGE tensor plus a MASK taken from the alpha channel, the starting point for img2img, inpainting, ControlNet and IP-Adapter graphs.
Save Image
ComfyUI core
Save Image writes the IMAGE tensor to ComfyUI/output as a PNG, with the whole workflow embedded in the file metadata so the picture can be dragged back into ComfyUI to restore the graph.
Video Combine (VideoHelperSuite)
ComfyUI-VideoHelperSuite
Video Combine turns an IMAGE batch of frames into an MP4, WebM, GIF or image sequence at a chosen frame rate, with optional audio, loop count and ping-pong, the standard output node for every video workflow.
AD
Stanco di riparare nodi? Lascia fare al cloud
BitVector mantiene centinaia di workflow ComfyUI installati, aggiornati e testati su GPU cloud veloci. Niente Python, niente errori CUDA, niente limiti di VRAM. Funziona da qualsiasi browser.

Altri nodi ComfyUI

CLIP Text Encode (Prompt)
ComfyUI core
CLIP Text Encode turns a text prompt into CONDITIONING using the model text encoder. One node holds the positive prompt, a second one the negative prompt.
ComfyUI Manager
ComfyUI-Manager
ComfyUI Manager is the extension that installs, updates and fixes custom node packs and models from inside the interface, resolves missing nodes in imported workflows and snapshots your setup.
KSampler
ComfyUI core
KSampler runs the denoising loop: it takes the model, prompts and a latent and produces the finished latent image, controlled by seed, steps, cfg, sampler, scheduler and denoise.
Load Checkpoint
ComfyUI core
Load Checkpoint (CheckpointLoaderSimple) opens a .safetensors or .ckpt model file and hands out the three parts every workflow needs: the diffusion MODEL, the CLIP text encoder and the VAE.
VAE Decode
ComfyUI core
VAE Decode converts the sampled LATENT into a pixel IMAGE with the VAE; VAE Decode (Tiled) does the same in tiles for very large images.
Empty Latent Image
ComfyUI core
Empty Latent Image creates the blank latent canvas (width, height, batch_size) that text-to-image sampling starts from; dimensions must be multiples of 8 and match the model family.