--- title: BFS Video Studio emoji: 🎭 colorFrom: green colorTo: gray sdk: gradio sdk_version: 6.29.1 python_version: "3.12" app_file: app.py short_description: BFS V3 video head swaps with reference photos startup_duration_timeout: 1h models: - Alissonerdx/BFS-Best-Face-Swap-Video - Lightricks/LTX-2.3 suggested_hardware: zero-a10g --- # BFS Video Studio A demo for [Alissonerdx/BFS-Best-Face-Swap-Video](https://huggingface.co/Alissonerdx/BFS-Best-Face-Swap-Video), targeting its **V3 rank-64 LoRA on LTX-2.3**. ## Access This Space is public but requires Hugging Face login. Only authorized users can generate videos. ## Architecture and limits - `app.py`: Gradio UI, input validation, model initialization, and GPU generation. - `media.py`: bounded video decoding, V3 reference composition, and audio restoration. - `model-lock.json`: exact model revisions at preparation time. - `packages/`: pinned LTX backend sources with module-level model caching for ZeroGPU. The selected resolution is the true single-stage output canvas. The underlying two-stage pipeline is called with twice those dimensions because its first stage runs at half its nominal dimensions. The V3 model is expected to remove the reference panel itself, as the model card describes; the generated image is not manually cropped. Inputs work best with one visible person, a clear reference portrait, steady light, and no scene cuts. Fast motion, occlusion, and mismatched hair can cause identity drift or altered details. Only use media and likenesses with the required permission. ## Credits and licenses - BFS model and example videos: [Alissonerdx](https://huggingface.co/Alissonerdx/BFS-Best-Face-Swap-Video). Model weights and examples retain their original terms. - V3 workflow design: [ComfyUI-BFSNodes](https://github.com/alisson-anjos/ComfyUI-BFSNodes). - LTX base model and inference code: [Lightricks/LTX-2](https://github.com/Lightricks/LTX-2), subject to the included `LICENSE-LTX-2.txt` and upstream terms. - ZeroGPU backend source snapshot: [vaticinus/bfs-head-swap-video-demo](https://huggingface.co/spaces/vaticinus/bfs-head-swap-video-demo/tree/f84b7b631da091d7a4f700c066023c58496dfa94), commit `f84b7b631da091d7a4f700c066023c58496dfa94`, based on the official Lightricks clean-plate Space. - Gemma text encoder: Google, subject to the Gemma license and gated access.