Commit 5cceb483 authored by Your Name's avatar Your Name

Fix CLIP LLM download not being triggered

The bug was that the code checked 'if clip_l_path:' but clip_l_path
was just set to None above, so the download block was always skipped.

Changed to check 'if args.clip_l_path:' to properly detect when the
--clip-l-path CLI argument is provided and trigger the download/caching.
parent 3752dd51
...@@ -4654,7 +4654,7 @@ def main(): ...@@ -4654,7 +4654,7 @@ def main():
vae_path = None vae_path = None
# Use CLI arguments if provided, download and cache if URL # Use CLI arguments if provided, download and cache if URL
if clip_l_path: if args.clip_l_path:
# Check if it's a URL and download if needed # Check if it's a URL and download if needed
if args.clip_l_path.startswith('http://') or args.clip_l_path.startswith('https://'): if args.clip_l_path.startswith('http://') or args.clip_l_path.startswith('https://'):
cached = get_cached_model_path(args.clip_l_path) cached = get_cached_model_path(args.clip_l_path)
...@@ -5134,7 +5134,7 @@ def main(): ...@@ -5134,7 +5134,7 @@ def main():
vae_path = None vae_path = None
# Use CLI arguments if provided, download and cache if URL # Use CLI arguments if provided, download and cache if URL
if clip_l_path: if args.clip_l_path:
# Check if it's a URL and download if needed # Check if it's a URL and download if needed
if args.clip_l_path.startswith('http://') or args.clip_l_path.startswith('https://'): if args.clip_l_path.startswith('http://') or args.clip_l_path.startswith('https://'):
cached = get_cached_model_path(args.clip_l_path) cached = get_cached_model_path(args.clip_l_path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment