How yolain/comfyui-easy-use works
ComfyUI-Easy-Use is a custom-node package that streamlines Stable Diffusion workflows and adds model, image, prompt, and workflow utilities. The primary user flow is configuring a workflow in ComfyUI, loading a model and conditioning, sampling, then inspecting or transforming generated images. The graph preserves documented model families and UI capabilities alongside sampled implementation layers. Some feature branches are documented in the README but their internal calls were not sampled, so those links are intentionally limited.
Main entry points: image.py Image Nodes · samplers.py Sampler Nodes · __init__.py Custom Node Workflow · loaders.py Model Loaders
Components 22
Workflow Nodes
- Custom Node Workflow
py/__init__.py - Prompt and Logic
py/nodes/prompt.py - Pre-sampling Setup
py/nodes/preSampling.py - Sampler Nodes
py/nodes/samplers.py - Sampling Engine
py/libs/sampler.py - XY Plot
py/libs/xyplot.py
Model Support
- Model Loaders
py/nodes/loaders.py - ControlNet Support
py/libs/controlnet.py - Kolors Models
py/modules/kolors/loader.py - ChatGLM Text Model
py/modules/kolors/chatglm/modeling_chatglm.py - Layer Diffuse
py/modules/layer_diffuse/__init__.py
Image Tools
- Image Nodes
py/nodes/image.py - Image Utilities
py/libs/image.py - Bria Background Removal
py/modules/briaai/rembg.py - BEN Image Model
py/modules/ben/model.py
Server and UI
- Seed Handling
py/server.py - HTTP Routes
py/routes.py - Stability API
py/libs/api/stability.py - ComfyUI Enhancements
web_version/v1/js/easy/easyContextMenu.js - UI Translation
web_version/v1/js/common/i18n.js - Canvas Editor
web_version/v1/lib/fabric.js
Other components
- ComfyUI User
Connections 21
- ComfyUI User → Custom Node Workflow: build workflows
- Custom Node Workflow → Model Loaders: select models
py/nodes/loaders.py - Custom Node Workflow → Prompt and Logic: configure prompts
- Model Loaders → Sampler Nodes: supply models
- Pre-sampling Setup → Sampler Nodes: configure sampling
- Sampler Nodes → Sampling Engine: sample latents
py/nodes/samplers.py - Sampler Nodes → XY Plot: run plots
py/nodes/samplers.py - Sampler Nodes → Layer Diffuse: apply layer diffuse
py/nodes/samplers.py - Model Loaders → Kolors Models: load Kolors
py/nodes/loaders.py - Kolors Models → ChatGLM Text Model: use text model
py/modules/kolors/loader.py - Model Loaders → ControlNet Support: configure conditioning
py/nodes/loaders.py - Custom Node Workflow → Image Nodes: process images
- Image Nodes → Image Utilities: use image helpers
py/nodes/image.py - Image Nodes → Bria Background Removal: remove backgrounds
py/nodes/image.py - Image Nodes → BEN Image Model: run BEN model
py/nodes/image.py - Image Nodes → Seed Handling: use server services
py/nodes/image.py - HTTP Routes → Seed Handling: register routes
py/routes.py - Stability API → Seed Handling: use server services
py/libs/api/stability.py - ComfyUI Enhancements → HTTP Routes: fetch thumbnails
web_version/v1/js/easy/easyContextMenu.js - ComfyUI Enhancements → UI Translation: translate UI
web_version/v1/js/easy/easyContextMenu.js - ComfyUI Enhancements → Canvas Editor: use canvas editor