ComfyUI Extension: ComfyUI-APQNodes

Authored by AIPOQUE

Created

Updated

55 stars

Without fine-tuning, FLUX.1 Dev model cannot understand exact color codes. However, it is known that FLUX.1 Dev can repeatedly produce certain colors with certain prompt(color name). Fortunately, on CIVITAI, a/“novuschroma” shared 155 pre-tested color names that FLUX.1 Dev can handle. Thanks to his resource, color palette consists exclusively of 155 colors can be configured. ‘ColorPalette’ node from ComfyUI APQNodes converts input hex color code to the most similar color name(from pre-tested 155 color names) of which FLUX.1 Dev is aware.

Custom Nodes (0)

    README

    ComfyUI APQNodes

    Introduction

    Without fine-tuning, FLUX.1 Dev model cannot understand exact color codes. However, it is known that FLUX.1 Dev can repeatedly produce certain colors with certain prompt(color name). Fortunately, on CIVITAI, “novuschroma” shared 155 pre-tested color names that FLUX.1 Dev can handle. Thanks to his resource, color palette consists exclusively of 155 colors can be configured. ‘ColorPalette’ node from ComfyUI APQNodes converts input hex color code to the most similar color name(from pre-tested 155 color names) of which FLUX.1 Dev is aware.

    Installation

    Clone this repo into custom_nodes folder.

    Usage

    ‘ColorPalette’ node consists of two inputs and two outputs. ColorPalette Node

    • Inputs

      • prompt : User text prompt
      • hexcodes : any text hex color codes without any delimiter. For example, #FF0000 #00FF00 #0000FF can generate color palette consisting of 3 colors(RED, BLUE, GREEN)
    • Outputs

      • Prompt : Text prompt(User text prompt with color palettes applied) to connect to CLIP Text Encode.
      • solor_palettes : Image of generated color palette