From 16792691c73b61e2296d78ebc975dbcf72442607 Mon Sep 17 00:00:00 2001 From: Kaleith Date: Fri, 9 Sep 2022 10:39:41 +0200 Subject: [PATCH 1/2] Removed mention of CUDA in the README The requirement to install CUDA was removed with https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/e92d4cf7476f1897fce376916dfb40755ea7920f#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L63 so that mention in README should be superfluous --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bde2f560..550738201 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A browser interface based on Gradio library for Stable Diffusion. [Detailed feature showcase with images, art by Greg Rutkowski](https://github.com/AUTOMATIC1111/stable-diffusion-webui-feature-showcase) - Original txt2img and img2img modes -- One click install and run script (but you still must install python, git and CUDA) +- One click install and run script (but you still must install python and git) - Outpainting - Inpainting - Prompt matrix From 17a7477c7282b0ff16fa1232e5922c0a645e4459 Mon Sep 17 00:00:00 2001 From: David Yates Date: Fri, 9 Sep 2022 16:16:51 +0200 Subject: [PATCH 2/2] Include negative prompt in parameters text file --- modules/processing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/processing.py b/modules/processing.py index d4c4cfad3..61c205580 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -145,8 +145,10 @@ def process_images(p: StableDiffusionProcessing) -> Processed: generation_params.update(p.extra_generation_params) generation_params_text = ", ".join([k if k == v else f'{k}: {v}' for k, v in generation_params.items() if v is not None]) + + negative_prompt_text = "\nNegative prompt: " + p.negative_prompt if p.negative_prompt else "" - return f"{p.prompt_for_display or prompt}\n{generation_params_text}".strip() + "".join(["\n\n" + x for x in comments]) + return f"{p.prompt_for_display or prompt}{negative_prompt_text}\n{generation_params_text}".strip() + "".join(["\n\n" + x for x in comments]) if os.path.exists(cmd_opts.embeddings_dir): model_hijack.load_textual_inversion_embeddings(cmd_opts.embeddings_dir, p.sd_model)