Skip to content

About

A custom node collection for ComfyUI. Currently includes counter nodes, a mask-invert node, a set of character-consistency nodes, a set of audio nodes, StyleGAN face-generation/vector nodes, image nodes (color-background compositing, and basic/advanced image switches), a seed node with a lockable random seed, a universal XYZ plot, a text nodes.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

ComfyUI-Mykee-Nodes

A custom node collection for ComfyUI: counters and utilities, character-consistency nodes, audio processing, StyleGAN face generation/editing, image and latent fixers, switches, and LLM-based prompt nodes. More Mykee nodes may be added here in the future.

Please note: I am not a programmer, so the code and descriptions for the nodes were written by Claude; I was involved in the design and testing of the nodes. Please use the nodes with this in mind!

Some nodes are modifications or enhancements of nodes created by other developers, these are specifically noted. Thank you to them!

Installation

  1. Copy this folder into ComfyUI/custom_nodes/, or use git clone https://github.com/mykeehu/ComfyUI-Mykee-Nodes/ in ComfyUI/custom_nodes/ folder, so the end result is ComfyUI/custom_nodes/ComfyUI-Mykee-Nodes/.
  2. Restart ComfyUI.

To install the additional packages required for certain nodes, see the requirements.txt file for more information, and use the following command to install them as needed:

pip install -r requirements.txt

Updating the Universal Generator library (optional)

The first time Mykee Universal Generator is used, its starter library is copied from ComfyUI/custom_nodes/ComfyUI-Mykee-Nodes/universal_generator_library/ to ComfyUI/user/default/Mykee Universal Generator/library/. From then on that folder is yours, and updating the node pack never overwrites it - so your own lists and edits are safe.

If a new version of the pack brings new or extended lists and you want them, copy them over by hand:

  • Only the new lists: copy the new category folders / .json files from universal_generator_library/ into your library/ folder, and skip the files you already have (otherwise your own changes to them are lost).
  • The complete new library: close ComfyUI, rename your library/ folder (e.g. to library_old) as a backup, and start ComfyUI - the node copies the new starter library again on first use.

Then press ⟳ in the node's library window (or reopen it). Your saved recipes (recipes/) are not affected either way.

Documentation

Every node has its own page with a screenshot, inputs/outputs and notes in the documents folder. Click a node name below to open it.

Counters & mask

Node Description
Mykee Counter Counter that advances by one whenever any of its signal_N inputs carries data.
Mykee Counter (Seed Advanced) Same counter, but resets to zero whenever the seed value changes.
Mykee Invert Mask (Toggle) ComfyUI's InvertMask with an on/off switch.

Character consistency

Overview, models and pipeline integration: Mykee/Character - character-consistency nodes

Node Description
Mykee Face Detect + Align/Crop (YuNet) Finds the best face; returns aligned face, context crop and masks.
Mykee Face Embed (SFace) 128-dim face embedding.
Mykee Subject Embed (DINOv2) 768-dim body/clothing ("subject") embedding.
Mykee Identity Score (cosine) Cosine similarity between two embeddings, with a pass threshold.
Mykee Identity Compare (Multi-Person) All-in-one identity check of a generated image against several references.
Mykee Character Reference Pack Builds a reference image batch and prompt prefix for up to 9 references.

Face refine

Model-agnostic face detailer for images and videos (also for latents a normal VAE Encode cannot handle, like MiniMax H3's). Overview, recipes and tips: Face refine overview

Node Description
Mykee Face Tracks (detect + crop) Finds and follows faces, identifies them against reference images, outputs levelled crops (all people, one aligned list) plus their reference faces.
Mykee H3 Face Latent MiniMax H3 only: turns face crops into H3 video+audio latents.
Mykee Face Paste (blend back) Blends refined crops back with a soft mask, colour match and an identity guard.
Mykee Image Batch To List Runs the nodes after it once per image (needed when the crop goes into an edit model's conditioning).

Audio

Node Description
Mykee Audio Merger Mixes a narrator track with a background bed.
Mykee Silence Remover Caps long silent gaps and pads the start/end.
Mykee Stereo To Mono Forces the output to mono or stereo.
Mykee Audio Leveling Fixes level drift and normalizes peak loudness.
Mykee Emotion Timbre Emotion/prosody control based on the WORLD vocoder.
Mykee Voice/Accent Match Reshapes a generated voice's timbre/accent toward a reference sample.
Mykee Audio DSP Cleanup Fast CPU-only fixes: level, tone, hum, background noise.
Mykee Audio Dereverb Late-reverb suppression with WPE.
Mykee Room Reducer Reduces the "distant mic / roomy" character of speech.
Mykee AI Voice Restore VoiceFixer-based speech restoration.

StyleGAN

Overview, folder layout, layer reference and caveats: StyleGAN Facegenerator

Node Description
Mykee StyleGAN Image Generation Generates images from a seed with saved direction-vector sliders.
Mykee StyleGAN Editor Edits an existing photo through GAN inversion and the same vectors.
Mykee StyleGAN Vector Preparation Builds and previews a new direction vector (writes nothing to disk).
Mykee StyleGAN Vector Save Saves the prepared vector and its parameters.

Edit

The Mykee Universal Edit node (training-free edit and reference composition with any image model) now lives in its own package: ComfyUI-Mykee-UniversalEdit.

Image, latent & conditioning

Node Description
Mykee Color Background Composites an image (with optional mask) onto a solid color.
Mykee Meme Maker Top / bottom captions on an image, image batch or video - on the picture or in a frame, with any installed font, outline, wrapping and a live preview.
Mykee Video Titler Timed top / bottom titles on a video (Meme Maker captions with start and end times): player on the node, cutting, SRT import, and a JSON timing list saved next to the video.
Mykee Image Switch 2-input image switch with real passthrough when a branch is inactive.
Mykee Image Switch (Advanced) Image switch/batch with any number of inputs.
Mykee Size Switch/Batch Up to 32 width/height pairs with switch or batch output.
Mykee Width/Height Resizer Scales a width/height pair by a factor or to a target size, with 8/16/32/64 rounding.
Mykee Switch Conditioning Forgiving conditioning switch (rework of Crystools' node).
Mykee - KSampler with Sigmas The core KSampler with a switchable sigmas input (connected or typed) instead of steps / scheduler / denoise.
Mykee - Sigmas Editor Graphical sigma schedule editor: drag or type the points, generate flow shift / Karras / exponential curves, load a scheduler's sigmas.
Mykee Stripe Remover Removes faint periodic stripes from images (DiT banding).
Mykee Latent Nyquist Notch Removes the 2-latent-pixel pattern from a LATENT before VAE decode.
Mykee Latent Tone Notch Removes a fixed-frequency stripe pattern of any period from a LATENT.

Prompt & text

Node Description
Mykee Prompt Template Small prompt library (positive/negative) with load/save.
Mykee Prompt Advanced LLM chat/instruction node with editable system prompt and optional image input.
Mykee Prompt Advanced - Prompt Modifier Rewrites only the details an edit instruction addresses.
Mykee Prompt Advanced Ultimate Two-stage version: describe first, then answer/edit from the text.
Mykee Universal Generator Builds a prompt from a library of attribute lists (JSON files in category folders): pick, randomize, edit, save recipes; persons per tab; tag list, LLM-written image prompt or roleplay character card.
Mykee JSON Captioner Captions images as MOSS-Image layout JSON (bounding boxes) or plain captions.
Mykee JSON BBOX Resizer Re-maps the boxes of a MOSS layout JSON from one canvas size to another.
Mykee Text Switch/Batch Up to 49 text fields with switch or batch output.
Mykee Text Splitter Cuts a long text into token-sized chunks at sentence ends; auto size from a memory probe, optional .txt export.
Mykee Text Analyzer Answers a question about a long text: notes per chunk, then the final answer from the notes.
Mykee Before/After Text Injection Adds the same text before/after many texts at once.

Utils

Node Description
Mykee Model Template Remembers which CLIP/VAE files belong to which model.
Mykee Video Info Shows a video's size, frame rate, codec and format; outputs width, height, frame rate and the file name with an optional tag.
Mykee Get Filename Passes any media (image, video, audio, ...) through and outputs the name of the file it was loaded from, with an optional tag.
Mykee Group Bypasser One on/off switch per group, sortable.
Mykee Seed Rework of rgthree's Seed node with a lockable seed and history.
Mykee XYZ Plot / XYZ Plot Assembler Universal XYZ plot: any widget of any node can be an axis.
Mykee Simple X Plot One-axis version of the XYZ Plot (X only, no loop order); uses the same Assembler.
Mykee Recipe Build named recipes (cfg, sampler, model, LoRA, prompt text, ...) from any widget parameter, keep several per JSON file, load them back, or run the ticked ones as a batch (optionally into an XYZ Plot Assembler).

Security notes

ComfyUI itself has no authentication, so do not expose it to untrusted networks (--listen, port forwarding, hosted setups) without a reverse proxy / auth in front of it.

The Prompt Template, Model Template and Recipe nodes talk to small HTTP routes (/mykee/prompt_templates/*, /mykee/model_templates/*, /mykee/recipes/*). The Meme Maker has two routes of its own (/mykee/meme/fonts, /mykee/meme/preview); neither takes a file or folder name - fonts are only read from the system's own font folders, and the workflow only stores a font family name. The Video Titler has three (/mykee/titler/probe, /mykee/titler/parse, /mykee/titler/preview): only probe takes a file name, and that file must resolve to a video inside ComfyUI's input, output or temp folder (the files ComfyUI's own /view route already serves) - it returns the frame rate, size and length, nothing else. The Video Titler saves only into ComfyUI's output folder, under a cleaned bare file name. Their custom_path folder is only accepted if it lies inside ComfyUI's user, input or output folder, or inside a folder listed in allowed_template_dirs.txt (one path per line) or in the MYKEE_TEMPLATE_ROOTS environment variable. A save never overwrites a JSON file that is not a template of the same kind. The Recipe routes are stricter still: symbolic links in the recipe folder are refused, files over 5 MB are refused, and everything read from or written to a recipe file is validated against a strict schema.

The Face Refine edge align downloads the MediaPipe face landmarker model from one fixed Google URL and checks it before it is saved; it takes no file or folder name.

Third-party code and model files (your responsibility):

  • StyleGAN nodes: .pkl model files are loaded with Python's pickle, which can execute arbitrary code. Only use .pkl files from sources you trust. Automatically downloaded models (NVIDIA, Google Drive) are not hash-verified.
  • Voice/Accent Match node: on first use it clones the Seed-VC repository (git clone --depth 1) from GitHub and runs its code. The clone is intentionally not pinned to a commit, so users get upstream fixes, which also means you run whatever the upstream repository contains at that moment. Review it if that matters to you.

Credits

Third-party code and licenses are listed in THIRD_PARTY_NOTICES.md. Individual pages credit the nodes they are based on.

About

A custom node collection for ComfyUI. Currently includes counter nodes, a mask-invert node, a set of character-consistency nodes, a set of audio nodes, StyleGAN face-generation/vector nodes, image nodes (color-background compositing, and basic/advanced image switches), a seed node with a lockable random seed, a universal XYZ plot, a text nodes.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages