Step-by-step guide for installing ComfyUI - Sonoma 14.1.1 on M1
- Install Xcode Command Line Tools:
xcode-select --installsince I had a fresh install of Sonoma - Accept Xcode license:
sudo xcodebuild -license accept - Update Homebrew:
brew update --auto-update - Install Miniconda:
brew install --cask miniconda - Check your
.zshrcif the conda init was added properly - Source your
.zshrcfile:source ~/.zshrc - Check if Conda installed successully
conda --version - Install requirements to use ComfyUI:
conda install pytorch torchvision torchaudio -c pytorch-nightly - Verify the installation:
conda list(check for pytorch, torchvision, and torchaudio) - Test if PyTorch utilizes the MPS backend:
- Open an editor and paste the following script, save as
mps_check.py:import torch if torch.backends.mps.is_available(): mps_device = torch.device("mps") x = torch.ones(1, device=mps_device) print(x) else: print("MPS device not found.")
- Run the script:
python path/to/mps_check.py - If you get the output
tensor([1.], device='mps:0'), it indicates a successful installation.
- Open an editor and paste the following script, save as
- Clone the ComfyUI repository:
git clone git@github.com:comfyanonymous/ComfyUI.git - Change to the ComfyUI directory:
cd ComfyUI - Install requirements:
pip install -r requirements.txt - Start ComfyUI:
python main.py - Access ComfyUI in a web browser:
http://127.0.0.1:8188/ - Install ComfyUI Manager:
- Navigate to the custom nodes directory:
cd custom_nodes - Clone ComfyUI Manager:
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
- Navigate to the custom nodes directory:
- Restart ComfyUI:
ctrl+c, thenpython main.py - Open ComfyUI Manager in ComfyUI and install "Steerable Motion":
- Restart ComfyUI when prompted (
ctrl+c, thenpython main.py)
- Restart ComfyUI when prompted (
- Download and drag the JSON file to ComfyUI:
https://raw.githubusercontent.com/banodoco/steerable-motion/main/demo/creative_interpolation_example.json - Note any missing custom nodes as indicated by ComfyUI.
- Install missing custom nodes via ComfyUI Manager.
I hope this helps someone else!