From a36fb55b0574986f7720e95da12644f41a38a9e1 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Fri, 17 Feb 2023 10:53:51 +0100 Subject: [PATCH] Remove superfluous CarriageReturn \r\n creates CR CR LF in python, which confuses the Windows batch processor. With only \n, adding the config line for FP32 works as expected: 10:50:43.659 WARNING cuda:0 forcing full precision on this GPU, to avoid green images. GPU detected: NVIDIA GeForce GTX 1060 6GB --- ui/easydiffusion/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/easydiffusion/app.py b/ui/easydiffusion/app.py index d556dd6f..ebced964 100644 --- a/ui/easydiffusion/app.py +++ b/ui/easydiffusion/app.py @@ -105,7 +105,7 @@ def setConfig(config): if len(config_bat) > 0: with open(config_bat_path, "w", encoding="utf-8") as f: - f.write("\r\n".join(config_bat)) + f.write("\n".join(config_bat)) except: log.error(traceback.format_exc())