mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-23 14:50:54 +01:00
Bug in the metadata generation - made an array of None
This commit is contained in:
parent
0dbce101ac
commit
d103693811
@ -121,7 +121,10 @@ def get_metadata_entries(req: GenerateImageRequest, task_data: TaskData):
|
||||
'use_upscale': task_data.use_upscale,
|
||||
})
|
||||
|
||||
return [metadata.copy().update({'seed': req.seed + i}) for i in range(req.num_outputs)]
|
||||
entries = [metadata.copy() for _ in range(req.num_outputs)]
|
||||
for i, entry in enumerate(entries):
|
||||
entry['seed'] = req.seed + i
|
||||
return entries
|
||||
|
||||
def get_printable_request(req: GenerateImageRequest):
|
||||
metadata = req.dict()
|
||||
|
Loading…
Reference in New Issue
Block a user