LoginSignup
0
1

Stable Diffusion 拡張機能 2台のパソコンで生成高速化 その後

Last updated at Posted at 2023-08-17

結果報告

Stable Diffusion Webui の拡張機能である Distributed だが、
SDXL(未対応) が出てきためいったん最終報告にしたいところ。
結論としてはぶっちゃけ、まともに動いていない。

  • エラーが発生していた Redo benchmarks は正常に機能
    Benchmarks.png

  • CPUモードがなくなった?
    M1 mac も利用可能な記載があったが現在削除されている。
    いつ削除されたのかキャッチアップ出来ていなかった。

その他詳細はようつべにアップします。

本件で利用した PC スペック

master側

Optiplex 3020
CPU:intel Core i5 4570
MEM:8GiB
VGA:nVidia GTX 1050Ti (玄人志向)
単独生成速度:512x512 1分40秒ぐらい

webui-user.batの中身

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--port 7861 --xformers --lowvram --skip-torch-cuda-test --distributed-remotes laptop:192.168.1.14:7860 --distributed-skip-verify-remotes --distributed-remotes-autosave --distributed-debug

call webui.bat

Slave側(worker)

GALELLIA(DELL G3 15 3579 同等品)
CPU:8300H
MEM:32GiB
VGA:nVidia GTX 1050Ti(Laptop版 オンボード)
単独生成速度:512x512 1分ぐらい

webui-user.batの中身

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --lowvram --skip-torch-cuda-test --api --listen

call webui.bat

共通設定

利用するファイルが master 側、slave 側ともに同じものを配置しないと
エラーがでるので注意
なお、以下の設定はいずれも試してみたが結果は変わらず
Setting タブ →
→左ペイン Stable Diffusion
→Automaticlly revert VAE to 32-bit floats(一番下)
〇GPU 〇CPU の両方
ただし、--use-cpu all の設定が本機能から削除されているため
検証結果の判定に含まれなくなってしまった。

ファイルの配置

C:\Stable DiffuarterosBasil_10.safetensorssion\stable-diffusion-webui\models\Stable-diffusion
arterosBasil_10.safetensors

C:\Stable Diffusion\stable-diffusion-webui\models\VAE
vae-ft-mse-840000-ema-pruned.safetensors

C:\Stable Diffusion\stable-diffusion-webui\embeddings
EasyNegative.safetensors
EasyNegativeV2.safetensors
Asian-Less-Neg.pt

怪我の功名?

同じグラフィックボードのため、画像生成時の初期化は当たり前だが
同一の初期化を行っていることが確認できた。

Optiplex 3020

512 x 512 生成 1 min. 36.5 sec.
この時代(Haswell)の core i5 だとさすがに生成速度は遅くなる
00007-3666103840_Optiplex3020.png

1girl, Caucasian.upright immovable,full body,like the royal highness,(((slim))),thin shoulder white strap and white camisole.(realistic, real life:1.1),(masterpiece:1.1),25-years-old,standing,(shaped face:1.1),brun eyes,simple silver piassings,(simple necklace:0.9),RAW, stunning portrait of an intelligent young beautiful woman. The final product should be a masterpiece that captures the essence and beauty of a woman. sharp focus, sharp focus, 8k UHD, DSLR, high quality
Negative prompt: EasyNegative,nsfw, naked, wet skin
Steps: 20, Sampler: Euler a, CFG scale: 5, Seed: 3666103840, Size: 512x512, Model hash: e4694b936e, Model: arterosBasil_10, TI hashes: "EasyNegative: c74b4e810b03", Version: v1.5.1

Time taken: 1 min. 36.5 sec.

GARELLIA

512 x 512 生成
はもちろん決して早くはない Time taken: 58.3 sec.
00001-3666103840_GALLERIA.png

1girl, Caucasian.upright immovable,full body,like the royal highness,(((slim))),thin shoulder white strap and white camisole.(realistic, real life:1.1),(masterpiece:1.1),25-years-old,standing,(shaped face:1.1),brun eyes,simple silver piassings,(simple necklace:0.9),RAW, stunning portrait of an intelligent young beautiful woman. The final product should be a masterpiece that captures the essence and beauty of a woman. sharp focus, sharp focus, 8k UHD, DSLR, high quality
Negative prompt: EasyNegative,nsfw, naked, wet skin,
Steps: 20, Sampler: Euler a, CFG scale: 5, Seed: 3666103840, Size: 512x512, Model hash: e4694b936e, Model: arterosBasil_10, TI hashes: "EasyNegative: c74b4e810b03", Version: v1.5.1

Time taken: 58.3 sec.
tags:Stable Diffusion 20230817
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1