From 7040995cebcad8c2bbbac1aed8d7224875e9afe8 Mon Sep 17 00:00:00 2001 From: yun saki Date: Fri, 26 Aug 2022 14:25:49 +0200 Subject: [PATCH] fixed variable name error --- scripts/dream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dream.py b/scripts/dream.py index 89e6977d8c..32e31dd7a2 100755 --- a/scripts/dream.py +++ b/scripts/dream.py @@ -312,7 +312,7 @@ def load_gfpgan_bg_upsampler(bg_upsampler, bg_tile=400): ### the t2i variable doesn't seem to be necessary here. maybe remove it? def write_log_message(t2i, prompt, results, log_path): """logs the name of the output image, its prompt and seed to the terminal, log file, and a Dream text chunk in the PNG metadata""" - log_lines = [f"{r[0]}: {prompt} -S{seed}\n" for r in results] + log_lines = [f"{r[0]}: {prompt} -S{r[1]}\n" for r in results] print(*log_lines, sep="") with open(log_path, "a") as file: