Efficient Diffusion-Driven Gaussian Avatar Refinement via Synthetic Failure
Kwan Yun · Min-Hyeok Bang · Colette Suhjung Koo · Junyong Noh
Accepted to ACM Transactions on Graphics
Project page · Training data · Paper
EDGAR refines degraded Gaussian-avatar renderings using an identity reference and a single-step diffusion model. Refined views then supervise the existing 3D avatar, so the resulting avatar renders through its original pipeline without per-frame diffusion inference.
This repository includes refiner training, image inference, and avatar refinement adapters for RGBAvatar and CAP4D. The full model uses six experts in each of 11 MoE modules. Ablation variants, experiment logs, baseline repositories, and third-party model assets are excluded.
Use Linux, Python 3.10, and an NVIDIA CUDA GPU. Install in a separate environment:
python3.10 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu121
python -m pip install -e '.[train,test]'For image inference alone, install with pip install -e .. Native avatar refinement
also requires the selected baseline's renderer, dependencies, and licensed assets;
see the setup guide. The first EDGAR run downloads SD-Turbo.
For offline operation, populate the model caches. Training/image inference also
accepts --base-model /path/to/sd-turbo, overriding the checkpoint's saved location.
Training additionally uses torchvision's VGG16 and LPIPS weights; cache these
before running without network access.
Place model files outside version control:
checkpoints/
├── edgar_exp6.pt
├── sapiens_0.3b_epoch_1600_torchscript.pt2
└── affectnet8-sd.pth # training only
| Asset | Source | Used by |
|---|---|---|
| EDGAR six-expert checkpoint | Public checkpoint ZIP → edgar_exp6.pt |
Inference and refinement |
| Sapiens 0.3B feature backbone | Official TorchScript checkpoint | All stages |
| POSTER V2, AffectNet 8 classes | Official checkpoints | Training |
| SD-Turbo | Official model | All stages; downloaded automatically |
Use the Sapiens pretraining feature checkpoint, not a depth or segmentation checkpoint. POSTER must include the complete feature-network weights. Model files are packaged separately from the code and retain their applicable licenses. The checkpoint and datasets are hosted in separate GitHub repositories. The checkpoint and CAFCA-only dataset are public; the Both dataset requires repository access. Private links may show 404 without access. See download instructions for downloads and checksum verification. The checkpoint was trained with both data sources.
edgar-infer \
--checkpoint checkpoints/edgar_exp6.pt \
--sapiens checkpoints/sapiens_0.3b_epoch_1600_torchscript.pt2 \
--input renders/ --reference reference.png \
--output outputs/refined_images \
--preprocessing application --seed 2026The input may be one image or a directory. Use a white-background avatar rendering
and a reference image of the same identity. Outputs are raw 512×512 RGB images;
input subdirectories are retained. For example, frame.jpg becomes frame.jpg.png.
Choose a new output directory for each run.
--preprocessing application preserves the original avatar application's white
padding and reference normalization. For a checkpoint newly trained with this
repository, use --preprocessing training. See implementation details
for this distinction. --precision bf16 enables optional lower-precision inference.
Extract an EDGAR-SET package and use its manifest:
python tools/unpack_dataset.py --package /path/to/CAFCA-only --output data/CAFCA
edgar-train \
--manifest data/CAFCA/manifest_identity_disjoint.json \
--sapiens checkpoints/sapiens_0.3b_epoch_1600_torchscript.pt2 \
--poster checkpoints/affectnet8-sd.pth \
--output outputs/train \
--steps 40000 --batch-size 4 --accumulation 2 \
--learning-rate 2e-5 --warmup 1000 --precision bf16The trainer combines pixel, LPIPS, Gram, expression-feature, and MoE balancing
losses. It writes local JSONL metrics and complete checkpoints. No W&B account is
required. Add --initialize checkpoints/edgar_exp6.pt to fine-tune, or
--resume outputs/train/step_005000.pt with a new output directory to continue a run.
--steps always specifies the total target update count.
The example uses a release-defined identity-disjoint split for new training.
The accompanying manifest.json preserves the recovered training loader's sorted
99/1 split. CAFCA-only training uses the synthetic subset; it does not reproduce
training with the combined dataset. See dataset documentation.
Export a training checkpoint without optimizer state:
python -m edgar.export --checkpoint outputs/train/step_040000.pt --output checkpoints/edgar_trained.ptStart from a trained native avatar. Edit configs/refine_rgbavatar.json to point to
the native repository, checkpoint, tracked training sequence, and FLAME model:
edgar-refine-avatar \
--pipeline rgbavatar --config configs/refine_rgbavatar.json \
--checkpoint checkpoints/edgar_exp6.pt \
--sapiens checkpoints/sapiens_0.3b_epoch_1600_torchscript.pt2 \
--reference reference.png --output outputs/refined_avatar \
--steps 500 --preprocessing applicationFor CAP4D, use --pipeline cap4d --config configs/refine_cap4d.json. The adapters
sample training states, generate EDGAR pseudo-targets, optimize the existing avatar,
and save a new native checkpoint. The default sampling uses 50 states and four yaw
offsets, producing 200 target views. No densification or pruning is performed.
RGBAvatar retains its native fast-forward color update.
The RGBAvatar result is outputs/refined_avatar/avatar/model.ply; CAP4D writes a
native chkpnt*.pth under the same avatar/ directory. Render these with the
corresponding baseline renderer. Setup, configuration, and validation scope are
described in the refinement guide.
| Package | Triplets | Identities | Availability |
|---|---|---|---|
| CAFCA-only | 22,420 | 1,500 synthetic | Public download; CC BY-NC-SA 4.0 |
| Both | 132,915 | 1,599 | Private download; public redistribution permission pending |
Each triplet is a 1536×512 image ordered reference · ground truth · degraded rendering. Packages include approximately 1 GiB TAR shards, SHA256 checksums, sample indexes, and explicit training/validation manifests. See the dataset card for licenses and split definitions.
python -m pytest -qTests cover data/preprocessing, checkpoints, native-adapter hooks, and dataset packaging. The recovered six-expert refiner has been compared against the original application on an A6000 with identical FP32 output on the checked image. VALIDATION.md records the completed runtime checks and their scope.
@misc{yun2026edgar,
title={EDGAR: Efficient Diffusion-Driven Gaussian Avatar Refinement via Synthetic Failure},
author={Kwan Yun and Minhyeok Bang and Colette Suhjung Koo and Junyong Noh},
year={2026},
eprint={2611.07909},
archivePrefix={arXiv},
primaryClass={cs.GR},
url={https://arxiv.org/abs/2611.07909},
}EDGAR builds on SD-Turbo, Difix3D+, Diffusers, Sapiens, POSTER V2, and the native avatar pipelines. See THIRD_PARTY.md, NOTICE, and LICENSE.txt. The supplied NVIDIA-derived code is for noncommercial research/evaluation under the retained license; datasets and model assets have their own terms. Powered by Stability AI.