From: Christian Heller Date: Mon, 19 Aug 2024 09:22:38 +0000 (+0200) Subject: Avoid accidentally seeding with 0 (which, if stored to EXIF commentary and then read... X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/todos?a=commitdiff_plain;h=2b67bef2710ed2eab1f7e7c435fa55d25910f7c6;p=stable_plom Avoid accidentally seeding with 0 (which, if stored to EXIF commentary and then read in again, would confuse the argument parser). --- 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,