Nodes/Ernie_Image_Real_Diffusers/Eric ERNIE-Image Generate
ComfyUI Node

Eric ERNIE-Image Generate

Generate with ERNIE-Image or Turbo. Accepts pre-computed embeddings.

By EricRollei·Created 4 months ago·Updated 4 months ago· 3
Eric ERNIE-Image Generate
  • pipeline
  • prompt_embeds
  • negative_prompt_embeds
  • image
prompt
resolution1024x1024 (1:1)
steps50
guidance_scale4.0
seed0
use_pefalse
sigma_scheduleuniform
shift_value4.0
max_mp1.50
guidance_rescale0.00
vae_decode_fp32true
width1024
height1024
negative_prompt
CategoryEric ERNIE Image

Inputs (17)

NameTypeDefaultDescription
pipelineERNIE_PIPELINE
promptSTRINGIgnored when prompt_embeds is connected.
resolutionCOMBO1024x1024 (1:1)20 options: 3:1 panoramic, 21:9 cinemascope, 2:1 wide, 16:9 ★, 8:5, 3:2 ★, +14
stepsINT501–10050 for SFT, 8 for Turbo.
guidance_scaleFLOAT4.00–204.0 for SFT, 1.0 for Turbo.
seedINT00–18446744073709550000
use_peBOOLEANfalseRequires load_pe=True in loader.
sigma_scheduleCOMBOuniform'uniform' = pipeline default (shift=4.0 from scheduler config). 'fixed shift' = override shift to shift_value below. 'karras' = shift + karras transform (more steps at both extremes). 'beta' = shift + beta distribution (good balance for fine detail). 'dynamic' = resolution-based shift. Change without reloading.
shift_valueFLOAT4.00.1–8Override scheduler shift for 'fixed shift', 'karras', 'beta' schedules. 1.0 = truly uniform (no shift bias). 4.0 = default (strong structural emphasis). Ignored when schedule = 'uniform' or 'dynamic'.
max_mpFLOAT1.500.25–8Stay at 1.0-1.5 MP. ERNIE trained on 7 ~1MP presets.
guidance_rescaleFLOAT0.000–1Rescale CFG output toward unit variance to reduce saturation. 0.0 = off. 0.5-0.7 = moderate rescaling. Helps preserve fine detail at high guidance_scale.
vae_decode_fp32BOOLEANtrueUpcast VAE to float32 for decode. Prevents bf16/fp16 quantization of fine textures. Tiny speed cost, significant quality win.
widthoptINT1024256–8192Used only when resolution = 'custom'.
heightoptINT1024256–8192Used only when resolution = 'custom'.
negative_promptoptSTRING
prompt_embedsoptERNIE_EMBEDSPre-computed embeddings from ErnieImageEncode. When connected, the prompt text input is ignored. Enables reuse across seeds without re-running the text encoder.
negative_prompt_embedsoptERNIE_EMBEDSPre-computed negative embeddings from ErnieImageEncode. When connected, negative_prompt text is ignored.

Outputs (1)

NameTypeDescription
imageIMAGE