Last active
June 5, 2023 10:36
-
-
Save safa-dayo/525c26744551dcc475f22ff6b1997b66 to your computer and use it in GitHub Desktop.
Stable Diffusion web UI v1.3系を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.3.2を利用する | |
!git checkout tags/v1.3.2 | |
# モデルファイルのダウンロード(BracingEvoMix) | |
!wget https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_v1.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# モデルファイルのダウンロード(BRAV5) | |
# 利用したい場合はコメントアウトする | |
# !wget https://huggingface.co/BanKaiPls/AsianModel/resolve/main/BRAV5finalfp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# モデルファイルのダウンロード(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/ | |
# 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