create account

介绍一下stable diffusion在本地电脑上的安装 by cheva

View this thread on: hive.blogpeakd.comecency.com
· @cheva · (edited)
$3.57
介绍一下stable diffusion在本地电脑上的安装
<center>![tmpv7fesn96.png](https://cdn.steemitimages.com/DQmRUrc4RFC2ZjNaZRyaypdu1oxuYhCmR6sWzjLg5oYzVjK/tmpv7fesn96.png)</center>
题图作者:Cheva(用AI创作)

最近这一两个月,AI绘画似乎爆发式的发展起来了。而这一切的起点是一个叫做stable diffusion的模型被它的开发公司给开源了,也就是说每个人都可以拿来免费使用。当然被开源的只是模型,而所谓的AI模型,简单的说就是神经网络的数据集合。这套模型有几千万个神经元吧,每个神经元对应着很多个权重和偏置数值。打个比方模型就是AI的大脑,由数量巨大的神经元组成。但是想让大脑来画画还得把它装进身体里。而这个身体就是用户界面。网上和stable diffusion适配的界面很多。用的最广泛的好像是这个网名叫做 Automatic 1111的作者开发的web UI。这套用户界面的设置和功能非常多,很好用。这里就说一说安装过程。有兴趣的可以参考,我自己也做一个记录也。以后好备查。

其实。这个外部UI的安装还是很简单的。但是还也没有简单到像普通软件那样,双击运行安装程序就行了的地步。首先你得在电脑上安装以下几个程序员必备软件,第1个是。第2个就是大名鼎鼎的编程语言python。这里作者指定安装3.10版。不要安装最新的3.11版。剩下的操作步骤就很简单了。

首先第1步就是使用git把外部UI的源文件全部都克隆到本地文件夹里面。
`git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui`
第2步就是去下载  AI模型。下载AM型的地址在huggingface.co这个网站。这里推荐下1.4版的或者1.5版的模型。2.0版,现在还不不能在automatic1111的webui中使用。而且根据最近最新的评测。2.0版为了规避法律问题,用来训练的数据集变得更少了,效果还不如之前这两个的版本。只是功能更强大。
1.5版模型下载地址:
https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main
将下载下来的模型文件拷贝到。Web UI文件夹下面的models文件夹内的stablediffusion文件里面。
最后一步就是双机运行webui-user.bat这个文件。然后程序就会自动的去配置下载相关的依赖文件。这个过程耗时很长,需要耐心等待。

安装过程虽然还算简单,但是因为这些安装文件和安装过程中需要下载的文件,体积都比较大,而且大多位于国外的服务器上面。由于众所周知的原因,从国内访问这些网站的速度都很慢,或者根本就不能访问。所以在安装过程中经常会碰到搞错或失败的情况。这个时候不要气馁,只能反复试,或者使用科学上网的方式。
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 126 others
👎  
properties (23)
authorcheva
permlinkstable-diffusion
categoryhive-105017
json_metadata{"links":["https://github.com/AUTOMATIC1111/stable-diffusion-webui","https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main"],"image":["https://cdn.steemitimages.com/DQmRUrc4RFC2ZjNaZRyaypdu1oxuYhCmR6sWzjLg5oYzVjK/tmpv7fesn96.png"],"tags":["hive-105017","cn","cn-reader","palnet","neoxian","life","lifestyle","creativecoin","art","ai"],"description":"最近这一两个月,AI绘画似乎爆发式的发展起来了。而这一切的起点是一个叫做stable","app":"ecency/3.0.29-vision","format":"markdown+html","thumbnails":["https://cdn.steemitimages.com/DQmRUrc4RFC2ZjNaZRyaypdu1oxuYhCmR6sWzjLg5oYzVjK/tmpv7fesn96.png"]}
created2022-11-26 13:11:12
last_update2022-11-26 13:44:00
depth0
children2
last_payout2022-12-03 13:11:12
cashout_time1969-12-31 23:59:59
total_payout_value1.802 HBD
curator_payout_value1.770 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,239
author_reputation260,347,166,575,788
root_title"介绍一下stable diffusion在本地电脑上的安装"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,629,639
net_rshares7,379,046,365,898
author_curate_reward""
vote details (191)
@ecency ·
**Yay!** 🤗<br>Your content has been **boosted with Ecency Points**, by @cheva. <br>Use Ecency daily to boost your growth on platform! <br><br><b>Support Ecency</b><br>[Vote for new Proposal](https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B197%5D&approve=true)<br>[Delegate HP and earn more](https://ecency.com/hive-125125/@ecency/daily-100-curation-rewards)
properties (22)
authorecency
permlinkre-20221127t6857636z
categoryhive-105017
json_metadata{"tags":["ecency"],"app":"ecency/3.0.20-welcome","format":"markdown+html"}
created2022-11-27 06:08:57
last_update2022-11-27 06:08:57
depth1
children0
last_payout2022-12-04 06:08:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length375
author_reputation549,971,523,763,655
root_title"介绍一下stable diffusion在本地电脑上的安装"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,646,794
net_rshares0
@marygong77777 · (edited)
厉害👍👍
properties (22)
authormarygong77777
permlinkre-cheva-20221126t214338982z
categoryhive-105017
json_metadata{"tags":["hive-105017","cn","cn-reader","palnet","neoxian","life","lifestyle","creativecoin","art","ai"],"app":"ecency/3.0.34-mobile","format":"markdown+html"}
created2022-11-26 13:43:42
last_update2022-11-26 13:43:48
depth1
children0
last_payout2022-12-03 13:43:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4
author_reputation205,544,035,051,490
root_title"介绍一下stable diffusion在本地电脑上的安装"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,630,180
net_rshares0