From de37a8190241a138989a7fb9b9825ba7eb16b51c Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 21 Nov 2022 12:13:43 +0530 Subject: [PATCH] Merge pull request #519 from JeLuF/relocate2 Rewrite easy_install.pth on each start --- scripts/on_sd_start.bat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index abc63ef5..995b99cc 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -393,6 +393,14 @@ call python --version @set SD_UI_PATH=%cd%\ui @cd stable-diffusion +@rem +@rem Rewrite easy-install.pth. This fixes the installation if the user has relocated the SDUI installation +@rem +>env\Lib\site-packages\easy-install.pth echo %cd%\src\taming-transformers +>>env\Lib\site-packages\easy-install.pth echo %cd%\src\clip +>>env\Lib\site-packages\easy-install.pth echo %cd%\src\gfpgan +>>env\Lib\site-packages\easy-install.pth echo %cd%\src\realesrgan + @if NOT DEFINED SD_UI_BIND_PORT set SD_UI_BIND_PORT=9000 @if NOT DEFINED SD_UI_BIND_IP set SD_UI_BIND_IP=0.0.0.0 @uvicorn server:app --app-dir "%SD_UI_PATH%" --port %SD_UI_BIND_PORT% --host %SD_UI_BIND_IP%