!curl -Lo memfix.zip <https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip>
!unzip /content/memfix.zip
!apt install -qq libunwind8-dev
!dpkg -i *.deb
%env LD_PRELOAD=libtcmalloc.so
!rm *
!pip install --upgrade fastapi==0.90.1
!pip install torchmetrics==0.11.4 torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchtext==0.14.1 torchaudio==0.13.1 torchdata==0.5.1 --extra-index-url <https://download.pytorch.org/whl/cu117>
!curl -Lo sd-webui.zip <https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip>
!unzip /content/sd-webui.zip
!git clone <https://github.com/nolanaatama/sd-webui-tunnels> /content/sd-webui/extensions/sd-webui-tunnels
!git clone <https://github.com/Mikubill/sd-webui-controlnet> /content/sd-webui/extensions/sd-webui-controlnet
!git clone <https://github.com/hnmr293/posex> /content/sd-webui/extensions/posex

# sd-dynamic-promptingを"extensions"フォルダーに追加する
!git clone <https://github.com/adieyal/sd-dynamic-prompting/> /content/sd-webui/extensions/dynamic-prompts

# sd-dynamic-promptingのワイルドカード(空のファイル)を作成しておく
!mkdir -p /content/sd-webui/extensions/dynamic-prompts/wildcards
!touch /content/sd-webui/extensions/dynamic-prompts/wildcards/xxx.txt

# モデル:BracingEvoMix_v1を追加
!curl -Lo /content/sd-webui/models/Stable-diffusion/BracingEvoMix_v1.safetensors <https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_v1.safetensors>

!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip <https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip>
%cd /content/sd-webui/extensions
!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip
%cd /content

# ネガティブプロンプト: BadBrasを追加
!curl -Lo /content/sd-webui/embeddings/euDNFnStFsdoJUEbKe5u7xzZ.zip <https://downloads.fanbox.cc/files/post/5775230/euDNFnStFsdoJUEbKe5u7xzZ.zip>
!unzip /content/sd-webui/embeddings/euDNFnStFsdoJUEbKe5u7xzZ.zip -d /content/sd-webui/embeddings/
!rm -rf /content/sd-webui/embeddings/euDNFnStFsdoJUEbKe5u7xzZ.zip

# vaeを追加
!curl -Lo /content/sd-webui/models/VAE/vae-ft-ema-560000-ema-pruned.ckpt <https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt>

import shutil
shutil.rmtree('/content/sd-webui/embeddings')
!rm sd-webui.zip
!rm sd-webui-images-browser.zip
%cd /content/sd-webui
!git clone <https://huggingface.co/nolanaatama/embeddings>
%cd /content/sd-webui/models
!git clone <https://huggingface.co/nolanaatama/ESRGAN>
%cd /content/sd-webui
!COMMANDLINE_ARGS="--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension --gradio-queue --remotemoe" REQS_FILE="requirements.txt" python launch.py

google colab

https://colab.research.google.com/?hl=ja

モデル(CheckPoint):BracingEvoMix

https://huggingface.co/sazyou-roukaku/BracingEvoMix

プロンプト01

best quality, high resolution, (realistic:1.2), young woman, brown hair, brown eyes,Front, detailed face, beautiful eyes, (fair skin:1.2), (soft saturation:1.3)
Negative prompt: BadBras,(worst quality:2),(low quality:1.4),(logo,mark:2),(undressing:1.5), (disheveled clothes:1.4),(manicure:1.2),(nipple:1.2),(long neck:2),
Steps: 60, Sampler: Euler a, CFG scale: 6, Seed: 2993543141, Size: 512x768, Model hash: 5bc5a45624, Model: BracingEvoMix_v1, Clip skip: 2

プロンプト02

(high resolution:1.3), (8k, photorealistic, RAW photo, best quality: 1.4), japanese, (1girl), beautiful face, (realistic face), (black hair, short hair:1.3), beautiful hairstyle, realistic eyes, beautiful detailed eyes, (realistic skin), beautiful skin, attractive, ultra high res, ultra realistic, highly detailed, golden ratio, outdoors,windy,from below,
Negative prompt: BadBras,(worst quality:2),(low quality:1.4),(logo,mark:2),(undressing:1.5), (disheveled clothes:1.4),(manicure:1.2),(nipple:1.2),(long neck:2), grayscale
Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 2919810181, Face restoration: CodeFormer, Size: 512x768, Model hash: 5bc5a45624, Model: BracingEvoMix_v1, Clip skip: 2