Extensions/FLUX Pro Studio (Fast Preview, Polish & Detail Daemon)
ComfyUI Extension

FLUX Pro Studio (Fast Preview, Polish & Detail Daemon)

All-in-one ComfyUI custom nodes and workflows for FLUX.1: 4-Stage Fast Preview & Polish Switch, 16-channel resolution presets, Flow-Matching Detail Daemon, 5-part selective SAM detailers, 1.5x refiner & quality finisher, and built-in VRAM cleanup.

By kama0630-cmyk·Created a day ago·Updated about 8 hours ago· 0
kama0630-cmyk/ComfyUI-FLUX-Pro-Studio
Nodes—
On cloudLocal install
Stars0
Updatedabout 8 hours ago
Readme

ComfyUI-FLUX-Pro-Studio

FLUX Pro Studio

An integrated, model-agnostic ComfyUI studio rig and custom node pack for FLUX.1 (supporting both standard .safetensors FP8/BF16 models via workflows/FLUX_Pro_Studio.json and quantized .gguf Q4–Q8 models via workflows/FLUX_Pro_Studio_GGUF.json).

It combines community-standard ComfyUI nodes and native Flow-Matching studio controllers into one streamlined 6-Zone pipeline featuring 4-Stage Fast Preview & Selective Polish, 5-part selective FaceDetailer refinement, a 1.5x full-frame diffusion refiner + quality finisher, and built-in VRAM cleanup — all structured so a first-time run works with zero missing-file validation errors.

Hardware Compatibility: Runs on any FLUX.1-capable GPU (12GB+ VRAM recommended; FP8 / GGUF Q4–Q8 supported on 8GB–12GB+ cards). All optional detailers, upscalers, and SageAttention patching are bypassed by default so base generation stays fast and lightweight on any card.
Verification Environment: Tested and verified on NVIDIA RTX 3080 Ti (12GB VRAM).

Visual Quick-Start (Zero-Error Setup in 3 Clicks)

Visual Quick-Start Cheat Sheet


Key Features

  1. Zero-Error First Run (Model- & LoRA-Agnostic)

    • Ships with no bundled or promoted diffusion models or LoRAs — select any FLUX.1 .safetensors model in FLUX_Pro_Studio.json (or any .gguf Q4–Q8 model in FLUX_Pro_Studio_GGUF.json), and drop your own LoRAs into the empty Power Lora Loader.
    • Every optional loader (SAMLoader, 5 YOLO detectors, RealESRGAN_x2, PathchSageAttentionKJ) and all Zone 4 / Zone 5 groups ship bypassed by default, preventing missing-file validation errors before you download optional extras.
  2. 4-Stage Fast Preview & Selective Polish (FluxStudioPreviewPolishSwitch)

    • Mode 1 (Fast Preview): Runs Stage 1 sampling only, caches the preview in RAM, and blocks downstream detailers and disk saves so you can iterate drafts cleanly.
    • Mode 2 (Instant Save): Skips Stage 1 sampling and all detailers in 0.00s and saves the RAM-cached preview immediately.
    • Mode 3 (Polish & Save): Skips Stage 1 sampling in 0.00s and routes the cached preview only through the Zone 4 detailers and/or Zone 5 upscaler you enabled.
    • Mode 4 (External Image): Skips Stage 1 sampling and polishes any external image loaded in Zone 2 LoadImage.

Stage 1 Draft vs Stage 3 Polish Proof

  1. FLUX.1 Native Detail & Quality Pipeline
    • FluxGuidance (default 3.5) + FluxStudioDetailDaemonPatcher (native Flow-Matching 0..1 sigma bell curve applied to Stage 1 only, avoiding over-sharpening in downstream detailers).
    • FluxStudioResolutionSelector: 13 golden-ratio presets + custom dimensions emitting native 16-channel FLUX latents.
    • FluxStudioQualityMaster: post-refiner soft_blend (re-blends pre-refiner base to keep skin & lines natural), subtle fabric_detail, and sensor_grain.
    • FluxStudioVRAMCleanup: lightweight built-in pass-through VRAM cleaner between passes (no ComfyUI-Easy-Use required).
    • Built-in automatic SageAttention safe fallback (sage_fallback.py) so systems without sageattention never crash if the node is enabled.

FluxGuidance x Detail Daemon Real-Render Comparison


1. Installation

Option 1 — ComfyUI-Manager / Comfy Registry (1-Click, Recommended)

  • ComfyUI-Manager: Search for FLUX Pro Studio (or click Install Missing Custom Nodes after dropping either workflow JSON onto ComfyUI).
  • Comfy CLI:
    comfy node install flux-pro-studio
    

Option 2 — Manual git clone (Step 1)

cd ComfyUI/custom_nodes
git clone https://github.com/kama0630-cmyk/ComfyUI-FLUX-Pro-Studio.git
cd ComfyUI-FLUX-Pro-Studio
pip install -r requirements.txt

Step 2 — Install Required & Optional Community Node Packs

Install via ComfyUI Manager or git clone inside ComfyUI/custom_nodes/:

| Custom Node Pack | Repository | Required? | Purpose in Workflow | | :--- | :--- | :---: | :--- | | rgthree-comfy | https://github.com/rgthree/rgthree-comfy | Yes | Power Lora Loader, Fast Groups Bypasser, Image Comparer | | ComfyUI-Impact-Pack + Impact-Subpack | https://github.com/ltdrdata/ComfyUI-Impact-Pack & https://github.com/ltdrdata/ComfyUI-Impact-Subpack | Optional (Zone 4) | FaceDetailer, SAMLoader, UltralyticsDetectorProvider | | ComfyUI_UltimateSDUpscale | https://github.com/ssitu/ComfyUI_UltimateSDUpscale | Optional (Zone 5) | UltimateSDUpscale 1.5x full-frame refiner | | ComfyUI-KJNodes | https://github.com/kijai/ComfyUI-KJNodes | Optional | PathchSageAttentionKJ (bypassed by default) | | ComfyUI-GGUF | https://github.com/city96/ComfyUI-GGUF | Optional (GGUF edition only) | UnetLoaderGGUF for FLUX_Pro_Studio_GGUF.json |

Restart ComfyUI completely after installing custom nodes, then drag and drop workflows/FLUX_Pro_Studio.json (or workflows/FLUX_Pro_Studio_GGUF.json for GGUF models) onto the ComfyUI canvas.


2. Models & 1-Command Downloader

Required Base Models

  1. Any FLUX.1 diffusion model (.safetensors in ComfyUI/models/unet/ or diffusion_models/ for FLUX_Pro_Studio.json, or .gguf in ComfyUI/models/unet/ for FLUX_Pro_Studio_GGUF.json) selected in Zone 1.
  2. FLUX.1 Shared Text Encoders & 16-Channel VAE (clip_l.safetensors, t5xxl_fp8_e4m3fn.safetensors, and ae.safetensors) — can be downloaded in one command using --group encoders below.
  3. Power Lora Loader ships 100% empty — add your own FLUX LoRAs if desired.

1-Command Helper Script (Shared Encoders + Optional Detailers & Upscaler)

# Interactive menu
python download_optional_models.py

# Or download by group
python download_optional_models.py --list
python download_optional_models.py --group encoders
python download_optional_models.py --group detailers
python download_optional_models.py --group upscaler
python download_optional_models.py --group all

(Pass --models-dir /path/to/ComfyUI/models if your models folder is in a non-standard location.)
(Note: If installed via Comfy Registry, download download_optional_models.py directly from this GitHub repository — excluded from the Registry archive for strict offline security compliance.)

| Group / Zone | Model | Target Folder (ComfyUI/models/...) | Official Source | | :---: | :--- | :--- | :--- | | encoders (Zone 1) | clip_l.safetensors | clip/ | comfyanonymous/flux_text_encoders | | encoders (Zone 1) | t5xxl_fp8_e4m3fn.safetensors | clip/ | comfyanonymous/flux_text_encoders | | encoders (Zone 1) | ae.safetensors | vae/ | Comfy-Org / Black Forest Labs VAE | | detailers (Zone 4-0) | sam_vit_b_01ec64.pth | sams/ | Meta Segment Anything | | detailers (Zone 4-1) | face_yolov8m.pt | ultralytics/bbox/ | Bingsu/adetailer | | detailers (Zone 4-3) | hand_yolov8s.pt | ultralytics/bbox/ | Bingsu/adetailer | | Zone 4-2 / 4-4 / 4-5 | Eyeful_v2-Paired.pt, foot-yolov8x-v20.pt, or specialized NSFW anatomy / custom YOLO bbox | ultralytics/bbox/ | Optional community detectors (Impact Pack / Civitai) | | upscaler (Zone 5) | RealESRGAN_x2.pth | upscale_models/ | ai-forever/Real-ESRGAN |


3. User Manual

A. Basic Generation & How the Two Switches Work (WHICH vs. WHEN)

Pure T2I Without Placeholder Images: Zone 2-B (LoadImage + VAEEncode + VAEEncodeForInpaint) is bypassed by default, so pure T2I runs with zero missing-file errors even if ComfyUI/input/example.png does not exist. Toggle Zone 2-B ON in Step A (Selective Zone Switch) when using I2I, Inpaint, or Mode 4.

  • Step A (Selective Zone Switch) = WHICH Tools to Equip (Zone 2-B External Image, Zone 4 Detailers, Zone 5 Upscale).
  • Step B (4-Stage Preview & Polish Switch) = WHEN to Run Them (1: Fast Preview → 2: Instant Save → 3: Polish Equipped → 4: External Image).
  1. Pick a FLUX.1 Model & Prompt: Select your FLUX.1 model in Zone 1, set your prompt, FluxGuidance (2.0–2.5 soft natural light ↔ 3.5+ crisp contrast), and aspect ratio preset in Zone 2.
  2. Draft Fast (Mode 1: Fast Preview): Leave the Step B switch on 1: [Fast Preview] and click Queue Prompt. Only Stage 1 runs (20 steps, CFG 1.0, euler / simple); the result stays in RAM and appears in the preview monitor without cluttering output/.
  3. Instant Save (Mode 2: Instant Save): When a draft looks great as-is, switch Step B to 2: [Instant Save] and click Queue Prompt once. It skips sampling and detailers in 0.00s and saves directly as FLUX_Pro_Studio_*.png.
  4. Selective Polish (Mode 3: Polish & Save): If only the face, eyes, or hands need fixing (or you want a 1.5x upscale):
    • In Step A (Selective Zone Switch), enable only the Zone 4 / Zone 5 groups you want (and Zone 4-0: SAM Masking if you have sam_vit_b_01ec64.pth for contour masks).
    • Zone 4-5 (Optional Custom / NSFW Anatomy Detailer): Ships bypassed with a clean default detector (face_yolov8m.pt) so first runs never fail. To refine specialized NSFW anatomy or custom targets, drop your preferred YOLO bbox model into ComfyUI/models/ultralytics/bbox/, select it in Zone 4-5's detector node, and toggle Zone 4-5 ON in Step A.
    • Switch Step B to 3: [Polish & Save] and click Queue Prompt.
    • Compare Left (Stage 1 Draft) vs. Right (Polished Output) in Zone 6 → Live A/B Slider Comparer.
  5. External Image Polish (Mode 4: External Image): Enable Zone 2-B in Step A, load any existing image in LoadImage, enable the desired Zone 4 / Zone 5 groups, set Step B to 4: [External Image], and queue.

B. Using Zone 2 Modes (T2I / I2I / Inpaint)

  • 1: [T2I]: Generates from an empty 16-channel FLUX latent (denoise = 1.0). Keep Zone 2-B bypassed.
  • 2: [I2I]: Enable Zone 2-B in Step A, load an image in LoadImage, and remix using i2i_denoise (default 0.65).
  • 3: [Inpaint]: Enable Zone 2-B in Step A, right-click LoadImage → Open in MaskEditor, paint your mask, save, and switch to 3: [Inpaint].

C. Optional 8-Step Speed / Turbo LoRAs

The default workflow uses 20 steps (CFG 1.0, euler / simple) so it works cleanly with any standard FLUX.1 model out of the box. If you want ~2.5x faster draft previews, drop any FLUX 8-step distillation/turbo LoRA into Zone 1 Power Lora Loader (follow that LoRA's recommended strength — typically 0.125–0.15 for Hyper-style LoRAs to avoid over-saturation) and lower Zone 3 KSampler steps to 8 (and Zone 5 UltimateSDUpscale steps to 8).

D. Troubleshooting

  • Missing-file error when enabling Zone 4 or Zone 5: Run python download_optional_models.py --list to see which optional model is missing in ComfyUI/models/, or pick an already-installed detector/model in that node's dropdown.
  • Enabled Zone 4 detailer without SAM: Works fine if Zone 4-0: SAM Masking stays bypassed — FaceDetailer automatically falls back to bounding-box feathering.
  • SageAttention error: Keep SageAttention Speed Patch bypassed unless you specifically installed sageattention; even if enabled, sage_fallback.py automatically falls back to standard PyTorch attention.

4. Included Custom Nodes

All 7 custom nodes use independent FluxStudio* class IDs so this pack installs cleanly alongside ComfyUI-Krea2-Studio-Pack and ComfyUI-SDXL-Pro-Studio with zero node name conflicts:

  • FluxStudioModeSwitch — Lazy T2I / I2I / Inpaint router
  • FluxStudioResolutionSelector — 13 presets + custom size (native 16-channel FLUX latent)
  • FluxStudioPreviewPolishSwitch — 4-stage Fast Preview / Instant Save / Polish / External Image router
  • FluxStudioFinalSaveGate — Lazy output gate for SaveImage and A/B Comparer
  • FluxStudioDetailDaemonPatcher — FLUX.1 Flow-Matching (0..1) Detail Daemon curve patcher
  • FluxStudioQualityMaster — Soft blend, fabric sharpen, and optical sensor grain finisher
  • FluxStudioVRAMCleanup — Built-in pass-through VRAM cleanup between passes

5. Credits & Attribution

This project is an integrated workflow rig and controller package built upon open-source work from the ComfyUI and FLUX communities:

License

MIT License — see LICENSE.