Stable-Diffusion-webui mac m1安裝
推薦下載器:neat download manager
安裝git python 3.10
下載地址:https://github.com/AUTOMATIC1111/stable-diffusion-webui
我這邊是通過pycharm 通過git直接拉取到本地的,下載的,最好先建立個(gè)gitee倉庫 下載迅速(考慮到網(wǎng)速問題)
在蘋果終端輸入sudo apt install wget git python3 python3-venv
通過brew install wget git python3 但是python3-venv 報(bào)錯(cuò)需要用到j(luò)ava
遇到了需要安裝java 的問題,但是問題沒解決(好像沒有影響)
在終端找到/Users/kekeyy/PycharmProjects/pythonProject/stable-diffusion-webui/webui.sh 使用方法:./webui.sh
正常安裝,遇到gfpgan開始報(bào)錯(cuò):
推薦查看:使用stable diffusion webui時(shí),安裝gfpgan失敗的解決方案(windows下的操作)(https://blog.csdn.net/weixin_40735291/article/details/129153398)
我蘋果的Scripts地址是:
/Users/aa/PycharmProjects/pythonProject/stable-diffusion-webui/test/scripts
第一種:pip install gfpgan -i https://pypi.mirrors.ustc.edu.cn/simple(如果有)
第二種:首先去github下載 相關(guān)的zip文件,我遇到了 GFPGAN k-diffusion-mapsopen_clip-main 如下的包都下載不了,只能夠自己安裝(開源者使用了很多相關(guān)的python 庫)
無法安裝gfpgan等的原因是網(wǎng)絡(luò)問題,解決方法是直接到github下載 GFPGAN 代碼到本地,并進(jìn)行本地安裝。
安裝方法:
1/解壓包放入
/Users/aa/PycharmProjects/pythonProject/stable-diffusion-webui/test/scripts
2終端進(jìn)入GFPGAN 文件夾找到requirements.txt 輸入: pip install -r requirements.txt
3終端進(jìn)入找到setup.py 輸入: python setup.py develop
(python 和pip 設(shè)置為直接調(diào)用)
沒有報(bào)錯(cuò)就成功了,繼續(xù)使用方法:./webui.sh
后邊遇到:模型下載問題
推薦(Stable Diffusion 官方模型V1.5版本下載)
https://openai.wiki/stable-diffusion-model-v1-5.html
網(wǎng)速不好建議用這里的,我的放置路徑/Users/kekeyy/PycharmProjects/pythonProject/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned.ckpt(供參考)
遇到:Installing requirements
Running on local URL: http://127.0.0.1:7863
基本上就安裝成功了
報(bào)錯(cuò):No module ‘xformers’. Proceeding without it
方案:安裝pip install xformers(這里還有個(gè)版本問題,建議搜索下)
路徑:PycharmProjects/pythonProject/stable-diffusion-webui
啟動(dòng)程序:./webui.sh --xformers(測試使用這個(gè)命令,生成圖像可能會(huì)報(bào)錯(cuò),暫時(shí)還沒解決)
Warning: caught exception ‘Torch not compiled with CUDA enabled’, memory monitor disabled 這個(gè)問題目前還沒有解決文章來源:http://www.zghlxwxcb.cn/news/detail-544894.html
大概的流程建議:https://blog.csdn.net/cycyc123/article/details/129165844
模型推薦網(wǎng)址:
https://civitai.com/
https://zhuanlan.zhihu.com/p/631089077文章來源地址http://www.zghlxwxcb.cn/news/detail-544894.html
到了這里,關(guān)于Stable-Diffusion-webui mac m1安裝的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!