Nodes/Ernie_Image_Real_Diffusers/Eric ERNIE-Image UltraGen
ComfyUI Node

Eric ERNIE-Image UltraGen

Two-stage hierarchical generation. Returns final image + Stage 1 composition preview.

By EricRollei·Created 4 months ago·Updated 4 months ago· 3
Eric ERNIE-Image UltraGen
  • pipeline
  • prompt_embeds
  • s1_negative_embeds
  • s2_negative_embeds
  • final_image
  • stage1_preview
prompt
resolution5:4
seed0
use_pefalse
s1_initial_mp0.40
s1_denoise1.00
s1_steps6
s1_guidance_scale1.0
s1_sigma_schedulefixed shift
s1_shift_value6.0
scale_factor2.5
s2_denoise0.85
s2_steps9
s2_guidance_scale1.0
s2_sigma_schedulefixed shift
s2_shift_value5.0
max_final_mp8.0
upscale_methodbislerp
guidance_rescale0.00
vae_decode_fp32true
s1_negative_prompt
s2_negative_prompt
CategoryEric ERNIE Image

Inputs (26)

NameTypeDefaultDescription
pipelineERNIE_PIPELINE
promptSTRINGIgnored when prompt_embeds connected.
resolutionCOMBO5:4Aspect ratio for both stages.
seedINT00–18446744073709550000
use_peBOOLEANfalse
s1_initial_mpFLOAT0.400.2–1Stage 1 megapixels. 0.3-0.5 MP recommended.
s1_denoiseFLOAT1.000.05–1Stage 1 denoise strength - fraction of σ=[1.0→0] covered. 0.15 → stops at σ=0.85 (just lays in composition).
s1_stepsINT65–100Stage 1 steps. 6-8 for Turbo, 20-30 for SFT.
s1_guidance_scaleFLOAT1.00–20Stage 1 CFG. 1.0 for Turbo, 6-9 for SFT.
s1_sigma_scheduleCOMBOfixed shift'fixed shift' with s1_shift_value 6-8 keeps all steps structural. 'karras'/'beta' add detail-range emphasis on top of shift.
s1_shift_valueFLOAT6.00.1–16Stage 1 shift. 6-8 recommended. 1.0 = uniform.
scale_factorFLOAT2.51–8Linear upscale factor. 2.5× on 0.4 MP ≈ 1 MP. Higher risks body horror.
s2_denoiseFLOAT0.850.1–1Noise level added to upscaled S1 latent before S2 denoise. 0.45 = 45% noise (light refinement, preserves S1 composition). 0.65+ = heavier re-generation with more new detail. 1.0 = full re-generation (ignores S1).
s2_stepsINT95–100Stage 2 detail steps. 6-10 for Turbo, 20+ for SFT.
s2_guidance_scaleFLOAT1.00–20Stage 2 CFG. 1.0 for Turbo, 2-3 for SFT.
s2_sigma_scheduleCOMBOfixed shift'fixed shift' with s2_shift_value for consistent noise schedule. 'beta' allocates more steps to fine-detail range. 'karras' emphasizes both extremes.
s2_shift_valueFLOAT5.00.1–8Stage 2 shift. 5.0 tested well with Turbo at 2.5× scale.
max_final_mpFLOAT8.00.5–16Megapixel cap on final output.
upscale_methodCOMBObislerpbislerp (slerp-interpolation) preserves latent vector norms and angular relationships — sharper and more coherent than bicubic.
guidance_rescaleFLOAT0.000–1Rescale CFG output toward unit variance. Reduces saturation at high guidance_scale. 0.0 = off. 0.5-0.7 recommended for S1 cfg 6-9. Applied to both stages.
vae_decode_fp32BOOLEANtrueUpcast VAE to float32 for decode. Prevents bf16/fp16 quantization of fine textures. Applies to both S1 preview and S2 final decode.
s1_negative_promptoptSTRINGStage 1 negative prompt.
s2_negative_promptoptSTRINGStage 2 negative. Leave empty to reuse Stage 1.
prompt_embedsoptERNIE_EMBEDSPre-computed positive embeddings.
s1_negative_embedsoptERNIE_EMBEDSPre-computed Stage 1 negative embeddings.
s2_negative_embedsoptERNIE_EMBEDSPre-computed Stage 2 negative embeddings.

Outputs (2)

NameTypeDescription
final_imageIMAGE
stage1_previewIMAGE