Commit 8ebeafef authored by Your Name's avatar Your Name

Fix: Preload image model when configured (even with audio models)

Changed condition from 'only if no audio models' to 'always when image_models is configured'.
This ensures the image model downloads at startup even when audio models are present.
parent 0609c4cf
...@@ -4900,8 +4900,8 @@ def main(): ...@@ -4900,8 +4900,8 @@ def main():
'offload': args.vision_offload, 'offload': args.vision_offload,
}) })
# Pre-load image model if it's the only model configured # Pre-load image model if it's configured (even with audio models)
if not model_names and not audio_models and not args.tts_model: if image_models:
print(f"Pre-loading image model...") print(f"Pre-loading image model...")
# Get the original model name # Get the original model name
......
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