AI 描画を開始し、stable-diffusion-webui をインストールする

以下では、N カード、A カード、または CPU 上で安定した拡散ウェブUIを実行する方法について説明します。

まず証明を見てください:
ここに画像の説明を挿入

1.Python 3.10.xをインストールする

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

2.Gitをインストールする

Git - ダウンロード (git-scm.com)

3.stable-diffusion-webui プロジェクトのクローンを作成します。

1. 新しいフォルダーを作成します

(中国語は使用できません。より多くの空き容量のあるハードディスクに保存することをお勧めします)、フォルダー内のコマンド ラインを開きます。

#【非必要】如果有代理工具(比如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.クローンを作成する

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

#第一次启动会自动下载下面两个库
#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は上記のいずれかを選択可能

ダウンロードが遅い場合は、https://ghproxy.com/https://github.com/*** のように https://ghproxy.com/ をヘッダーに追加できます。

4. モデルをダウンロードする

SD_v1.5 修復

BRA(Beautiful Realistic Asians) V5 - Brav5 | 安定拡散チェックポイント | チビタイ

ChilloutMix - Chilloutmix-Ni-pruned-fp32-fix | 安定拡散チェックポイント | チビタイ

majicMIX リアル - v4 | 安定拡散チェックポイント | チビタイ

.ckpt ファイルをダウンロードし、プロジェクトのmodels/Stable-diffusionディレクトリに置きます。

5. プロジェクトを開始する

.\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

起動が成功し、ブラウザに http://127.0.0.1:7860/ と入力されます。

テスト:
インターフェース
インターフェース

拡大

例: ポジティブプロンプト

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

例: リバースプロンプト

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

HD スターティング ハンド

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

よく使われるプラグイン

中国語

拡張検索: zh_Hans ローカリゼーション

次に、設定のユーザー インターフェイスで [ローカリゼーション (再起動が必要)] を選択し、[zh-Hans (安定版)] を選択します。

また

拡張検索: zh_CN ローカリゼーション

次に、設定で [バイリンガル ローカリゼーション] を選択して [Enable Devtools Log] を有効にし、[zh-Hans (Stable)] を選択します。

(最初にユーザー インターフェースの翻訳をオフにする必要があります)

ギャラリーブラウザ

拡張検索:画像ブラウザ

自動タグ中国語タグ

拡張検索: Booru タグのオートコンプリート

次に、シソーラスのダウンロードに移動します: https://www.bilibili.com/video/BV1Bg4y1H7Tq http://www.123114514.xyz/WebUI/Tag

次に、圧縮パッケージ a1111-sd-webui-tagcomplete.zip 内の tag/zh_cn.csv と tag/zh_cn_tr.csv を解凍し、extensionsa1111-sd-webui-tagcomplete\tags フォルダーに配置します。

次に、タグのオートコンプリートを設定します: Tag filename =zh_cn.csv を設定し、次に Search by translation=zh_cn_tr.csv を設定します。

画像の拡大

拡張検索:究極の SD アップスケール

ローカルの詳細にズームインする

拡張検索: LLuL

スケッチから写真へ

拡張検索: sd-webui-controlnet

次に、メイン (huggingface.co) のモデルlllyasviel/ControlNet-v1-1 をextensions\sd-webui-controlnet\models フォルダーにダウンロードします。

スーパーモデルフュージョン

拡張検索: SuperMerger

証拠

ここに画像の説明を挿入
ここに画像の説明を挿入

長い間整理してきましたので、いいねとフォローをお願いします。

おすすめ

転載: blog.csdn.net/Yu1441/article/details/130547242