Skip to content

Instantly share code, notes, and snippets.

@safa-dayo
Last active May 23, 2023 12:59
Show Gist options
  • Save safa-dayo/dc6c759c866ac7e7dcd1a3ad7552efbf to your computer and use it in GitHub Desktop.
Save safa-dayo/dc6c759c866ac7e7dcd1a3ad7552efbf to your computer and use it in GitHub Desktop.
Stable Diffusion web UIのv1.1.1をGoogle Colabで起動するためのコマンドです。chilled_remixが利用できるように、起動時にモデルファイルをダウンロードします。
# Stable Diffusion web UIのリポジトリをクローンして、クローンしたフォルダに移動
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
%cd /content/stable-diffusion-webui
# v1.1.1を利用する
!git checkout tags/v1.1.1
# pytorch関連のライブラリをv1.1.1向けにバージョンを固定してインストール
!pip3 install torchvision==0.15.1 torch==2.0.0 torchtext==0.15.1 torchdata==0.6.0 torchaudio==2.0.1
# モデルファイルのダウンロード(chilled_remix v2)
!wget https://huggingface.co/sazyou-roukaku/chilled_remix/resolve/main/chilled_remix_v2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/
# 以下は利用したい場合のみ、!wget行のコメントアウトを解除してください
# モデルファイルのダウンロード(BRAV5)
# !wget https://huggingface.co/BanKaiPls/AsianModel/resolve/main/BRAV5finalfp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/
# web UIを実行
!python launch.py --share --xformers --enable-insecure-extension-access --theme dark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment