Skip to content

Instantly share code, notes, and snippets.

@safa-dayo
Last active August 2, 2023 12:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save safa-dayo/12ec3a1548cb40b94ec1968b7618a20d to your computer and use it in GitHub Desktop.
Save safa-dayo/12ec3a1548cb40b94ec1968b7618a20d to your computer and use it in GitHub Desktop.
Stable Diffusion web UI v1.4系をGoogle Colabで構築するためのコマンド
# stable diffusion webuiのリポジトリをクローンして、クローンしたフォルダに移動
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
%cd /content/stable-diffusion-webui
# ライブラリのバージョンでエラーになるため以下を実施
!pip install torch==2.0.0+cu118 torchdata==0.6.0 torchtext==0.15.1 torchvision==0.15.1+cu118 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
# v1.4.1を利用する
!git checkout tags/v1.4.1
# モデルファイルのダウンロード(BracingEvoMix) - 利用する際は適宜コマンドを書き換えてください
!wget https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_v1.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