Mindket

RealDenseFace

Newversion 1 · updated

Overview

Rebuilds a 3D face from a single portrait photo using the RealDenseFace ViT-B model. It shows visualizations of the facial geometry and runs in the browser on ZeroGPU.

RealDenseFace is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python 3.12 and pip
  • The huggingface_hub package, which gives you the hf command
  • The system packages listed in packages.txt, which the hosted Space installs with apt-get
  • Your own licensed copy of the standard FLAME model and a read token for it, because the repository does not include the model
Runs in
  • A web browser, on the Space's page at Hugging Face
  • Windows, with Python 3.12
  • macOS, with Python 3.12
  • Linux, with Python 3.12
Start with
pip install -U huggingface_hub
hf download LinzhouLi/RealDenseFace --repo-type space --local-dir RealDenseFace
cd RealDenseFace

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

RealDenseFace rebuilds the 3D shape of a face from one portrait photo. You upload a portrait or pick an example, and the RealDenseFace ViT-B model reconstructs the facial geometry. The outputs are visualizations only. The Space runs on Hugging Face, so you can try it in a browser with nothing to install.

Who it suits

Computer vision researchers who study single-image face reconstruction, and developers or 3D artists who want to see how facial geometry is recovered from a photo.

IndustryWho uses itHow they use itExample
ResearchFace reconstruction researchersTest the ViT-B model on portraitsUpload a portrait and view the geometry
Animation3D artistsSee how a face's shape is recovered from a photoTry one of the examples
SoftwareDevelopersStudy a ZeroGPU app with a native solverRead app.py and engine.py
EducationStudentsLearn how a single photo can give a 3D faceCompare the input photo with the visualization

Anyone who wants a downloadable 3D model or the model weights can skip it, since the outputs are visualizations only.

Where to use it

It runs in these places.

  • A web browser, on the Space's page at Hugging Face
  • Windows, with Python 3.12
  • macOS, with Python 3.12
  • Linux, with Python 3.12
Use caseWhoWhat they get back
Reconstruct a faceResearchersVisualizations of the facial geometry
Try an exampleNewcomersA quick result without a photo of your own
Study the pipelineDevelopersA local copy with tracker and models folders to read

How to set it up

Using the Space online needs only a browser. A copy on your own computer needs the following.

  • Python 3.12 and pip
  • The huggingface_hub package, which gives you the hf command
  • The system packages listed in packages.txt, which the hosted Space installs with apt-get
  • Your own licensed copy of the standard FLAME model and a read token for it, because the repository does not include the model
  • Disk space for the repository, which holds 730 files
  1. Install the huggingface_hub package.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Install Gradio at the version the Space uses, then install the packages in requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download LinzhouLi/RealDenseFace --repo-type space --local-dir RealDenseFace
cd RealDenseFace
pip install gradio==6.31.0
pip install -r requirements.txt
python app.py

How to use it

Open the Space's page, or run the app on your computer and open the page Gradio shows. Upload a portrait or pick an example, then read the reconstruction it shows.

python app.py
ToolWhat it does
app.pyThe main file, it builds the Gradio page
engine.pyHolds the reconstruction engine code
examples folderHolds sample portraits to try
FLAME_READ_TOKENA Space secret that grants read access to the private FLAME asset repository

Example

You upload a front-facing portrait with the face clearly visible. The Space returns visualizations of the reconstructed face geometry, and no model files or parameter downloads are given.

For newcomers and experts

Monocular means one camera, so the model works from a single photo. The first small thing to try is one of the built-in examples.

The model draws on dense UV priors, and the standard FLAME face model is a separately licensed runtime dependency that the repository does not ship. Native FLAME solver compilation runs on the CPU at startup, and the networks are loaded once with CUDA placement. Requests are handled one at a time, and inputs are capped at 1280 pixels on the longest side.

  1. You upload a portrait or pick an example
  2. The image is limited to 1280 pixels
  3. RealDenseFace ViT-B reconstructs the geometry
  4. The app shows visualizations

Good to know

A duplicated Space needs its own licensed FLAME model and read token.

  • License: mit, while the FLAME model carries its own separate license
  • Cost to run: a licensed FLAME model and a read token for it, named FLAME_READ_TOKEN
  • Data it reaches: your uploaded portrait, which is not intentionally kept beyond Gradio's temporary cache, and that cache expires after one hour
  • Not for: downloading model parameters or files, which the app does not provide
  • Hardware: the Space is set to zero-a10g at Hugging Face

README and files

README

RealDenseFace

Rebuilds a 3D face from a single portrait photo using the RealDenseFace ViT-B model. It shows visualizations of the facial geometry and runs in the browser on ZeroGPU.

Made by LinzhouLi on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: RealDenseFace rebuilds the 3D shape of a face from one portrait photo. You upload a portrait or pick an example, and the RealDenseFace ViT-B model reconstructs the facial geometry. The outputs are visualizations only. The Space runs on Hugging Face, so you can try it in a browser with nothing to install.

Who it suits: Computer vision researchers who study single-image face reconstruction, and developers or 3D artists who want to see how facial geometry is recovered from a photo.

Industry | Who uses it | How they use it | Example
Research | Face reconstruction researchers | Test the ViT-B model on portraits | Upload a portrait and view the geometry
Animation | 3D artists | See how a face's shape is recovered from a photo | Try one of the examples
Software | Developers | Study a ZeroGPU app with a native solver | Read app.py and engine.py
Education | Students | Learn how a single photo can give a 3D face | Compare the input photo with the visualization

Anyone who wants a downloadable 3D model or the model weights can skip it, since the outputs are visualizations only.

Where to use it: It runs in these places.

  • A web browser, on the Space's page at Hugging Face
  • Windows, with Python 3.12
  • macOS, with Python 3.12
  • Linux, with Python 3.12
Use case | Who | What they get back
Reconstruct a face | Researchers | Visualizations of the facial geometry
Try an example | Newcomers | A quick result without a photo of your own
Study the pipeline | Developers | A local copy with tracker and models folders to read

How to set it up: Using the Space online needs only a browser. A copy on your own computer needs the following.

  • Python 3.12 and pip
  • The huggingface_hub package, which gives you the hf command
  • The system packages listed in packages.txt, which the hosted Space installs with apt-get
  • Your own licensed copy of the standard FLAME model and a read token for it, because the repository does not include the model
  • Disk space for the repository, which holds 730 files
  1. Install the huggingface_hub package.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Install Gradio at the version the Space uses, then install the packages in requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download LinzhouLi/RealDenseFace --repo-type space --local-dir RealDenseFace
cd RealDenseFace
pip install gradio==6.31.0
pip install -r requirements.txt
python app.py

How to use it: Open the Space's page, or run the app on your computer and open the page Gradio shows. Upload a portrait or pick an example, then read the reconstruction it shows.

python app.py
Tool | What it does
app.py | The main file, it builds the Gradio page
engine.py | Holds the reconstruction engine code
examples folder | Holds sample portraits to try
FLAME_READ_TOKEN | A Space secret that grants read access to the private FLAME asset repository

Example: You upload a front-facing portrait with the face clearly visible. The Space returns visualizations of the reconstructed face geometry, and no model files or parameter downloads are given.

For newcomers and experts: Monocular means one camera, so the model works from a single photo. The first small thing to try is one of the built-in examples.

The model draws on dense UV priors, and the standard FLAME face model is a separately licensed runtime dependency that the repository does not ship. Native FLAME solver compilation runs on the CPU at startup, and the networks are loaded once with CUDA placement. Requests are handled one at a time, and inputs are capped at 1280 pixels on the longest side.

You upload a portrait or pick an example
The image is limited to 1280 pixels
RealDenseFace ViT-B reconstructs the geometry
The app shows visualizations

Good to know: A duplicated Space needs its own licensed FLAME model and read token.

  • License: mit, while the FLAME model carries its own separate license
  • Cost to run: a licensed FLAME model and a read token for it, named FLAME_READ_TOKEN
  • Data it reaches: your uploaded portrait, which is not intentionally kept beyond Gradio's temporary cache, and that cache expires after one hour
  • Not for: downloading model parameters or files, which the app does not provide
  • Hardware: the Space is set to zero-a10g at Hugging Face

On Hugging Face, 13 November 2026

  • Likes: 1
  • Built with: gradio
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
RealDenseFace This page1gradiomit
Open VLM LeaderboardShares gradio1,034gradioapache-2.0
Face SwapShares gradio808gradiocc-by-nc-sa-4.0
TTS Spaces ArenaShares gradio493gradiozlib
Depth Anything 3Shares gradio490gradiocc-by-nc-4.0
BLIPShares gradio431gradiobsd-3-clause
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Research

See all in Research

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New

ReFoCo

yuji-nozawa · Kit

Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…

New