BFS Head V1.1: Qwen Image 2.1 In-Context Face & Head Swap (Surgical Skin-Detail Ablation)
Full Resolution
Generation Specs RTX 4070
Sampler euler
Scheduler simple
Steps 8
CFG Scale 1
Seed 42
Target VRAM 12GB
VRAM 10GB - 12GB
GPU Compatibility
Optimal Performance

Runs entirely in VRAM with no memory swapping.

Qwen Image 2.1 (DiT) In-Context Face Swap Min 10GB VRAM 832×1248 RTX 4070 Verified

BFS Head V1.1: Qwen Image 2.1 In-Context Face & Head Swap (Surgical Skin-Detail Ablation)

Surgical in-context head-swapping architecture powered by Qwen Image 2.1 DiT and BFS V1.1 LoRA, utilizing selective weight ablation to eliminate plastic skin while preserving 3D head pose and natural lighting.

Blueprint Summary RTX 4070 Verified

Reproducible ComfyUI workflow for BFS Head V1.1: Qwen Image 2.1 In-Context Face & Head Swap (Surgical Skin-Detail Ablation) using Qwen Image 2.1 (DiT) at 832×1248 resolution. Requires minimum 10GB VRAM with sampler euler and scheduler simple (8 steps). Includes 1-click terminal model sync and canvas JSON graph.

Pipeline Flow 11 Nodes
Open in Resolver
01 Load Models
UnetLoaderGGUF
5 loaders (DiT, CLIP, VAE)
02 Adapters
LoraLoaderModelOnly
2 adapters
03 Conditioning
TextEncodeQwenImage21
1 prompt encodings
04 KSampler
KSampler
DiT latent denoising
05 Decode & Save
VAEDecode
Latent to pixel space

Execution DAG Topology Interactive Visualizer

Drag to pan · Scroll to zoom · Hover wires
Node Graph 0 nodes
MODEL CLIP LATENT VAE IMAGE

Model & Asset Setup Setup Script

Run in your ComfyUI root:

curl -fsSL https://decomfy.com/api/scripts/bfs-head-swap-v1-1-qwen-image-2-1.sh | bash

Positive Prompt

head_swap: start with <image1> as the base image, keeping its lighting, environment, and background. remove the head from <image1> completely and replace it with the head from <image2>, strictly preserving the hair, eye color, nose structure from <image2>. copy the direction of the eye, head rotation, micro expressions from <image1>, high quality, sharp details, 4k
Prompt Customization: This workflow is pre-wired and calibrated. Swap this prompt with your own character, subject, or style without breaking the pipeline.

LoRA Adapter Stack 2 Adapters

RTX 4070 Calibrated Weights
01 bfs_head_v1.1_qwen_2.1.safetensors +1
02 p_qwen_image_2.1_8step_v0.1.safetensors +1

Required Models 5 Models

Required Storage: 10.0 GB (5 models · DiT/Base: 4.6 GB · Text Encoder: 4.5 GB · LoRAs: 568 MB · VAE: 350 MB)
models/loras/ 248 MB HuggingFace
bfs_head_v1.1_qwen_2.1.safetensors Weight: 1.0 (Blocks 16-31 img_mlp.gate_up pruned to preserve natural skin micro-texture)
models/loras/ 320 MB HuggingFace
p_qwen_image_2.1_8step_v0.1.safetensors Weight: 1.0 (Pruna AI 8-step Lightning acceleration LoRA)
models/diffusion_models/ 4.6 GB HuggingFace
qwen-image-2.1-UC-Q4_K_M.gguf Qwen Image 2.1 DiT GGUF Q4_K_M quantized core (Fast CUDA inference)
models/text_encoders/ 4.5 GB HuggingFace
qwen3vl_8b_int8_convrot.safetensors Qwen3-VL Vision-Language Text Encoder (CLIP loader type: qwen_image)
models/vae/ 350 MB HuggingFace
qwen_image_2.1_vae_bf16.safetensors Qwen Image 2.1 Official BF16 VAE

Field Notes RTX 4070 Benchmark

Benchmark: 68.9s on RTX 4070 (Euler simple, 8 steps, Pruna 8-step + BFS v1.1, 832x1248)
Reverse-Engineered & Synthesized In-Context Swapping Architecture: Built upon Alibaba's Qwen Image 2.1 Diffusion Transformer (DiT) paired with Alissonerdx's breakthrough BFS Head V1.1 LoRA (248 MB) and Pruna AI 8-step Lightning acceleration adapter. Unlike legacy embedding-pasting tools (InsightFace, ReActor, RoOP) that suffer from boundary seams and flat plastic skin, BFS performs native in-context latent regeneration. Key breakthrough: The V1.1 release executes surgical weight pruning on the second-half network (blocks 16-31), disabling 16 img_mlp.gate_up projections that previously caused artificial skin smoothing, thereby recovering 33% bilateral micro-texture (pores, freckles, stubble) without retraining. The early MLP blocks (0-15) and all 128 attention projections are byte-identical to V1, preserving full 3D head rotation, eye gaze, and subtle micro-expressions. Hardware ground truth verified on dedicated RTX 4070: 10.60 GB peak VRAM, 68.9s generation time for full resolution native in-context editing. Input Contract: Image 1 must be the Target Scene/Body (composition & lighting anchor), while Image 2 is the Reference Identity.

Frequently Asked Questions FAQ

What GPU and VRAM are required to run BFS Head V1.1: Qwen Image 2.1 In-Context Face & Head Swap (Surgical Skin-Detail Ablation)?

This workflow requires a minimum of 10GB VRAM (recommended 12GB VRAM). Tested and verified on NVIDIA GeForce RTX 4070 (12GB VRAM) at 832x1248 resolution.

How do I resolve missing custom nodes for this workflow?

You can drop the workflow JSON into our client-side Missing Node Auto-Resolver at https://decomfy.com/resolve/ to detect missing nodes and generate install commands, or run the 1-click terminal setup script provided below.

What conditioning and VAE architecture does BFS Head Swap require?

BFS Head Swap V1.1 uses Qwen Image 2.1 DiT with dual VAE conditioning and in-context facial geometry alignment. It performs surgical skin-detail ablation without requiring external face-swapping models.

Related ComfyUI Blueprints

View all 87 workflows
Qwen 2.1 DiT
DiT Blueprint

Qwen-Image-2.1 Uncensored: GGUF DiT & Heretic Text Encoder

35st · euler 1024×1024 8GB
MOSS Image Base (BF16 DiT)
Flux.1 GGUF
Action completed