comfyui安裝部署

---

tags:

? - comfyui

? - AI駕馭

---


# 下載??


[GitHub - comfyanonymous/ComfyUI: The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.](https://github.com/comfyanonymous/ComfyUI?tab=readme-ov-file)??


# 解壓??


# 使用??


下載大模型


## 大模型下載地址及存放位置??


### 下載地址


[Hugging Face – The AI community building the future.](https://huggingface.co)??

[Civitai: The Home of Open-Source Generative AI](https://civitai.com)??


### 存放位置??


?大模型??

```ComfyUI/models/checkpoints```??

Vae??

```ComfyUI/Models/vae ```??

Lora??

`ComfyUI\models\loras`


## 安裝依賴??


在 ComfyUI 文件夾中打開終端來安裝依賴項(xiàng),然后:??


```

pip install -r requirements.txt?


```?


Python 使用 pip 命令安裝時(shí),默認(rèn)使用的源是國外的網(wǎng)站,而國內(nèi)訪問比較慢,此時(shí)要換源,以下兩種方法換源。


方法一 (解決一次安裝):??

阿里源


```

pip install 要安裝的包名 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors. Aliyun. Com

```


## 開始使用


無 NVIDIA 的雙擊 `.bat` 文件??

有 NVIDIA 的擊 NVIDIA 那個(gè) `.bat` 文件


# 技巧


## 如何顯示高質(zhì)量預(yù)覽??


使用 --preview-method auto 啟用預(yù)覽。??

默認(rèn)安裝包含一種低分辨率的快速潛伏預(yù)覽方法。要使用 TAESD 啟用更高質(zhì)量的預(yù)覽,??

請下載??

taesd_decoder. Pth(用于 SD 1. X 和 SD 2. X)??

和 taesdxl_decoder. Pth(用于 SDXL)模型,??

并將它們放到 models/vae_approx 文件夾中。


安裝完成后,重啟 ComfyUI 以啟用高質(zhì)量預(yù)覽。??


## 插件??


存放在 `ComfyUI\custom_nodes\`??


### Manager??


?[GitHub - ltdrdata/ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager)??

goto `ComfyUI/custom_nodes` dir in terminal(cmd)


```?


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


```


Restart ComfyUI??

如果


```

Failed to connect to github.com port 443 after 21137 ms: Couldn't connect to server


```


在本地 git 使用下面這條命令直接解決問題


```

git config --global --unset http.proxy

```


### 漢化插件??


Translation??

![[Other/Image/comfyui插件Translation安裝.gif]]??

![[Other/Image/comfyui插件Translation切換中文.gif]]


### Efficiency 節(jié)點(diǎn)??


ControlNet??

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容