From d103693811388ad8edd33d70de53139f22dd0150 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 14 Dec 2022 10:22:24 +0530 Subject: [PATCH] Bug in the metadata generation - made an array of None --- ui/sd_internal/renderer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/sd_internal/renderer.py b/ui/sd_internal/renderer.py index 0697c908..0420d51d 100644 --- a/ui/sd_internal/renderer.py +++ b/ui/sd_internal/renderer.py @@ -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()