14

mac搭建Stable Diffusion Webui

 1 year ago
source link: https://zsmhub.github.io/post/ai/mac%E6%90%AD%E5%BB%BAstable-diffusion-webui/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

mac搭建Stable Diffusion Webui

2023-03-30 约 770 字 预计阅读 2 分钟

mac安装教程

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon

./webui.sh --skip-torch-cuda-test --precision full --no-half

绘画模型下载平台

模型,别人训练好的绘画范本

https://civitai.com

https://huggingface.co

prompt 生成器

http://www.atoolbox.net/Category.php?Id=32

可以简单把 LoRA 当成风格滤镜来理解。在 Prompt 中加入 LoRA 引用,即能大幅改变算图的结果,甚至也能同时套用多个 LoRA 来取得混合风格。使用上比单纯更换 model 或作 checkpoint merge 更有弹性且多变。

如何安装 LoRA 到Stable Diffusion WebUI

  1. 将下载好的LoRA 档案放入 stable-diffusion-webui/models/Lora 资料夹中即可。

  2. 回到WebUI,点一下Refresh 就能看到新增的LoRA

    LoRA

如何使用LoRA

  1. 点想要套用的LoRA,WebUI 会自动把LoRA 的名称加入Prompt 中。如果熟悉名称也能直接键入节省时间

    img
  2. LoRA 名称冒号旁边的数字是权重,可以想像成套用的比例,数字越大效果越明显,反之则越弱。

    img

同时套用两个LoRA

只需调整两个 LoRA 的权重比例即可。

如:a girl, pink hair, lora:yaeMikoRealistic_yaemikoMixed:0.75, lora:koreanDollLikeness_v15:0.25

  1. 打开stable diffusion webui,进入"Extensions"选项卡
  2. 点击"Install from URL",注意"URL for extension’s git repository"下方的输入框
  3. 粘贴或输入本Git仓库地址:https://github.com/VinsonLaro/stable-diffusion-webui-chinese
  4. 点击下方的黄色按钮"Install"即可完成安装,然后重启WebUI
  5. 点击"Settings",左侧点击"User interface"界面,在界面里最下方的"Localization (requires restart)“,选择"Chinese-All"或者"Chinese-English”
  6. 点击界面最上方的黄色按钮"Apply settings",再点击右侧的"Reload UI"即可完成汉化

文章作者 ZsmHub

上次更新 2023-03-30

许可协议 CC BY-NC-ND 4.0

下一篇


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK