mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-07 07:42:32 +08:00
Update README
This commit is contained in:
parent
49ee4128e2
commit
fa019a8204
46
README.md
46
README.md
@ -49,23 +49,45 @@ Just download, extract and run. Make sure you put your Stable Diffusion checkpoi
|
||||
|
||||
To run it on colab or paperspace you can use my [Colab Notebook](notebooks/comfyui_colab.ipynb) here: [Link to open with google colab](https://colab.research.google.com/github/comfyanonymous/ComfyUI/blob/master/notebooks/comfyui_colab.ipynb)
|
||||
|
||||
## Manual Install (Windows, Linux)
|
||||
|
||||
Git clone this repo.
|
||||
|
||||
Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
|
||||
|
||||
Put your VAE in: models/vae
|
||||
|
||||
At the time of writing this pytorch has issues with python versions higher than 3.10 so make sure your python/pip versions are 3.10.
|
||||
|
||||
Then, run the following command to install comfyui into your current environment:
|
||||
## Manual Install (Windows, Linuxm, macOS)
|
||||
|
||||
1. Clone this repo:
|
||||
```
|
||||
git clone https://github.com/comfyanonymous/ComfyUI.git
|
||||
cd ComfyUI
|
||||
```
|
||||
|
||||
2. Put your Stable Diffusion checkpoints (the huge ckpt/safetensors files) into the `models/checkpoints` folder. You can download SD v1.5 using the following command:
|
||||
```shell
|
||||
curl -L https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt -o ./models/checkpoints/v1-5-pruned-emaonly.ckpt
|
||||
```
|
||||
|
||||
3. Put your VAE into the `models/vae` folder.
|
||||
|
||||
4. (Optional) Create a virtual environment:
|
||||
1. Create an environment:
|
||||
```shell
|
||||
python -m virtualenv venv
|
||||
```
|
||||
2. Activate it:
|
||||
|
||||
**Windows:**
|
||||
```pwsh
|
||||
Set-ExecutionPolicy Unrestricted -Scope Process
|
||||
& .\venv\Scripts\activate.ps1
|
||||
```
|
||||
|
||||
**Linux, macOS and bash/busybox64.exe on Windows:**
|
||||
```shell
|
||||
source ./venv/bin/activate
|
||||
```
|
||||
|
||||
5. Then, run the following command to install `comfyui` into your current environment. This will correctly select the version of pytorch that matches the GPU on your machine (NVIDIA or CPU on Windows, NVIDIA AMD or CPU on Linux):
|
||||
```shell
|
||||
pip install -e .
|
||||
```
|
||||
|
||||
This will correctly select the version of pytorch that matches the GPU on your machine (NVIDIA or CPU on Windows, NVIDIA AMD or CPU on Linux).
|
||||
|
||||
|
||||
#### Troubleshooting
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user