diff --git a/README.md b/README.md index a32f8c5d..4f51f9e7 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ API and command-line option may change frequently.*** ## 🔥Important News +* **2026/05/27** 🚀 stable-diffusion.cpp now supports **Lens** * **2026/05/17** 🚀 stable-diffusion.cpp now supports **LTX-2.3** * **2026/04/11** 🚀 stable-diffusion.cpp now uses a brand-new embedded web UI. * **2026/01/18** 🚀 stable-diffusion.cpp now supports **FLUX.2-klein** @@ -37,6 +38,7 @@ API and command-line option may change frequently.*** - [SD3/SD3.5](./docs/sd3.md) - [FLUX.1-dev/FLUX.1-schnell](./docs/flux.md) - [FLUX.2-dev/FLUX.2-klein](./docs/flux2.md) + - [Lens](./docs/lens.md) - [Chroma](./docs/chroma.md) - [Chroma1-Radiance](./docs/chroma_radiance.md) - [Qwen Image](./docs/qwen_image.md) @@ -135,7 +137,6 @@ For runtime and parameter backend placement, see the [backend selection guide](. - [Chroma](./docs/chroma.md) - [🔥Qwen Image](./docs/qwen_image.md) - [🔥Qwen Image Edit series](./docs/qwen_image_edit.md) -- [🔥LongCat Image / LongCat Image Edit](./docs/longcat_image.md) - [🔥Wan2.1/Wan2.2](./docs/wan.md) - [🔥LTX-2.3](./docs/ltx2.md) - [🔥Z-Image](./docs/z_image.md) @@ -143,6 +144,8 @@ For runtime and parameter backend placement, see the [backend selection guide](. - [Anima](./docs/anima.md) - [ERNIE-Image](./docs/ernie_image.md) - [HiDream-O1-Image](./docs/hidream_o1_image.md) +- [Lens](./docs/lens.md) +- [LongCat Image / LongCat Image Edit](./docs/longcat_image.md) - [LoRA](./docs/lora.md) - [LCM/LCM-LoRA](./docs/lcm.md) - [Using PhotoMaker to personalize image generation](./docs/photo_maker.md) diff --git a/assets/lens/example.png b/assets/lens/example.png new file mode 100644 index 00000000..c5829b62 Binary files /dev/null and b/assets/lens/example.png differ diff --git a/assets/lens/turbo_example.png b/assets/lens/turbo_example.png new file mode 100644 index 00000000..5fa94a6f Binary files /dev/null and b/assets/lens/turbo_example.png differ diff --git a/docs/lens.md b/docs/lens.md new file mode 100644 index 00000000..5bf1cc4a --- /dev/null +++ b/docs/lens.md @@ -0,0 +1,32 @@ +# How to Use + +Lens uses a Lens diffusion transformer, the FLUX.2 VAE, and GPT-OSS-20B as the LLM text encoder. + +## Download weights + +- Download Lens + - safetensors: https://huggingface.co/Comfy-Org/Lens/tree/main/diffusion_models +- Download Lens Turbo + - safetensors: https://huggingface.co/Comfy-Org/Lens/tree/main/diffusion_models +- Download vae + - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/main +- Download GPT-OSS-20B + - gguf: https://huggingface.co/unsloth/gpt-oss-20b-GGUF/tree/main + +## Examples + +### Lens + +``` +.\bin\Release\sd-cli.exe --diffusion-model ..\..\ComfyUI\models\diffusion_models\lens_bf16.safetensors --llm "..\..\llm\gpt-oss-20b-UD-Q8_K_XL.gguf" --vae ..\..\ComfyUI\models\vae\flux2_ae.safetensors --cfg-scale 5.0 -p "A crystal dragon soaring through an aurora borealis sky, its entire body made of transparent faceted crystal refracting the green and purple aurora light into rainbow spectra, ice particles trailing from its wings, high fantasy digital art" --diffusion-fa -v +``` + +Lens example + +### Lens Turbo + +``` +.\bin\Release\sd-cli.exe --diffusion-model ..\..\ComfyUI\models\diffusion_models\lens_turbo_bf16.safetensors --llm "..\..\llm\gpt-oss-20b-UD-Q8_K_XL.gguf" --vae ..\..\ComfyUI\models\vae\flux2_ae.safetensors --cfg-scale 1.0 -p "A crystal dragon soaring through an aurora borealis sky, its entire body made of transparent faceted crystal refracting the green and purple aurora light into rainbow spectra, ice particles trailing from its wings, high fantasy digital art" --diffusion-fa -v --steps 4 +``` + +Lens Turbo example