5.3 KiB
User Guide
This document provides detailed information on how to use ComfyUI effectively.
Table of Contents
- Getting Started
- Interface Overview
- Working with Nodes
- Managing Models
- Creating Workflows
- Advanced Features
- Best Practices
Getting Started
After installing ComfyUI, you can access it via your web browser:
-
Start ComfyUI:
comfyui # OR if installed from source python main.py -
Open your web browser and navigate to:
http://localhost:8188 -
ComfyUI will load with an empty workspace where you can create your nodes and workflow.
Interface Overview
Main Areas
- Canvas: The main area where you create and connect nodes
- Node Menu: Left sidebar with available nodes categorized by function
- Settings: Access global settings via the gear icon in the top right
- Queue: View and manage processing queue in the top panel
Navigation
- Pan: Middle mouse button or Alt + Left mouse button
- Zoom: Mouse wheel or Ctrl + Mouse wheel
- Select multiple nodes: Drag a selection box or Shift + Click
- Move nodes: Drag selected nodes
- Delete nodes: Select and press Delete key
Working with Nodes
Node Basics
Nodes are the building blocks of ComfyUI workflows. Each node performs a specific function and can be connected to other nodes.
Node Types
- Input Nodes: Provide data (text prompts, images, etc.)
- Processing Nodes: Transform data (models, samplers, conditioning)
- Output Nodes: Generate results (images, videos, latents)
- Utility Nodes: Helper functions (math, logic, conversion)
Creating Nodes
- Right-click on the canvas
- Navigate through the menu categories
- Click on the node you want to add
- Alternatively, use the Quick Node Search with Ctrl+Space
Connecting Nodes
- Click and drag from an output socket (right side)
- Connect to an input socket (left side)
- Compatible connections will be highlighted
- Incompatible connections will be rejected
Node Properties
Each node has properties that can be configured:
- Click on a node to select it
- Adjust parameters in the property panel
- Some parameters support dynamic values via connections
Managing Models
ComfyUI supports various AI models for different purposes.
Model Types
- Checkpoints: Main Stable Diffusion models
- LoRA: Style adaptations and fine-tuning
- Textual Inversions/Embeddings: Concept encodings
- VAE: Variational autoencoders for encoding/decoding
- CLIP: Text encoders for prompts
- ControlNet: Models for guided image generation
Loading Models
Models can be loaded via dedicated nodes:
- Add the appropriate model loader node
- Select your model from the dropdown
- Connect to other nodes that require the model
Model Management
- Models are stored in the
modelsdirectory - Subdirectories organize different model types
- Add new models by placing them in the appropriate folder
- ComfyUI automatically detects new models on startup
Creating Workflows
Basic Workflow
A minimal image generation workflow consists of:
- Checkpoint Loader: Load a model
- CLIP Text Encode: Process positive and negative prompts
- KSampler: Configure sampling parameters
- VAE Decode: Convert latent representation to image
- Save Image: Output the generated image
Workflow Management
- Save Workflow: Click "Save" to download JSON workflow file
- Load Workflow: Click "Load" to import a workflow
- Share Workflows: Exchange JSON files with others
- API Access: Workflows can be executed via API
Workflow Templates
ComfyUI includes templates for common tasks:
- Click "Load" to access templates
- Select a template that matches your need
- Modify parameters to customize the results
Advanced Features
Batching
Process multiple images with one workflow:
- Use batch size parameter in sampler nodes
- Use Empty Latent Image with multiple batches
- Process results with Latent from Batch node
Animation
Create animations using keyframes or video input:
- Use Animate Diff or similar animation nodes
- Configure frames, motion, and interpolation
- Output video or image sequence
Upscaling
Enhance resolution of generated images:
- Generate base image
- Feed into upscaler node (Lanczos, ESRGAN, etc.)
- Configure scale factor and parameters
- Save higher resolution result
Best Practices
Performance Optimization
- Use half-precision (fp16) for faster processing
- Adjust VRAM usage in settings
- Process at lower resolution and upscale later
- Use VAE tiling for large images
Workflow Organization
- Group related nodes for clarity
- Add comment nodes to document workflows
- Use consistent naming conventions
- Break complex workflows into subgraphs
Common Pitfalls
- Ensure compatible node connections
- Watch VRAM usage for larger models
- Backup workflows regularly
- Check error messages in console log
Getting Help
- Hover over node inputs/outputs for tooltips
- Check documentation for specific nodes
- Visit Discord community for support
- Explore shared workflows for examples