您现在的位置是:首页 >技术交流 >AI绘图入门 安装 stable-diffusion-webui网站首页技术交流
AI绘图入门 安装 stable-diffusion-webui
简介AI绘图入门 安装 stable-diffusion-webui
下面介绍了N卡,A卡,或CPU跑 stable-diffusion-webui的方法。
1.安装python 3.10.x
https://www.python.org/downloads/
2.安装Git
【非必要】打开代理工具(比如clash)然后在cmd配置git的http和https代理:
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
3、克隆stable-diffusion-webui项目
下载慢可以请求头加https://ghproxy.com/ 如: https://ghproxy.com/https://github.com/***
Nvidia 使用
# Nvidia
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
AMD 使用 AMD GPU 说明
# AMD
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml.git
# AMD显卡还要下载下面两个库
git clone https://github.com/lshqqytiger/k-diffusion-directml.git
git clone https://github.com/lshqqytiger/stablediffusion-directml.git
#把k-diffusion-directml里面文件放入:repositoriesk-diffusion
#把stablediffusion-directml里面文件放入:stable-diffusion-stability-ai
#更新执行命令安装子模块
cd stable-diffusion-webui-directml
git submodule init
git submodule update
4.下载模型
Stable Diffusion Models (cyberes.github.io)
下载.ckpt文件,并放在项目的models/Stable-diffusion目录下
5、启动项目
.webui-user.bat
#老显卡
.webui-user.bat --precision full --no-half
# 如果爆显存修改 webui-user.bat 文件中 set COMMANDLINE_ARGS= 后面的值
set COMMANDLINE_ARGS=--medvram --precision full --no-half --no-half-vae --opt-split-attention-v1 --opt-sub-quad-attention --disable-nan-check
# CPU跑
set COMMANDLINE_ARGS= --precision full --no-half --disable-safe-unpickle --disable-nan-check --no-half-vae --lowvram --opt-sub-quad-attention --no-hashing --opt-sdp-attention --listen
举例
正向提示
best quality, ultra-detailed, masterpiece, finely detail, highres, 8k wallpaper,beautiful detailed eyes,highly detailed skin,extremely delicate and beautiful girls,masterpiece, best quality, girl, black hair, cute face, longeyelashes, black eyes, large breasts, mature, crossed bangs, hair over shoulder, light blush, wide eyed, pleated_skirt,earrings, cityscape, real,upper body
反向提示
mutated hands and fingers,text,title,deformed, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, out of focus, long neck, long body
测试:
关键词生成器
https://tag.redsex.cc/
https://thereisnospon.github.io/NovelAiTag/
模型下载网站
https://civitai.com/
https://www.liblibai.com/
https://models.paomiantv.cn/models
人物起手
(best quality), (masterpiece), (highres), original, extremely detailed 8K wallpaper, (extremely delicate and beautiful), illustrations,hand of guido daniele,beautiful face,detail fingers,beautiful detailed eyes,
光影人物起手
cinematic light, colorful, hyper detail,dramatic light,light_hair, intricate details, best quality, (extremely detailed CG unity 8k wallpaper, masterpiece, best quality, ultra-detailed, best shadow), (detailed background), (beautiful detailed face, beautiful detailed eyes), High contrast, (best illumination, an extremely delicate and beautiful), dynamic angle,beautiful detailed glow,
反向
extra fingers,fused fingers,poorly drawn face,cloned face,extra legs,poorly drawn asymmetric eyes,poorly drawn hands,blurry,(worst quality, low quality:1.4), (malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4), badv3
风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。