Extensions/Derfuu_ComfyUI_ModdedNodes
ComfyUI Extension Runs on cloud

Derfuu_ComfyUI_ModdedNodes

Automate calculation depending on image sizes or something you want.

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
Derfuu/Derfuu_ComfyUI_ModdedNodes
Nodes74
On cloudRunnable
CategoryDerfuu_Nodes/Functions/Converters, Derfuu_Nodes/Modded nodes/Conditions
Stars455
Updated2 years ago

Nodes (74)

Absolute value

Strip the sign off a computed number

Derfuu_Nodes/Functions/Converters
Ceil

Round a decimal up to a whole number

Derfuu_Nodes/Functions/Converters
Conditioning area scale by ratio

Resize a region's area proportionally

Derfuu_Nodes/Modded nodes/Conditions
ConditioningSetArea with tuples

Drive a region's area from computed numbers

Derfuu_Nodes/Tuples/Modded nodes/Conditioning
Cosines

Cosines – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math/Trigonometry
Absolute value

DF_Absolute_value – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions/Converters
Ceil

DF_Ceil – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions/Converters
Conditioning area scale by ratio

DF_Conditioning_area_scale_by_ratio – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Modded nodes/Conditions
Cosines

DF_Cosines – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math/Trigonometry
Divide

DF_Divide – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math
DynamicPrompts Text Box

A multiline prompt box with {a|b|c} wildcards

Derfuu_Nodes/Variables
Float

A decimal value you set once and reuse

Derfuu_Nodes/Variables
Floor

DF_Floor – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions/Converters
Get image size

DF_Get_image_size – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions
Get latent size

DF_Get_latent_size – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions
Image scale by ratio

DF_Image_scale_by_ratio – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Modded nodes/Image
Image scale to side

Scale an image to a target edge length

Derfuu_Nodes/Modded nodes/Image
Integer

A whole-number value, and a float→int converter

Derfuu_Nodes/Variables
Int to Float

The INT-to-FLOAT converter in Derfuu's pack

Derfuu_Nodes/Functions/Converters
Latent Scale by ratio

DF_Latent_Scale_by_ratio – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Modded nodes/Latent
Latent Scale to side

DF_Latent_Scale_to_side – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Modded nodes/Latent
Logic node

Compare two values and branch your workflow

Derfuu_Nodes/Functions
Multiply

A × B for driving dimensions off one value

Derfuu_Nodes/Math
Power

DF_Power – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math
Random

DF_Random – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions
Search In Text

Check whether text contains a pattern, and count it

Derfuu_Nodes/Functions/String Operations
Sinus

DF_Sinus – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math/Trigonometry
Square root

DF_Square_root – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math
String Concatenate

DF_String_Concatenate – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions/String Operations
String Replace

DF_String_Replace – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Functions/String Operations
Subtract

DF_Subtract – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math
Sum

DF_Sum – ComfyUI Node from Derfuu_ComfyUI_ModdedNodes

Derfuu_Nodes/Math
Tangent

Tangent and arctangent in one node

Derfuu_Nodes/Math/Trigonometry
Text

A single-line string source, current naming

Derfuu_Nodes/Variables
Text Box

The multiline text/prompt node in Derfuu's pack

Derfuu_Nodes/Variables
To text (Debug)

Peek at any value without breaking the wire

Derfuu_Nodes/Debug
Divide

A ÷ B as a node, and the divide-by-zero trap

Derfuu_Nodes/Math
Float

A reusable decimal-number source for your workflow

Derfuu_Nodes/Variables
Float debug print

Log a computed number to the console with a label

Derfuu_Nodes/Debug
Floor

Round a decimal down to a whole number

Derfuu_Nodes/Functions/Converters
Get image size

Read an image's width and height as numbers

Derfuu_Nodes/Functions
Get latent size

Read a latent's width and height (and the 8x gotcha)

Derfuu_Nodes/Functions
Image scale by ratio

Multiply an image's size by a number

Derfuu_Nodes/Modded nodes/Image
Image scale to side

Resize an image by one edge, keep the aspect ratio

Derfuu_Nodes/Modded nodes/Image
Upscale Image (using Model)

Run an ESRGAN upscaler on your image

image/upscaling
Int debug print

Dump an integer to the console with a label

Derfuu_Nodes/Debug
Integer

A whole-number source that also rounds floats to int

Derfuu_Nodes/Variables
Int to float

Convert an integer to a float so wires connect

Derfuu_Nodes/Functions/Converters
Int to tuple

Pack two integers into Derfuu's TUPLE type

Derfuu_Nodes/Tuples
LatentComposite with tuples

Paste one latent onto another at a computed position

Derfuu_Nodes/Tuples/Modded nodes/Latents
Latent Scale by ratio

Upscale a latent by a factor, not a fixed size

Derfuu_Nodes/Modded nodes/Latent
Latent Scale to side

Resize a latent by one edge in latent space

Derfuu_Nodes/Modded nodes/Latent
Logic node

The if/compare node in Derfuu's pack

Derfuu_Nodes/Functions
Multiply

Multiply two numbers inside your ComfyUI graph

Derfuu_Nodes/Math
Power

Raise a number to an exponent inside your graph

Derfuu_Nodes/Math
Random

A seeded random float between two bounds

Derfuu_Nodes/Functions
Sinus

The older name for Derfuu's sine node

Derfuu_Nodes/Math/Trigonometry
Square root

√A as a node, with both roots on the outputs

Derfuu_Nodes/Math
String Concatenate

Join two strings with a delimiter

Derfuu_Nodes/Functions/String Operations
String debug print

Log a string to the console with a label

Derfuu_Nodes/Debug
String Replace

Find-and-replace on text mid-graph

Derfuu_Nodes/Functions/String Operations
Subtract

Subtract one number from another in your graph

Derfuu_Nodes/Math
Sum

A + B, the simplest node in the pack

Derfuu_Nodes/Math
Tangent

The older name for Derfuu's tangent node

Derfuu_Nodes/Math/Trigonometry
Text

A single-line string you set once and reuse

Derfuu_Nodes/Variables
Text box

A multiline text field to feed prompts around your graph

Derfuu_Nodes/Variables
To text (Debug)

The universal peek-at-any-value node

Derfuu_Nodes/Debug
Tuple

Bundle two floats into one wire

Derfuu_Nodes/Tuples
Tuple debug print

Check both halves of a bundled pair

Derfuu_Nodes/Debug
Tuple multiply

Scale both halves of a pair by the same number

Derfuu_Nodes/Tuples
Tuple swap

Flip the two values inside a pair

Derfuu_Nodes/Tuples
Tuple to floats

Unpack a pair back into two separate values

Derfuu_Nodes/Tuples
Tuple to ints

Unpack a pair into clean whole numbers

Derfuu_Nodes/Tuples
Load Upscale Model

Load an ESRGAN model for upscaling

loaders
Readme

Derfuu_ComfyUI_ModdedNodes

Small description

  • Automate calculation depending on image sizes or something you want
  • Easier(or not) editing multiple values of various nodes
  • Math nodes
  • Modded scalers (scale by side/ratio)
  • String manipulations (Replace, Concat, Search)
  • Single debug output node for any types with widget

Nodes description

  • Debug output node - tries to convert any input type into string and print it in widget and console.
  • Variables:
    • Float - mainly used to calculation
    • Integer - used to set width/height and offsets mainly, also provides converting float values into integer
    • Text - input field for single line text
    • Text box - same as text, but multiline
    • DynamicPrompts Text Box - same as text box, but with standard dynamic prompts support (don't work when in-line)
  • Functional:
    • Random - gives random value within threshold
    • Get image size - return image size like: Width, Height
    • Get latent size - return latent size like: Width, Height
      • NOTE: Original values for latents are 8 times smaller
    • Logic node - compares 2 values and returns one of 2 others (if not set - returns False)
    • Converters: converts one type to another
      • Int to float
      • Ceil - rounding up float value ex: 1.01 --> 2
      • Floor - rounding down float value ex: 1.99 --> 1
      • Absolute - return only positive (or negative) value on your choice
    • String operations:
      • Concat - concatenates 2 strings (texts) separated with delimiter if you need one
      • Replace - replaces substring with other string
        • Strict mode - replace all occurrences of the pattern in the text with another string
        • RegEx mode - replace all occurrences of a pattern matching RegEx in the text with another string
      • Search - search substring in text and return occurrences count
        • Strict mode - search for all occurrences of pattern in the text
        • RegEx mode - search for all occurrences matching RegEx pattern in the text
  • Math
    • sum - (A + B)
    • subtract - (A - B)
    • multiply (A * B)
    • divide - (A / B)
    • power - (A * A * A...) B times
    • square root - (√A)
  • Modded:
    • Conditioning
      • Condition area scale - multiplies size of conditioning by ratio
    • Latents
      • Latent scale by ratio - multiplies size of latent by ratio
      • Latent scale to size - scale size of latent to length of selected side
    • Image
      • Image scale by ratio - multiplies size of image by ratio
      • Image scale to size - scale size of image to length of selected side