DenRakEiw_Nodes
Comfyui Node Pack
Nodes (24)
A flat-color canvas and a matching empty latent, in one node
A Tamagotchi that eats your AI slop and evolves
What's actually inside that wire
Make an LLM write your FLUX 3 video prompt so you don't have to
Run BFL's Flux 3 video API from inside your ComfyUI graph
Upscale your Flux 3 clips to 4K without downloading anything
The band-aid that makes Flux LayerDiffuse accept your conditioning
The node that turns Flux latents into actual transparent PNGs
Give Flux LayerDiffuse a proper empty conditioning (your negatives depend on it)
The in-graph help desk for Flux LayerDiffuse
The loader that gets TransparentVAE into your Flux graph
Color-match your images without ever leaving latent space
The no-frills latent color match that just transfers stats
Brightness, hue, contrast and sharpness β on the latents, not the pixels
Ask an LLM to write your entire Deforum schedule in one call
Load images one at a time from a folder, without blowing up your RAM
See what's in an image folder before you build the sequence loop
Compose up to 8 images into one frame, sized and face-centered automatically
Preview your transparent images on the backgrounds that matter
Save the PNG with the alpha intact β the standard Save Image node will flatten it
Check your alpha channel actually exists β and how much of it there is
Upscale your latents with a real neural network β SD1.5, SDXL, Flux, or Wan
A caption .txt writer that leaves your LoRA dataset alone
The 'universal' latent upscaler that ships with no weights
Denrakeiw Nodes
Comprehensive ComfyUI custom nodes for image generation, latent space manipulation, Flux LayerDiffuse transparency, and multi-image composition.
π¨ Core Nodes
Color Generator
Generates solid color images with 130+ predefined colors.
- Input: Width/height (1-8192px), color selection
- Output: Image, color name, hex code
π Load Image Sequence
Sequential image loading from folders with state management.
- Features: Auto-increment, sorting options, loop mode, error handling
- Output: Current image, filename, index, total count
- Advantage: Low memory usage vs batch loading
πΌοΈ Multi-Image Aspect Ratio Composer
Advanced multi-image composition with intelligent layouts.
ποΈ Dynamic Controls:
- Input Count: 1-8 images with dynamic UI updates
- Aspect Ratios: 1:1, 4:3, 16:9, 9:16, 21:9, 3:2, 5:4, 2:1, etc.
- Megapixels: 0.5-32 MP with auto-calculation
- Layouts: Horizontal, Vertical, Smart Grid, Classic Grid
π Face Detection:
- Haar Cascade: Fast CPU-based detection
- DNN Face: Advanced deep learning detection
- Smart Cropping: Centers images around detected faces
- Confidence: Adjustable detection threshold (1.1-3.0)
π― Smart Grid Algorithm: Optimizes layout based on target aspect ratio:
- 8 images + 16:9: [4,4] layout (2 rows)
- 8 images + 1:1: [3,3,2] layout (3 rows)
- 8 images + 9:16: [2,2,2,2] layout (4 rows)
π¨ Latent Space Tools
βΉοΈ The latent nodes below are also available as standalone packs (Latent_Nodes and WAN_NN_Latent_Upscale). To allow both packs to coexist in one ComfyUI install without node-ID conflicts, the integrated versions here use an internal
_DREsuffix and a*DREtag in the display name (e.g.π¨ Latent Color Match *DRE).
π¨ Latent Color Match *DRE
Advanced color matching directly in latent space - 10x faster than image-based methods.
- Methods: LAB, YCbCr, LUV, YUV, XYZ, RGB (kornia) + advanced algorithms (color-matcher)
- Benefits: No VAE encoding/decoding, 50% less VRAM, no quality loss
- Controls: Factor strength (0.0-3.0), batch processing, GPU acceleration
ποΈ Latent Image Adjust *DRE
Complete adjustment suite in latent space with kornia integration.
- Controls: Brightness (-1.0 to 1.0), Contrast (0.0 to 3.0), Hue (Β±180Β°), Saturation (0.0-3.0), Sharpness (0.0-3.0)
- Features: Direct latent manipulation, memory efficient, anti-aliasing
π Universal NN Latent Upscale *DRE
Neural network-based latent upscaling (from the WAN_NN_Latent_Upscale repo, based on Ttl's ComfyUi_NNLatentUpscale).
- Models: SD1.5, SDXL, Flux, and Wan2.2 (bundled
.ptfiles inmodels/) - Scale: Configurable 1.0xβ2.0x, automatic model detection/loading
- Performance: Direct latent processing without VAE decode/encode cycles
Universal Latent Upscaler
Neural network-based latent upscaling (custom DenRakEiw V2.0 auto-detecting 4ch/16ch).
- Models: Supports multiple architectures with automatic detection
- Performance: Direct latent processing without VAE decode/encode cycles
π₯ Flux LayerDiffuse (Transparent Images)
Complete transparent image generation system for Flux models.
Core Nodes:
- π§ Standalone Loader: Loads TransparentVAE.pth model
- π Decoder (Simple): Converts latents to transparent RGBA images
- πΎ Save Transparent: Saves PNG with proper alpha channel
- ποΈ Preview Transparent: Multi-background preview (checkerboard/white/black)
- π Transparent Info: Alpha channel analysis and statistics
Utility Nodes:
- π Conditioning Inspector: Verifies Flux tensor compatibility
- π§ Conditioning Fix: Converts SD to Flux format (if needed)
- β Empty Conditioning: Proper negative conditioning for Flux
- βΉοΈ Info: Model requirements and download links
Quick Workflow:
- Models: UNETLoader (Flux) + LoraLoader (layerlora.safetensors, strength 1.0)
- Text: DualCLIPLoader (type="flux") + CLIPTextEncode
- Generate: EmptySD3LatentImage + KSampler
- Transparent: Standalone Loader + Decoder + Save/Preview
Example Prompts: "transparent glass bottle", "crystal wine glass", "clear ice cube"
π¬ Flux 3 API (BFL)
Two nodes for the BFL Flux 3 video API and an LLM-powered prompt generator.
π¬ Flux 3 Video (API)
Generates video via POST https://api.bfl.ai/v1/flux-3-video with synchronized audio.
Four modes: t2v (textβvideo), i2v (imageβvideo with keyframes),
v2v (video continuation), draft_enhance (final-render a prior draft).
Up to full-HD, 5β20 seconds. Async with retries, backoff, and parallel execution.
(Docs)
π¬ Flux 3 Openrouter Prompt
Turns a plain-words idea into a complete, structured FLUX 3 prompt using an
OpenRouter LLM. The model dropdown is filled live
from the OpenRouter API. Optional reference images for vision-capable models.
Output is just the prompt β no variants, no metadata β ready to paste into the
Video node's prompt input.
Skills: Two prompting skills are pre-installed in the skills/ folder:
- Flux3Director β full structured prompting skill (all modes, timing, camera vocabulary, tag system)
- Flux3Director4Discord β compressed for the FLUX3 Discord bot's 2,000-character limit
Drop your own .md files into skills/ and refresh ComfyUI β they appear in the dropdown automatically.
Setup: Add to .env:
BFL_API_KEY=bfl_...
OPENROUTER_API_KEY=sk-or-...
π Installation & Requirements
Installation:
- Clone to
ComfyUI/custom_nodes/denrakeiw_nodes/ - Install dependencies:
pip install -r requirements.txt - Restart ComfyUI
Required Models (Flux LayerDiffuse):
- Flux:
flux1-dev-fp8.safetensorsβmodels/diffusion_models/ - LoRA:
layerlora.safetensorsβmodels/loras/(included) - TransparentVAE:
TransparentVAE.pthβmodels/vae/(included) - CLIP:
clip_l.safetensors,t5xxl_fp8_e4m3fn.safetensorsβmodels/clip/ - VAE:
ae.safetensorsβmodels/vae/
Download from: Hugging Face - Flux, LayerDiffuse
Dependencies:
pip install kornia>=0.6.0 color-matcher>=0.2.0 diffusers==0.32.2 safetensors transformers peft opencv-python
π Quick Usage
Multi-Image Composer:
- Set Input Count (1-8) β Click Update Inputs
- Choose Aspect Ratio and Megapixels
- Select Layout: Smart Grid (recommended) or Horizontal/Vertical
- Enable Face Detection for portraits (Haar Cascade/DNN)
- Connect images β Execute
Latent Color Matching:
Image β VAE Encode β Latent Color Match β VAE Decode β Save
Transparent Images (Flux):
UNETLoader + LoraLoader (layerlora.safetensors) β KSampler β
Flux LayerDiffuse Decoder β Save Transparent Image
π― Troubleshooting
Flux LayerDiffuse:
- Tensor errors: Use DualCLIPLoader type="flux" + Conditioning Inspector
- Glass generation: Normal behavior - reduce LoRA strength to 0.5-0.8
- No transparency: Use Save Transparent Image (not standard Save Image)
Multi-Image Composer:
- Missing images: Check all inputs connected + click "Update Inputs"
- Face detection slow: Disable for non-portrait images
- Memory issues: Reduce megapixel setting
π Acknowledgments
Thanks to RedAIGC (Flux LayerDiffuse), lllyasviel (LayerDiffuse foundation), and lum3on (support & inspiration).