avatar-preprocess / README.md
prodya-dev
fix: restore python_version=3.10 with gradio 5.0.0 (torch 2.1.2 needs py3.10)
f25cb9c
|
Raw History Blame Contribute Delete
701 Bytes

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
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 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:

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