ComfyUI
ComfyUI copied to clipboard
Intel Mac help- ComfyUI for SD- Comfy UI will not launch
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.
- 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).
- Open Terminal:
Open the terminal app and type cd, hit space, then drag and drop the folder you just created.
- 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.”
- Install Python 3.11:
Once Homebrew is installed, you can use it to install Python 3.11. Run the following command:
brew install [email protected]
- Install pip3:
Type this command:
python3 -m pip install --upgrade setuptools
- 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…
- 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.
- 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.
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.
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…
Seems like you are not in the right directory. If you are not experienced with terminal try to use this script . It will automatically install all ComfyUI requirements and run it in browser.
Seems like you are not in the right directory. If you are not experienced with terminal try to use this script . It will automatically install all ComfyUI requirements and run it in browser.
hey, mate! Are you taking into account intel macs for this fast installation that you propose? :))
Seems like you are not in the right directory. If you are not experienced with terminal try to use this script . It will automatically install all ComfyUI requirements and run it in browser.
hey, mate! Are you taking into account intel macs for this fast installation that you propose? :))
Hi. Yes it has been tested on MacBook Pro Intel Core i9.
Thanks for your response. I have a Mac book pro (2013). 16 GB RAM but only 2 cores... I don't know if it will work for me. I'm searching for alternatives... Doing my best trying to not pay for another laptop xD
I followed the directions but it's still not working!!
It opens firefox but it wont connect
Seems like your disk is write protected and nothing can be saved. If you are using SD card check if that little lever is in forward position. Or change the directory of the ComfyUI-Installer app to non-write protected disk.
Thanks for your response. I have a Mac book pro (2013). 16 GB RAM but only 2 cores... I don't know if it will work for me. I'm searching for alternatives... Doing my best trying to not pay for another laptop xD
Yeah maybe you should :), if you are planing on play with AI locally on your machine.
It's not write protected- not a SD card, but my hard drive is weirdly partitioned.
How could I fix this?
is this something I need to do in disk utility? when I installed bootcamp I totally fucked up my hard drive partition, and I want to fix it ideally w/o a factory reset.