Giter VIP home page Giter VIP logo

comfyui-post-processing-nodes's Introduction

ComfyUI-post-processing-nodes

A collection of post processing nodes for ComfyUI, which enable a variety of visually striking image effects

Example Image and Workflow

Both images have the workflow attached, and are included with the repo. Feel free to submit more examples as well!


$\Large\color{#00A7B5}\text{Expand Node List}$
  • ArithmeticBlend: Blends two images using arithmetic operations like addition, subtraction, and difference.
  • AsciiArt: Transforms an image into being composed of ASCII characters
  • Blend: Blends two images together with a variety of different modes
  • Blur: Applies a Gaussian blur to the input image, softening the details
  • CannyEdgeMask: Creates a mask using canny edge detection
  • Chromatic Aberration: Shifts the color channels in an image, creating a glitch aesthetic
  • $\color{#00A7B5}\textbf{ColorCorrect:}$ Adjusts the color balance, temperature, hue, brightness, contrast, saturation, and gamma of an image
  • $\color{#00A7B5}\textbf{ColorTint:}$ Applies a customizable tint to the input image, with various color modes such as sepia, RGB, CMY and several composite colors
  • Dissolve: Creates a grainy blend of two images using random pixels based on a dissolve factor.
  • DodgeAndBurn: Adjusts image brightness using dodge and burn effects based on a mask and intensity.
  • FilmGrain: Adds a film grain effect to the image, along with options to control the temperature, and vignetting.
  • Glow: Applies a blur with a specified radius and then blends it with the original image. Creates a nice glowing effect.
  • HSVThresholdMask: Creates a mask by thresholding HSV (hue, saturation, and value) channels
  • $\color{#00A7B5}\textbf{KuwaharaBlur:}$ Applies an edge preserving blur, creating a more realistic blur than Gaussian.
  • Parabolize: Applies a color transformation effect using a parabolic formula
  • PencilSketch: Converts an image into a hand-drawn pencil sketch style.
  • $\color{#00A7B5}\textbf{PixelSort:}$ Rearranges the pixels in the input image based on their values, and input mask. Creates a cool glitch like effect.
  • Pixelize: Applies a pixelization effect, simulating the reducing of resolution
  • $\color{#00A7B5}\textbf{Quantize:}$ Set and dither the amount of colors in an image from 0-256, reducing color information
  • Sharpen: Enhances the details in an image by applying a sharpening filter
  • SineWave: Runs a sine wave through the image, making it appear squiggly
  • $\color{#00A7B5}\textbf{Solarize:}$ Inverts image colors based on a threshold for a striking, high-contrast effect
  • Vignette: Applies a vignette effect, putting the corners of the image in shadow

$\color{#00A7B5}\textbf{Bolded Color Nodes}$ are my personal favorites, and highly recommended to expirement with


Install

To install these nodes

  • Navigate to your /ComfyUI/custom_nodes/ folder
  • Run git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes/

Combine Nodes

By default post_processing_nodes.py should have all of the combined nodes. If you want a subset of nodes, you can run

python combine_files.py [--files FILES [FILES ...]] [--output OUTPUT]

or just run

python combine_files.py -h

for more help

Old Nodes

Some nodes have been have been added to the main repo, feel free to use those instead as they work perfectly fine. Old versions are still kept around for backwards compatability.

comfyui-post-processing-nodes's People

Contributors

ellangok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

comfyui-post-processing-nodes's Issues

Dither lack of np

numpy is not declared in Dither :

as it is:
import torch

class Dither:
def init(self):
pass

correct:
import torch
import numpy as np

class Dither:
def init(self):
pass

Vignette effect bug

Vignette effect is not working:

`Error occurred when executing Vignette:

Vignette.apply_vignette() got an unexpected keyword argument 'a'

File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
`

This is a typo where an old 'a' is still in parameters descriptions in stead of 'vignette', as is the parameter name in 'apply_vignette'.
fix: vignette.py line 13 "a" => "vignette"

Good job on these node btw!

The vignette within "Film Grain" node is too intense.

As per the title, even on the lowest setting of "1" it darkens the whole image. Would it be possible for it to only affect the border (which is what the vignette should do) instead of the whole image? I'm looking to reproduce something like this, where the image is still bright in the middle, but with a darker frame to it:
image

These are comparison images using the node set to "0", "1" and then "10", and you can see how "1" just seems to spread across the whole image:
0003_upscaled
0001_upscaled
0002_upscaled

some function not work

FileNotFoundError: [Errno 2] No such file or directory: 'F:\ComfyUI_Portable\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes\init.py'

Cannot import F:\ComfyUI_Portable\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes module for custom nodes: [Errno 2] No such file or directory: 'F:\ComfyUI_Portable\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes\init.py'

Vignette gives an error

Vignette.apply_vignette() got an unexpected keyword argument 'a'

A similar type of error that I had with Sharpen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.