Last active
August 25, 2023 02:00
-
-
Save safa-dayo/93a86820c443e8da4b7e7986b94fa76b to your computer and use it in GitHub Desktop.
Google Colabを用いて、Stable Diffusion web UIの拡張機能である、AnimateDiffを利用するための環境構築コマンド
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
### AnimateDiffを利用するための環境構築コマンド ### | |
# 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.5.1を利用する | |
!git checkout tags/v1.5.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/ | |
# AnimateDiffの導入 | |
!git clone https://github.com/continue-revolution/sd-webui-animatediff.git /content/stable-diffusion-webui/extensions/sd-webui-animatediff | |
# AnimateDiff用のモーションモジュールダウンロード | |
!wget https://huggingface.co/guoyww/animatediff/resolve/main/mm_sd_v15.ckpt --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
# Web UIを実行 | |
!python launch.py --share --enable-insecure-extension-access --theme dark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment