!curl -Lo memfix.zip [<https://github.com/nolanaatama/sd-webui/raw/main/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](<http://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>](<https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip>)
!unzip /content/sd-webui.zip
!git clone [<https://github.com/nolanaatama/sd-webui-tunnels>](<https://github.com/nolanaatama/sd-webui-tunnels>) /content/sd-webui/extensions/sd-webui-tunnels
!git clone [<https://github.com/Mikubill/sd-webui-controlnet>](<https://github.com/Mikubill/sd-webui-controlnet>) /content/sd-webui/extensions/sd-webui-controlnet
!git clone [<https://github.com/hnmr293/posex>](<https://github.com/hnmr293/posex>) /content/sd-webui/extensions/posex
## -- ↓↓↓ ここから ↓↓↓ sd-dynamic-promptingを"extensions"フォルダーに追加する
!git clone [<https://github.com/adieyal/sd-dynamic-prompting/>](<https://github.com/adieyal/sd-dynamic-prompting/>) /content/sd-webui/extensions/dynamic-prompts
## -- ↑↑↑ ここまで ↑↑↑
!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip [<https://huggingface.co/nolanaatama/webui/resolve/main/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

## モデル:BRA4/BRA5を追加
!curl -Lo /content/sd-webui/models/Stable-diffusion/braBeautifulRealistic_v40.safetensors <https://civitai.com/api/download/models/51395>
!curl -Lo /content/sd-webui/models/Stable-diffusion/braBeautifulRealistic_v50.safetensors <https://huggingface.co/BanKaiPls/AsianModel/resolve/main/BRAV5finalfp16.safetensors>
!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>](<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>](<https://huggingface.co/nolanaatama/embeddings>)
%cd /content/sd-webui/models
!git clone [<https://huggingface.co/nolanaatama/ESRGAN>](<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](<http://launch.py/>)

プロンプト

best quality, ultra high res,(photo realistic:1.4), 1girl,  blue hair, Cinematic, very beautiful,kawaii, (professional lighting), (portrait:0.6), gorgeous, (1girl eyes looking at viewer:1), masterpiece, intricate, realistic, sharp focus, award-winning photograph, (Smile:1),  (((cleavage))), 35mm lens, f/ 1. 8, slim body, narrow waist,  lustrous skin, show Clavicle, perfect skin, (adult face:1.2), 8k, cleavage, upper body, close up of face shot, wearing a maid outfit, , maid costume, cat ears

複数パターンプロンプト

best quality, ultra high res,(photo realistic:1.4), 1girl, blue hair, Cinematic, very beautiful,kawaii, (professional lighting), (portrait:0.6), gorgeous, (1girl eyes looking at viewer:1), masterpiece, intricate, realistic, sharp focus, award-winning photograph, (Smile:1), (((cleavage))), 35mm lens, f/ 1. 8, slim body, narrow waist, lustrous skin, show Clavicle, perfect skin, (adult face:1.2), 8k, cleavage, upper body, close up of face shot, wearing a maid outfit, , maid costume, ,cat ears, (({BlackBrown | Blonde| Red| Auburn| Strawberry Blonde| Chestnut| Mahogany| Copper| Platinum Blonde| Silver| Gray| White| Golden Blonde| Dirty Blonde| Dark Brown| Light Brown| Burgundy| Jet Black| Caramel}} hair),

ネガティブプロンプト

backlight, (backlighting), (((window))), canvas frame, cartoon, painting,sketches !ogo.watermark, text(worst quality:2),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((close up)),((b&w)), weird colors, blurry, (((duplicate))), (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, nipple, too much muscle, bad hands, bad arms, missing fingers,((age spot)), bad anatomy, ,nsfw.ugly face,breasts out, ippl, (too many fingers), (((long neck))), paintings, sketches, (worst quality:2), (low quality:2)