From c29c6499f88352df3f15ff4be4c5cab23df4b01e Mon Sep 17 00:00:00 2001 From: deffcolony <61471128+deffcolony@users.noreply.github.com> Date: Thu, 20 Jun 2024 22:21:16 +0200 Subject: [PATCH] Update Launcher.bat fixes stable difussion webui forge --- Launcher.bat | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Launcher.bat b/Launcher.bat index f9a2fb3..244c787 100644 --- a/Launcher.bat +++ b/Launcher.bat @@ -1437,11 +1437,20 @@ start cmd /k "title SDWEBUI && cd /d %sdwebui_install_path% && %sdwebui_start_co goto :home :start_sdwebuiforge -cd /d "%sdwebui_install_path%-forge" +cd /d "%sdwebuiforge_install_path%" + +REM Run conda activate from the Miniconda installation +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Miniconda environment... +call "%miniconda_path%\Scripts\activate.bat" + +REM Activate the sdwebui environment +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Conda environment: %cyan_fg_strong%sdwebuiforge%reset% +call conda activate sdwebuiforge REM Start Stable Diffusion WebUI Forge with desired configurations echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Stable Diffusion WebUI Forge launched in a new window. -start "" "webui-user.bat" +REM start cmd /k "title SDWEBUIFORGE && cd /d %sdwebuiforge_install_path% && %sdwebuiforge_start_command%" +start cmd /k "title SDWEBUIFORGE && cd /d %sdwebuiforge_install_path% && python launch.py" goto :home :start_comfyui @@ -2798,7 +2807,7 @@ call "%miniconda_path%\Scripts\activate.bat" REM Create a Conda environment named sdwebuiforge echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Creating Conda environment: %cyan_fg_strong%sdwebuiforge%reset% -call conda create -n sdwebuiforge python=3.11 -y +call conda create -n sdwebuiforge python=3.10.6 -y REM Activate the sdwebuiforge environment echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Conda environment: %cyan_fg_strong%sdwebuiforge%reset%