ComfyUI-APQNodes

ComfyUI-APQNodes
★ 111

颜色映射提示增强FLUX.1 Dev调色盘生成
ComfyUI-APQNodes 的 ColorPalette 节点将输入的十六进制颜色码映射为 FLUX.1 Dev 已知的155色彩名称,便于在提示中使用可重复生成的颜色并输出修改后提示与调色盘图像。
💡 将用户输入的 hex 颜色码转换为 FLUX.1 可识别的颜色名并生成调色盘。
🍴 5 Forks💻 Python🔄 2024-11-21
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/a9fb3a59e10c
📄 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.

  • __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