Extensions/ComfyUI FRED Nodes v2
ComfyUI Extension

ComfyUI FRED Nodes v2

FRED's enhanced custom nodes for ComfyUI

By PoukpalaovaΒ·Created 12 months agoΒ·Updated 7 months agoΒ· 3
Poukpalaova/ComfyUI-FRED-Nodes_v2
Nodes22
On cloudLocal install
CategoryπŸ‘‘FRED/image/postprocessing, πŸ‘‘FRED/models/loras
Stars3
Updated7 months ago

Nodes (22)

πŸ‘‘ FRED Auto Crop Image Native Ratio

Crop anything to a native SDXL ratio without cutting your subject off

πŸ‘‘FRED/image/postprocessing
πŸ‘‘ FRED Auto Image Tile from Mask

Split an image into tiles from a mask or BBOX, overlap included

πŸ‘‘FRED/image/postprocessing
πŸ‘‘ FRED Auto LoRA Loader 5 stacks (simple)

A LoRA loader with per-slot on/off/auto switches β€” the 'auto' is the point

πŸ‘‘FRED/models/loras
πŸ‘‘ FRED Auto Lora Loader Dynamic

Ten LoRAs, one loader, and it can switch them on from your prompt text

πŸ‘‘FRED/models/loras
πŸ‘‘ FRED Checkpoint Loader With Name

The checkpoint loader that remembers its own name

πŸ‘‘FRED/models
πŸ‘‘ FRED Crop Face

Crop a face out of an image, with margins you control

πŸ‘‘FRED/image/postprocessing
πŸ‘‘ FRED Execution Time

A stopwatch for your workflow, hung off the last node

πŸ‘‘FRED/utils
πŸ‘‘ FRED Extract KSampler parameter

Read a KSampler's settings without touching it β€” then feed them forward

πŸ‘‘FRED/utils
πŸ‘‘ FRED Extract Lora parameter

Pull the applied LoRA names and weights out of any LoRA stacker

πŸ‘‘FRED/utils
πŸ‘‘ FRED Image Load (avif support)

An image loader with folder browsing, AVIF support, and metadata passthrough

πŸ‘‘FRED/image
πŸ‘‘ FRED Image Quality Inspector (piq)

BRISQUE, blur, SNR, compression

πŸ‘‘FRED/postprocessing
πŸ‘‘ FRED Image Saver

A save node that names files from your actual model, seed, and LoRAs

πŸ‘‘FRED/image
πŸ‘‘ FRED Image Saver v2

A real parameters input and unlimited LoRA info

πŸ‘‘FRED/image
πŸ‘‘ FRED Image Sharpening Blur Level

Auto-sharpen until the image stops being blurry, no manual guessing

πŸ‘‘FRED/image/postprocessing
πŸ‘‘ FRED Image Uncrop From BBox

Paste a processed crop back into its original image, seams hidden

πŸ‘‘FRED/image/postprocessing
πŸ‘‘ FRED Jpeg Artifact Simulator

Simulate JPEG artifacts on your images, useful for training and testing

πŸ‘‘FRED/image
πŸ‘‘ FRED Multi Linear Slider

One master slider that drives five parameters at once

πŸ‘‘FRED/utils
πŸ‘‘ FRED Save Text File

Write text to a file from your workflow β€” append, overwrite, or never clobber

πŸ‘‘FRED/text
πŸ‘‘ FRED Simplified Parameters Panel

One panel that hands a KSampler everything it needs β€” noise, sigmas, sampler object included

πŸ‘‘FRED/utils
πŸ‘‘ FRED Text to XMP

Turn a tag list into XMP metadata you can embed for Lightroom and Bridge

πŸ‘‘FRED/text
πŸ‘‘ FRED UNET Loader With Name

The FRED UNET loader that hands you the filename

πŸ‘‘FRED/models
πŸ‘‘ FRED Wildcard Concat (Dynamic)

FRED's dynamic wildcard concat, block by block

πŸ‘‘FRED/text
Readme

πŸ‘‘ ComfyUI-FRED-Nodes v2

Custom ComfyUI nodes by Fred β€” all-in-one utilities and quality-of-life tools for image workflows.
This v2 repo is a clean rewrite of ComfyUI-FRED-Nodes, with improved nodes, bug fixes, and simplified structure.


✨ Features

  • Enhanced image saving with metadata + grid support
  • Smart image cropping/tiling with ratio/mask awareness
  • Integrated quality metrics (BRISQUE, blur, SNR, compression)
  • Simplified parameters panel for samplers/schedulers
  • Utility nodes for text metadata (XMP) and wildcard concatenation
  • Face detection and cropping
  • Robust image loading with caching, indexing, and previews

🧩 Nodes Overview

πŸ“ FRED_AutoCropImage_Native_Ratio

Automatically crop and resize images to match Stable Diffusion aspect ratios, or custom sizes. Supports mask preservation and overlay preview.

Key features:

Auto-find closest SDXL ratio or use custom width/height

Mask-preserve mode ensures subject is not cut off

Cropping from center or offset (X/Y %)

Optional resize with upscale/downscale modes

Multiple-of rounding (2, 4, 8, …)

Preview with mask overlay

πŸͺŸ FRED_AutoImageTile_from_Mask

Split an image into tiles based on a mask or bounding box. Useful for processing specific regions with controlled overlap.

Key features:

Auto grid from mask/BBOX with confidence adjustment

Manual rows/cols if desired

Overlap in X/Y

Grid preview overlay (bbox + lines)

πŸ“Š FRED_ImageQualityInspector

Evaluate image quality using multiple metrics, optionally within a mask.

Metrics:

BRISQUE (no-reference perceptual quality)

Blur (Laplacian variance)

SNR (signal-to-noise ratio, dB)

Compression proxy (raw vs JPEG@95 size)

Modes:

Raw metrics (real units, e.g. dB, Lap variance)

Normalized 0–100 scores (100 = best)

πŸ’Ύ FRED_Image_Saver

Advanced image saver with dynamic naming tokens and metadata embedding.

Key features:

Save single images, grid images, or both

Filename/path tokens: %date, %time, %model_name, %seed, %lora_name_X, …

Metadata embedding:

Automatic1111 β€œparameters” text

Prompts, workflow JSON, ComfyUI version

Optional JSON sidecar files

Grid saving:

Auto rows/cols up to max

Optional row/column labels

Metadata includes grid info

Outputs last saved image and grid paths.

πŸ–ΌοΈ FRED_LoadImage_V8

Robust image loader with indexing, preview, and error logging.

Key features:

Modes: no_folder (direct image) or image_from_folder

Index control: fixed / increment / decrement / randomize

Skip invalid files, with persistent error log (~/.fred_logs)

Cache of folder index for performance

Optional preview images written to temp folder

Outputs include folder path, filename text, counts, skipped report

πŸ™‚ FRED_CropFace

Detect and crop faces using RetinaFace (facexlib).

Key features:

Face detection (multi-face; choose by ID)

Expand bounding box with margins

Preview overlay with detected faces

Outputs cropped face, preview, bbox, pixel ratios

βš™οΈ FRED_Simplified_Parameters_Panel

Expose a compact UI panel for common sampling parameters.

Outputs:

scale, denoise, guidance, steps

proper NOISE object

sampler/scheduler objects + names

sigmas tensor

Great for quick prototyping or simplified workflows.

πŸ“ FRED_Text_to_XMP

Generate and attach XMP metadata to images (or sidecar .xmp).

Key features:

Embed prompts, negatives, parameters into standard XMP fields

Keywords β†’ dc:subject (Lightroom/Bridge searchable)

Ratings, title, description, creator fields

Modes: embed into PNG/JPEG/TIFF or sidecar only

Token support: %date, %time, %model_name, %seed, …

🎲 FRED_WildcardConcat_Dynamic

Dynamic wildcard concatenation for prompt building.

Key features:

Add/remove blocks dynamically

Each block: toggle, wildcard file, line mode (random/fixed), weight

Prefix and suffix support

Custom string delimiter between blocks

Output = concatenated string with tokens expanded

πŸ“– Usage Tips

Each node outputs a help string for quick reference inside ComfyUI.

For tutorials, check the Wiki (todo: add link).

Add screenshots of each node UI for clarity.

πŸ› οΈ License

MIT License β€” free to use and modify. If you use these nodes in your workflows, a ⭐ on this repo is always appreciated.


πŸ“¦ Installation

Clone or download this repo into your ComfyUI custom_nodes/ folder:

cd ComfyUI/custom_nodes
git clone https://github.com/Poukpalaova/ComfyUI-FRED-Nodes_v2.git