Skip to content

Conversation

@leejet
Copy link
Owner

@leejet leejet commented Jan 18, 2026

Generate index.html and gen_index_html.h

cd examples/server/frontend
pnpm install
pnpm build
pnpm build:header

Build sd.cpp

cd build
cmake .. -DSD_CUDA=ON
cmake --build . --config Release -j

Example

.\bin\Release\sd-server.exe -m ..\..\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors -v
image

@kalebbroo
Copy link

https://github.com/HartsyAI/SwarmUI-SD.cpp-Backend

I made an extension for SwarmUI that lets you use SDcpp. Its not built in like you are making but it can use almost all the features Swarm has been building on.

@Danmoreng
Copy link

Oh just saw this. I actually thought about implementing a webui for this project and already did so, but only posted it on Reddit. In the end I created a separate project because I also wanted to add more features like chat with llama.cpp support. But maybe if you want something a bit nicer I could simplify and backport it?

https://old.reddit.com/r/StableDiffusion/comments/1prn3h9/what_does_a_good_webui_need/

https://github.com/Danmoreng/stable-diffusion.cpp/tree/archive/pre-sync-work

@opsec-ai
Copy link

opsec-ai commented Feb 3, 2026

Nice look. Works well.

  • It needs slider for setting cfg_scale, required by sd_xl_turbo, once the server supports it, re. sd-server: set cfg_scale in the guidance parameters #1247
  • I missed the part where I had to generate examples/server/frontend/dist/gen_index_html.h
    • Could have used some docs on git submodule update --init && git pull --recurse-submodules
    • Finally pnpm install && pnpm build && pnpm build:header works.
  • Dark mode based on browser preference works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants