Analysis updated 2026-05-18
Replace the head in a portrait photo with a different person's face and hair using AI generation that matches lighting and skin tone.
Composite a character's head onto a different body or scene by providing a reference face and a target image.
Use the creative-edit mode with a descriptive prompt and reference image to change a person's hairstyle or clothing in a generated image.
| adeliox/klein-head-swap | ats4321/ragit | audiohacking/audiogen.cpp | |
|---|---|---|---|
| Stars | 4 | 4 | 4 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 3/5 | 2/5 | 4/5 |
| Audience | designer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires the Flux.2 Klein model checkpoint and the bfs_head_v1 LoRA file downloaded separately before the extension will function.
Klein Head Swap is an extension for Forge-Neo, a variant of the Stable Diffusion image generation web interface. Its purpose is to transplant the entire head, including both face and hair, from a reference photo onto a target image during the generation process. You upload a target photo (the body or scene you want the head placed onto) and a separate reference photo (the person whose head you want to copy), and the AI model generates the result with the two combined. The extension works specifically with the Flux.2 Klein model, not with general-purpose Stable Diffusion checkpoints. Klein has a built-in mechanism for referencing an input image during generation, and this extension hooks into that mechanism to feed the reference face into the process. A LoRA fine-tuning file called bfs_head_v1 is also required, you download it separately and place it in the LoRA folder of your Forge-Neo installation. Because the head is generated by the model rather than pasted on top as a post-processing step, the result adapts to the lighting and skin tones of the target scene. The README contrasts this with older face-swap tools that produce noticeable artifacts because they composite pixels rather than regenerating the head as part of the image. The extension has two modes. When you leave the prompt empty, the LoRA takes control and performs the head swap. When you write a descriptive prompt, the reference image acts as visual context while the prompt drives the generation, which the README describes as useful for compositing, style changes, and background modifications. Installation involves cloning the repository into the extensions folder of Forge-Neo and restarting the interface. The extension then appears as a panel in the img2img tab. Key settings include the denoise strength, which must be set to 1.0 for the head swap to work correctly, and a maximum pixel size for the reference image that controls how much detail is preserved versus how much video memory is consumed. No license is stated in the repository.
A Forge-Neo extension that swaps an entire head (face and hair) from a reference photo onto a target image using the Flux.2 Klein model and a Faceswap LoRA, generating the result rather than pasting pixels.
Mainly Python. The stack also includes Python, Stable Diffusion, Flux.2 Klein.
No license is stated in this repository.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly designer.
This repo across BitVibe Labs
Verify against the repo before relying on details.