Merge pull request #147 from Goekdeniz-Guelmez/fix-parser-in-save

Fix the parser error in save
This commit is contained in:
Filip Strand 2025-03-13 22:06:39 +01:00 committed by GitHub
commit 0c963b1e40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,7 +196,7 @@ class CommandLineParser(argparse.ArgumentParser):
if self.supports_image_generation and namespace.steps is None:
namespace.steps = ui_defaults.MODEL_INFERENCE_STEPS.get(namespace.model, None)
if namespace.low_ram and len(namespace.seed) > 1:
if getattr(namespace, 'low_ram', False) and len(namespace.seed) > 1:
self.error("--low-ram cannot be used with multiple seeds")
return namespace