AxisZql’s blog
首页
搜索
归档
Reading List
留言
友情链接
随笔
axiszql
文章
29
分类
7
标签
51
Reading List
留言
友情链接
随笔
归档
搜索
分类
标签
技术分享
🚲最简单Stable diffusion webui 部署及Basil模型的使用
发布于: 2023-2-10
最后更新: 2023-2-10
次查看
AI
stable diffusion
AI绘画
category
type
status
date
slug
summary
tags
password
Property
Feb 10, 2023 03:04 PM
icon

环境准备

  • 操作系统:Windows10、Windows11均可
  • 显卡推荐Nvidia,显存至少4G以上
    • 可以在任务管理器下查看自身PC的显存是否满足条件
      notion image
  • 安装Git环境,下载地址如下:
    • Git - Downloading Package
      Click here to download the latest ( 2.39.1) 32-bit version of Git for Windows. This is the most recent maintained build. It was released 24 days ago, on 2023-01-17.
      Git - Downloading Package
      https://git-scm.com/download/win
      Git - Downloading Package
  • 安装python3.10.6,下载地址如下:
    • www.python.org
      https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
  • 下载basil_mix模型:
    • basil_mix 是比较火的亚洲脸型模型
      huggingface.co
      https://huggingface.co/nuigurumi/basil_mix/resolve/main/Basil_mix_fixed.safetensors
  • 下载vae-ft-mse-840000-ema-pruned.safetensors模型,可以通过更简短的prompts绘画出更好的效果,但是如果negative prompts过多也会产生负面影响。
  • 拉取stable diffusion webui的仓库代码
    • 如我拉取的代码存放文件路径如下:
      notion image

进入代码根目录安装运行依赖

  • 执行pip install -r requirement.txt安装python第三方依赖
    • notion image

加入模型

  • 将前面下载的basil mix和饥饿vae-ft-mse-840000模型放到stable diffusion webui代码的如下目录
    • notion image

运行webui-user.bat脚本启动服务

第一次运行由于需要安装相关依赖,依赖比较大,故等待时间较长,网络无问题的话等待时间在20min左右,如果依赖安装失败可以尝试一下用clash给powershell添加科学上网代理
notion image
notion image
  • 等待依赖安装成功后,服务正常启动
    • notion image
    • 如启动异常并提示share=True ,则修改代码modules目录下的shared.py代码文件如下位置,share的默认值为True即可
      • notion image

调整配置

  • 选择对应模型
    • notion image
  • 设置生成图片关键词和调整相关参数,最终配置可以参考我如下的配置
    • notion image
    • 关键词 RAW photo, subject, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3,Aestheticism,A girl wearing an (((Hoodies))) in a night chongqing,She has curly hair,((blusher)),arms behind back,[chinese],(upper body:1.1),Highly Detailed,(Feminine:1.4),(beautiful:1.3),(attractive:1.3),handsome,calendar pose,perfectly detailed eyes,thematic background,(Cyberpunk Art:1.5),(Photorealism:1.3),
      • Negative prompt: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck,watermark,signature,watermark,signature Steps: 25, Sampler: Euler a, CFG scale: 11, Seed: 3984448797, Size: 768x512, Model hash: 5bfcb6d935, Denoising strength: 0.1, Clip skip: 2, Hires upscale: 2, Hires steps: 25, Hires upscaler: R-ESRGAN General WDN 4xV3
  • 最终图片效果
    • notion image
  • 作者:axiszql
  • 链接:https://axiszql.com/article/stable-diffusion-webui-basil
  • 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
回溯算法中常见的去重策略及经典题目使用Docker compose部署es集群及kibana的使用
Loading...
目录
0%
环境准备进入代码根目录安装运行依赖加入模型运行webui-user.bat脚本启动服务调整配置
axiszql
axiszql
向往Rust、C++和Go的家伙!🐧
文章
29
分类
7
标签
51
最新发布
《Rust Course》 learning Not
《Rust Course》 learning Not
2025-4-3
Algorithm Note
Algorithm Note
2025-4-3
Vscode-NeoVim、WLS2 Vim /NeoVim、Goland+Vim使用技巧
Vscode-NeoVim、WLS2 Vim /NeoVim、Goland+Vim使用技巧
2025-3-16
Windows 开发环境下的疑难杂症
Windows 开发环境下的疑难杂症
2025-3-16
C++开发常用技巧
C++开发常用技巧
2024-10-4
集成Gitlab CI/CD、Docker、Kubernetes来实现流水线部署
集成Gitlab CI/CD、Docker、Kubernetes来实现流水线部署
2024-9-10
目录
0%
环境准备进入代码根目录安装运行依赖加入模型运行webui-user.bat脚本启动服务调整配置
2022-2025axiszql.

AxisZql’s blog | 向往Rust、C++和Go的家伙!🐧

Powered byNotionNext 4.7.7.