Discord Link :- match-histogram
An InvokeAI node to match a histogram from one image to another. This is a bit like the color correct
node in the main InvokeAI but this works in the YCbCr colourspace and can handle images of different sizes. Also does not require a mask input.
- Option to only transfer luminance channel.
- Option to save output as grayscale
A good use case is to normalize the colors of an image that has been through the tiled scaling workflow of my XYGrid Nodes.
There are two options to install the nodes:
-
Recommended: Use Git to clone the repo into the
invokeai/nodes
directory. This allows updating viagit pull
.-
In the InvokeAI nodes folder, run:
For Latest Invoke (4.0+):
git clone https://github.com/skunkworxdark/match_histogram.git
For Invoke (3.5-3.7):
git clone https://github.com/skunkworxdark/match_histogram/tree/invoke-3.7
-
-
Manually download and place match_histogram.py & init.py in a subfolder in the
invokeai/nodes
folder.
Run a git pull
from the match_histogram
folder.
Or run the update.bat
or update.sh
.
For manual installs, download and replace the files.
Delete the match_histogram
folder or rename it to _match_histogram
and Invoke will ignore it.