Nodes Browser

ComfyDeploy: How ColorMatrixGPU Node for ComfyUI works in ComfyUI?

What is ColorMatrixGPU Node for ComfyUI?

This node applies a custom 4x4 color matrix to an image using GPU acceleration via PyTorch.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ColorMatrixGPU Node for ComfyUI and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ColorMatrixGPU Node for ComfyUI

Overview

This node applies a custom 4x4 color matrix to an image using GPU acceleration via PyTorch.

Installation

  1. Ensure PyTorch with CUDA support is installed:
pip install torch torchvision
  1. Place colormatrix_gpu_node.py in your custom_nodes folder of ComfyUI.

Usage

  • Add the node ColorMatrixGPU in ComfyUI.
  • Provide an image input.
  • Input a 4x4 color matrix in comma-separated format (16 float values).

Example Matrix

1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1

License

MIT License