Skip to content

hanchuanjun/gimp-comfy-tools

 
 

Repository files navigation

GIMP Plugins with ComfyUI (WIP)

GIMP plugins that communicate with ComfyUI.

  • Go to Edit>Preferences
  • Click the + sign next to Folders
  • Click Plug-ins
  • Add the directory containing the plugin .py files
  • I got get-pip.py from https://bootstrap.pypa.io/pip/2.7/get-pip.py

  • Add get-pip.py to GIMP folder: C:\Program Files\GIMP 2\bin

  • From a Windows Command Prompt Window cd to the GIMP Python folder (type cmd into the file explorer address bar):
    cd C:\Program Files\GIMP-2\bin

  • Run the get-pip.py script using the GIMP version of Python:
    .\python.exe get-pip.py

  • You now have pip installed in the GIMP version of Python

  • Now you can run the command to download and install:
    .\python.exe -m pip install websocket-client

Download the models and follow the instructions outlined in this video:

https://www.youtube.com/watch?v=wEd1wPlCBaQ

Thank you to ControlAltAI

  • Must have https://github.com/nchenevey1/comfyui-gimp-nodes for sending and receiving websocket RGBA data

  • Currently uses specific nodes

    • (Default EmptyLatentImage node, CheckPointLoderSimple node, CLIPTextEncode node, and KSampler node)
  • Searches for prompt text nodes by searching CLIPTextEncode nodes for 'pos' and 'neg' in title

    • (Positive prompt node must have 'pos' somewhere in title, negative prompt node must have 'neg')
  • Currently uses Lora Loader Stack (rgthree)

  • Lora count limited by options in GIMP ui

  • Image to image uses GIMP selection tool. Entire image is used if no selection is present

  • Seed is random if set to 0

  • Make sure to select the current GIMP image in the "input image" ui option when using image to image

gimp_demo.mp4

About

Gimp plugins for use with ComfyUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%