Nodes Browser

ComfyDeploy: How ComfyUI-J works in ComfyUI?

What is ComfyUI-J?

This is a completely different set of nodes than Comfy's own KSampler series. This set of nodes is based on Diffusers, which makes it easier to import models, apply prompts with weights, inpaint, reference only, controlnet, etc.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-J and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-J

Introduction

Jannchie's ComfyUI custom nodes.

This is a completely different set of nodes than Comfy's own KSampler series. This set of nodes is based on Diffusers, which makes it easier to import models, apply prompts with weights, inpaint, reference only, controlnet, etc.

Installation

In the custom_nodes directory, run

git clone https://github.com/Jannchie/ComfyUI-J
cd ComfyUI-J
pip install -r requirements.txt

Examples

Base Usage of Jannchie's Diffusers Pipeline

You only have to deal with 4 nodes. The default comfy workflow uses 7 nodes to achieve the same result.

Base Usage

Reference Only with Jannchie's Diffusers Pipeline

ref_only supports two modes: attn and attn + adain, and can adjust the style fidelity parameter to control the style.

Reference only

ControlNet with Jannchie's Diffusers Pipeline

ContorlNet is also easier to use. A DiffusersControlnetLoader node is provided for loading models. This node automatically detects if the corresponding ControlNet has been downloaded locally, and pulls the model from the huggingface if it has not.

ControlNet

Inpainting with Jannchie's Diffusers Pipeline

Inpainting

Remove something with Jannchie's Diffusers Pipeline

Remove something

Change Clothes with Jannchie's Diffusers Pipeline

This is a composite application of diffusers pipeline custom node. Includes:

  • Reference only
  • ControlNet
  • Inpainting
  • Textual Inversion

This is a demonstration of a simple workflow for properly dressing a character.

A checkpoint for stablediffusion 1.5 is all your need. But for full automation, I use the Comfyui_segformer_b2_clothes custom node for generating masks. you can draw your own masks without it.

Change Clothes

QR Code

QR Code

FAQ

Why Diffusers?

Unlike Web UI and Comfy, Diffusers is an image generation tool for researchers. It has a large ecosystem, a clearer code structure and a simpler interface.

ComfyUI's KSampler is nice, but some of the features are incomplete or hard to be access, it's 2042 and I still haven't found a good Reference Only implementation; Inpaint also works differently than I thought it would; I don't understand at all why ControlNet's nodes need to pass in a CLIP; and I don't want to deal with what's going on with Latent, please just return an Image instead of making me decode it with a vae. Diffusers provides a pipeline wrapper that makes generation a lot easier.

Why ComfyUI?

But combining research results is not an easy task, Comfy is good at combining and sharing combinations with others. While debugging custom nodes as a developer can be a pain, using Comfy makes it faster to verify and share.

TODO

  • ⬜ Add LoRA support
  • ⬜ Stable Diffusion XL support