Getting started with AI drawing and installing stable-diffusion-webui

The following describes how to run stable-diffusion-webui on N card, A card, or CPU.

Look at the proofs first:
insert image description here

1. Install python 3.10.x

https://www.python.org/downloads/

2. Install Git

Git - Downloads (git-scm.com)

3. Clone the stable-diffusion-webui project

1. Create a new folder

(No Chinese, it is recommended to put it on a hard disk with more free space), and then open the command line in the folder

#【非必要】如果有代理工具(比如clash),在命令行配置git的http和https代理:
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890

2. Clone

Nvidia graphics card

# Nvidia
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

AMD Graphics Card AMD GPU Instructions

# AMD
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml.git

#第一次启动会自动下载下面两个库
#git clone https://github.com/lshqqytiger/k-diffusion-directml.git
#git clone https://github.com/lshqqytiger/stablediffusion-directml.git
#把k-diffusion-directml里面文件放入:repositories\k-diffusion
#把stablediffusion-directml里面文件放入:stable-diffusion-stability-ai

CPU can choose any one of the above

If the download is slow, you can add https://ghproxy.com/ to the header, such as: https://ghproxy.com/https://github.com/***

4. Download the model

SD_v1.5 Inpainting

BRA(Beautiful Realistic Asians) V5 - Brav5 | Stable Diffusion Checkpoint | Civitai

ChilloutMix - Chilloutmix-Ni-pruned-fp32-fix | Stable Diffusion Checkpoint | Civitai

majicMIX realistic - v4 | Stable Diffusion Checkpoint | Civitai

Download the .ckpt file and put it in the models/Stable-diffusion directory of the project

5. Start the project

.\webui-user.bat
# 如果爆显存修改 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 --enable-insecure-extension-access --no-gradio-queue

# 如果还是爆显存 启用低性能模式
set COMMANDLINE_ARGS=  --lowvram --precision full --no-half --no-half-vae --opt-split-attention-v1 --opt-sub-quad-attention --disable-nan-check --enable-insecure-extension-access --no-gradio-queue  --listen  

# 如果没有显卡 用CPU跑
set COMMANDLINE_ARGS= --use-cpu all --precision full --no-half --no-half-vae --opt-split-attention-v1 --opt-sub-quad-attention --disable-nan-check --enable-insecure-extension-access --no-gradio-queue

The startup is successful, and the browser enters: http://127.0.0.1:7860/

test:
interface
interface

expand

Example: Positive Prompt

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, mature, crossed bangs, hair over shoulder, light blush, wide eyed,  pleated_skirt,earrings, cityscape, real,upper body

Example: Reverse Prompt

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

Choose Keyword Generator

https://tag.redsex.cc/
https://thereisnospon.github.io/NovelAiTag/

Model Download Site

https://civitai.com/
https://www.liblibai.com/
https://models.paomiantv.cn/models

character starting hand

(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,

light and shadow figures start

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,

reverse

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

HD starting hands

(RAW photo:1.2), (photorealistic:1.4), (intricate details:1.2),  (best quality:1.4), (delicate), (detailed eyes), (detailed facial features), dynamic pose, petite, narrow waist, slim_legs,

Commonly used plug-ins

Chinese

Extended search: zh_Hans Localization

Then in the settings, select Localization (requires restart) in the User interface and select zh-Hans (Stable)

or

Extended search: zh_CN Localization

Then in the settings, select Bilingual Localization to enable Enable Devtools Log and select zh-Hans (Stable).

(The translation in the User interface must be turned off first)

gallery browser

Extended search: image browser

Automatic tag Chinese tag

Extended search: Booru tag autocompletion

Then go to download thesaurus: https://www.bilibili.com/video/BV1Bg4y1H7Tq http://www.123114514.xyz/WebUI/Tag

Then decompress the tag/zh_cn.csv and tag/zh_cn_tr.csv in the compressed package a1111-sd-webui-tagcomplete.zip and put them in the extensionsa1111-sd-webui-tagcomplete\tags folder.

Then set the tag auto-completion: Tag filename =zh_cn.csv and then set Search by translation=zh_cn_tr.csv

picture enlargement

Extended Search: Ultimate SD Upscale

Zoom in on local details

Extended search: LLuL

Sketch to picture

Extended search: sd-webui-controlnet

Then download the model lllyasviel/ControlNet-v1-1 at main (huggingface.co) into the extensions\sd-webui-controlnet\models folder

Super Model Fusion

Extended search: SuperMerger

Proof

insert image description here
insert image description here

After sorting it out for so long, give me a like and a follow.

Guess you like

Origin blog.csdn.net/Yu1441/article/details/130547242