ComfyUI Extension: ComfyUI-KrakenTools
High-utility nodes for ComfyUI with a focus on Flux 1 Dev workflows and Ultimate SD Upscale enhancement loops.
Custom Nodes (0)
README
π¦ ComfyUI-KrakenTools
High-utility nodes for ComfyUI with a focus on Flux 1 Dev workflows and Ultimate SD Upscale enhancement loops.
Why this exists: when your βfinalβ resolution is relatively small (e.g., 736Γ1344 portraits), running no real upscale in Ultimate SD Upscale (USDU) often doesnβt add detail. The Kraken approach enforces a true enlarge pass (e.g., 1.5Γβ2Γ), then downscales back to your exact target with high-quality filtering β preserving micro-detail and cleaning seams.
β¨ Nodes
-
π¦ Kraken Flux Empty Latent Image (
KrakenFluxEmptyLatentImage)- Builds a Flux-style latent and exposes canonical preset + resolution strings for downstream nodes.
- Outputs a small UI preview so you always see the intended canvas size.
-
π¦ Kraken Upscale & Tile Calc (
KrakenUpscaleTileCalc)- Computes a uniform upscale factor to cover your target, aligns to model-friendly multiples, and suggests tile sizes + overlaps for USDU.
- New:
min_upscale_policy(auto/off/1.5x/2.0x/custom) guarantees USDU actually upscales, even when target==source.
-
π¦ Kraken Resolution Helper (Exact) (
KrakenResolutionHelper)- Exact-size finisher: keep proportion (contain + pad), pad (with anchors), fill/crop (cover), or stretch.
- Downscales without cropping and guarantees final WxH. With
allow_upscale=False, it will never enlarge in the final step.
π Installation
- Locate your ComfyUI
custom_nodesdirectory. - Clone or copy this repo into it:
cd /path/to/ComfyUI/custom_nodes git clone https://github.com/<your-user>/ComfyUI-KrakenTools.git - Restart ComfyUI.
Requirements
- ComfyUI (latest)
- Python deps:
torch,numpy,Pillow(bundled in ComfyUI) - Ultimate SD Upscale node pack (for USDU) installed separately
π Usage (portrait example 736Γ1344)
-
Flux latent β add
KrakenFluxEmptyLatentImageand pick your preset (e.g., 736Γ1344).
Outputs:LATENT,resolution(e.g., "736 x 1344"),preset_out(e.g., "736x1344"), width/height, preview -
Upscale planning β add
KrakenUpscaleTileCalcresolution_inβ latent.resolutionpreset_inβ latent.preset_outmin_upscale_policy= auto (2Γ for small canvases), or force "2.0x"
-
USDU β add Ultimate SD Upscale (regular node)
upscale_byβ tile calc.upscale_by- Tile/overlap settings β tile calc outputs
- Denoise ~0.2β0.35
-
Final sizing β add
KrakenResolutionHelperimageβ USDU outputpreset_inβ tile calc.target_resolution(or latent.preset_out)mode= keep proportion,interpolation= lanczos,allow_upscale= False- Output is exact 736 Γ 1344 with extra micro-detail
π§ Contributing
See CONTRIBUTING.md.
πͺͺ License
MIT Β© 2025 The Kraken β X: @KrakenUnbound Β· YouTube: /@KrakenUnbound