mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-13 05:48:40 +00:00
27 lines
556 B
Batchfile
27 lines
556 B
Batchfile
if not exist stable-diffusion.cpp (
|
|
git clone --recursive https://github.com/leejet/stable-diffusion.cpp
|
|
)
|
|
|
|
cd stable-diffusion.cpp
|
|
git fetch
|
|
git checkout 2c5f3fc53a040a0f97ff8f359e8f8d1385bfd154
|
|
git submodule init
|
|
git submodule update
|
|
|
|
if not exist build (
|
|
mkdir build
|
|
)
|
|
|
|
cd build
|
|
|
|
rem remove -DSD_CUBLAS=ON to disable cuda support
|
|
cmake .. -DBUILD_SHARED_LIBS=ON -DSD_BUILD_EXAMPLES=OFF -DSD_CUBLAS=ON
|
|
cmake --build . --config Release
|
|
|
|
cd ..\..
|
|
|
|
dotnet publish -c Release -o bin
|
|
|
|
copy .\stable-diffusion.cpp\build\bin\Release\*.dll .\bin\
|
|
|
|
pause |