From ad292b095d358376763e97e1c834de05d245a531 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Sat, 17 Sep 2022 13:44:39 -0400 Subject: [PATCH] minor fix to ldm.dream.args - If no list of seeds is provided to metadata_dumps(), then the contents of the Args object's seed attribute are used. --- ldm/dream/args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldm/dream/args.py b/ldm/dream/args.py index 6ff164ebfa..fe7ca9ffe2 100644 --- a/ldm/dream/args.py +++ b/ldm/dream/args.py @@ -626,6 +626,9 @@ def metadata_dumps(opt, rfc_dict['type'] = 'txt2img' images = [] + if len(seeds)==0 and opt.seed: + seeds=[seed] + for seed in seeds: rfc_dict['seed'] = seed images.append(copy.copy(rfc_dict))