Unpromptedの拡張機能の追加 †更新日2023-05-26 (金) 16:26:14
作成日:2023年5月20日
Stable Diffusionのショートコードと呼ばれる記述により、web UIを操作することで、 顔や手を自動的に修正できる。→ txt2imgのほうがいいかも google colabの設定内容をコピー貼り付け †この内容を使用時はDynamic Prompt使用のときは以下のようにCombinatorial batchesを2以上にする1だと組み合わせが変化しない UnpromptedもDisableにする 「sd-webui-depth-lib」を入れたコマンド †手などの一部修正するためのもの 入れた「Unprompted」拡張機能の確認 †ControlNetにDepthモデルの追加する手順 †
## ControlnetのDepthモデルの追加 ## Edit By JE2ISM # モデルダウンロード関数の定義 !apt-get -y install -qq aria2 # aria2を使うと爆速で、モデルをダウンロードできる def download_model(download_model_url, output_dir): # urlの最後がモデル名として、ファイル名を取得する file_name_path = download_model_url.split('/')[-1] # ダウンロードの実行 !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M {download_model_url} -d {output_dir} -o {file_name_path} # ダウンロード後の配置されたディレクトリを一応確認 !ls -lh {output_dir} # sd-webui-controlnet Depthモデル をダウンロード download_model("https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11f1p_sd15_depth.pth", "/content/sd-webui/extensions/sd-webui-controlnet/models") ## -- ↑↑↑ ここまで ↑↑↑
設定 †元画像がある場合はimg2imgに張り付け
best quality,masterpiece,ultra high res,(photo realistic:1.4),1girl,solo,RAW photo,looking at viewer,Japanese clothes,japanese woman,elegant woman
painting,sketches,logo, watermark, text,(worst quality:2),(low quality:2),(normal quality:2),lowers,normal quality,( (monochrome) ),( (grayscale) ),skin spots,acnes,skin blemishes,age spot,(outdoor:1.6),nsfw,ugly face,breasts out,nipples, pubic hair,navel,stomach cutout, midriff,pleated skirt 参考 † |