oxigaf-cli
Command-line interface for OxiGAF — Gaussian Avatar Reconstruction.
Overview
The OxiGAF CLI provides a complete toolkit for working with Gaussian head avatars:
- Train — End-to-end avatar reconstruction from monocular images
- Render — Render existing avatars from novel viewpoints
- Export — Export avatars to PLY, glTF, or safetensors
- Convert — Convert FLAME model files (.pkl to .npy format)
- Benchmark — Run performance benchmarks
- Doctor — Check system configuration and dependencies
- Setup — Download and cache required model weights
- Cache — Manage cached assets (list, clean, verify, path)
Installation
[]
= "0.1"
Or install as a binary:
Features
| Feature | Description |
|---|---|
default |
Minimal configuration (CPU-only) |
cuda |
NVIDIA GPU acceleration |
metal |
Apple Silicon GPU acceleration |
simd |
SIMD optimizations (requires nightly Rust) |
parallel |
Parallel processing with rayon |
flash_attention |
Memory-efficient attention |
mixed_precision |
FP16/BF16 inference (planned) |
gpu_debug |
GPU validation layers |
full_performance |
All performance optimizations |
all_features |
All available features |
Usage
Train an Avatar
Reconstruct a 3D avatar from a monocular video:
Render from Novel Views
Render an existing avatar from custom viewpoints:
Export to Standard Formats
Export avatar to PLY for use in other tools:
# Export as PLY (3D Gaussian point cloud)
# Export as glTF (textured mesh)
Convert FLAME Model
Convert FLAME model from pickle format to numpy:
Check System Configuration
Verify GPU support and dependencies:
Benchmark Performance
Run performance benchmarks:
Programmatic Usage
You can also use the CLI components as a library:
use ;
use *;
Configuration
The CLI supports configuration files in TOML format:
# config.toml
[]
= 1000
= 0.001
= 4
[]
= 512
= 512
= 16
[]
= 0.00016
= 0.001
= 0.005
= 0.05
= 0.0025
Load configuration with:
Output Formats
Training Output
*.safetensors— Trained Gaussian model (recommended)checkpoint_*.json— Training checkpoints with metadata
Render Output
*.png— RGB images (default)*.jpg— JPEG images (lossy compression)*.exr— High dynamic range (HDR) images
Export Formats
*.ply— Point cloud (3D Gaussian Splatting)*.gltf/*.glb— glTF 2.0 mesh with textures*.safetensors— Native format (all Gaussian parameters)
Logging
Control verbosity with -v flags:
# Quiet (errors only)
# Normal (info)
# Verbose (debug)
# Very verbose (trace)
Save logs to file:
Documentation
License
Licensed under the Apache License, Version 2.0 (LICENSE)