2022-10-06 07:07:41 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
echo "Opening Stable Diffusion UI - Developer Console.." & echo.
|
|
|
|
|
2023-06-26 12:20:34 +02:00
|
|
|
cd /d %~dp0
|
2023-06-22 01:15:07 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
set PATH=C:\Windows\System32;%PATH%
|
2022-10-06 07:07:41 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
@rem set legacy and new installer's PATH, if they exist
|
2022-10-23 06:53:43 +02:00
|
|
|
if exist "installer" set PATH=%cd%\installer;%cd%\installer\Library\bin;%cd%\installer\Scripts;%cd%\installer\Library\usr\bin;%PATH%
|
|
|
|
if exist "installer_files\env" set PATH=%cd%\installer_files\env;%cd%\installer_files\env\Library\bin;%cd%\installer_files\env\Scripts;%cd%\installer_files\Library\usr\bin;%PATH%
|
2022-10-06 07:07:41 +02:00
|
|
|
|
2022-11-11 07:07:15 +01:00
|
|
|
set PYTHONPATH=%cd%\installer;%cd%\installer_files\env
|
|
|
|
|
2022-10-25 16:56:46 +02:00
|
|
|
@rem activate the installer env
|
|
|
|
call conda activate
|
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
@rem Test the environment
|
|
|
|
echo "Environment Info:"
|
|
|
|
call where git
|
|
|
|
call git --version
|
2022-10-06 07:07:41 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
call where conda
|
|
|
|
call conda --version
|
|
|
|
|
2023-06-22 23:54:45 +02:00
|
|
|
echo.
|
|
|
|
echo COMSPEC=%COMSPEC%
|
2022-10-22 19:58:43 +02:00
|
|
|
echo.
|
|
|
|
|
2022-12-24 09:07:50 +01:00
|
|
|
@rem activate the legacy environment (if present) and set PYTHONPATH
|
|
|
|
if exist "installer_files\env" (
|
|
|
|
set PYTHONPATH=%cd%\installer_files\env\lib\site-packages
|
|
|
|
)
|
|
|
|
if exist "stable-diffusion\env" (
|
|
|
|
call conda activate .\stable-diffusion\env
|
|
|
|
set PYTHONPATH=%cd%\stable-diffusion\env\lib\site-packages
|
|
|
|
)
|
2022-10-06 07:07:41 +02:00
|
|
|
|
2022-10-26 12:30:21 +02:00
|
|
|
call where python
|
|
|
|
call python --version
|
|
|
|
|
2022-11-24 07:18:27 +01:00
|
|
|
echo PYTHONPATH=%PYTHONPATH%
|
|
|
|
|
2023-07-10 09:07:49 +02:00
|
|
|
if exist "%cd%\profile" (
|
|
|
|
set HF_HOME=%cd%\profile\.cache\huggingface
|
|
|
|
)
|
|
|
|
|
2022-11-24 07:18:27 +01:00
|
|
|
@rem done
|
2022-10-26 12:30:21 +02:00
|
|
|
echo.
|
|
|
|
|
2022-10-23 06:53:43 +02:00
|
|
|
cmd /k
|