Skip to content

Commit

Permalink
minor fix to ldm.dream.args
Browse files Browse the repository at this point in the history
- If no list of seeds is provided to metadata_dumps(), then the contents
of the Args object's seed attribute are used.
  • Loading branch information
lstein authored and afiaka87 committed Sep 21, 2022
1 parent 48b1253 commit ce714a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldm/dream/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ce714a1

Please sign in to comment.