From 2b67bef2710ed2eab1f7e7c435fa55d25910f7c6 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 19 Aug 2024 11:22:38 +0200
Subject: [PATCH] Avoid accidentally seeding with 0 (which, if stored to EXIF
 commentary and then read in again, would confuse the argument parser).

---
 stable.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stable.py b/stable.py
index 75b6082..a80ca29 100755
--- a/stable.py
+++ b/stable.py
@@ -108,6 +108,8 @@ maker = ImageMaker(model_path)
 start_seed = args.seed
 start_seed = start_seed if start_seed != 0 else randint(-(2**31-1), 2**31)
 for n in range(args.quantity):
+    if 0 == n:
+        n += 1
     nth_seed = start_seed + n
     path = save_path(n)
     maker.set_gen_params(args.prompt, nth_seed, args.guidance, args.height,
-- 
2.30.2