Update README.md

Consider that these instructions are easier to follow as they don't keep bouncing you around to different sites.
This commit is contained in:
lindsayfowler 2024-11-02 01:12:10 +11:00 committed by GitHub
parent cc9cf6d1bd
commit d698751b22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 4 deletions

View File

@ -188,10 +188,18 @@ Additional discussion and help can be found [here](https://github.com/comfyanony
You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.
1. Install pytorch nightly. For instructions, read the [Accelerated PyTorch training on Mac](https://developer.apple.com/metal/pytorch/) Apple Developer guide (make sure to install the latest pytorch nightly).
1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux.
1. Install the ComfyUI [dependencies](#dependencies). If you have another Stable Diffusion UI [you might be able to reuse the dependencies](#i-already-have-another-ui-for-stable-diffusion-installed-do-i-really-have-to-install-all-of-these-dependencies).
1. Launch ComfyUI by running `python main.py`
In Terminal, cd into your desired installation folder.
```git clone https://github.com/comfyanonymous/ComfyUI.git```
```cd ComfyUI```
Make a virtual environment:
```python3.12 -m venv .venv```
```source .venv/bin/activate```
Install the Nightly build of pytorch (must be this build or installing requirements will fail):
```pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu```
Install requirements
```pip install -r requirements.txt```
Run
```python main.py```
> **Note**: Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in [ComfyUI manual installation](#manual-install-windows-linux).