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.
Please note that methods 1 and 2 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, using 秋叶启动器 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.
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.
Note: Screenshots and additional details will be updated in future revisions.