Extensions/Fens-Simple-Nodes
ComfyUI Extension

Fens-Simple-Nodes

Simple nodes for ComfyUI - Token Counter - Optimal Empty Latent

By Taithrah·Created about a year ago·Updated about a month ago· 6
Taithrah/ComfyUI_Fens_Simple_Nodes
Nodes3
On cloudLocal install
CategoryFens_Simple_Nodes/Utility, Fens_Simple_Nodes/Latent
Stars6
Updatedabout a month ago
Readme
<div align="center">

English License Submit issue

</div>

Fens Simple Nodes for ComfyUI

A suite of custom nodes designed for simplicity, flexibility, and power.

How to Use

  1. Install:

    • Find Fens-Simple-Nodes in ComfyUI-Manager, or
    • Clone this repo into your ComfyUI/custom_nodes folder.
  2. Restart ComfyUI.

  3. Drag the nodes into your workflow and enjoy!

What’s Included

  • Token Counter:
    Count typed prompt tokens and see your current context window tier using your connected text encoder.

  • Optimal Empty Latent:
    Quickly get the perfect image size for your model and aspect ratio.

    • Enter aspect ratio as 16:9, 1920x1080, or even 1.7778
    • Let the node pick the best resolution for your model, or set your own.
    • Easily swap between portrait and landscape.
    • Presets for SD1, SD2, SDXL, and more.
    • Supports batch generation.

Screenshots

Token Counter Example:
TokenCount

WebUI-Forge Token count for comparison:
ForgeCount

Optimal Empty Latent Example:
OptimalEmptyLatent