File size: 701 Bytes
84408f7
d986a84
 
 
84408f7
 
693ee99
84408f7
 
d986a84
f25cb9c
84408f7
 
d986a84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Morphaze Avatar Preprocessor
emoji: πŸ§‘β€πŸŽ¨
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: "5.0.0"
app_file: app.py
pinned: false
license: mit
python_version: "3.10"
---

# Morphaze Avatar Preprocessor

Face preprocessing for the [Morphaze](https://morphaze.com) photo-to-3D-avatar pipeline.

## Models

- **ReStyle** β€” GAN inversion producing cleaned face + W+ latent code (18Γ—512 dims)
- **GFPGAN** β€” Face restoration for degraded/blurry inputs (2Γ— upscale)

## API

```
POST /api/predict
Content-Type: application/json
{"data": [<base64_image>, "restyle"]}
```

Response:
```json
{
  "image": "<base64_png>",
  "latent": [9216 floats],
  "processing_time": 2.1
}
```