mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-26 23:29:53 +00:00
Some checks failed
CI / ubuntu-latest-cmake (push) Has been cancelled
CI / ubuntu-latest-cmake-vulkan (push) Has been cancelled
CI / Build and push container images (push) Has been cancelled
CI / macOS-latest-cmake (push) Has been cancelled
CI / windows-latest-cmake (cpu, -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_LIBS=ON -DSD_BUILD_SHARED_GGML_LIB=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON) (push) Has been cancelled
CI / windows-latest-cmake (cuda12, -DSD_CUDA=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_ARCHITECTURES='61;70;75;80;86;89;90;100;120' -DCMAKE_CUDA_FLAGS='-Xcudafe "--diag_suppress=177" -Xcudafe "--diag_suppress=550"' -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_GGML_L… (push) Has been cancelled
CI / windows-latest-cmake (vulkan, -DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_GGML_LIB=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON) (push) Has been cancelled
CI / windows-latest-rocm (push) Has been cancelled
CI / ubuntu-latest-rocm (10.1.0, x64, gfx900;gfx906;gfx908;gfx90a;gfx90c;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201) (push) Has been cancelled
CI / release (push) Has been cancelled
45 lines
1.1 KiB
Batchfile
45 lines
1.1 KiB
Batchfile
@echo off
|
|
setlocal DisableDelayedExpansion
|
|
|
|
set "SD_SERVER_PATH=%SD_SERVER_PATH%"
|
|
set "MODEL_DIR=./models"
|
|
set "COMMANDLINE_ARGS="
|
|
|
|
if exist "%~dp0start-server.local.bat" (
|
|
call "%~dp0start-server.local.bat"
|
|
if errorlevel 1 exit /b 1
|
|
)
|
|
|
|
if defined SD_SERVER_PATH goto explicit
|
|
|
|
for %%F in (
|
|
"%~dp0sd-server.exe"
|
|
"%~dp0bin\Release\sd-server.exe"
|
|
"%~dp0bin\sd-server.exe"
|
|
"%~dp0build\bin\Release\sd-server.exe"
|
|
"%~dp0build\bin\sd-server.exe"
|
|
) do (
|
|
if exist "%%~F" (
|
|
set "SD_SERVER_PATH=%%~F"
|
|
goto run
|
|
)
|
|
)
|
|
|
|
>&2 echo sd-server.exe was not found. Build it first or set SD_SERVER_PATH to its executable path.
|
|
exit /b 1
|
|
|
|
:explicit
|
|
if exist "%SD_SERVER_PATH%" goto run
|
|
>&2 echo SD_SERVER_PATH does not exist: "%SD_SERVER_PATH%"
|
|
exit /b 1
|
|
|
|
:run
|
|
if "%~1"=="--version" goto version
|
|
echo Running: "%SD_SERVER_PATH%" --model-dir "%MODEL_DIR%" %COMMANDLINE_ARGS% %*
|
|
"%SD_SERVER_PATH%" --model-dir "%MODEL_DIR%" %COMMANDLINE_ARGS% %*
|
|
exit /b %errorlevel%
|
|
|
|
:version
|
|
echo Running: "%SD_SERVER_PATH%" %*
|
|
"%SD_SERVER_PATH%" %*
|
|
exit /b %errorlevel%
|