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.
This commit is contained in:
Lincoln Stein 2022-09-17 13:44:39 -04:00
parent d8685ad66b
commit ad292b095d

View File

@ -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))