Benjamin's Technology Notebook
The project logs, technical runbooks, and problem-solving notes behind Ben’s engineering builds.
Project maintained by bentay85
Hosted on GitHub Pages — Theme by mattgraham
Migrating to a Fresh ComfyUI Install
Introduction
The ComfyUI install folder can get bloated with the install of custom nodes, models, Python packages that are no longer in use. I wanted to migrate my ComfyUI install to a fresh install and upgrade Python and PyTorch versions in my virtual environment at the same time. The fresh install of ComfyUI was done with the following software versions:
- Python: 3.12.11
- ComfyUI: 0.10.0
- PyTorch: 2.9.1+cu130
Fresh Install Procedure
This procedure assumes the Windows 11 operating system, git and uv have been installed.
- Rename old ComfyUI install folder
- Clone the latest version of ComfyUI:
git clone https://github.com/Comfy-Org/ComfyUI.git
- Change into the ComfyUI directory:
cd ComfyUI
- Create UV virtual environment:
uv venv --seed (the –seed flag installs pip)
- Activate Virtual Environment:
.venv\Scripts\activate
- Install Torch:
pip install torch==2.9.1 torchvision==0.24.1 torchaudio==2.9.1 --index-url https://download.pytorch.org/whl/cu130 (Check torch version for ComfyUI install, it will get overwritten with CPU version if not compatible with the rest of the packages)
- Install ComfyUI requirements:
pip install -r requirements.txt
- Install Triton for Windows:
pip install triton-windows
- Install Huggingface Xet storage backend support: ‘pip install huggingface_hub[hf_xet]’
- I am skipping sage attention as it gives errors with LTX-2
- Change Directory:
cd custom_nodes
- Clone ComfyUI manager:
git clone https://github.com/Comfy-Org/ComfyUI-Manager.git
- Change Directory:
cd ComfyUI-Manager
- Install ComfyUI manager requirements:
pip install -r requirements.txt
Migration of Models and Workflows
- Copy models from old models directory
- Copy workflows from old user\default\workflows directory
First Launch
- Go back to base directory:
cd .. (run twice)
- Launch ComfyUI:
python main.py --auto-launch --reserve-vram 1
- Load workflows and install missing custom nodes, some common ones I use: ComfyUI-Custom-Scripts, ComfyUI-KJNodes, ComfyUI-VideoHelperSuite, ComfyMath
- Restart ComfyUI and test workflows
Pinning ComfyUI to the Windows 11 Taskbar
- Create a bat file to launch ComfyUI:
uv run main.py --auto-launch --reserve-vram 1
- Create a shortcut to the bat file and change target to:
C:\Windows\System32\cmd.exe /c "D:\ComfyUI\comfyui.bat" (only executables can be pinned to task bar)
- Assign icon to shortcut
- Drag and drop shortcut to task bar
Links
- woct0rdho (Triton and Sage Attention Windows): link
← Back to Home