ComfyUI Extension: ComfyUI-Seed-Tracker
A ComfyUI extension that tracks random seeds throughout your image generation workflows
Custom Nodes (0)
README
ComfyUI Seed Tracker
A custom node extension for ComfyUI that tracks and logs random seeds used throughout your image generation workflows.
Features
- Track individual seeds from specific nodes
- Global seed tracking mode to monitor seeds in a workflow
- Export seed logs in different formats (JSON, CSV, TXT)
- Organize seeds by session ID for easy reference
- Add custom notes to tracked seeds
Installation
Using ComfyUI Manager
- Open ComfyUI
- Open ComfyUI Manager
- Search for "Seed Tracker"
- Click Install
Manual Installation
-
Navigate to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes/
-
Clone this repository:
git clone https://github.com/angelcookies/comfyui-seed-tracker.git
Alternatively, download and extract the ZIP file to your custom_nodes directory.
-
Restart ComfyUI
Usage
After installation, you'll find the following nodes in the "utils/seed_tracking" category:
Seed Tracker Node
Connect this node to track seeds from individual nodes.
Inputs:
seed
: The seed value to tracknode_id
: A unique identifier for the node (helps with organization)notes
: Optional notes to add context to the tracked seed
Outputs:
seed
: The same seed passed through (for convenience in workflows)log_path
: Path to the JSON log file
Global Seed Tracker Node
A standalone node that creates a session log file and attempts to track seeds automatically.
Inputs:
enabled
: Toggle tracking on/offinclude_metadata
: Include workflow metadata in logssession_name
: Optional custom session name
Outputs:
log_path
: Path to the session log file
Seed Exporter Node
Export tracked seeds in different formats.
Inputs:
session_id
: The session ID to export (leave empty for all sessions)format
: Output format (json, csv, txt)
Outputs:
export_path
: Path to the exported file
Log Files
All seed logs are stored in your ComfyUI output directory under a seed_logs
folder. Each session creates a unique log file with timestamp-based naming.
Example Workflow
- Add a "Global Seed Tracker" node at the beginning of your workflow
- Connect "Seed Tracker" nodes to any KSampler or other nodes where you want to track specific seeds
- When you want to reference seeds later, use the "Seed Exporter" node to export them in your preferred format
Advanced Integration
For advanced users who want to automatically track all seeds without manually connecting nodes, you can modify the ComfyUI server code to hook into the execution system. This requires deeper integration with the ComfyUI API and is beyond the scope of this basic extension.
Future Features
- Automatic seed detection without manual node connections
- Web UI for browsing and searching captured seeds
- Integration with prompt history
- Thumbnail generation for associated images
Credits
- Development assisted by Claude AI from Anthropic
- Special thanks to the ComfyUI community
License
MIT License