Version 1.0.0 | December 19, 2025
A ComfyUI Desktop-compatible fork that works seamlessly in ComfyUI Desktop's Electron environment.
Based on the work of: Ubisoft LaForge β
ComfyUI custom node for the paper: Chord: Chain of Rendering Decomposition for PBR Material Estimation from Generated Texture Images
The original Chord implementation didn't work with ComfyUI Desktop, so we built a Desktop-compatible version!
Desktop Edition Features:
- β Desktop App Support: Works seamlessly in ComfyUI Desktop's Electron environment
- π§ Fixed Import Paths: Resolved path resolution issues specific to ComfyUI Desktop
- π Enhanced Logging: Better debugging support with detailed error messages
- β¬οΈ Auto-Download Script: One-click Stable Diffusion 2.1 downloader (
download_sd21.bat) - π Update Script: Easy Windows update script (
UPDATE.bat) - π Desktop Setup Guide: Comprehensive documentation for Desktop users
Quick Start:
cd C:\ComfyUIData\custom_nodes
git clone https://github.com/rethink-studios/comfyui-chord-desktop.git ComfyUI-Chord
C:\ComfyUIData\.venv\Scripts\python.exe -m pip install -r ComfyUI-Chord\requirements.txtDownload Stable Diffusion 2.1 (Required):
ComfyUI-Chord requires Stable Diffusion 2.1 to be cached locally. Use our automated downloader:
- Navigate to
C:\ComfyUIData\custom_nodes\ComfyUI-Chord - Double-click
download_sd21.bat - Wait for download to complete (~5GB, shows progress bars)
- Restart ComfyUI Desktop
That's it! You're ready to use Chord nodes.
-
Download and install ComfyUI from the original repository
-
Clone this repository:
cd ./ComfyUI/custom_nodes
git clone https://github.com/rethink-studios/comfyui-chord-desktop.git ComfyUI-Chord- Install dependencies:
# For Python version
pip install -r ComfyUI-Chord/requirements.txt
# Or for Windows portable version
..\..\python_embeded\python.exe -s -m pip install ComfyUI-Chord\requirements.txt-
Download chord_v1.safetensors from Hugging Face and place in
./ComfyUI/models/checkpoints -
Download Stable Diffusion 2.1 - it will be cached automatically on first run
Windows (Quick):
# Double-click this file in the ComfyUI-Chord folder
UPDATE.batManual:
cd C:\ComfyUIData\custom_nodes\ComfyUI-Chord
git pull origin mainThis Desktop Edition provides three custom nodes:
- Chord - Load Model: Load the Chord model checkpoint
- Chord - Material Estimation: Estimate PBR materials from texture images
- Chord - Normal to Height: Convert normal maps to height maps
This Desktop Edition includes modifications to ensure compatibility with ComfyUI Desktop's Electron environment:
- Original: Used absolute imports (
from chord.module import ...) - Desktop Edition: Changed to relative imports (
from .module import ...) - Why: ComfyUI Desktop has different Python path handling; relative imports ensure the chord package can always find its internal modules
- Files modified:
chord/chord/__init__.pychord/chord/module/chord.pychord/chord/module/stable_diffusion.py
- Original: Simple module import in
__init__.py - Desktop Edition: Uses
importlibwith explicit path resolution and comprehensive error logging - Why: More reliable module loading across different ComfyUI environments
- Features added:
- Debug logging with
[ComfyUI-Chord]prefix - Detailed error messages with traceback
- Path verification before import
- Better error isolation
- Debug logging with
- Original: Used
sys.path.append() - Desktop Edition: Uses
sys.path.insert(0, ...) - Why: Ensures chord directory is checked first, preventing conflicts with other packages
- Original: May attempt HuggingFace API calls for Stable Diffusion 2.1
- Desktop Edition: Set
local_files_only=Trueby default instable_diffusion.py - Why: ComfyUI Desktop may block network requests; all models must be pre-cached locally
- Solution: Users run
download_sd21.batto pre-cache SD 2.1
- Added:
download_sd21.bat- One-click SD 2.1 downloader with progress bars - Added:
UPDATE.bat- Easy update script for Windows - Added: Comprehensive Desktop-specific documentation
- Original: Install to
ComfyUI/custom_nodes/ - Desktop Edition: Install to
C:\ComfyUIData\custom_nodes\ - Original: Uses portable Python or system Python
- Desktop Edition: Uses
C:\ComfyUIData\.venv\Scripts\python.exe
- β All core functionality is identical
- β Same model files (chord_v1.safetensors)
- β Same node interfaces and behavior
- β Same output quality and capabilities
- β Same license (Ubisoft Machine Learning License)
- β Same dependencies (omegaconf, diffusers, imageio, etc.)
- Use Desktop Edition if you're running ComfyUI Desktop (Electron app)
- Use Original if you're running standard ComfyUI Portable/Python
- Both work but Desktop Edition has specific fixes for the Desktop environment
You can load this workflow using the JSON file example_workflows/chord_image_to_material.json or by dropping the image in ComfyUI.
- Check ComfyUI Desktop console/logs for error messages (look for
[ComfyUI-Chord]) - Verify
chord_v1.safetensorsis in your checkpoints folder - Ensure Stable Diffusion 2.1 is cached - run
download_sd21.batif not - Check that all dependencies are installed
If you see import errors:
- Check the console logs for detailed error messages
- Verify all dependencies are installed:
pip install -r requirements.txt
- Ensure Stable Diffusion 2.1 is cached before using Chord nodes
- Run
download_sd21.batto download automatically - Check logs for "Loading Stable Diffusion 2.1 from local cache" messages
For more troubleshooting help, see COMFYUI_DESKTOP_SETUP.md
- COMFYUI_DESKTOP_SETUP.md - Manual setup options
- FIXES_FOR_COMFYUI_DESKTOP.md - Technical details of changes
- API_CALLS_ISSUE.md - HuggingFace API handling
- CHANGELOG.md - Version history
This project is released under the Ubisoft Machine Learning License (Research-Only - Copyleft). See the full terms in the LICENSE file.
Important: This Desktop Edition maintains the same license as the original work. All modifications are clearly marked, and attribution to Ubisoft is retained.
If you use this work, please cite the original paper:
@inproceedings{ying2025chord,
author = {Ying, Zhi and Rong, Boxiang and Wang, Jingyu and Xu, Maoyuan},
title = {Chord: Chain of Rendering Decomposition for PBR Material Estimation from Generated Texture Images},
year = {2025},
isbn = {9798400721373},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3757377.3763848},
doi = {10.1145/3757377.3763848},
booktitle = {Proceedings of the SIGGRAPH Asia 2025 Conference Papers},
articleno = {164},
numpages = {11},
keywords = {Appearance Modeling, Material Generation, Texture Synthesis, SVBRDF, Image-conditional Diffusion Models},
series = {SA Conference Papers '25}
}
- Ubisoft LaForge - Original ComfyUI-Chord implementation
- RETHINK Studios - Desktop Edition compatibility fixes and enhancements
If you encounter any issues:
- Check the Troubleshooting section above
- Review COMFYUI_DESKTOP_SETUP.md
- Check ComfyUI Desktop logs for
[ComfyUI-Chord]messages - Open an issue on GitHub with:
- ComfyUI Desktop version
- Error messages from logs
- Steps to reproduce
Β© [2025] Ubisoft Entertainment. All Rights Reserved.
Desktop Edition modifications Β© [2025] RETHINK Studios.
