Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmelyne/215d6dcc94b813dd3c7fa8b1fed767ff to your computer and use it in GitHub Desktop.
Save carmelyne/215d6dcc94b813dd3c7fa8b1fed767ff to your computer and use it in GitHub Desktop.
Step-by-step guide for installing ComfyUI - Sonoma 14.1.1 on M1

Step-by-step guide for installing ComfyUI - Sonoma 14.1.1 on M1

  1. Install Xcode Command Line Tools: xcode-select --install since I had a fresh install of Sonoma
  2. Accept Xcode license: sudo xcodebuild -license accept
  3. Update Homebrew: brew update --auto-update
  4. Install Miniconda: brew install --cask miniconda
  5. Check your .zshrc if the conda init was added properly
  6. Source your .zshrc file: source ~/.zshrc
  7. Check if Conda installed successully conda --version
  8. Install requirements to use ComfyUI: conda install pytorch torchvision torchaudio -c pytorch-nightly
  9. Verify the installation: conda list (check for pytorch, torchvision, and torchaudio)
  10. 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.
  11. Clone the ComfyUI repository: git clone git@github.com:comfyanonymous/ComfyUI.git
  12. Change to the ComfyUI directory: cd ComfyUI
  13. Install requirements: pip install -r requirements.txt
  14. Start ComfyUI: python main.py
  15. Access ComfyUI in a web browser: http://127.0.0.1:8188/
  16. Install ComfyUI Manager:
    • Navigate to the custom nodes directory: cd custom_nodes
    • Clone ComfyUI Manager: git clone https://github.com/ltdrdata/ComfyUI-Manager.git
  17. Restart ComfyUI: ctrl+c, then python main.py
  18. Open ComfyUI Manager in ComfyUI and install "Steerable Motion":
    • Restart ComfyUI when prompted (ctrl+c, then python main.py)
  19. Download and drag the JSON file to ComfyUI: https://raw.githubusercontent.com/banodoco/steerable-motion/main/demo/creative_interpolation_example.json
  20. Note any missing custom nodes as indicated by ComfyUI.
  21. Install missing custom nodes via ComfyUI Manager.

I hope this helps someone else!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment