AMD芯片使用Stable-Diffusion

AMD芯片使用Stable-Diffusion

由于A卡的Stable Diffusion工具的逐步完善,之前只能使用CPU跑,现在已支持AMD显卡进行AI绘图。

下载

官网链接:https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs

按官方教程,我安装有异常情况,这里推荐使用:B站秋葉aaaki【AI绘画】Stable Diffusion A卡专用整合包(DirectML)

下载链接:

下载完成并解压后,目录如图:

启动器

在目录下,找到A启动器.exe,双击执行它。

在第一次启动时,这里会自动加载一些依赖项,耐心等待即可。。。

启动完成后,会进入主界面:

至此,启动器启动成功

修改生成引擎

高级选项------性能设置------生成引擎------选择DML XX

导入模型

有许多网站有各种大神分享的模型效果,我们看到适合的模型下载后即可导入模型。

Hugging Face
C站

  • 进入模型管理页面
  • 可以直接下载模型管理内的模型,也可以导入其他网站下载的模型
  • 点击添加模型

一键启动

  • 进入一键启动页面,点击一键启动
  • 启动后,会进入命令行,执行相应代码,安装所需依赖,如有任何问题在命令行里可以查看
  • 启动成功后,会看到这么一串地址
  • 复制地址,进入浏览器

至此,Stable Diffusion启动成功

开始AI绘图

输入正向提示词:

prompt 复制代码
masterpiece,illustration,best_quality,rosaria_\(genshin_impact\),<lora:rosaria_anything_v4:0.95>,nun,fishnet,shoulder_gloves,
bare_shoulder,bangs,(pray:1.2),hands together,sitting on floor,church,looking up,crying with eyes open,looking up,
<lora:Moxin_10:0.2>,<lora:LORAChineseDoll_chinesedolllikeness1:0.2>,<lora:tifaMeenow_tifaV2:0.5>,red hair,red eyes,headdress,
short hair,skinny,crown,
[after]{zoom_enhance mask="fingers" replacement="closeup hand" max_denoising_strength=0.2 precision=80}[/after],white gloves,

输入反向提示词:

prompt 复制代码
wrinkles Deformed eyes,((disfigured)),((bad art)),((deformed)),((extra limbs)),(((duplicated))),((morbid)),((mutilated)),
out of frame,extra fingers,mutated hands,poorly drawn eyes,((poorly drawn hands)),((poorly drawn face)),(((extra legs))),
(fused fingers),(too many fingers),(((long neck))),tiling,poorly drawn,mutated,cross-eye,canvas frame,frame,cartoon,3d,
weird colors,blurry,((old)),((ugly)),((child)),NG_DeepNegative_V1_75T,(extra hand:1.4),

点击生成,则使用显卡进行绘图,这里可以看看显卡是否在运行

至此,恭喜你getStable Diffusion初步使用。

相关推荐
layneyao21 小时前
AI艺术创作:Midjourney、Stable Diffusion与商业变现
人工智能·stable diffusion·midjourney
jerwey2 天前
Stable Diffusion:Diffusion Model
人工智能·stable diffusion
曲幽3 天前
零基础快速搭建AI绘画网站!用Gradio玩转Stable Diffusion
python·ai作画·stable diffusion·gradio·diffusers·webui
北上ing5 天前
从FP32到BF16,再到混合精度的全景解析
人工智能·pytorch·深度学习·计算机视觉·stable diffusion
Dovis(誓平步青云)6 天前
Cephalon端脑云:神经形态计算+边缘AI·重定义云端算力
图像处理·人工智能·学习·云原生·ai作画·边缘计算·机器翻译
源客z6 天前
搭建Stable Diffusion图像生成系统实现通过网址访问(Ngrok+Flask实现项目系统公网测试,轻量易部署)
stable diffusion
源客z7 天前
搭建 Stable Diffusion 图像生成系统并通过 Ngrok 暴露到公网(实现本地系统网络访问)——项目记录
stable diffusion
GoMaxAi7 天前
开源Midjourney替代方案:企业级AI绘画+PPT生成系统+AI源码
人工智能·ai作画·开源·自动化·aigc·powerpoint·midjourney
正在走向自律8 天前
AI数字人:品牌营销的新宠与增长密码(6/10)
人工智能·ai作画·aigc·ai写作·数字人·ai数字人
朴拙数科9 天前
Stable Diffusion秋叶整合包V4独立版Python本地API连接指南
开发语言·python·stable diffusion