Skip to main content

Module assets

Module assets 

Source
Expand description

Model download and cache management.

Provides the setup command implementation: downloads required model weights (FLAME, diffusion U-Net, VAE, CLIP) into a local cache directory and verifies file integrity by size.

Structs§

HfModelSource
HuggingFace Hub model source specification.

Functions§

download_with_progress
Download a model from HuggingFace Hub with progress tracking.
expected_asset_paths
Return the list of expected asset file paths within the cache directory.
get_hf_token
Get HuggingFace authentication token from environment or config file.
setup_cache
Ensure all required model assets are present in cache_dir.