Run this model with HF Jobs

Run cyjcyj91/GeoFace on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/cyjcyj91/GeoFace. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/cyjcyj91/GeoFace on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("cyjcyj91/GeoFace", dtype=torch.bfloat16, device_map="cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

GeoFace

Pretrained weights for GeoFace: Consistent Multi-View Face Generation with Geometry-Constrained Diffusion.

GeoFace jointly generates target-view RGB face images and a canonical UV position map from a reference face image and specified cameras. The geometry decoder predicts delta XYZ coordinates, which are added to the matching FLAME template. The resulting UV map can be converted to a face mesh.

Included checkpoints

Directory Contents
geoface-checkpoint-50000/ Ours 50K diffusion weights in unet.safetensors, including the learned UV ray token, plus a checksum manifest
geometry-vae/ Full diffusers-format geometry VAE exported from the 10K decoder-training checkpoint, with its configuration

These files are intended for the GeoFace codebase, not as a standalone generic diffusion pipeline.

Download

From the GeoFace code repository root, run:

hf download cyjcyj91/GeoFace --local-dir weights

Use --checkpoint weights/geoface-checkpoint-50000 and --geometry-vae weights/geometry-vae with the inference entry point. See the code repository for dependency installation, camera preparation and complete inference commands.

Additional inputs

Obtain the Stable Diffusion 2.1 base model and the matching FLAME-derived UV template and mesh topology separately, following the code repository instructions. They are not bundled here. Inference requires a prepared face image and cameras consistent with the model's canonical coordinates. Automatic raw-photo pose estimation is not included.

Validation and scope

The exported weights were tested with 50-step inference, six target RGB views and UV-to-mesh export. RGB images, finite UV position maps and a 5,282-vertex face mesh were produced. These are integration checks and do not establish quantitative reconstruction accuracy. See the code repository's validation notes for details.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support