How to Update ComfyUI
This guide will walk you through updating ComfyUI. The process varies based on how ComfyUI was installed, so not all update methods may be covered here.
We will discuss the following methods for updating ComfyUI:
- Updating ComfyUI for Windows users with the official portable version.
- Updating ComfyUI for users who have installed ComfyUI-Manager.
- Updating ComfyUI for users who installed it manually using Git.
- Updating ComfyUI for users using aaaki ComfyUI Launcher.
- ComfyUI Desktop, which uses an automatic update system. It will normally prompt you when a new version is available, or you can visit the ComfyUI Desktop Github repository to check for the latest version.
- How to update just the ComfyUI Web frontend.
Please note that methods 1, 2, and 4 require access to GitHub. If you’re in a region where GitHub access is restricted, you might need to set up a network proxy. For Windows users in China, using aaaki ComfyUI Launcher is generally recommended for easier management.
Updating ComfyUI for Windows Users with the Official Portable Version
- Navigate to the ComfyUI installation directory and find
Your installation directory\ComfyUI_windows_portable\update\update_comfyui.bat
. - Double-click
update_comfyui.bat
to run the update script and wait for the process to complete. - Once the update is finished, restart ComfyUI.
Dependencies and environment updates can be managed similarly.
Updating ComfyUI for users who have installed ComfyUI-Manager.
If you have installed ComfyUI-Manager, you can update comfyui with it.
Click the ComfyUI Manager icon in the system tray, then click Update ComfyUI
.
Updating ComfyUI for Manual Git Installations
First, ensure that Git is installed on your computer and that you installed ComfyUI using Git.
- Open your command line tool and navigate to the ComfyUI directory with:
cd your_installation_directory/ComfyUI
- Run the following command to pull the latest ComfyUI code:
git pull
This will update your local repository with the latest changes.
If you want to switch to a different version, you can use:
git log
This command will display the commit history, showing information like:
commit 0f9c2a78224ce3179c773fe3af63722f438b0613 (HEAD -> master, origin/master, origin/HEAD)
Author: comfyanonymous <[email protected]m>
Date: Wed Aug 14 23:08:54 2024 -0400
Try to fix SDXL OOM issue on some configurations.
commit 153d0a8142d14c6c0d71eb0ba98d3e09c7e7abea
Author: comfyanonymous <[email protected]m>
Date: Wed Aug 14 22:29:23 2024 -0400
Add a update/update_comfyui_stable.bat to the standalones.
The string after commit represents the commit hash. You can reset to a specific version using:
git reset --soft <commit-hash>
For example:
git reset --soft 153d0a8142d14c6c0d71eb0ba98d3e09c7e7abea
Generally, using the latest version should be sufficient unless you encounter specific issues.
After updating the version, the dependencies of ComfyUI might also change, especially the frontend (comfyui-frontend-package) which is now managed as a separate package. It’s recommended to run pip in your ComfyUI virtual environment to update the corresponding packages:
pip install -r requirements.txt
Upgrading ComfyUI for Users of aaaki ComfyUI Launcher
- Open aaaki ComfyUI Launcher and go to the
Version Management
section. - In the
Kernel
tab, you’ll see the latest ComfyUI version along with the release date, you can chosedevelopment version
orstable version
according to your need. - Select the version you want and switch accordingly.
The aaaki launcher(秋叶启动器) will automatically update ComfyUI dependencies after you switch versions.
How to Upgrade the ComfyUI Web Frontend
Currently, the ComfyUI Web frontend is managed using the comfyui-frontend-package
. You can check the update history of this package here.
The version requirements will be reflected in the ComfyUI/requirements.txt
file. ComfyUI may not necessarily use the latest version of the comfyui-frontend-package
, so if you want to use the latest version, you need to update it manually.
pip install comfyui-frontend-package --upgrade
This will allow you to update to the latest ComfyUI Web frontend, or you can specify a version to update to a specific version.
pip install comfyui-frontend-package==<version>
If you are using the ComfyUI Portable version, you only need to open the command line in the ComfyUI_windows_portable\
directory and run the following command:
python_embeded\python.exe -m pip install comfyui-frontend-package --upgrade
Alternatively, you can specify a version to update to a specific version.
python_embeded\python.exe -m pip install comfyui-frontend-package==<version>
If you are in China and encounter network issues, you can try using a domestic mirror for installation, such as adding the -i https://pypi.tuna.tsinghua.edu.cn/simple
parameter to use the Tsinghua University mirror.
python_embeded\python.exe -m pip install comfyui-frontend-package --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple