Scrappy-Doo commited on
Commit
ca04e63
·
verified ·
1 Parent(s): 04240bb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -24
README.md CHANGED
@@ -1,15 +1,23 @@
1
- # 🎭 Swapperface
 
 
 
 
 
 
 
 
 
 
2
 
3
- Face Swapper powered by [InsightFace](https://github.com/deepinsight/insightface) corriendo en **Hugging Face ZeroGPU** (GPU dinámica gratuita).
4
 
5
- [![Hugging Face Spaces](https://img.shields.io/badge/🤗%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/Scrappy-Doo/Swapperface)
6
 
7
  ## ⚡ ZeroGPU
8
 
9
  Este Space usa **ZeroGPU**, la infraestructura de GPU dinámica de Hugging Face:
10
  - GPU se asigna **solo durante la inferencia** y se libera al terminar
11
- - Cuenta con **NVIDIA RTX Pro 6000 Blackwell** (48GB VRAM en `large`)
12
- - Cuota gratuita: **5 minutos/día** (cuentas verificadas)
13
  - Decorador `@spaces.GPU(duration=90)` en las funciones de inferencia
14
 
15
  ## Características
@@ -19,33 +27,20 @@ Este Space usa **ZeroGPU**, la infraestructura de GPU dinámica de Hugging Face:
19
  - 🚀 **Swap en GPU** vía ONNX Runtime CUDA
20
  - 🖥️ **Interfaz web** con Gradio
21
 
22
- ## Estructura de Archivos
23
 
24
  | Archivo | Descripción |
25
  |---------|-------------|
26
  | `app.py` | App principal con `@spaces.GPU` |
27
  | `requirements.txt` | Dependencias incluyendo `spaces` |
28
  | `inswapper_128.onnx` | Modelo face swap (554 MB) |
 
 
29
  | `basicsr/` | Módulo BasicSR |
30
  | `facelib/` | Utilidades faciales |
31
 
32
- ## Configuración en Hugging Face Spaces
33
-
34
- 1. Crea un Space con **SDK: Gradio**
35
- 2. Selecciona hardware: **ZeroGPU**
36
- 3. Sube los archivos del repo
37
- 4. Los modelos `.onnx` y `.pth` deben estar en LFS (ya configurado en `.gitattributes`)
38
-
39
- ## Notas Técnicas ZeroGPU
40
-
41
- - **Modelos a nivel de módulo**: Se cargan en `cuda` al inicio; ZeroGPU emula CUDA fuera de `@spaces.GPU`
42
- - **Detección en CPU**: InsightFace usa `CPUExecutionProvider` para evitar conflictos ONNX CUDA
43
- - **Swap en GPU**: `inswapper_128.onnx` corre en GPU vía `onnxruntime-gpu`
44
- - **Duración**: 90s por inferencia (ajustable según necesidad)
45
- - **Sin `torch.compile`**: No soportado en ZeroGPU
46
-
47
  ## Créditos
48
 
49
- - [InsightFace](https://github.com/deepinsight/insightface) - Face analysis & swapping
50
- - [inswapper](https://github.com/haofanwang/inswapper) - Base del pipeline
51
- - Hugging Face ZeroGPU - GPU dinámica gratuita
 
1
+ ---
2
+ title: Swapperface
3
+ emoji: 🎭
4
+ colorFrom: purple
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: "4.44.1"
8
+ python_version: "3.10"
9
+ app_file: app.py
10
+ pinned: false
11
+ ---
12
 
13
+ # 🎭 Swapperface
14
 
15
+ Face Swapper powered by [InsightFace](https://github.com/deepinsight/insightface) corriendo en **Hugging Face ZeroGPU**.
16
 
17
  ## ⚡ ZeroGPU
18
 
19
  Este Space usa **ZeroGPU**, la infraestructura de GPU dinámica de Hugging Face:
20
  - GPU se asigna **solo durante la inferencia** y se libera al terminar
 
 
21
  - Decorador `@spaces.GPU(duration=90)` en las funciones de inferencia
22
 
23
  ## Características
 
27
  - 🚀 **Swap en GPU** vía ONNX Runtime CUDA
28
  - 🖥️ **Interfaz web** con Gradio
29
 
30
+ ## Estructura
31
 
32
  | Archivo | Descripción |
33
  |---------|-------------|
34
  | `app.py` | App principal con `@spaces.GPU` |
35
  | `requirements.txt` | Dependencias incluyendo `spaces` |
36
  | `inswapper_128.onnx` | Modelo face swap (554 MB) |
37
+ | `codeformer.pth` | Modelo restauración (377 MB) |
38
+ | `RealESRGAN_x4plus.pth` | Modelo upscaling (67 MB) |
39
  | `basicsr/` | Módulo BasicSR |
40
  | `facelib/` | Utilidades faciales |
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ## Créditos
43
 
44
+ - [InsightFace](https://github.com/deepinsight/insightface)
45
+ - [inswapper](https://github.com/haofanwang/inswapper)
46
+ - Hugging Face ZeroGPU