| | |
| | | in the external forlder, you can find the precompuled stable-diffusion.cpp and ggml as submodulde to it. |
| | | The default libs are configured with only CUDA, the release is Debug and Release. To use with another version (for example cpu only), you need to compile and overwrite |
| | | |
| | | #### Build stable-diffusion.cpp |
| | | ```Bash |
| | | git clone --recursive https://github.com/leejet/stable-diffusion.cpp |
| | | cd stable-diffusion.cpp |
| | | git pull origin master |
| | | git submodule init |
| | | git submodule update |
| | | |
| | | mkdir build |
| | | cd build |
| | | #with CUDA |
| | | cmake .. -DSD_CUBLAS=ON -DBUILD_SHARED_LIBS=ON |
| | | |
| | | #build |
| | | cmake --build . --config Release |
| | | #or Debug |
| | | cmake --build . --config Debug |
| | | |
| | | #test |
| | | ./bin/sd -m ../models/sd-v1-4.ckpt -p "a lovely cat" |
| | | ``` |
| | | |
| | | |
| | | ## - TO-DOs |
| | | See @git.spamming.hu ticketing system |
| | | |