| --- |
| pipeline_tag: text-to-image |
| tags: |
| - text-to-image |
| - image-generation |
| - diffusion-transformer |
| - dit |
| - comfyui |
| - checkpoint |
| - safetensors |
| - aio |
| - all-in-one |
| - ernie-image |
| - ernie-image-turbo |
| - bf16 |
| - fp8 |
| license: apache-2.0 |
| widget: |
| - text: >- |
| A premium sci-fi poster with readable text, cinematic lighting, and a |
| futuristic city skyline at night. |
| - text: >- |
| A clean product advertisement for a coffee brand with readable package text, |
| elegant layout, and warm morning light. |
| language: |
| - en |
| --- |
| |
| # πΌοΈ ERNIE AIO for ComfyUI |
|
|
| **All-in-One Checkpoints β’ Base + Turbo β’ BF16 & FP8 β’ Text Encoder + VAE Included** |
|
|
| [](https://opensource.org/licenses/Apache-2.0) |
| [](https://github.com/comfyanonymous/ComfyUI) |
|
|
| --- |
|
|
| - [π¦ Models](#π¦-models "π¦ Models") |
| - [π Workflow](#π-workflow "π Workflow") |
| - [πΈ ERNIE-AIO-Base](#πΈ-ernie-aio-base "πΈ ERNIE-AIO-Base") |
| - [β‘ ERNIE-AIO-Turbo](#β‘-ernie-aio-turbo "β‘ ERNIE-AIO-Turbo") |
| - [π FP8 vs BF16](#π-fp8-vs-bf16 "π FP8 vs BF16") |
| - [βοΈ Common Settings](#βοΈ-common-settings "βοΈ Common Settings") |
| - [ποΈ Prompt Enhancer](#ποΈ-prompt-enhancer "ποΈ Prompt Enhancer") |
| - [π‘ Prompting](#π‘-prompting "π‘ Prompting") |
| - [π₯ Downloads](#π₯-downloads "π₯ Downloads") |
| - [π Files](#π-files "π Files") |
| - [π Credits](#π-credits "π Credits") |
|
|
| --- |
|
|
| ## π¦ Models |
|
|
| | Model | Style | FP8 | BF16 | Best For | |
| |---|---|---|---|---| |
| | πΈ **ERNIE-AIO-Base** | Realistic / Structured | β
| β
| High-quality, refined output | |
| | β‘ **ERNIE-AIO-Turbo** | Realistic / Structured | β
| β
| Fast iteration, 8-step generation | |
|
|
| **All models:** Integrated Text Encoder + VAE β’ Single Checkpoint β’ No extra loaders needed |
|
|
| --- |
|
|
| ## π Workflow |
|
|
| | File | Description | |
| |---|---| |
| | `Workflow/ERNIE-AIO-Upscale.json` | Standard ComfyUI workflow with upscaler | |
|
|
| > β
A ready-to-use **ComfyUI workflow** is included in the `Workflow/` folder. |
| > β
Optional **Prompt Enhancer** files are included in the `prompt-enhancer/` folder. |
|
|
| --- |
|
|
| ## πΈ ERNIE-AIO-Base |
|
|
| The Base version is intended for high-quality, deliberate, and stable generation. |
|
|
| **Features:** π Strong instruction following β’ ποΈ Text rendering β’ π Structured layouts |
|
|
| ``` |
| Steps: 50 | CFG: 4.0 |
| ``` |
|
|
| [](https://huggingface.co/SeeSee21/ERNIE-AIO/blob/main/images/ernie-aio-base.png) |
|
|
| Use this version when you want: |
| - Stronger refinement and more careful rendering |
| - Full non-turbo quality |
| - Best results for posters, infographics, and text-heavy layouts |
|
|
| --- |
|
|
| ## β‘ ERNIE-AIO-Turbo |
|
|
| The Turbo version is a distilled variant for fast generation and quick iteration. |
|
|
| **Features:** β‘ 8-step generation β’ π― High prompt fidelity β’ π Quick turnaround |
|
|
| ``` |
| Steps: 8 | CFG: 1.0 |
| ``` |
|
|
| [](https://huggingface.co/SeeSee21/ERNIE-AIO/blob/main/images/ernie-aio-turbo.png) |
|
|
| Use this version when you want: |
| - Fast output for prototyping and iteration |
| - Strong visual quality with minimal steps |
| - Efficient VRAM usage |
|
|
| --- |
|
|
| ## π FP8 vs BF16 |
|
|
| | | π‘ FP8 | π BF16 | |
| |---|---|---| |
| | **Quality** | ~95% | 100% | |
| | **File Size** | Smaller | Full | |
| | **Speed** | Faster | Standard | |
| | **VAE** | FP32 (stable) | FP32 (stable) | |
| | **Best For** | Daily use | Final renders | |
|
|
| > **Note:** The FP8 versions in this repository were quantized by me. |
| > VAE is kept at **FP32** in all variants for stable decoding. |
|
|
| --- |
|
|
| ## βοΈ Common Settings |
|
|
| ``` |
| # ERNIE-AIO-Base |
| Steps: 50 |
| CFG: 4.0 |
| |
| # ERNIE-AIO-Turbo |
| Steps: 8 |
| CFG: 1.0 |
| |
| # Placement (both variants) |
| ComfyUI/models/checkpoints/ |
| |
| # Loader |
| Standard "Load Checkpoint" node β no extra VAE or text encoder loader needed |
| ``` |
|
|
| **Minimal workflow:** |
| 1. **Checkpoint Loader** |
| 2. **CLIP Text Encode (Prompt)** |
| 3. **Empty Latent Image** |
| 4. **KSampler** |
| 5. **VAE Decode** |
| 6. **Save Image** |
|
|
| --- |
|
|
| ## ποΈ Prompt Enhancer |
|
|
| An optional **Prompt Enhancer** is included in the `prompt-enhancer/` folder. |
|
|
| - Automatically expands short prompts into richer, more descriptive prompts |
| - Used by the included workflow |
| - Fully optional β works without it too |
|
|
| > β οΈ **Placement:** The Prompt Enhancer files must be placed in: |
| > ``` |
| > ComfyUI/models/text_encoders/ |
| > ``` |
| > **Not** in a `prompt-enhancer/` subfolder β place the files directly into `text_encoders/`. |
|
|
| --- |
|
|
| ## π‘ Prompting |
|
|
| **Natural language works best!** These models excel at instruction following and text rendering. |
|
|
| ``` |
| β
A cinematic movie poster with a bold readable title at the top, |
| dramatic lighting, a futuristic skyline in the background, |
| and a heroic figure silhouetted against a neon-lit city. |
| |
| β movie poster, city, hero, cinematic, dramatic |
| ``` |
|
|
| **ERNIE-Image is especially strong for:** |
|
|
| | Category | Examples | |
| |---|---| |
| | π¬ Posters & Title Cards | Movie posters, event flyers, title images | |
| | β Product Ads | Coffee brands, packaging with readable text | |
| | π Infographics | Labeled sections, structured layouts | |
| | π¬ Comics | Speech bubbles, panel compositions | |
| | π₯οΈ UI-style Visuals | Interface mockups, app screens | |
| | πΌοΈ Realistic Imagery | Portraits, environments, product shots | |
|
|
| **For best results, describe:** |
| - Subject & environment |
| - Composition & layout |
| - Mood & lighting |
| - Camera framing |
| - Any text that should appear in the image |
|
|
| --- |
|
|
| ## π₯ Downloads |
|
|
| ### ERNIE-AIO Checkpoints |
|
|
| | Model | Precision | CivitAI | |
| |---|---|---| |
| | β‘ **ERNIE-AIO-Turbo** | π BF16 | [Download](https://civitai.red/models/2551548?modelVersionId=2868512) | |
| | β‘ **ERNIE-AIO-Turbo** | π‘ FP8 | [Download](https://civitai.red/models/2551548?modelVersionId=2868512) | |
| | πΈ **ERNIE-AIO-Base** | π BF16 | [Download](https://civitai.red/models/2551548?modelVersionId=2867462) | |
| | πΈ **ERNIE-AIO-Base** | π‘ FP8 | [Download](https://civitai.red/models/2551548?modelVersionId=2867462) | |
|
|
| > All files are also available directly on this HuggingFace page. |
|
|
| --- |
|
|
| ## π Files |
|
|
| ``` |
| βββ ERNIE-AIO-Base-bf16.safetensors # πΈ Base β BF16 |
| βββ ERNIE-AIO-Base-fp8.safetensors # πΈ Base β FP8 |
| βββ ERNIE-AIO-Turbo-bf16.safetensors # β‘ Turbo β BF16 |
| βββ ERNIE-AIO-Turbo-fp8.safetensors # β‘ Turbo β FP8 |
| β |
| βββ Workflow/ |
| β βββ ERNIE-AIO-Upscale.json # π ComfyUI workflow with upscaler |
| β |
| βββ prompt-enhancer/ # ποΈ Optional Prompt Enhancer files |
| β |
| βββ images/ |
| βββ ernie-aio-base.png # πΈ Base preview image |
| βββ ernie-aio-turbo.png # β‘ Turbo preview image |
| ``` |
|
|
| --- |
|
|
| ## π Credits |
|
|
| **Original Model:** Baidu ERNIE-Image Team β’ Single-Stream DiT β’ Apache 2.0 |
|
|
| **AIO Conversion & FP8 Quantization:** [SeeSee21](https://huggingface.co/SeeSee21) |
|
|
| **Official Sources:** |
|
|
| | Resource | Link | |
| |---|---| |
| | ERNIE-Image (HuggingFace) | [baidu/ERNIE-Image](https://huggingface.co/baidu/ERNIE-Image) | |
| | ERNIE-Image-Turbo (HuggingFace) | [baidu/ERNIE-Image-Turbo](https://huggingface.co/baidu/ERNIE-Image-Turbo) | |
| | GitHub | [baidu/ERNIE-Image](https://github.com/baidu/ERNIE-Image) | |
|
|
| --- |
|
|
| **Download β Load Checkpoint β Generate!** π |
|
|
| **Place in `checkpoints/`, load with "Load Checkpoint", and generate in seconds!** |