1.StableDiffusion网页版
无需注册,输入英文关键词即可一次生成多个图像!没有高级选项!适合初体验
下拉页面看到如图所示部分,在上方提示处输入英文关键词,点击右侧按钮即可生成,下方右侧三角展开后可以做简单的基础设置
![image.png image.png](https://img.games.wanmei.com/top/dyn/v/p/a/ba425f9f0b714518be8b05d927d55aa8.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/j/r/q/e66bc3bdcf95461eb30c7bc415bc9367.png)
继续下拉可打开关键词数据库,可以获得更多灵感提示
![image.png image.png](https://img.games.wanmei.com/top/dyn/d/f/a/6f2e0ef13f55499b8aa06b7766506fc2.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/k/d/w/9101f74233274c53ae40ee2fbf107b82.png)
2.Dream Studio
Stable Diffusion、Stability AI 的创造团队出品,会及时更新模型
![image.png image.png](https://img.games.wanmei.com/top/dyn/w/a/m/1c433615afa94b298ff71ad6c6870707.png)
它不是免费的,但在注册时会获得一些免费积分,不同设置会消耗的积分不等,步骤越多消耗积分越多
在下方框内输入英文关键词,右边可以简单调整参数,点击Dream即可生成图片
![image.png image.png](https://img.games.wanmei.com/top/dyn/n/d/d/1b3a7ca4070448af8960523ec13a1f9c.png)
左边菜单栏可以查看历史作品,关键词指导手册等其他相关信息,点开看看?
![image.png image.png](https://img.games.wanmei.com/top/dyn/o/q/u/94e1c005d5a14dcdb2f4d94359e7643c.png)
左侧可以看到付费情况、版权条款等
![image.png image.png](https://img.games.wanmei.com/top/dyn/z/d/w/ad398e35e78d47e0ad5674fc69795c85.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/d/o/o/f5b1bde5c7784c6aa0450053acffcbc6.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/y/b/g/d13239c7699342d594f430fe475f53d0.png)
——————————————————————————
AI绘图工具指南-StableDiffusion 进阶教程
(完美专属绿色版部署)
1.检查电脑硬件
你的显卡是Nvidia的吗?
StableDiffusion在Nvidia显卡上运行是最流畅的。
如果是AMD或Intel的显卡,建议关掉这个页面,使用其他网页版AI绘图方式,效果也不错哦
你的Nvidia显卡是8GB显存,GTX 10系列以上吗?
这是StableDiffusion流畅运行的最低要求,实在无法达到可以尝试上一步提到的极简体验,或使用其他AI绘图工具。
2.部署python环境
点开下面的链接,找到python的安装包
\\10.12.0.151\homes\@DH-OA\3\guofan116237-54959\AI\Py3.0以及CUDA
![image.png image.png](https://img.games.wanmei.com/top/dyn/d/r/l/d5eca05e4290481aadc79498dc9fba08.png)
复制到本地后,双击安装包,二个选项都要勾选,可以选择第一行,开始默认安装
![image.png image.png](https://img.games.wanmei.com/top/dyn/w/e/z/1dfd1d4489b24cacb321686af97b286d.png)
如果想选第二个自定义安装,建议后续选择如下图,安装路径可以自定,点击安装
![image.png image.png](https://img.games.wanmei.com/top/dyn/p/z/x/0422b74577454b4483fd677080fe1dc9.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/n/w/n/eb89c6347ea04ec09ffc0209b3970cac.png)
安装成功!关闭窗口
![image.png image.png](https://img.games.wanmei.com/top/dyn/a/u/g/bfba28241f7840b1b49f26f7f834a81a.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/c/e/b/d2a388ee811b4971ae8494e6bf4ed167.png)
3.安装CUDA
点开下面的链接,找到安装包
\\10.12.0.151\homes\@DH-OA\3\guofan116237-54959\AI\Py3.0以及CUDA
![image.png image.png](https://img.games.wanmei.com/top/dyn/a/t/w/4bce04885d3044fb958c1d4082cc6d41.png)
复制到本地后,双击安装包,将看到一个窗口,在安装cuda时,第一次会让你设置临时解压目录,可以用默认的,也可以自定义。安装结束后,这个临时解压文件夹会自动删除
![image.png image.png](https://img.games.wanmei.com/top/dyn/j/x/t/ba463c8166eb44c0b36944af557c9203.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/m/r/b/8ad6b00263854dbabdc5fae0b43c753c.png)
当以下界面弹出后,便开始了第二次安装,这时可以重新设置安装目录,安装目录,建议默认即可
![image.png image.png](https://img.games.wanmei.com/top/dyn/o/c/a/536df8ea8c2e43b19a53d5d6cc7d7250.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/b/w/p/a00bf175563e4091b29c62c4d2487f34.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/v/g/t/8d9be93d5ffe4dc88b0bbde0b6977dc5.png)
如果想默认路径,就一直点击下一步(建议默认),当然也可以选择自定义,之后等待安装完成,点击下一步后关闭窗口
![image.png image.png](https://img.games.wanmei.com/top/dyn/e/l/y/0f10eb3bee6649dc80d4748eceab3868.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/z/y/l/9ddca43e595a4d9fa5e371e9d2b74bfc.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/q/h/s/77f43e89e4824e548f89cc500995764c.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/x/h/o/66f16e6887ee4d92857bc1d363bbe318.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/o/w/b/a789fb4434ad4116b8ed2336a3b64afd.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/z/x/p/6ed835cb4175457098e6b7709fc90399.png)
安装成功!关闭窗口
(可选)注册一个NVIDIA账户后,验证邮箱登陆
![image.png image.png](https://img.games.wanmei.com/top/dyn/k/a/f/6708ecf918f5425daa5d6b05915b9889.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/i/v/s/9ceb2bda3db64c16a7db5b7205f532c4.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/c/w/j/e2836d4489ff43faa9b6b94c40a0cf6a.png)
(可选)检验安装步骤
检查环境变量,点击开始-设置,在搜索栏里输入“高级系统设置”,点击下方出现的选项
![image.png image.png](https://img.games.wanmei.com/top/dyn/g/c/i/294db79f17eb4748a1a8055dcfe0a118.png)
弹出系统属性窗口,找到“环境变量”
![image.png image.png](https://img.games.wanmei.com/top/dyn/s/x/m/9279ec6af9a24dd98362163b6d9c713e.png)
点击后,打开新的窗口,检查我们刚刚安装的CUDA有没有,如有即可关掉窗口
![image.png image.png](https://img.games.wanmei.com/top/dyn/s/t/z/16d6c5dc345948e48c512924ebab947e.png)
检查是否安装成功,在开始的搜索框输入cmd,调出命令提示符,输入输入nvcc --version后按回车键,即可查看版本号,输入set cuda,可以查看 CUDA 设置的环境变量
![image.png image.png](https://img.games.wanmei.com/top/dyn/e/t/t/67d6fa684034425c9091f591810fdcc7.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/n/t/q/1cc44ae860b9499fbbeadada97488aa7.png)
4.部署完美绿色版StableDiffusion
点开以下链接,将压缩包复制到你的电脑上,任何一个你想放的位置(别放桌面就好),并且解压缩
\\10.12.0.151\homes\@DH-OA\3\guofan116237-54959\AI
![image.png image.png](https://img.games.wanmei.com/top/dyn/q/x/k/288aee552cef45049074b4ee8b1526d3.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/p/j/v/b6de6921f61d4bb1931c65b94c2bebc4.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/f/g/b/96b4c67411794bf583d146d47ba16377.png)
打开文件夹,下拉找到符合你电脑显存的批处理文件,并双击打开
![image.png image.png](https://img.games.wanmei.com/top/dyn/p/q/o/cb09a50dcb444bb09a26c4ea9e2767be.png)
如何知道你电脑的显存:
在搜索栏里输cmd,打开命令提示符:
![image.png image.png](https://img.games.wanmei.com/top/dyn/g/k/m/a281f92503b74733ac3152c56963ccaa.png)
输入dxdiag后点击回车,如果弹出界面点击“是”:
![image.png image.png](https://img.games.wanmei.com/top/dyn/m/k/i/2d66098f193c4e1d8375a34c85803b51.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/m/h/u/4a36ebe68e814c36a2b5535e5448373d.png)
转到第二个“显示”选项卡,将会看到显示内存的信息:
![image.png image.png](https://img.games.wanmei.com/top/dyn/b/g/d/1f1967d3ee5642bfac76720ee3e8bb4e.png)
根据显示内存选择批处理文件
![image.png image.png](https://img.games.wanmei.com/top/dyn/r/r/l/fcd8a8e9a5e8466ca9ad0dacd86280f8.png)
双击符合显存的批处理文件,安装程序开始运行
![image.png image.png](https://img.games.wanmei.com/top/dyn/e/x/g/eb350574798e4d79bcf6b5d9f882f471.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/z/r/k/216a019aef57437c8e973808b18d9be3.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/l/c/r/9f4fe323117943d0b8f63522624e4418.png)
复制地址,粘贴到任意浏览器上
![image.png image.png](https://img.games.wanmei.com/top/dyn/u/u/b/ad7e7c241e824114aac2d97de7e02d22.png)
![image.png image.png](https://img.games.wanmei.com/top/dyn/h/d/v/72fdd5083b1a446ca2b830560b06eda9.png)
恭喜你!可以开始使用了,在使用期间千万不能关掉上一步打开的黑色窗口:
![image.png image.png](https://img.games.wanmei.com/top/dyn/r/x/n/4bd7b737082e4946bcecaf52e12ce888.png)
后续每一次使用时,都需要先运行符合显存的批处理文件,之后再打开地址,并且需要始终保持窗口打开
![image.png image.png](https://img.games.wanmei.com/top/dyn/b/r/x/e24fabd3e0314039a0b11c6572fef3c1.png)