How to Upgrade ComfyUI

This guide will walk you through upgrading ComfyUI. The process varies based on how ComfyUI was installed, so not all upgrade methods may be covered here.

We will discuss the following methods for upgrading ComfyUI:

  1. Upgrading ComfyUI for Windows users with the official portable version.
  2. Upgrading ComfyUI for users who installed it manually using Git.
  3. Upgrading 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.

Upgrading ComfyUI for Windows Users with the Official Portable Version

  1. Navigate to the ComfyUI installation directory and find 你的安装目录\ComfyUI_windows_portable\update\update_comfyui.bat.
  2. Double-click update_comfyui.bat to run the update script and wait for the process to complete.
  3. Once the update is finished, restart ComfyUI.

Dependencies and environment updates can be managed similarly.

Upgrading ComfyUI for Manual Git Installations

First, ensure that Git is installed on your computer and that you installed ComfyUI using Git.

  1. Open your command line tool and navigate to the ComfyUI directory with:
   cd your_installation_directory/ComfyUI
  1. 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

  1. Open aaaki ComfyUI Launcher and go to the Version Management section.
  2. In the Kernel tab, you’ll see the latest ComfyUI version along with the release date.
  3. Select the version you wish to upgrade to and switch accordingly.

Note: Screenshots and additional details will be updated in future revisions.