【Google Colabで画像生成】Stable Diffusionで MUSE v1を用いて女性の実写画像を生成してみました
今回はStable Diffusion web UIをGoogle Colab上で実行しつつ、モデルのMUSE v1を用いて女性の実写画像を生成していきます
■利用したモデルのMUSE_v1
https://civitai.com/models/13564/musev1
■利用したLoRAはこちらからダウンロードしています
https://civitai.com/models/13573/musegirlfriendv2
https://huggingface.co/AnonPerson/ChilloutMix/tree/main
■利用したプロンプト
https://civitai.com/images/201126?modelId=13564&postId=105753&id=13564&slug=musev1
■実行したコード
Google Colabにコピペして実行可能です。
追記:概要欄だとURLが省略されてしまうようで正しく実行ができないため、コメント欄に改めてコードは記載しました。
```
# stable diffusion webuiのリポジトリをクローンして、クローンしたフォルダに移動
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
%cd /content/stable-diffusion-webui
# civitaiからMUSE_v1をダウンロード
!wget https://civitai.com/api/download/models/15980 --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/
# LoRAをインストール
!wget https://civitai.com/api/download/models/15989 --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/
!wget https://huggingface.co/AnonPerson/ChilloutMix/resolve/main/Taiwan-doll-likeness.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Lora/
# pytorch関連のインストール
!pip3 install torchvision==0.14.1 torch==1.13.1 torchtext==0.14.1 torchdata==0.5.1 torchaudio==0.13.1
# Web UIを実行
!python launch.py --share --xformers --enable-insecure-extension-access --theme dark
```
■利用した音楽
雨の夜
https://sound-factory.net/sound/amenoyoru/
One pattern music Vol.3 - Lo-fi Hip Hop
https://sound-factory.net/sound/one-pattern-music-3/
#stablediffusion #imagegeneration #googlecolab