File size: 2,612 Bytes
ff3148c
 
1405c30
 
ff3148c
 
8933975
ff3148c
1405c30
 
 
 
ff3148c
 
1405c30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19f6b88
1405c30
19f6b88
 
1405c30
 
57818a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1405c30
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: BFS Best Face Swap Video
emoji: 🎭
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: "5.7.1"
app_file: app.py
pinned: true
license: other
hardware: a100-large
suggested_hardware: a100-large
---

# BFS — Best Face Swap Video

Hugging Face Space for the **V3 persistent-template** head-swap workflow built on [LTX-2.3](https://huggingface.co/Lightricks/LTX-2.3).

## How it works

1. Upload a **guide video** (the body/performance you want to keep)
2. Upload a **reference face image** (the identity to transfer)
3. Write or paste a **text prompt** in the structured format below
4. Click **Generate**

The reference face is composited into a green chroma side-strip that persists across all frames during diffusion, giving the model continuous identity conditioning. The strip is cropped from the final output automatically.

### Prompt format

```
head_swap:
FACE: <detailed identity description from the reference image>
ACTION: <performance description from the guide video — body, clothing, movement only>
```

**Example:**
```
head_swap:
FACE: Female, fair skin, approximately 25-30 years old, long wavy auburn hair,
bright green eyes, no facial hair, smooth skin, small silver earrings.

ACTION: A person in a grey hoodie walks toward the camera in an indoor hallway,
holds a coffee cup in their right hand, glances to the left.
```

## Models used

| Component | Source |
|-----------|--------|
| Transformer (22B, FP8 mixed) | [SulphurAI/Sulphur-2-base](https://huggingface.co/SulphurAI/Sulphur-2-base) |
| Video VAE | [Kijai/LTX2.3_comfy](https://huggingface.co/Kijai/LTX2.3_comfy) |
| Text encoder + scheduler | [Lightricks/LTX-Video](https://huggingface.co/Lightricks/LTX-Video) |
| Distill LoRA | [SulphurAI/Sulphur-2-base](https://huggingface.co/SulphurAI/Sulphur-2-base) |
| BFS head-swap LoRA | [Alissonerdx/BFS-Best-Face-Swap-Video](https://huggingface.co/Alissonerdx/BFS-Best-Face-Swap-Video) |

## Logs

**Container logs** (runtime output):
```bash
curl -N \
     -H "Authorization: Bearer $HF_TOKEN" \
     "https://huggingface.co/api/spaces/ismailkattakath/BFS-Best-Face-Swap-Video/logs/run"
```

**Build logs** (Docker build output):
```bash
curl -N \
     -H "Authorization: Bearer $HF_TOKEN" \
     "https://huggingface.co/api/spaces/ismailkattakath/BFS-Best-Face-Swap-Video/logs/build"
```

## Ethical use

This tool is intended for **filmmakers, VFX artists, and researchers**.
You must have explicit consent from any person whose likeness you process.
See the [full model card](https://huggingface.co/Alissonerdx/BFS-Best-Face-Swap-Video) for the complete terms.