Refactor model configuration structure and update README

- Changed the configuration format to use a single 'models' list with entries containing 'url' and 'type'.
- Updated validation logic to ensure 'models' entries are correctly structured.
- Modified download logic to check for existing directories before downloading.
- Revised README to reflect new configuration format and usage instructions.

Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
2026-01-31 15:09:12 -06:00
parent 139b299070
commit 93e53ad838
5 changed files with 55 additions and 49 deletions

View File

@@ -4,10 +4,10 @@ huggingface_token: "" # from https://huggingface.co/settings/tokens
civitai_token: "" # from https://civitai.com/user/account
comfyui_base_dir: "/path/to/ComfyUI"
# Lists of model URLs. Civitai: use API URL or add ?token=... is optional (token from config is used).
# Single list of models. Each entry: url and type (type = ComfyUI subdir under models/).
# Civitai: use API URL or add ?token=... is optional (token from config is used).
# Hugging Face: use resolve/main/... URLs.
diffusion_models: []
text_encoders: []
vaes: []
upscale_models: []
loras: []
# models:
# - url: "https://..."
# type: loras
models: []