Refining ReActor’s Face Swap Results with InstantID
5.0
1 reviewsDescription
Weaknesses of ReActor
- ReActor can only create images of 128px × 128px, so the resolution is inherently low.
- To compensate for this, there are tools like Codeformer and GFPGAN, but they tend to make the skin look flat.
- Also, it lacks a sense of depth.
- We resolve this by using a Detailer with InstantID.
Workflow
- If the base image is too large, it will be automatically resized so that the shorter side becomes 2000px.
- Face Swap with ReActor.
- Generate a caption using JoyTag based on SEGS and use it as a prompt.
- Add InstantID.
- Run two cycles of sampling.
- Combine the SEGS, which has been processed by the Detailer, with the base image before resizing using the SEGSPaste node.
Unresolved Weaknesses of ReActor
- ReActor cannot fully respond to images taken from extreme angles, such as from directly above.
- If the base image shows the forehead but the reference image has bangs, it may not work well.
- It cannot keep up with large changes in facial expressions, such as winking or sticking out the tongue.
🚨Update
- 22/2/2024
- Due to the update of InstantID, the old workflow stopped working, so I have made corrections.
- I have modified the reference images to segment within the range of the face.
- I have changed the prompt generation from Joytag to llava-v1.6-mistral-7b.
日本語での解説
Discussion
(No comments yet)
Loading...
Reviews
No reviews yet
Versions (2)
- latest (2 years ago)
- v20240217-073420
Node Details
Primitive Nodes (4)
Reroute (4)
Custom Nodes (37)
ComfyUI
- SelfAttentionGuidance (1)
- CLIPTextEncode (3)
- LoraLoader (2)
- CheckpointLoaderSimple (1)
- ControlNetLoader (1)
- PreviewImage (2)
- ConditioningCombine (1)
- LoadImage (2)
- SEGSPaste (1)
- ImpactSimpleDetectorSEGS (2)
- ImpactSEGSOrderedFilter (2)
- UltralyticsDetectorProvider (1)
- SAMLoader (1)
- ToBasicPipe (1)
- DenoiseSchedulerDetailerHookProvider (1)
- SEGSPreview (2)
- DetailerForEachDebugPipe (1)
- InstantIDFaceAnalysis (1)
- InstantIDModelLoader (1)
- ApplyInstantID (1)
- FaceKeypointsPreprocessor (1)
- Automatic CFG (1)
- ImageResize (1)
- ShowText|pysssss (1)
- ReActorFaceSwap (1)
- LLava Loader Simple (1)
- LlavaClipLoader (1)
- LLavaSamplerSimple (1)
- SimpleText (1)
Model Details
Checkpoints (1)
📷-XL\epicrealismXL_v2Wip.safetensors
LoRAs (2)
XL\👩\SDXL_BetterFaces-LoRA_v1.safetensors
XL\👩\epiCPhotoXL.safetensors