From 61790bb76a5260beb4e49e111bad5a37faefa470 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:25:27 +1000 Subject: [PATCH 1/3] Fixes #822 --- backend/server.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/server.py b/backend/server.py index 5ee28f20f3..622a78fc7c 100644 --- a/backend/server.py +++ b/backend/server.py @@ -672,9 +672,10 @@ def generate_images(generation_parameters, esrgan_parameters, gfpgan_parameters) and step < generation_parameters["steps"] - 1 ): image = generate.sample_to_image(sample) - path = save_image( - image, generation_parameters, intermediate_path, step_index - ) + + metadata = parameters_to_generated_image_metadata(generation_parameters) + command = parameters_to_command(generation_parameters) + path = save_image(image, command, metadata, intermediate_path, step_index=step_index, postprocessing=False) step_index += 1 socketio.emit( From 52b952526e1b2326a6f3722e14a15aa6c84c55a2 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:29:27 +1000 Subject: [PATCH 2/3] Fixes metadata arg value --- backend/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server.py b/backend/server.py index 622a78fc7c..408fcf0f4c 100644 --- a/backend/server.py +++ b/backend/server.py @@ -683,7 +683,7 @@ def generate_images(generation_parameters, esrgan_parameters, gfpgan_parameters) { "url": os.path.relpath(path), "mtime": os.path.getmtime(path), - "metadata": generation_parameters, + "metadata": metadata, }, ) socketio.emit("progressUpdate", progress) From 79f23ad03159aca50b77d098b2638e86d522aee9 Mon Sep 17 00:00:00 2001 From: bsilvereagle Date: Mon, 26 Sep 2022 22:40:50 -0400 Subject: [PATCH 3/3] stable-diffusion -> InvokeAI --- docs/features/UPSCALE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/UPSCALE.md b/docs/features/UPSCALE.md index f4c06f8b42..1d9e7e0335 100644 --- a/docs/features/UPSCALE.md +++ b/docs/features/UPSCALE.md @@ -17,7 +17,7 @@ Support] below. As of version 1.14, environment.yaml will install the Real-ESRGAN package into the standard install location for python packages, and will put GFPGAN into a -subdirectory of "src" in the stable-diffusion directory. (The reason for this is +subdirectory of "src" in the InvokeAI directory. (The reason for this is that the standard GFPGAN distribution has a minor bug that adversely affects image color.) Upscaling with Real-ESRGAN should "just work" without further intervention. Simply pass the --upscale (-U) option on the dream> command line, @@ -33,7 +33,7 @@ here's how you'd do it using **wget**: > wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth src/gfpgan/experiments/pretrained_models/ ``` -Make sure that you're in the stable-diffusion directory when you do this. +Make sure that you're in the InvokeAI directory when you do this. Alternatively, if you have GFPGAN installed elsewhere, or if you are using an earlier version of this package which asked you to install GFPGAN in a sibling