ERNIE-Image Hidden Feature: Prompt Enhancer On or Off? A Clear Guide
If you've used ERNIE-Image, you've probably encountered these situations:
- Sometimes image quality is great, sometimes it's terrible
- You clearly changed the prompt, but the image stayed exactly the same
- You specified "Hello World", and the image showed Chinese text
The problem may not be with your prompt, but with a toggle you may have never noticed — the Prompt Enhancer (PE).
This article doesn't discuss architecture or theory. It answers one practical question: when to turn PE on, and when to turn it off.
PE in One Minute
PE is ERNIE-Image's built-in prompt rewriting module. You input a sentence, PE rewrites it into a more professional, detailed description, then generates the image.
PE on = You write simply, AI fills in the gaps
PE off = You write what you get, model does exactly what you say
That's it.
Turn PE On (Just do it, no hesitation)
✅ Scenario 1: You only wrote one line
Input: A cat on a table
Effect: PE auto-fills lighting, composition, style details
Result: Quality is better than if you didn't write those details
Rule: The shorter the prompt, the larger PE's benefit.
✅ Scenario 2: You don't know how to write prompts
Don't know what "Rembrandt lighting" or "shallow depth of field" means? You don't need to. PE automatically adds these professional terms for you.
Comparison:
| State | Your Input | What the Model Actually Receives |
|---|---|---|
| PE off | Sunset by the sea |
Sunset by the sea |
| PE on | Sunset by the sea |
Coastline under golden sunset, waves gently hitting rocks, warm orange sky, long exposure photography style |
✅ Scenario 3: Fast generation, brainstorming
PE + ERNIE-Image Turbo (8-step inference) = fastest workflow.
Typical usage:
- Input one line
- Turn on PE, hit generate
- Not satisfied? Change a word, try again
- 20 images in 10 minutes
Best for: Inspiration exploration, concept validation, quick creative testing.
✅ Scenario 4: Chinese input, Chinese output
PE is relatively friendly to Chinese input — expanded descriptions are typically in Chinese. If you're generating regular images (no precise text), Chinese users can safely turn on PE.
Turn PE Off (Must, no negotiation)
❌ Scenario 1: Need precise text rendering
This is the most important off scenario.
Your need: Poster reads "SUMMER SALE"
PE's behavior: May change "SUMMER SALE" to other text, or translate to Chinese
Result: The image shows text you didn't want
Turning off PE is the only reliable approach.
❌ Scenario 2: You already wrote a detailed prompt
If your prompt looks like this:
Close-up product photograph of a matte white ceramic coffee mug on a dark slate surface, dramatic side lighting from the left creating long shadows, moody dark atmosphere, high-end commercial photography, 4K detail
You already wrote lighting, material, composition, style. PE expanding further is overkill — it may add descriptions that conflict with yours.
❌ Scenario 3: Fixed seed iteration
You're adjusting prompts with a fixed seed, changing one word at a time:
Iteration 1: a cat → (PE expands to A)
Iteration 2: a black cat → (PE expands to B)
Iteration 3: a black cat on sofa → (PE expands to C)
You changed one word, but PE's entire expansion changed. You can't tell which change caused the result.
Off PE = isolate variables = precise iteration.
❌ Scenario 4: You pursue unique style
PE's expansion has templating tendencies — product photos always become "soft light + shallow depth of field", landscapes always become "golden hour + fog".
If you want atypical styles (minimalist, dark, abstract), PE's templated expansion may conflict with your direction.
Quick Decision Table
| Your Situation | PE Toggle | One-line Reason |
|---|---|---|
| Short prompt (≤15 chars) | ✅ On | PE fills in details for you |
| Don't know how to write prompts | ✅ On | Built-in prompt assistant |
| Fast generation | ✅ On | Fastest workflow |
| Chinese input, regular image | ✅ On | PE is friendly to Chinese |
| Need precise text | ❌ Off | PE rewrites text content |
| Already have detailed prompt | ❌ Off | Overkill |
| Fixed seed iteration | ❌ Off | Isolate variables |
| Pursuing unique style | ❌ Off | Avoid templating |
| GGUF low-VRAM mode | ❌ N/A | No GGUF version |
How to Toggle PE
ComfyUI
In the PE node settings:
enabled= true → Onenabled= false → Off
Diffusers API
pipe(prompt="xxx", use_pe=True) # On
pipe(prompt="xxx", use_pe=False) # Off
Scenario.com Web Interface
Find the "Prompt Enhancer" checkbox on the generation page, check/uncheck.
Advanced Tips
Tip 1: Use PE to Find Direction, Then Turn Off for Final Polish
- Input short prompt, turn on PE, generate preview
- See PE's expansion direction
- Manually adjust the expanded content (or modify based on it)
- Turn off PE, generate final version with adjusted prompt
Essence: PE is your creative assistant, not the final decision maker.
Tip 2: Replace Built-in PE with a Stronger LLM
If you often need PE but are unsatisfied with its results:
- Write professional-level prompts with GPT-4/Claude
- Turn off PE in ERNIE-Image
- Paste prompt and generate
Quality improves noticeably. The trade-off: API cost.
Tip 3: Use Negative Descriptions to Counter Templating
If you want atypical styles:
a product photo, dark moody lighting, NO soft light, NO commercial photography, dramatic contrast, edgy
Add exclusionary descriptions to tell PE what you don't want.
Common Misconceptions
Misconception 1: "PE on always means better quality"
Wrong. PE helps with short prompts, but harms with long prompts.
Misconception 2: "PE off is a downgrade"
Wrong. PE off means "precise control", not a downgrade. Professional users often turn PE off.
Misconception 3: "PE just adds content"
Wrong. PE is a rewriter — it changes your complete prompt content.
Misconception 4: "PE translating to Chinese is a bug"
Not a bug — it's normal behavior caused by training data distribution.
Summary: One-Line Rules
- Short prompt → PE on
- Long prompt → PE off
- Need text → PE off
- Need iteration → PE off
- Unsure → Use PE to see direction, then adjust manually
PE is not magic — it's a tool. Understand its behavior, and you master its toggle logic.