diff --git a/README.md b/README.md index fbed50d2..bfc068b6 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ API and command-line option may change frequently.*** - [Z-Image](./docs/z_image.md) - [Ovis-Image](./docs/ovis_image.md) - [Anima](./docs/anima.md) + - [ERNIE-Image](./docs/ernie_image.md) - Image Edit Models - [FLUX.1-Kontext-dev](./docs/kontext.md) - [Qwen Image Edit series](./docs/qwen_image_edit.md) @@ -144,6 +145,7 @@ If you want to improve performance or reduce VRAM/RAM usage, please refer to [pe - [🔥Z-Image](./docs/z_image.md) - [Ovis-Image](./docs/ovis_image.md) - [Anima](./docs/anima.md) +- [ERNIE-Image](./docs/ernie_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/ernie_image/example.png b/assets/ernie_image/example.png new file mode 100644 index 00000000..3f5ed652 Binary files /dev/null and b/assets/ernie_image/example.png differ diff --git a/assets/ernie_image/turbo_example.png b/assets/ernie_image/turbo_example.png new file mode 100644 index 00000000..15318b3e Binary files /dev/null and b/assets/ernie_image/turbo_example.png differ diff --git a/docs/ernie_image.md b/docs/ernie_image.md new file mode 100644 index 00000000..d68da396 --- /dev/null +++ b/docs/ernie_image.md @@ -0,0 +1,35 @@ +# How to Use + +You can run ERNIE-Image with stable-diffusion.cpp on GPUs with 4GB of VRAM — or even less. + +## Download weights + +- Download ERNIE-Image-Turbo + - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/diffusion_models + - gguf: https://huggingface.co/unsloth/ERNIE-Image-Turbo-GGUF/tree/main +- Download ERNIE-Image + - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/diffusion_models + - gguf: https://huggingface.co/unsloth/ERNIE-Image-GGUF/tree/main +- Download vae + - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/vae +- Download ministral 3b + - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/text_encoders + - gguf: https://huggingface.co/unsloth/Ministral-3-3B-Instruct-2512-GGUF/tree/main + +## Examples + +### ERNIE-Image-Turbo + +``` +.\bin\Release\sd-cli.exe --diffusion-model ..\..\ComfyUI\models\diffusion_models\ernie-image-turbo.safetensors --vae ..\..\ComfyUI\models\vae\flux2_ae.safetensors --llm ..\..\ComfyUI\models\text_encoders\ministral-3-3b.safetensors -p "a lovely cat" --cfg-scale 1.0 --steps 8 -v --offload-to-cpu --diffusion-fa +``` + +ERNIE-Image Turbo example + +### ERNIE-Image + +``` +.\bin\Release\sd-cli.exe --diffusion-model ..\..\ComfyUI\models\diffusion_models\ernie-image-UD-Q4_K_M.gguf --vae ..\..\ComfyUI\models\vae\flux2_ae.safetensors --llm ..\..\ComfyUI\models\text_encoders\ministral-3-3b.safetensors -p "a lovely cat" --cfg-scale 5.0 -v --offload-to-cpu --diffusion-fa +``` + +ERNIE-Image example