Skip to content

Instantly share code, notes, and snippets.

@computationalmama
Last active August 26, 2024 18:04
Show Gist options
  • Save computationalmama/7397ab25648b2ce301603875789c0137 to your computer and use it in GitHub Desktop.
Save computationalmama/7397ab25648b2ce301603875789c0137 to your computer and use it in GitHub Desktop.
How to install comfyUI on mac

NOTE: For this you need conda installed.

NOTE: This is for the first time install only!

1. Build a conda enviroment with python 3.11

Change myenv to whatever environment name of your choice

conda create --name myenv python=3.11 -y
conda activate myenv

2. Install pytorch for mac

conda install pytorch torchvision torchaudio -c pytorch-nightly

ref: https://developer.apple.com/metal/pytorch/

3. Install comfyui

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

4. Install the dependencies

cd ComfyUI
pip install -r requirements.txt

5. Install comfyui manager

cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git

6. Add your models in the right folders

  • Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
  • Put your VAE in: models/vae

7. Run ComfyUI

Go back to the comfyui folder

cd ..
python main.py

8. Open in web browser:

http://127.0.0.1:8188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment