View source: R/model_manager.R
| sd_scan_models | R Documentation |
Scans for .safetensors and .gguf files, guesses component
roles and model types from filenames, groups multi-file models (Flux),
and registers them.
sd_scan_models(dir, overwrite = FALSE, recursive = FALSE)
dir |
Directory to scan |
overwrite |
If TRUE, overwrite existing entries (default FALSE) |
recursive |
Scan subdirectories (default FALSE) |
Single-file models (SD 1.5, SDXL) are registered individually. Multi-file Flux models are grouped when diffusion + supporting files (VAE, CLIP, T5) are found in the same directory.
Character vector of registered model ids (invisible)
## Not run:
sd_scan_models("/mnt/models/")
sd_list_models()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.