mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 13:28:35 +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 36ec16ac9937d393d0ba8939640352cee430efb7
|
|
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 |