Install ComfyUI

Install ComfyUI#

Install ComfyUI on AMD GPUs.

Prerequisites#

Installation#

Follow these steps to install ComfyUI.

  1. Create and activate a Python virtual environment in a directory of your choice.

    python -m venv comfyui-venv
    comfyui-venv\Scripts\activate
    
  2. Install PyTorch (ROCm) wheels. See Install PyTorch for Ryzen APUs for install instructions.

  3. Clone the ComfyUI repository.

    git clone https://github.com/comfyanonymous/ComfyUI.git
    

    Note
    See ComfyUI Github for more information.

  4. Install ComfyUI requirements.

    pip install -r requirements.txt
    
  5. Load Stable Diffusion 3 model into the following folder.

    cd ComfyUI/models/checkpoints
    

    Note

    As an example, the sd3_medium_incl_clips.safetensors model can be added into this directory.
    This version already includes the clips, so only this download is needed. You may need to sign in and request access to the model

  6. Launch ComfyUI.

    Note
    Users must return to the home directory of the repository in order to run main.py.

    python main.py
    

    Click to URL to open ComfyUI in a browser.

    Note
    After running the above command, ensure that the Pytorch version seen in the terminal is the ROCm 6.4.4 specific one.

Example usage#

From the ComfyUI frontend, navigate to templates → Basic → Image Generation. Toggle to your downloaded model (ex. sd3_medium_incl_clips.safetensors) within the ‘Load Checkpoint’ node. PyTorch template