Nodes Browser
ComfyDeploy: How ComfyUI-ColorshiftColor works in ComfyUI?
What is ComfyUI-ColorshiftColor?
This is a custom node for ComfyUI. It reduces colors based on a specified number and allows for adjustments to hue, saturation, and brightness. Features:Each parameter can be set to random, You can toggle masking (not changing colors) using color numbers, Mask inversion can also be toggled on or off.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI-ColorshiftColor
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ColorshiftColor & CsCPaletteEditor
これは何?
これはComfyUIのカスタムノードです。
scikit-learnが必要なのでpip install scikit-learnを環境に入れてください。
- 指定数で減色して色相/彩度/輝度の変更を行う
- 各パラメーターのランダム指定可能
- 色番号でマスク(色を変えない)のオンオフ可能
- マスクの反転がオンオフ可能
- カラーのマスク出力が可能
- 影をベタ塗りで潰し、影のみ透過画像で出力可能
- 影と塗りつぶしのペア指定可能
以上の機能を実装したシンプルなノードです。
- lock_color_num パレットのプレビューで割り振られた番号を,カンマで入力することでマスクに指定できます。
連番対応
文字入力スペースの
##{"index": 0, "color": [0.0, 0.0, 1.0]}の##を外すと文字での色指定が出来ます。(,カンマ区切りで複数可能)
indexの数字とlock_color_numの数字は合わせる必要があります。
単色バック動画を作りたい場合video combineで出力するとエンコードでノイズが乗ることがあるのでsave imageで連番保存したほうが良いです。
CsCFill
塗りつぶしと影分離ノード
通常は近似値をペアにし、塗りつぶし色Aと影色Bを確定させますが、[]内に
{ "A": 0,"B": 1 }
という文字列を記載することで、AでBを塗りつぶすという指定挙動をします。数字はパレットプレビューの数字です。
update
25.02.01 - mask機能の修正、CsCノードの高速化、exampleデータの見直し
25.02.01 - パレットインデックス順を画面占有率でソート、塗りつぶしと影分離のノードを追加、exampleの見直し