Stable-Diffusion-webui mac m1安装

Stable-Diffusion-webui mac m1安装

推荐下载器:neat download manager

安装git python 3.10

下载地址:https://github.com/AUTOMATIC1111/stable-diffusion-webui

在这里插入图片描述

我这边是通过pycharm 通过git直接拉取到本地的,下载的,最好先建立个gitee仓库 下载迅速(考虑到网速问题)

在这里插入图片描述

在苹果终端输入sudo apt install wget git python3 python3-venv

通过brew install wget git python3 但是python3-venv 报错需要用到java

遇到了需要安装java 的问题,但是问题没解决(好像没有影响)

在终端找到/Users/kekeyy/PycharmProjects/pythonProject/stable-diffusion-webui/webui.sh 使用方法:./webui.sh

正常安装,遇到gfpgan开始报错:

推荐查看:使用stable diffusion webui时,安装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下载 相关的zip文件,我遇到了 GFPGAN k-diffusion-mapsopen_clip-main 如下的包都下载不了,只能够自己安装(开源者使用了很多相关的python 库)

在这里插入图片描述

无法安装gfpgan等的原因是网络问题,解决方法是直接到github下载 GFPGAN 代码到本地,并进行本地安装。

安装方法:

在这里插入图片描述

1/解压包放入

/Users/aa/PycharmProjects/pythonProject/stable-diffusion-webui/test/scripts

2终端进入GFPGAN 文件夹找到requirements.txt 输入: pip install -r requirements.txt

3终端进入找到setup.py 输入: python setup.py develop

(python 和pip 设置为直接调用)

没有报错就成功了,继续使用方法:./webui.sh

后边遇到:模型下载问题

推荐(Stable Diffusion 官方模型V1.5版本下载)

https://openai.wiki/stable-diffusion-model-v1-5.html

在这里插入图片描述

网速不好建议用这里的,我的放置路径/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

基本上就安装成功了

在这里插入图片描述

报错:No module ‘xformers’. Proceeding without it

方案:安装pip install xformers(这里还有个版本问题,建议搜索下)

路径:PycharmProjects/pythonProject/stable-diffusion-webui

启动程序:./webui.sh –xformers(测试使用这个命令,生成图像可能会报错,暂时还没解决)

Warning: caught exception ‘Torch not compiled with CUDA enabled’, memory monitor disabled 这个问题目前还没有解决

大概的流程建议:https://blog.csdn.net/cycyc123/article/details/129165844

模型推荐网址:

https://civitai.com/

https://zhuanlan.zhihu.com/p/631089077

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/3490504734.html