ComfyI2I
ComfyI2I is a set of custom nodes for ComfyUI that help with image 2 image functions.
Package profile
- Status
- Verified
- Publisher
- @ManglerFTW
- Source
- GitHub
- Stars
- 182
README
ComfyI2I
A set of custom nodes to perform image 2 image functions in ComfyUI.
If you find these nodes useful please consider contributing to it's further development. All donations are much appreciated. Buy me a coffee
ComfyShop Small Bugfix and Reframe Update - 9/30/2023
- Fixed a bug that was causing a loss of image quality when saved.
- Large Images should handle better as you now have 2 framing options. 'f' hotkey will frame to full scale and shift + f will now fit to screen.
- You can now close the brush menu with right click in addition to closing it by drawing on the canvas.
ComfyShop Update - 9/25/2023
New Features
ComfyShop has been introduced to the ComfyI2I family. Enjoy a comfortable and intuitive painting app. ComfyShop phase 1 is to establish the basic painting features for ComfyUI. To open ComfyShop, simply right click on any image node that outputs an image and mask and you will see the ComfyShop option much in the same way you would see MaskEditor. Current features of ComfyShop include:
- Paint both mask('greyscale') and color and output accordingly.
- Controls(shift + right click) for brush size(mouse wheel), opacity(shift + alt + mouse wheel), softness(alt + mousewheel), and color.
- Undo(ctrl + z) / Redo(shift + ctrl + z)
- Zoom In/Out(ctrl + space + mouse move left/right)
- Pan(ctrl + space + click and drag image canvas with mouse)
- Autofocus(f)
V2 Update - 9/2/2023
New Features
- Mask_Ops node will now output the whole image if mask = None and use_text = 0
- Mask_Ops node now has a separate_mask function that if 0, will keep all mask islands in 1 image vs separating them into their own images if it's at 1 (use 0 for color transfer)
- New Color Tansfer and Multi-Color Transfer Workflows added
- Significantly improved Color_Transfer node
- Extract up to 256 colors from each image (generally between 5-20 is fine) then segment the source image by the extracted palette and replace the colors in each segment
- Set a blur to the segments created
- Control the strength of the color transfer function
- Controls for Gamma, Contrast, and Brightness
Installation
If you're running on Linux, or non-admin account on windows you'll want to ensure /ComfyUI/custom_nodes, ComfyUI_I2I, and ComfyI2I.py has write permissions.
There is an install.bat you can run to install to portable if detected. Otherwise it will default to system and assume you followed ComfyUI's manual installation steps.
Navigate to your /ComfyUI/custom_nodes/ folder Run git clone https://github.com/ManglerFTW/ComfyI2I/ Navigate to your ComfyUI_I2I folder Run pip install -r requirements.txt Start ComfyUI Tools will be located in the I2I menu.
Features:
ComfyShop
Access ComfyShop:
Right click on any image node that has 'IMAGE' and 'MASK' as outputs and select ComfyShop in the pop up menu.
Brush Menu:
To access the brush menu press shift and the right mouse button anywhere on the canvas. Brush settings can also be changed by keyboard shortcuts which is recommended.
Zoom In/Out:
Gain more control over your image editing with the ability to zoom in and out, pan, and autofocus your canvas.
Save to node:
Save to node will save anything painted in greyscale to the 'MASK' output and anything painted
Nodes in this pack
4 nodes
Nodes in this pack
4 nodes- Color Transfer
- Combine and Paste
- Inpaint Segments
- Mask Ops
Related resources
3 connections
Related resources
3 connectionsSources
3 sources
Sources
3 sourcesVerified Oct 14
Verified Oct 14
Source excerpts
1 excerpt
Source excerpts
1 excerptSource context: Repo ManglerFTW/ComfyI2I
