Experiments for a fast and lightweight Easy Diffusion (for version 4.0). Uses stable-diffusion.cpp.
cmake -B build
cmake --build build --config Release
Install the CUDA Toolkit. Also I had to copy some files around to make it work, and point the CUDAToolkit_ROOT
environment variable to where the CUDA toolkit was installed (for e.g. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6
).
It only works with MSVC, since it requires cl.exe
. Installed Visual Studio Community edition, with Desktop C++ support. Then included that in the PATH
environment variable.
Compiled using:
cmake -B build -DSD_CUBLAS=ON
cmake --build build --config Release
You can run build/bin/easy-diffusion
, which will load the model from the hard-coded path in src/main.cpp
, and generate a test image.
It doesn't save the image to disk currently, since this is currently just an experiment to see if things work together.