私的AI研究会 > Diffusion > Diffusion_ext2
「Stable-Diffusion」拡張機能を検証する
画像の外側を生成する |
6: set COMMANDLINE_ARGS=--xformers --api
13: export COMMANDLINE_ARGS=--xformers --api
オフィシャルマニュアル → openOutpaint Usage Manual
ボタン | 処理内容 |
< | 前の生成画像 |
X/Y | 現在表示しているバッチ内の画像/バッチ処理画像の数 |
> | 次の生成画像 |
+ | 画像の追加バッチをリクエスト |
- | 現在表示されている画像をバッチから削除 |
Y | 現在表示されている画像に決定 |
N | 画像のバッチ全体を拒否する |
R | 現在表示されている画像をスタンプ可能なリソースとして保存 |
S | 現在表示されている画像のコピーを保存 |
U | 現在表示されている画像のシード値を次に使用 |
* | 現在表示されている画像をマーク |
Stable Diffusion で全身・引きの構図を生成する際に顔・手・体が崩れないようにする |
Model | 対象 |
face_yolov8n.pt | イラスト系/実写系・顔 |
face_yolov8s.pt | イラスト系/実写系・顔 |
hand_yolov8n.pt | イラスト系/実写系・手 |
person_yolov8n-seg.pt | イラスト系/実写系・人物 |
person_yolov8s-seg.pt | イラスト系/実写系・人物 |
mediapipe_face_full | 実写系・顔 |
mediapipe_face_short | 実写系・顔 |
mediapipe_face_mesh | 実写系・顔 |
Prompt | ① | (masterpiece,best quality:1.4),(8k,raw photo,photo realistic:1.2),1girl, 3d, blurry background, brown eyes, building, city, coat, depth of field, fence, hands in pockets, looking at viewer, outdoors, pants, photo \(medium\), photo background, photorealistic, plant, skyscraper, solo, standing, street |
(傑作、最高品質:1.4)、(8k、生写真、写実的:1.2)、1 人の女の子、3D、ぼやけた背景、茶色の目、建物、都市、コート、被写界深度、フェンス、ポケットに手、見る人を見る、屋外、ズボン、写真 (中)、写真の背景、写実的、植物、高層ビル、一人、立っている、通り | ||
② | (masterpiece,best quality:1.4),(8k,raw photo,photo realistic:1.2),1girl, bag, blurry background, brown eyes, brown hair, coat, day, depth of field, full body, handbag, looking at viewer, medium hair, open coat, outdoors, solo, standing | |
(傑作、最高品質:1.4)、(8k、生写真、写実的:1.2)、1 人の女の子、バッグ、ぼやけた背景、茶色の目、茶色の髪、コート、日中、被写界深度、全身、ハンドバッグ、見る人を見る、ミディアムヘア、開いたコート、屋外、一人、立っている | ||
③ | (masterpiece,best quality:1.4),(8k,raw photo,photo realistic:1.2),1girl, 3d, bag, blurry background, blurry foreground, braid, brown eyes, brown hair, building, day, denim, depth of field, hands in pockets, jacket, motion blur, outdoors, photo background, photorealistic, solo, striped | |
(傑作、最高品質:1.4)、(8k、生写真、写真のようにリアル:1.2)、1 人の女の子、3D、バッグ、ぼやけた背景、ぼやけた前景、三つ編み、茶色の目、茶色の髪、建物、日中、デニム、被写界深度、ポケットに手、ジャケット、モーション ブラー、屋外、写真の背景、写真のようにリアル、ソロ、ストライプ | ||
Negative prompt | illustration, 3d, sepia, (painting), cartoons, sketch, (worst quality:2), (backlight:1.2), bad anatomy, bad hands, double navel, collapsed eyeshadow, multiple eyebrows, freckles, signature, logo, 2faces, | |
イラスト、3D、セピア、(絵画)、漫画、スケッチ、(最低品質:2)、(バックライト:1.2)、解剖学的に悪い、手が悪い、二重のへそ、崩れたアイシャドウ、複数の眉毛、そばかす、署名、ロゴ、2つの顔、 | ||
Parameter | Steps: 20, Sampler: DPM++ 2M, CFG scale: 7, 512x768, Clip skip: 1, Model: beautifulRealistic_brav5 |
画像の顔を入れ替える |
No | パラメータ名称 | 機能 |
① | Save Original | 顔交換前の生成画像を保存するか |
② | Face Mask Correction | ピクセル化が目立つときに補正できる |
③ | Source Image | ソース元画像が複数人居る場合にどの人物の顔を適用するか |
④ | Target Image | 生成後の画像が複数人居る場合にどの人物の顔を入れ替えるか |
⑤ | Gender Detection | ソース元・生成後の画像で適用する性別 |
⑥ | Restore Face | 低画質画像の顔を復元 |
⑦ | Restore Face Visibility | 顔の視認性を調整 |
⑧ | CodeFormer Weight | CodeFormer使用時の重み |
画像の背景を消す |
生成結果画像を表示・整理する |
③ 生成結果画像表示エリア
④「Preview Page」ひとつ前のページに戻るボタン
⑤「Next Page」次のページを表示するボタン
⑥「End Page」最終ページを表示するボタン
⑦「Sort by」表示順序を決める(初期設定は日付順の新しいものから古いものへ▼)
・▼を押すと▲古い順になる(古いデータから新しいデータの並び)
*** Error running postprocess: D:\StabilityMatrix\Data\Packages\reforge\extensions\sd-webui-reactor-sfw\scripts\reactor_faceswap.py Traceback (most recent call last): File "D:\StabilityMatrix\Data\Packages\reforge\venv\lib\site-packages\transformers\activations_tf.py", line 22, in <module> import tf_keras as keras ModuleNotFoundError: No module named 'tf_keras' During handling of the above exception, another exception occurred: : ValueError: Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with `pip install tf-keras`.
$env:Path = "D:\StabilityMatrix\Data\Assets\Python310;" + $env:Path cd "D:/StabilityMatrix/Data/Packages/reforge" ./venv/Scripts/activate (venv) > pip install tf-keras※ 2025/04/10現在下記の競合が出るが無視する
Installing collected packages: ml-dtypes, tensorboard, tensorflow, tf-keras Attempting uninstall: ml-dtypes Found existing installation: ml-dtypes 0.4.1 Uninstalling ml-dtypes-0.4.1: Successfully uninstalled ml-dtypes-0.4.1 Attempting uninstall: tensorboard Found existing installation: tensorboard 2.18.0 Uninstalling tensorboard-2.18.0: Successfully uninstalled tensorboard-2.18.0 Attempting uninstall: tensorflow Found existing installation: tensorflow 2.18.0 Uninstalling tensorflow-2.18.0: Successfully uninstalled tensorflow-2.18.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. mediapipe 0.10.14 requires protobuf<5,>=4.25.3, but you have protobuf 5.29.4 which is incompatible. tensorflow-intel 2.18.0 requires ml-dtypes<0.5.0,>=0.4.0, but you have ml-dtypes 0.5.1 which is incompatible. tensorflow-intel 2.18.0 requires tensorboard<2.19,>=2.18, but you have tensorboard 2.19.0 which is incompatible. Successfully installed ml-dtypes-0.5.1 tensorboard-2.19.0 tensorflow-2.19.0 tf-keras-2.19.0