mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-26 23:29:53 +00:00
122 lines
4 KiB
Markdown
122 lines
4 KiB
Markdown
# Boogu Image
|
|
|
|
Boogu Image uses a Boogu diffusion transformer, the FLUX VAE, and Qwen3-VL as the LLM text and vision encoder.
|
|
|
|
## Model files
|
|
|
|
| Component | Weights and downloads | CLI option | Requirement |
|
|
| --- | --- | --- | --- |
|
|
| Boogu Image | [Safetensors](https://huggingface.co/Comfy-Org/Boogu-Image/tree/main/diffusion_models) | `--diffusion-model` | Required |
|
|
| vae | [Safetensors](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.safetensors) | `--vae` | Use matching VAE |
|
|
| Qwen3-VL 8B | [GGUF](https://huggingface.co/unsloth/Qwen3-VL-8B-Instruct-GGUF/tree/main)<br>For image editing with GGUF text encoders, also download the matching mmproj file and pass it with `--llm_vision`. | `--llm` | Use matching text encoder |
|
|
|
|
## Usage
|
|
|
|
### Web UI
|
|
|
|
Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
|
|
server, then select the recipe matching your weights. Fill the component slots
|
|
below and click **Load models**.
|
|
Use the files and compatibility requirements in [Model files](#model-files).
|
|
|
|
| Recipe | Component slots |
|
|
| --- | --- |
|
|
| Boogu Image Base (`boogu-image`) | `diffusion_model`, `llm`, `vae`, `tae` |
|
|
| Boogu Image Edit (`boogu-image-edit`) | `diffusion_model`, `llm`, `llm_vision`, `vae`, `tae` |
|
|
|
|
Slot IDs correspond to CLI component options: `diffusion_model` uses
|
|
`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
|
|
Select optional components when required by your checkpoint or task.
|
|
|
|
### DGL
|
|
|
|
| Example | Description |
|
|
| --- | --- |
|
|
| [Text to image](../dgl/boogu_image/boogu-image-base-txt2img.dgl) | Boogu Image Base. |
|
|
| [Image editing](../dgl/boogu_image/boogu-image-edit.dgl) | Boogu Image Edit. |
|
|
|
|
#### Run a script
|
|
|
|
Edit paths, prompts and settings in the script's `var` block, then run from
|
|
the build directory. Paths inside the script resolve from the working directory.
|
|
|
|
**Windows (PowerShell)**
|
|
|
|
```powershell
|
|
.\bin\Release\sd-cli.exe -M dgl --script ..\docs\dgl\boogu_image\boogu-image-base-txt2img.dgl
|
|
```
|
|
|
|
**Linux/macOS**
|
|
|
|
```sh
|
|
./bin/sd-cli -M dgl --script ../docs/dgl/boogu_image/boogu-image-base-txt2img.dgl
|
|
```
|
|
|
|
Choose another script from the table to run a different task. Add `--check`
|
|
to validate syntax and types without loading weights. See the
|
|
[shared run instructions](../dgl/README.md#run-an-example) for build paths
|
|
and the server's file-access rules.
|
|
|
|
### Legacy CLI
|
|
|
|
CLI examples use the [shared path and shell conventions](README.md#example-conventions).
|
|
|
|
#### Boogu Image Base
|
|
|
|
**Windows (PowerShell)**
|
|
|
|
```powershell
|
|
.\bin\Release\sd-cli.exe `
|
|
--diffusion-model ..\models\diffusion_models\boogu_image_base_bf16.safetensors `
|
|
--llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf `
|
|
--vae ..\models\vae\ae.sft `
|
|
-p "a lovely cat" `
|
|
--offload-to-cpu `
|
|
-v
|
|
```
|
|
|
|
**Linux/macOS**
|
|
|
|
```sh
|
|
./bin/sd-cli \
|
|
--diffusion-model ../models/diffusion_models/boogu_image_base_bf16.safetensors \
|
|
--llm ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf \
|
|
--vae ../models/vae/ae.sft \
|
|
-p "a lovely cat" \
|
|
--offload-to-cpu \
|
|
-v
|
|
```
|
|
|
|
<img width="256" alt="Boogu Image Base example" src="../../assets/boogu/example.png" />
|
|
|
|
#### Boogu Image Edit
|
|
|
|
**Windows (PowerShell)**
|
|
|
|
```powershell
|
|
.\bin\Release\sd-cli.exe `
|
|
--diffusion-model ..\models\diffusion_models\boogu_image_edit_bf16.safetensors `
|
|
--llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf `
|
|
--llm_vision ..\models\text_encoders\mmproj-Qwen3VL-8B-Instruct-F16.gguf `
|
|
--vae ..\models\vae\ae.sft `
|
|
-r ..\inputs\flux\flux1-dev-q8_0.png `
|
|
-p "change 'flux.cpp' to 'boogu.cpp'" `
|
|
--offload-to-cpu `
|
|
-v
|
|
```
|
|
|
|
**Linux/macOS**
|
|
|
|
```sh
|
|
./bin/sd-cli \
|
|
--diffusion-model ../models/diffusion_models/boogu_image_edit_bf16.safetensors \
|
|
--llm ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf \
|
|
--llm_vision ../models/text_encoders/mmproj-Qwen3VL-8B-Instruct-F16.gguf \
|
|
--vae ../models/vae/ae.sft \
|
|
-r ../inputs/flux/flux1-dev-q8_0.png \
|
|
-p "change 'flux.cpp' to 'boogu.cpp'" \
|
|
--offload-to-cpu \
|
|
-v
|
|
```
|
|
|
|
<img width="256" alt="Boogu Image Edit example" src="../../assets/boogu/edit_example.png" />
|