Comfy-Org / Comfy-Org/ComfyUI

Intel Mac help- ComfyUI for SD- Comfy UI will not launch

Open
#3,096 12 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

Hi all,

Im following the directions below for ComfyUI. Once I get to step 9, I can't launch the program. I get "no such file or directory" error. I'm running Sonoma 14.3 on a 2020 Macbook Pro.

1. Create a New Folder:

First, create a new folder in the home directory. You can find it in the menu bar on the top: Go > Home. I named it "AI" (this is our main folder for installing ComfyUI).

2. Open Terminal:

Open the terminal app and type cd, hit space, then drag and drop the folder you just created.

3. Install Homebrew:

Run the following command to install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"


When you press 'Return', it will ask for your password; just type your password and hit 'Return' (it won’t show that you are typing).

Then, you'll be asked to continue the process or not. Just hit the 'Return' key.


After it’s done, you might see this warning line:


Then type this command:

eval "$(/opt/homebrew/bin/brew shellenv)"

Then:

brew doctor

And you should get this message: “Your system is ready to brew.”

4. Install Python 3.11:

Once Homebrew is installed, you can use it to install Python 3.11. Run the following command:

brew install python@3.11

5. Install pip3:

Type this command:

python3 -m pip install --upgrade setuptools

6. Install Pytorch latest version:

Type this command:

pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu

7.Clone ComfyUI:

Clone the ComfyUI code on your local storage by running the following in Terminal:

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

8.Install the required packages for ComfyUI:

Type cd and drag and drop the "ComfyUI" folder inside the folder you created in the first step, then hit 'Return'.


Then type this command:

pip3 install -r requirements.txt

You might get an error similar to this:

ERROR: Could not find a version that satisfies the requirement transformers>=4.25.1 (from versions: 0.1, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.8.0, 2.9.0, 2.9.1, 2.10.0, 2.11.0, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.4.0, 3.5.0, 3.5.1, 4.0.0rc1, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.3.0rc1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.4.2, 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.7.0, 4.8.0, 4.8.1, 4.8.2, 4.9.0, 4.9.1, 4.9.2, 4.10.0, 4.10.1, 4.10.2, 4.10.3, 4.11.0, 4.11.1, 4.11.2, 4.11.3, 4.12.0, 4.12.1, 4.12.2, 4.12.3, 4.12.4, 4.12.5, 4.13.0, 4.14.0, 4.14.1, 4.15.0, 4.16.0, 4.16.1, 4.16.2, 4.17.0, 4.18.0)

ERROR: No matching distribution found for transformers>=4.25.1

To resolve the error, type this command:

cd /usr/local/bin; ls -l | grep python3.11

And then this command:

ln -s -f $(which python3.11) $(which python)

ln -s -f $(which python3.11) $(which python3)

ln -s -f $(which pip3.11) $(which pip)

ln -s -f $(which pip3.11) $(which pip3)

After these commands, pip, pip3, python3, python will invoke the version 3.11.

This command makes soft symlink:

ln -s

Then, go back and redo step 8…

9. Launch ComfyUI

Type this command:

python3.11 main.py

In the end, you’ll get a URL that you can use in your browser to launch ComfyUI.

And finally :

For reload, type cd and drag and drop the ComfyUI folder, then follow step 9.

10.Install a model for the stable diffusion

To start generating images, first we need a model.


First go to this link:

https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main

And download the file named ‘v1-5-pruned-emaonly.safetensors’. When it’s downloaded, drag the file and drop it into comfyUI > models > checkpoints.

11. Install ComfyUI manager

To install ComfyUI-Manager in addition to an existing installation of ComfyUI, you can follow the following steps:

Type cd, hit space and then drag and drop custom_nodes folder inside the comfyUI folder.

2.

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

3.Restart ComfyUI

ControlNet Installment tutorial

Now, let’s talk about ControlNet models. These are a bit different from the Stable Diffusion models we discussed earlier. While the Stable Diffusion models determine the overall style and look of the art, the ControlNet models give you more control over specific aspects of the generation process. Think of them as the fine-tuning knobs on your AI artist’s control panel.

As of now, all 14 models of ControlNet 1.1 are in beta testing, but they’re available for you to try out.

[Link](https://huggingface.co/lllyasviel/ControlNet-v1-1/tree/main?source=post_page-----f3c8a64ee67a--------------------------------)

Download the model files. You’ll need to download the ControlNet model files that end with “.pth” from the Stable Diffusion website. Make sure to save these files directly into the models folder.

Or you can download them directly from the comfyUI manager.

Install ControlNet Auxiliary Preprocessors

To install AUX preprocessors in addition to an existing installation of ComfyUI, you can follow the following steps:

Type cd, hit space and then drag and drop custom_nodes folder inside the comfyUI folder. Hit Return.

Then type this command:

git clone https://github.com/Fannovel16/comfy_controlnet_preprocessors

Then, Type cd, hit space and then drag and drop comfy_controlnet_preprocessors folder inside the custom nodes folder. Hit Return.

And then:

pip3 install -r requirements.txt

And now launch ComfyUI, double click and type “depth” and you should see, zoe-depthmap processor preprocessor…

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.