Last active
August 2, 2023 12:09
-
-
Save safa-dayo/12ec3a1548cb40b94ec1968b7618a20d to your computer and use it in GitHub Desktop.
Stable Diffusion web UI v1.4系をGoogle Colabで構築するためのコマンド
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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