category
type
status
date
slug
summary
tags
password
Property
Feb 10, 2023 03:04 PM
icon

环境准备

  • 操作系统:Windows10、Windows11均可
  • 显卡推荐Nvidia,显存至少4G以上
    • 可以在任务管理器下查看自身PC的显存是否满足条件
      notion image
  • 拉取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
回溯算法中常见的去重策略及经典题目使用Docker compose部署es集群及kibana的使用
Loading...