TeaCrab 1b0d0d29ce Changed how Equalize Node's parameters work
The way equalize_clahe() function's parameters being auto generated based on image size was resulting in errors.

Issue seems to be some kind of dimensional mismatch which was required to be the same by the kornia function.

Reverting back to a working method.

Plus some minor fixes.
2023-08-18 19:51:53 -04:00
2023-08-18 18:45:47 -04:00
2023-08-18 18:39:08 -04:00
2023-08-18 18:45:47 -04:00
2023-08-18 18:56:15 -04:00

ComfyUI-TeaNodes

Adds a few new nodes:

Image Equalization CLAHE style.

  • When images have their histogram smoothly distributed, I'd say it gives ControlNet preprocessor an easier time.
  • Works great when image BG is removed.

Image Size Approximation based on pixel count that retains Image ratio.

  • Great for stabilizing the speed of image-to-image generation.

Image Resize Node that takes size tuple from Size Approximation Node.

  • Seriously, image size always has 2 numbers, why can't it fit through a single wire?
  • It also defaults to a node socket instead of having to convert it into input from a widget.

Image Scale Node simply multiplies image size by a factor.

  • Have an easier time saving in-process scrap images at half or quarter resolution.

Don't know how licensing works so code relying on other repos has been ignored for now.

S
Description
No description provided
Readme MIT
78 KiB
Languages
Python 100%