home · contact · privacy
Avoid accidentally seeding with 0 (which, if stored to EXIF commentary and then read...
authorChristian Heller <c.heller@plomlompom.de>
Mon, 19 Aug 2024 09:22:38 +0000 (11:22 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 19 Aug 2024 09:22:38 +0000 (11:22 +0200)
stable.py

index 75b60825afc16f45a1844772990a373c17e39130..a80ca29413d1e5ff82ff91822b8f253c365a5565 100755 (executable)
--- 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,