NOW WITH NEW AND IMPROVED LORA SUPPORT: features a lora injection INSIDE the loader node itself to remove any issues with memory stalling due to lora stack injector node for low vram. this will load the entire lora without OOMing or missing pairs during merge due to lack of memory. REGULAR LORA STACK INJECTOR NODE STILL WORKS.
Now featuring full Sampler/Scheduler support, Multi-Reference Editing, and built-in Seam Smoothing to eliminate tiling artifacts.
This repository provides high-performance custom ComfyUI nodes for running the HiDream-01-Image-Dev models (both BF16 and GGUF). As a VAE-less, Pixel-Level Unified Transformer, HiDream-O1 generates raw pixels token-by-token. These nodes are optimized for local hardware, utilizing upfront dequantization and aggressive system RAM offloading—perfect for 8GB VRAM cards like the RTX 3070 by leveraging your 16GB of system RAM.
🚀 Key Features
Multi-Reference Editing: Inject up to 4 reference images to guide your generations.
Integrated LoRA Stack: Manage up to 4 LoRAs with fingerprint-based no-op detection.
Integrated LoRA inside Loader Node: save compute by preloading lora and merging BEFORE diffusion.
Advanced Seam Smoothing: Built-in "Patch Model Smoothing" logic to fix bad tiling and textures.
Expanded Sampler Support: Full flexibility with native ComfyUI samplers and schedulers.
Seam Visualizer: Heatmap-based analysis to monitor and perfect generation consistency.
[!IMPORTANT]
DO NOT install or run these nodes from a OneDrive-synced folder. Ensure your ComfyUI installation is on a strict local system drive (C: or D:) to avoid pathing and virtual environment errors.
Compatibility: If using aggressive offloading on BF16 paths, use the Seam Visualizer to confirm LoRA effects, as accelerate may occasionally reset in-place merges.
Rebel HiDream-O1 Sampler
The core engine of the suite, now heavily updated for precision and texture control.
Multi-Ref Inputs: ref_image_1 through ref_image_4.
Resolution Preset: 2048x2048 is native. Lower resolutions (1024x1024) will automatically "snap" to the closest supported token sequence length.
Sampler/Scheduler: Supports all native options.
CFG: For the Dev model, 0.0 is the recipe default. For higher texture/guidance with the detail scheduler, 5.0 is a strong starting point.
Seam Smoothing Suite:
seam_smooth_steps: Number of steps to apply patch smoothing.
seam_smooth_strength: Intensity of the tiling correction.
Rebel HiDream-O1 Seam Visualizer
Analyze the "health" of your generation's tiling.
Heatmap: Generates an overlay showing which patches are struggling with consistency.
Colormap: Inferno, Magma, or Viridis for clear contrast.
Usage: Connect to the IMAGE output of the sampler to dial in your seam_smooth settings.
⚠️ Known Behaviors
Compute Times: Because this is a pixel-transformer rendering 2048x2048 images token-by-token without a VAE, expect significantly longer generation times compared to latent models like Flux or SDXL.