Last active
June 29, 2024 07:29
-
-
Save safa-dayo/b25f3737675c7667fefb51498dbf7212 to your computer and use it in GitHub Desktop.
Stable Diffusion web UI(最新版)をGoogle Colabで起動するためのコマンド。こちらのコマンドを自身のGoogle Colabノートブックにコピーした後、利用したいモデルや拡張機能、LoRAなどにチェックを入れた上で実行ボタンを押すことで、設定した内容でStable Diffusion web UIが起動します。
This file contains 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
#@title Stable Diffusion web UI(最新版)をGoogle Colabで起動するためのコマンド | |
#@markdown ## このColabノートブックについて | |
#@markdown [Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) をGoogle Colabで起動するためのノートブックとなります。 | |
#@markdown 利用したいモデルや拡張機能、LoRAなどにチェックを入れた上で実行ボタンを押すことで、設定した内容でStable Diffusion web UIが起動します。 | |
#@markdown また各項目には公式ページへのリンクをつけています。利用の際は公式ページよりライセンスなどを確認した上でご利用ください。 | |
### Stable Diffusion web UIインストール | |
# stable diffusion webuiのリポジトリをクローンして、クローンしたフォルダに移動 | |
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui | |
%cd /content/stable-diffusion-webui | |
# NotimolementedErrorの対応(torchのバージョンは2.3.0+cu121を利用することを想定) | |
!pip install torch torchvision torchaudio | |
!pip install xformers==v0.0.26.post1 | |
# v1.9.4を利用する | |
!git checkout tags/v1.9.4 | |
# 実行時の引数 | |
cmd_args = "--share --xformers --enable-insecure-extension-access --no-half-vae --theme dark" | |
#@markdown --- | |
#@markdown # Civitai API Keyの設定 | |
#@markdown Civitaiにホストされているモデルをダウンロードする場合はAPIキーが必要になりました。APIキーはCivitaiのサイトにログインした状態で以下のリンクから取得できます。 | |
#@markdown https://civitai.com/user/account | |
#@markdown **なおCivitaiのAPI Keyは人と共有しないようにお気をつけください** | |
civitai_api_key = "" #@param {type:"string"} | |
#@markdown --- | |
#@markdown # Google Driveの利用有無(この機能はベータ版です) | |
#@markdown Google Driveを利用する場合はチェックを入れてください | |
use_google_drive = False #@param {type:"boolean"} | |
if use_google_drive: | |
from google.colab import drive | |
drive.mount('/content/drive') | |
# /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/checkpointsというパスがあるかをチェック | |
# なければ作成 | |
import os | |
if not os.path.exists("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/checkpoints"): | |
os.makedirs("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/checkpoints") | |
# /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/lorasというパスがあるかをチェック | |
# なければ作成 | |
if not os.path.exists("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/loras"): | |
os.makedirs("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/loras") | |
# /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/embeddingsというパスがあるかをチェック | |
# なければ作成 | |
if not os.path.exists("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/embeddings"): | |
os.makedirs("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/embeddings") | |
# /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/extensionsというパスがあるかをチェック | |
# なければ作成 | |
if not os.path.exists("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/extensions"): | |
os.makedirs("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/extensions") | |
#@markdown ## Google Driveを利用する意図と使い方 | |
#@markdown 現在Civitai側でモデルをダウンロードしようとするとログイン必須という画面が出てしまうようです。これが一時的なものか恒久的な仕様変更なのかは現時点では不明ですが、ColabからCivitaiにホストされているモデルをダウンロードしようとした場合、認証を挟んでいないのでダウンロードに失敗します。もしCivitaiでのみ利用したいモデルなどがある場合、現状はGoogle Driveに格納した状態でColab側にコピーして利用する必要があります。 | |
#@markdown CivitaでのみホストされているモデルやLoRAを利用したい場合、 Google Driveの一番上の階層に `sd-webui-google-colab-setup/stable-diffusion-webui/models` という形でファルダを作成してください | |
#@markdown またGoogle Driveに格納してある拡張機能を利用したい場合は `sd-webui-google-colab-setup/stable-diffusion-webui/extensions` というフォルダを作成し、そちらに格納してください。 | |
#@markdown さらにその配下にモデルを格納するためのフォルダ【checkpoints】などを作成して、利用したいモデルをそれぞれのフォルダに格納しておいてください | |
#@markdown まとめると以下のようになります。 | |
#@markdown * モデルを格納するためのフォルダ: `/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/checkpoints` | |
#@markdown * LoRAを格納するためのフォルダ: `/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/loras` | |
#@markdown * Embeddingsを格納するためのフォルダ: `/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/embeddings` | |
#@markdown * 拡張機能を格納するためのフォルダ: `/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/extensions` | |
#@markdown もしGoogle Driveの利用を有効化している場合、Stable Diffusion web UI起動時に、これらのフォルダからSD web UI側のフォルダにモデルファイルをコピーする処理を実行します。 | |
#@markdown これにより、Civitaiでしか利用できないモデルもColab上で利用できるようになります。 | |
#@markdown なお、これらのフォルダは `use_google_drive` にチェックを入れて実行した際にも自動的に作られます。そのため一度 `use_google_drive` にチェックを入れて実行した後、ランタイムを一旦削除して、作成されたフォルダ配下にそれぞれのモデルを格納する形でも問題ありません(まどろっこしくはありますが) | |
#@markdown --- | |
#@markdown # モデル選択 | |
#@markdown 利用したいモデルにチェックを入れてください | |
#@markdown 生成される画像の傾向を事前に知りたい場合はリンク先のYouTube動画から確認が可能です(作成した動画の宣伝) | |
#@markdown --- | |
#@markdown ## 実写系モデル (Base: SD 1.5) | |
#@markdown ### chilled_remix v2 | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/chilled_remix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/c5N1zq6cSNE) | |
use_chilled_remix_v2 = False #@param {type: "boolean"} | |
if use_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/ | |
#@markdown ### chilled_reversemix v2 | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/chilled_remix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/c5N1zq6cSNE) | |
use_chilled_reversemix_v2 = False #@param {type: "boolean"} | |
if use_chilled_reversemix_v2: | |
!wget https://huggingface.co/sazyou-roukaku/chilled_remix/resolve/main/chilled_reversemix_v2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BracingEvoMix(v1) | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/BracingEvoMix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/G6mZUq3S354) | |
use_bracing_evo_mix_v1 = False #@param {type: "boolean"} | |
if use_bracing_evo_mix_v1: | |
!wget https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_v1.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BracingEvoMix(v2) | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/BracingEvoMix) | |
use_bracing_evo_mix_v2 = False #@param {type: "boolean"} | |
if use_bracing_evo_mix_v2: | |
!wget https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_v2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BracingEvoMix - Another | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/BracingEvoMix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/hdQxapP2Y98) | |
use_bracing_evo_another_mix = False #@param {type: "boolean"} | |
if use_bracing_evo_another_mix: | |
!wget https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_Another_v1.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BracingEvoMix - Fast | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/BracingEvoMix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/hdQxapP2Y98) | |
use_bracing_evo_fast_mix = False #@param {type: "boolean"} | |
if use_bracing_evo_fast_mix: | |
!wget https://huggingface.co/sazyou-roukaku/BracingEvoMix/resolve/main/BracingEvoMix_Fast_v1.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Blessing Mix | |
#@markdown [公式ページ](https://civitai.com/models/94179/blessing-mix-aka-bracing-evo-mix-clone) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/hNU8CMaewqI) | |
use_blessing_mix = False #@param {type: "boolean"} | |
if use_blessing_mix: | |
!wget https://civitai.com/api/download/models/100468?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### yayoi_mix v2 | |
#@markdown [公式ページ](https://huggingface.co/Kotajiro/yayoi_mix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/OM678ZSygow) | |
use_yayoi_mix_v2 = False #@param {type: "boolean"} | |
if use_yayoi_mix_v2: | |
!wget https://huggingface.co/Kotajiro/yayoi_mix/resolve/main/yayoi_mix_v20-fp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### kisaragi_mix v22 | |
#@markdown [公式ページ](https://civitai.com/models/45757/kisaragimix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/p1zvB-aXKaw) | |
use_kisaragi_mix_v22 = False #@param {type: "boolean"} | |
if use_kisaragi_mix_v22: | |
!wget https://civitai.com/api/download/models/97186?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### minaduki_mix | |
#@markdown [公式ページ](https://huggingface.co/Kotajiro/minaduki_mix) | |
use_minaduki_mix = False #@param {type: "boolean"} | |
if use_minaduki_mix: | |
!wget https://huggingface.co/Kotajiro/minaduki_mix/resolve/main/minaduki_v10.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### WeddingImperial v1 | |
#@markdown [公式ページ](https://huggingface.co/teasan/WeddingImperial) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/4dukNcNJ_fI) | |
use_wedding_imperial_v1 = False #@param {type: "boolean"} | |
if use_wedding_imperial_v1: | |
!wget https://huggingface.co/teasan/WeddingImperial/resolve/main/model/weddingImperial.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### WeddingImperial v2 | |
#@markdown [公式ページ](https://huggingface.co/teasan/WeddingImperial) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/rBGYRNmznk8) | |
use_wedding_imperial_v2 = False #@param {type: "boolean"} | |
if use_wedding_imperial_v2: | |
!wget https://huggingface.co/teasan/WeddingImperial/resolve/main/model/weddingImperialV2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Photon | |
#@markdown [公式ページ](https://civitai.com/models/84728/photon) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/eIYkdfiGx-Y) | |
use_photon = False #@param {type: "boolean"} | |
if use_photon: | |
!wget https://civitai.com/api/download/models/90072?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### DreamShaper v7 | |
#@markdown [公式ページ](https://huggingface.co/Lykon/DreamShaper) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/u071zv1lxug) | |
use_dream_shaper_v7 = False #@param {type: "boolean"} | |
if use_dream_shaper_v7: | |
!wget https://huggingface.co/Lykon/DreamShaper/resolve/main/DreamShaper_7_pruned.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### DreamShaper v8 | |
#@markdown [公式ページ](https://huggingface.co/Lykon/DreamShaper) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/gIfmr12C4X8) | |
use_dream_shaper_v8 = False #@param {type: "boolean"} | |
if use_dream_shaper_v8: | |
!wget https://huggingface.co/Lykon/DreamShaper/resolve/main/DreamShaper_8_pruned.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### AbsoluteReality v1.6 | |
#@markdown [公式ページ](https://huggingface.co/Lykon/AbsoluteReality) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/LlMlnkorC_k) | |
use_absolute_reality_v16 = False #@param {type: "boolean"} | |
if use_absolute_reality_v16: | |
!wget https://huggingface.co/Lykon/AbsoluteReality/resolve/main/AbsoluteRealityV1.6525.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### AbsoluteReality v1.8.1 | |
#@markdown [公式ページ](https://huggingface.co/Lykon/AbsoluteReality) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/vUr99l5UReA) | |
use_absolute_reality_v181 = False #@param {type: "boolean"} | |
if use_absolute_reality_v181: | |
!wget https://huggingface.co/Lykon/AbsoluteReality/resolve/main/AbsoluteReality_1.8.1_pruned.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Soda Mix | |
#@markdown [公式ページ](https://civitai.com/models/47507/soda-mix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/2QGdRREYMoo) | |
use_soda_mix = False #@param {type: "boolean"} | |
if use_soda_mix: | |
!wget https://civitai.com/api/download/models/52797?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### real-max-v3.4(补档) | |
#@markdown [公式ページ](https://civitai.com/models/60188/real-max-v34) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/PY8o7U4laSs) | |
use_real_max_v34 = False #@param {type: "boolean"} | |
if use_real_max_v34: | |
!wget https://civitai.com/api/download/models/64660?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BRAV7 | |
#@markdown [公式ページ](https://civitai.com/models/25494?modelVersionId=177164) | |
use_bra_v7 = False #@param {type: "boolean"} | |
if use_bra_v7: | |
!wget https://civitai.com/api/download/models/177164?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BRAV6 | |
#@markdown [公式ページ](https://huggingface.co/BanKaiPls/AsianModel) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/vcQplWWdyEk) | |
use_bra_v6 = False #@param {type: "boolean"} | |
if use_bra_v6: | |
!wget https://huggingface.co/BanKaiPls/AsianModel/resolve/main/Brav6.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BRAV5 | |
#@markdown [公式ページ](https://huggingface.co/BanKaiPls/AsianModel) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/g0i1_LSzrWQ) | |
use_bra_v5 = False #@param {type: "boolean"} | |
if use_bra_v5: | |
!wget https://huggingface.co/BanKaiPls/AsianModel/resolve/main/BRAV5finalfp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BRAV4 | |
#@markdown [公式ページ](https://civitai.com/models/25494?modelVersionId=51395) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/t6Nm0AUyqyU) | |
use_bra_v4 = False #@param {type: "boolean"} | |
if use_bra_v4: | |
!wget https://civitai.com/api/download/models/51395?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### OpenBra | |
#@markdown [公式ページ](https://huggingface.co/BanKaiPls/AsianModel) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/0ZK7O5EFqWA?si=nU1tMkXFv-cW6ZMA) | |
use_open_bra = False #@param {type: "boolean"} | |
if use_open_bra: | |
!wget https://huggingface.co/BanKaiPls/AsianModel/resolve/main/OpenBra.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### MUSE_v1 | |
#@markdown [公式ページ](https://civitai.com/models/13564/musev1) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/Rc6v_2rOICA) | |
use_muse_v1 = False #@param {type: "boolean"} | |
if use_muse_v1: | |
!wget https://civitai.com/api/download/models/15980?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### majicMIX realistic(v2.5) | |
#@markdown [公式ページ](https://civitai.com/models/43331/majicmix-realistic) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/A9Gx28_r1RE) | |
use_majicmix_realistic_v6 = False #@param {type: "boolean"} | |
if use_majicmix_realistic_v6: | |
!wget https://civitai.com/api/download/models/126470?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### bellyberry1 | |
#@markdown [公式ページ](https://civitai.com/models/109458/bellyberry1) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/lNLn8gnR7SU?si=O243teqpETa8xnHp) | |
use_bellyberry1 = False #@param {type: "boolean"} | |
if use_bellyberry1: | |
!wget https://civitai.com/api/download/models/139410?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### SweetMuse | |
#@markdown [公式ページ](https://civitai.com/models/81668/sweetmuse) | |
use_sweet_muse = False #@param {type: "boolean"} | |
if use_sweet_muse: | |
!wget https://civitai.com/api/download/models/89839?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### RealBeautyMix | |
#@markdown [公式ページ](https://civitai.com/models/85156) | |
use_real_beauty_mix = False #@param {type: "boolean"} | |
if use_real_beauty_mix: | |
!wget https://civitai.com/api/download/models/90505?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### epiCRealism | |
#@markdown [公式ページ](https://civitai.com/models/25694?modelVersionId=134065) | |
use_epi_c_realism = False #@param {type: "boolean"} | |
if use_epi_c_realism: | |
!wget https://civitai.com/api/download/models/134065?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Noble Mix Fix | |
#@markdown [公式ページ](https://civitai.com/models/65480/noble-mix-fix) | |
use_noble_mix_fix = False #@param {type: "boolean"} | |
if use_noble_mix_fix: | |
!wget https://civitai.com/api/download/models/92828?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BlazingRealDrive | |
#@markdown [公式ページ](https://civitai.com/models/137909) | |
use_blazing_real_drive = False #@param {type: "boolean"} | |
if use_blazing_real_drive: | |
!wget https://civitai.com/api/download/models/202466?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### VoidnoiseCore(R1311) | |
#@markdown [公式ページ](https://huggingface.co/konapieces/VoidnoiseCore) | |
use_voidnoise_core_r1311 = False #@param {type: "boolean"} | |
if use_voidnoise_core_r1311: | |
!wget https://huggingface.co/konapieces/VoidnoiseCore/resolve/main/models/R1311/VoidnoiseCore_R1311.fp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Kawaii Realistic Asian Mix | |
#@markdown [公式ページ](https://civitai.com/models/83766/kawaii-realistic-asian-mix) | |
use_kawaii_realistic_asian_mix = False #@param {type: "boolean"} | |
if use_kawaii_realistic_asian_mix: | |
!wget https://civitai.com/api/download/models/170762?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Meichidark_Mix | |
#@markdown [公式ページ](https://civitai.com/models/69158/meichidarkmix) | |
use_meichidark_mix = False #@param {type: "boolean"} | |
if use_meichidark_mix: | |
!wget https://civitai.com/api/download/models/147184?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### CyberRealistic | |
#@markdown [公式ページ](https://civitai.com/models/15003/cyberrealistic) | |
use_cyber_realistic = False #@param {type: "boolean"} | |
if use_cyber_realistic: | |
!wget https://civitai.com/api/download/models/198401?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# CyberRealistic Negativeも併せてダウンロード | |
!wget https://civitai.com/api/download/models/82745?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### Realistic Vision | |
#@markdown [公式ページ](https://civitai.com/models/4201) | |
use_realistic_vision = False #@param {type: "boolean"} | |
if use_realistic_vision: | |
!wget https://civitai.com/api/download/models/130072?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### XXMix_9realistic | |
#@markdown [公式ページ](https://civitai.com/models/47274/xxmix9realistic) | |
use_xxmix_9realistic = False #@param {type: "boolean"} | |
if use_xxmix_9realistic: | |
!wget https://civitai.com/api/download/models/102222?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BellyUse | |
#@markdown [公式ページ](https://civitai.com/models/211708) | |
use_belly_use = False #@param {type: "boolean"} | |
if use_belly_use: | |
!wget https://civitai.com/api/download/models/265163?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BlueberryMix | |
#@markdown [公式ページ](https://civitai.com/models/14323/blueberrymix) | |
use_blueberrymix = False #@param {type: "boolean"} | |
if use_blueberrymix: | |
!wget https://civitai.com/api/download/models/16859?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### ICBINP | |
#@markdown [公式ページ](https://civitai.com/models/28059/icbinp-i-cant-believe-its-not-photography) | |
use_icbinp = False #@param {type: "boolean"} | |
if use_icbinp: | |
!wget https://civitai.com/api/download/models/121557?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### ICBINP - LCM | |
#@markdown [公式ページ](https://civitai.com/models/28059/icbinp-i-cant-believe-its-not-photography) | |
use_icbinp_lcm = False #@param {type: "boolean"} | |
if use_icbinp_lcm: | |
!wget https://civitai.com/api/download/models/253668?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### t3 | |
#@markdown [公式ページ](https://civitai.com/models/110053/t3) | |
use_t3 = False #@param {type: "boolean"} | |
if use_t3: | |
!wget https://civitai.com/api/download/models/281273?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Realisian | |
#@markdown [公式ページ](https://civitai.com/models/47130/realisian) | |
use_realisian = False #@param {type: "boolean"} | |
if use_realisian: | |
!wget https://civitai.com/api/download/models/325142?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### RealCartoon-Realistic | |
#@markdown [公式ページ](https://civitai.com/models/97744/realcartoon-realistic) | |
use_realcartoon_realistic = False #@param {type: "boolean"} | |
if use_realcartoon_realistic: | |
!wget https://civitai.com/api/download/models/535328?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown --- | |
#@markdown ## 実写系モデル (Base: SD 2.1) | |
#@markdown ### Manga Diffusion PoC | |
#@markdown [公式ページ](https://huggingface.co/aipicasso/manga-diffusion-poc) | |
use_manga_diffusion_poc = False #@param {type: "boolean"} | |
if use_manga_diffusion_poc: | |
!wget https://huggingface.co/aipicasso/manga-diffusion-poc/resolve/main/poc.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown --- | |
#@markdown ## 実写系モデル (Base: SDXL) | |
#@markdown ### SDXL base 1.0 | |
#@markdown [公式ページ](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/IyXvmlhjjgM) | |
use_sdxl_base_1 = False #@param {type: "boolean"} | |
if use_sdxl_base_1: | |
!wget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### DreamShaper XL1.0 | |
#@markdown [公式ページ](https://civitai.com/models/112902) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/UAUhscKUvp8) | |
use_dream_shaper_xl_1 = False #@param {type: "boolean"} | |
if use_dream_shaper_xl_1: | |
!wget https://civitai.com/api/download/models/126688?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### fuduki_mix (v2.0) | |
#@markdown [公式ページ](https://huggingface.co/Kotajiro/fuduki_mix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/O2GNFwB2Ncg) | |
use_fuduki_mix_v2 = False #@param {type: "boolean"} | |
if use_fuduki_mix_v2: | |
!wget https://huggingface.co/Kotajiro/fuduki_mix/resolve/main/fuduki_mix_v20.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### haduki_mix | |
#@markdown [公式ページ](https://huggingface.co/Kotajiro/haduki_mix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/LrSyTqXa_bU?si=PCKaBIJSeG7uGxcB) | |
use_haduki_mix = False #@param {type: "boolean"} | |
if use_haduki_mix: | |
!wget https://huggingface.co/Kotajiro/haduki_mix/resolve/main/haduki_mix_v10_FP16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### nagatsuki_mix | |
#@markdown [公式ページ](https://huggingface.co/Kotajiro/nagatsuki_mix) | |
use_nagatsuki_mix = False #@param {type: "boolean"} | |
if use_nagatsuki_mix: | |
!wget https://huggingface.co/Kotajiro/nagatsuki_mix/resolve/main/nagatsuki_mix_v10_fp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Copax TimeLessXL - SDXL1.0 | |
#@markdown [公式ページ](https://civitai.com/models/118111/copax-timelessxl-sdxl10) | |
use_copax_timelessxl_sdxl10 = False #@param {type: "boolean"} | |
if use_copax_timelessxl_sdxl10: | |
!wget https://civitai.com/api/download/models/172160?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### AfterRealXL | |
#@markdown [公式ページ](https://civitai.com/models/150212/afterrealxl) | |
use_after_real_xl = False #@param {type: "boolean"} | |
if use_after_real_xl: | |
!wget https://civitai.com/api/download/models/167881?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### NightVision XL | |
#@markdown [公式ページ](https://civitai.com/models/128607/nightvision-xl-photorealistic-or-portrait-or-photography-or-hyperreal-or-architecture-or-interior-design-no-refiner-needed) | |
use_nightvision_xl = False #@param {type: "boolean"} | |
if use_nightvision_xl: | |
!wget https://civitai.com/api/download/models/159982?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Latent Consistency Model (LCM): SSD-1B | |
#@markdown [公式ページ](https://huggingface.co/latent-consistency/lcm-ssd-1b) | |
use_lcm_ssd_1b = False #@param {type: "boolean"} | |
if use_lcm_ssd_1b: | |
!wget https://huggingface.co/latent-consistency/lcm-ssd-1b/resolve/main/diffusion_pytorch_model.fp16.safetensors --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Imaginarium (Turbo boosted) | |
#@markdown [公式ページ](https://civitai.com/models/249973/imaginarium?modelVersionId=316617) | |
use_imaginarium_turbo_boosted = False #@param {type: "boolean"} | |
if use_imaginarium_turbo_boosted: | |
!wget https://civitai.com/api/download/models/316617?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### SDXL-Lightning (1step) | |
#@markdown [公式ページ](https://huggingface.co/ByteDance/SDXL-Lightning) | |
use_sdxl_lightning_1step = False #@param {type: "boolean"} | |
if use_sdxl_lightning_1step: | |
!wget https://huggingface.co/ByteDance/SDXL-Lightning/resolve/main/sdxl_lightning_1step_x0.safetensors --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### SDXL-Lightning (2step) | |
#@markdown [公式ページ](https://huggingface.co/ByteDance/SDXL-Lightning) | |
use_sdxl_lightning_2step = False #@param {type: "boolean"} | |
if use_sdxl_lightning_2step: | |
!wget https://huggingface.co/ByteDance/SDXL-Lightning/resolve/main/sdxl_lightning_2step.safetensors --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### SDXL-Lightning (4step) | |
#@markdown [公式ページ](https://huggingface.co/ByteDance/SDXL-Lightning) | |
use_sdxl_lightning_4step = False #@param {type: "boolean"} | |
if use_sdxl_lightning_4step: | |
!wget https://huggingface.co/ByteDance/SDXL-Lightning/resolve/main/sdxl_lightning_4step.safetensors --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### SDXL-Lightning (8step) | |
#@markdown [公式ページ](https://huggingface.co/ByteDance/SDXL-Lightning) | |
use_sdxl_lightning_8step = False #@param {type: "boolean"} | |
if use_sdxl_lightning_8step: | |
!wget https://huggingface.co/ByteDance/SDXL-Lightning/resolve/main/sdxl_lightning_8step.safetensors --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### DreamShaper XL (Lightning DPM++ SDE) | |
#@markdown [公式ページ](https://civitai.com/models/112902?modelVersionId=354657) | |
use_dream_shaper_xl_lightning_dpm_sde = False #@param {type: "boolean"} | |
if use_dream_shaper_xl_lightning_dpm_sde: | |
!wget https://civitai.com/api/download/models/354657?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Juggernaut XL (V9+RDPhoto2-Lightning_4S) | |
#@markdown [公式ページ](https://civitai.com/models/133005/juggernaut-xl) | |
use_juggernaut_xl_v9_rdphoto2_lightning_4s = False #@param {type: "boolean"} | |
if use_juggernaut_xl_v9_rdphoto2_lightning_4s: | |
!wget https://civitai.com/api/download/models/357609?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### RealVisXL V4.0 Lightning (BakedVAE) | |
#@markdown [公式ページ](https://civitai.com/models/139562/realvisxl-v40) | |
use_real_vis_xl_v4_lightning_bakedvae = False #@param {type: "boolean"} | |
if use_real_vis_xl_v4_lightning_bakedvae: | |
!wget https://civitai.com/api/download/models/361593?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### tsubaki_mix | |
#@markdown [公式ページ](https://civitai.com/models/455220/tsubakimix) | |
use_tsubaki_mix = False #@param {type: "boolean"} | |
if use_tsubaki_mix: | |
!wget https://civitai.com/api/download/models/506781?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### CyberRealistic XL | |
#@markdown [公式ページ](https://civitai.com/models/312530) | |
use_cyber_realistic_xl = False #@param {type: "boolean"} | |
if use_cyber_realistic_xl: | |
!wget https://civitai.com/api/download/models/395041?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Muchen-SDXL-Portrait | |
#@markdown [公式ページ](https://civitai.com/models/450086/muchen-sdxl-portrait) | |
use_muchen_sdxl_portrait = False #@param {type: "boolean"} | |
if use_muchen_sdxl_portrait: | |
!wget https://civitai.com/api/download/models/501157?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### AutHuman Pony V4 | |
#@markdown [公式ページ](https://civitai.com/models/477246/authuman-pony-v4) | |
use_authuman_pony_v4 = False #@param {type: "boolean"} | |
if use_authuman_pony_v4: | |
!wget https://civitai.com/api/download/models/579902?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### AoiReal Pony | |
#@markdown [公式ページ](https://civitai.com/models/481162/aoireal-pony) | |
use_aoireal_pony = False #@param {type: "boolean"} | |
if use_aoireal_pony: | |
!wget https://civitai.com/api/download/models/559460?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### Beeble's Realistic PonyXL | |
#@markdown [公式ページ](https://civitai.com/models/520415/beebles-realistic-ponyxl) | |
use_beebles_realistic_ponyxl = False #@param {type: "boolean"} | |
if use_beebles_realistic_ponyxl: | |
!wget https://civitai.com/api/download/models/578234?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### PinkiePie pony mix | |
#@markdown [公式ページ](https://civitai.com/models/457669) | |
use_pinkiepie_pony_mix = False #@param {type: "boolean"} | |
if use_pinkiepie_pony_mix: | |
!wget https://civitai.com/api/download/models/586928?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### real pony | |
#@markdown [公式ページ](https://civitai.com/models/365041) | |
use_real_pony = False #@param {type: "boolean"} | |
if use_real_pony: | |
!wget https://civitai.com/api/download/models/515456?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### WAI-REAL_CN | |
#@markdown [公式ページ](https://civitai.com/api/download/models/583715) | |
use_wai_real_cn = False #@param {type: "boolean"} | |
if use_wai_real_cn: | |
!wget https://civitai.com/api/download/models/583715?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### realPony_JPDoll | |
#@markdown [公式ページ](https://civitai.com/models/420600) | |
use_realpony_jpdoll = False #@param {type: "boolean"} | |
if use_realpony_jpdoll: | |
!wget https://civitai.com/api/download/models/468687?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui-forge/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown ### MinkiePie | |
#@markdown [公式ページ](https://civitai.com/models/475514/minkiepie-pony-mix) | |
use_minkiePie = False #@param {type: "boolean"} | |
if use_minkiePie: | |
!wget https://civitai.com/api/download/models/528902?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui-forge/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown --- | |
#@markdown ## イラスト系モデル (Base: SD 1.5) | |
#@markdown ### meinamix | |
#@markdown [公式ページ](https://civitai.com/models/7240/meinamix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/LX7_3vmUImY) | |
use_meina_mix = False #@param {type: "boolean"} | |
if use_meina_mix: | |
!wget https://civitai.com/api/download/models/119057?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### BraveDawn | |
#@markdown [公式ページ](https://civitai.com/models/101932) | |
#@markdown VAEの `vae-ft-mse-840000-ema-pruned.ckpt` を併せて利用することが公式より推奨されています | |
use_brave_dawn = False #@param {type: "boolean"} | |
if use_brave_dawn: | |
!wget https://civitai.com/api/download/models/128200?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Break the Darkness | |
#@markdown [公式ページ](https://civitai.com/models/105047/break-the-darkness) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/Slpt9bQ6884) | |
use_break_the_darkness = False #@param {type: "boolean"} | |
if use_break_the_darkness: | |
!wget https://civitai.com/api/download/models/123633?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### FlexDreamHK | |
#@markdown [公式ページ](https://huggingface.co/den2nova/FlexDreamHK) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/wiG9GbXpPis) | |
use_flex_dream_hk = False #@param {type: "boolean"} | |
if use_flex_dream_hk: | |
!wget https://huggingface.co/den2nova/FlexDreamHK/resolve/main/FlexDreamHK_v2.0.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### ENCartoony | |
#@markdown [公式ページ](https://civitai.com/models/143113) | |
use_encartoony = False #@param {type: "boolean"} | |
if use_encartoony: | |
!wget https://civitai.com/api/download/models/158785?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### ENCLight-v1 | |
#@markdown [公式ページ](https://civitai.com/models/161452/enclight-v1) | |
use_enclight_v1 = False #@param {type: "boolean"} | |
if use_enclight_v1: | |
!wget https://civitai.com/api/download/models/181723?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Flat-2D Animerge | |
#@markdown [公式ページ](https://civitai.com/models/35960/flat-2d-animerge) | |
use_flat2d_animerge = False #@param {type: "boolean"} | |
if use_flat2d_animerge: | |
!wget https://civitai.com/api/download/models/266360?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### AnyLoRA - Checkpoint | |
#@markdown [公式ページ](https://civitai.com/models/23900/anylora-checkpoint) | |
use_anylora_checkpoint = False #@param {type: "boolean"} | |
if use_anylora_checkpoint: | |
!wget https://civitai.com/api/download/models/95489?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown --- | |
#@markdown ## イラスト系モデル (Base: SDXL) | |
#@markdown ### BreakDomainXL | |
#@markdown [公式ページ](https://civitai.com/models/126259/breakdomainxl) | |
#@markdown VAEの `sdxl_vae` を併せて利用することが公式より推奨されています | |
use_break_domain_xl = False #@param {type: "boolean"} | |
if use_break_domain_xl: | |
!wget https://civitai.com/api/download/models/145893?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### LastpieceCoreXL | |
#@markdown [公式ページ](https://huggingface.co/konapieces/LastpieceCoreXL) | |
use_last_piece_core_xl = False #@param {type: "boolean"} | |
if use_last_piece_core_xl: | |
!wget https://huggingface.co/konapieces/LastpieceCoreXL/resolve/main/models/S0964/LastpieceCoreXL_S0964.fp16.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# 専用のVAEも併せて導入 | |
!wget https://huggingface.co/konapieces/LastpieceCoreXL/resolve/main/vae/lastpiece.xl.vae.safetensors --directory-prefix=/content/stable-diffusion-webui/models/VAE/ | |
#@markdown ### blue_pencil-XL | |
#@markdown [公式ページ](https://civitai.com/models/119012/bluepencil-xl) | |
use_blue_pencil_xl = False #@param {type: "boolean"} | |
if use_blue_pencil_xl: | |
!wget https://civitai.com/api/download/models/212090?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# 推奨されるNegative Embeddingsも導入 | |
# unaestheticXL | Negative TI (_Jug6, _Sky3.1, _AYv1) | |
# URL: https://civitai.com/models/119032/unaestheticxl-or-negative-ti) | |
!wget https://civitai.com/api/download/models/207934?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
!wget https://civitai.com/api/download/models/175819?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
!wget https://civitai.com/api/download/models/162146?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### blue_pencil-XL-LCM | |
#@markdown [公式ページ](https://civitai.com/models/202108/bluepencil-xl-lcm) | |
use_blue_pencil_xl_lcm = False #@param {type: "boolean"} | |
if use_blue_pencil_xl_lcm: | |
!wget https://civitai.com/api/download/models/227693?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### NekoRayXL | |
#@markdown [公式ページ](https://civitai.com/models/136719/nekorayxl) | |
use_neko_ray_xl = False #@param {type: "boolean"} | |
if use_neko_ray_xl: | |
!wget https://civitai.com/api/download/models/150826?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Animagine XL V3 | |
#@markdown [公式ページ](https://civitai.com/models/260267/animagine-xl-v3) | |
use_animagine_xl_v3 = False #@param {type: "boolean"} | |
if use_animagine_xl_v3: | |
!wget https://civitai.com/api/download/models/293564?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Shiroverse XL | |
#@markdown [公式ページ](https://civitai.com/models/378088/shiroverse-xl) | |
use_shiroverse_xl = False #@param {type: "boolean"} | |
if use_shiroverse_xl: | |
!wget https://civitai.com/api/download/models/422177?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Emi 2 | |
#@markdown [公式ページ](https://huggingface.co/aipicasso/emi-2) | |
use_emi_2 = False #@param {type: "boolean"} | |
if use_emi_2: | |
!wget https://huggingface.co/aipicasso/emi-2/resolve/main/emi-2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown ### Pony Diffusion V6 XL | |
#@markdown [公式ページ](https://civitai.com/models/257749) | |
use_pony_diffusion_v6_xl = False #@param {type: "boolean"} | |
if use_pony_diffusion_v6_xl: | |
!mkdir -p /content/stable-diffusion-webui/models/Stable-diffusion/ | |
!wget "https://civitai.com/api/download/models/290640?type=Model&format=SafeTensor&size=pruned&fp=fp16&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/Stable-diffusion/ponyDiffusionV6XL_v6StartWithThisOne.safetensors | |
# VAEも併せて導入(SDXL_VAE) | |
!mkdir -p /content/stable-diffusion-webui/models/VAE/ | |
!wget "https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor&token={civitai_api_key}" --output-document=/content/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors | |
#@markdown --- | |
#@markdown ## セミリアル系モデル (Base: SD 1.5) | |
#@markdown ### LittleStepMix v1 | |
#@markdown LittleStepMixを導入する際は併せて、【sr_SDv2vae_kl-f8anime2.safetensors】というVAEも一緒にインストールします | |
#@markdown [公式ページ](https://huggingface.co/sazyou-roukaku/LittleStepMix) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/a2X3oJB55nE) | |
use_little_step_mix_v1 = False #@param {type: "boolean"} | |
if use_little_step_mix_v1: | |
# モデルファイルのダウンロード(LittleStepMix_v1) | |
!wget https://huggingface.co/sazyou-roukaku/LittleStepMix/resolve/main/LittleStepMix_v1.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
# VAEのダウンロード(sr_SDv2vae_kl-f8anime2.safetensors) - LittleStepMix_v1に必要 | |
!wget https://huggingface.co/sazyou-roukaku/LittleStepMix/resolve/main/VAE/sr_SDv2vae_kl-f8anime2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/VAE/ | |
#@markdown --- | |
#@markdown ## refiner向けモデル (SDXL向け) | |
#@markdown ### SD-XL 1.0-refiner | |
#@markdown [公式ページ](https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0) | |
#@markdown [生成される画像を確認する(YouTube)](https://youtu.be/CNhrbc8VRSk?si=OSQVldOp7FMU--zL) | |
use_sdxl_1_refiner = False #@param {type: "boolean"} | |
if use_sdxl_1_refiner: | |
!wget https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Stable-diffusion/ | |
#@markdown --- | |
#@markdown ## ControlNet | |
#@markdown ControlNetを導入したい場合、チェックを入れてください | |
#@markdown 常に最新版のControlNetを導入します | |
#@markdown ControlNetはSD1.5とSDXLで対応するモデルが異なります。利用するモデルに合わせてチェックをつけてください。また、どちらも利用したい場合、両方のチェックボックスにチェックを付けてください。 | |
#@markdown [公式ページ](https://huggingface.co/lllyasviel/ControlNet) | |
use_control_net_sd15 = False #@param {type: "boolean"} | |
use_control_net_sdxl = False #@param {type: "boolean"} | |
if use_control_net_sd15 or use_control_net_sdxl: | |
### ControlNetを導入して起動 | |
# ControlNetをインストールした状態でweb UIを実行すると"ERROR: Failed building wheel for pycairo"というエラーが出るため、以下のコマンドをまずは実施 | |
!apt -y install -qq aria2 libcairo2-dev pkg-config python3-dev | |
# IP-Adapter-FaceIDを利用する際に必要になる | |
!pip install insightface==0.7.3 | |
# ControlNet 1.1のダウンロード | |
!git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet | |
# IP-Adapter-FaceID用のLoRAを格納するため、先にディレクトリを作成 | |
!mkdir -p /content/stable-diffusion-webui/models/Lora | |
if use_control_net_sd15: | |
# modelファイルのダウンロード | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_ip2p.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_shuffle.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11f1e_sd15_tile.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1e_sd15_tile.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11f1p_sd15_depth.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_inpaint.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_inpaint.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_lineart.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_mlsd.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_mlsd.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_normalbae.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_normalbae.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_openpose.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_openpose.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_scribble.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_scribble.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_seg.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_softedge.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_softedge.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15s2_lineart_anime.pth https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15s2_lineart_anime.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ioclab_sd15_recolor.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ioclab_sd15_recolor.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter_sd15.pth https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ip-adapter_sd15.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter_sd15_plus.pth https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ip-adapter_sd15_plus.pth | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_sd15_inpaint_depth_hand_fp16.safetensors https://huggingface.co/hr16/ControlNet-HandRefiner-pruned/resolve/main/control_sd15_inpaint_depth_hand_fp16.safetensors | |
# IP-Adapter-FaceID | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter-faceid_sd15.bin https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sd15.bin | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter-faceid-plus_sd15.bin https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plus_sd15.bin | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter-faceid-plusv2_sd15.bin https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sd15.bin | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter-faceid-portrait_sd15.bin https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-portrait_sd15.bin | |
!curl -Lo /content/stable-diffusion-webui/models/Lora/ip-adapter-faceid_sd15_lora.safetensors https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sd15_lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/models/Lora/ip-adapter-faceid-plus_sd15_lora.safetensors https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plus_sd15_lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/models/Lora/ip-adapter-faceid-plusv2_sd15_lora.safetensors https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sd15_lora.safetensors | |
if use_control_net_sdxl: | |
# modelファイルのダウンロード | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/diffusers_xl_canny_full.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_canny_full.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/diffusers_xl_canny_mid.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_canny_mid.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/diffusers_xl_canny_small.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_canny_small.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/diffusers_xl_depth_full.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_depth_full.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/diffusers_xl_depth_mid.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_depth_mid.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/diffusers_xl_depth_small.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_depth_small.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/kohya_controllllite_xl_canny_anime.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_canny_anime.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/kohya_controllllite_xl_depth_anime.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_depth_anime.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/kohya_controllllite_xl_openpose_anime.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_openpose_anime.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/kohya_controllllite_xl_openpose_anime_v2.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_openpose_anime_v2.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/kohya_controllllite_xl_scribble_anime.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_scribble_anime.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_canny_128lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_canny_128lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_canny_256lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_canny_256lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_depth_128lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_depth_128lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_depth_256lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_depth_256lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_recolor_128lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_recolor_128lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_recolor_256lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_recolor_256lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_sketch_128lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_sketch_128lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sai_xl_sketch_256lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_sketch_256lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sargezt_xl_depth.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_depth.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sargezt_xl_depth_faid_vidit.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_depth_faid_vidit.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sargezt_xl_depth_zeed.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_depth_zeed.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/sargezt_xl_softedge.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_softedge.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/t2i-adapter_xl_canny.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_xl_canny.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/t2i-adapter_xl_openpose.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_xl_openpose.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/t2i-adapter_xl_sketch.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_xl_sketch.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/thibaud_xl_openpose.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/thibaud_xl_openpose.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/thibaud_xl_openpose_256lora.safetensors https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/thibaud_xl_openpose_256lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter_xl.pth https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ip-adapter_xl.pth | |
# IP-Adapter-FaceID | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter-faceid_sdxl.bin https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sdxl.bin | |
!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/ip-adapter-faceid-plusv2_sdxl.bin https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sdxl.bin | |
!curl -Lo /content/stable-diffusion-webui/models/Lora/ip-adapter-faceid_sdxl_lora.safetensors https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sdxl_lora.safetensors | |
!curl -Lo /content/stable-diffusion-webui/models/Lora/ip-adapter-faceid-plusv2_sdxl_lora.safetensors https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sdxl_lora.safetensors | |
# Instant ID | |
!curl -Lo /content/stable-diffusion-webui/models/ControlNet/ip-adapter_instant_id_sdxl.bin https://huggingface.co/InstantX/InstantID/resolve/main/ip-adapter.bin | |
!curl -Lo /content/stable-diffusion-webui/models/ControlNet/control_instant_id_sdxl.safetensors https://huggingface.co/InstantX/InstantID/resolve/main/ControlNetModel/diffusion_pytorch_model.safetensors | |
#@markdown --- | |
#@markdown ## LoRA (Base: SD 1.5) | |
#@markdown 導入したいLoRAにチェックを入れてください | |
#@markdown ### flat2 | |
#@markdown [公式ページ](https://huggingface.co/2vXpSwA7/iroiro-lora) | |
use_flat_2 = False #@param {type: "boolean"} | |
if use_flat_2: | |
!wget https://huggingface.co/2vXpSwA7/iroiro-lora/resolve/main/release/flat2.safetensors --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### Outline | |
#@markdown [公式ページ](https://civitai.com/models/81340/outline) | |
use_outline = False #@param {type: "boolean"} | |
if use_outline: | |
!wget https://civitai.com/api/download/models/86304?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### LowRA | |
#@markdown [公式ページ](https://civitai.com/models/48139/lowra) | |
use_lowra = False #@param {type: "boolean"} | |
if use_lowra: | |
!wget https://civitai.com/api/download/models/63006?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### WipeBack | |
#@markdown [公式ページ](https://civitai.com/models/52155) | |
use_wipe_back = False #@param {type: "boolean"} | |
if use_wipe_back: | |
!wget https://civitai.com/api/download/models/56591?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### Latent Consistency Model (LCM) LoRA: SDv1-5 | |
#@markdown [公式ページ](https://huggingface.co/latent-consistency/lcm-lora-sdv1-5) | |
use_lcm_lora_sdv1_5 = False #@param {type: "boolean"} | |
if use_lcm_lora_sdv1_5: | |
!wget https://huggingface.co/latent-consistency/lcm-lora-sdv1-5/resolve/main/pytorch_lora_weights.safetensors?download=true --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### Cartoon_style | |
#@markdown [公式ページ](https://civitai.com/models/143285/cartoonstyle) | |
use_cartoon_style = False #@param {type: "boolean"} | |
if use_cartoon_style: | |
!wget https://civitai.com/api/download/models/158992?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### 背景LoRA-architecture-v4 | |
#@markdown [公式ページ](https://civitai.com/models/172984/lora-architecture-v4) | |
use_haikei_lora_architecture_v4 = False #@param {type: "boolean"} | |
if use_haikei_lora_architecture_v4: | |
!wget https://civitai.com/api/download/models/194275?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### VoidnoiseLoRA | |
#@markdown [公式ページ](https://civitai.com/models/171176/voidnoiselora) | |
use_voidnoise_lora = False #@param {type: "boolean"} | |
if use_voidnoise_lora: | |
!wget https://civitai.com/api/download/models/192321?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### AnimateDiff Motion LoRAs (Zoom In) | |
#@markdown [公式ページ](https://civitai.com/models/153022?modelVersionId=171354) | |
use_animatediff_motion_loras_zoom_in = False #@param {type: "boolean"} | |
if use_animatediff_motion_loras_zoom_in: | |
!wget https://civitai.com/api/download/models/171354?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### AnimateDiff Motion LoRAs (Zoom Out) | |
#@markdown [公式ページ](https://civitai.com/models/153022?modelVersionId=171355) | |
use_animatediff_motion_loras_zoom_out = False #@param {type: "boolean"} | |
if use_animatediff_motion_loras_zoom_out: | |
!wget https://civitai.com/api/download/models/171355?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### M_Pixel 像素人人 | |
#@markdown [公式ページ](https://civitai.com/models/44960/mpixel) | |
use_m_pixel = False #@param {type: "boolean"} | |
if use_m_pixel: | |
!wget https://civitai.com/api/download/models/52870?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### hairdetailer | |
#@markdown [公式ページ](https://civitai.com/models/81328/hairdetailer) | |
use_hairdetailer = False #@param {type: "boolean"} | |
if use_hairdetailer: | |
!wget https://civitai.com/api/download/models/86284?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown --- | |
#@markdown ## LoRA (Base: SDXL) | |
#@markdown ### Latent Consistency Model (LCM) LoRA: SDXL | |
#@markdown [公式ページ](https://huggingface.co/latent-consistency/lcm-lora-sdxl) | |
use_lcm_lora_sdxl = False #@param {type: "boolean"} | |
if use_lcm_lora_sdxl: | |
!wget https://huggingface.co/latent-consistency/lcm-lora-sdxl/resolve/main/pytorch_lora_weights.safetensors?download=true --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown ### ayame_LoRA | |
#@markdown [公式ページ](https://civitai.com/models/153267/ayamelora) | |
use_ayame_lora = False #@param {type: "boolean"} | |
if use_ayame_lora: | |
!wget https://civitai.com/api/download/models/234810?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/Lora/ | |
#@markdown --- | |
#@markdown ## VAE | |
#@markdown 導入したいVAEにチェックを入れてください | |
#@markdown ### vae-ft-mse-840000 | |
#@markdown [公式ページ](https://huggingface.co/stabilityai/sd-vae-ft-mse-original) | |
use_vae_ft_mse_840000 = False #@param {type: "boolean"} | |
if use_vae_ft_mse_840000: | |
!wget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors --directory-prefix=/content/stable-diffusion-webui/models/VAE/ | |
#@markdown ### kl-f8-anime2 | |
#@markdown [公式ページ](https://huggingface.co/hakurei/waifu-diffusion-v1-4) | |
use_klf8_anime2 = False #@param {type: "boolean"} | |
if use_klf8_anime2: | |
!wget https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt --directory-prefix=/content/stable-diffusion-webui/models/VAE/ | |
#@markdown ### SDXL - VAE (SDXL向け) | |
#@markdown [公式ページ](https://huggingface.co/stabilityai/sdxl-vae) | |
use_sdxl_vae = False #@param {type: "boolean"} | |
if use_sdxl_vae: | |
!wget https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors --directory-prefix=/content/stable-diffusion-webui/models/VAE/ | |
#@markdown --- | |
#@markdown ## embeddings | |
#@markdown 導入したいembeddingsにチェックを入れてください | |
#@markdown ### EasyNegative | |
#@markdown [公式ページ](https://huggingface.co/datasets/gsdf/EasyNegative) | |
use_easy_negative = False #@param {type: "boolean"} | |
if use_easy_negative: | |
!wget https://huggingface.co/datasets/gsdf/EasyNegative/resolve/main/EasyNegative.safetensors --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### negative_hand Negative Embedding | |
#@markdown [公式ページ](https://civitai.com/models/56519/negativehand-negative-embedding) | |
use_negative_hand_negative_embedding = False #@param {type: "boolean"} | |
if use_negative_hand_negative_embedding: | |
!wget https://civitai.com/api/download/models/60938?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### badhandv4 | |
#@markdown [公式ページ](https://civitai.com/models/16993/badhandv4-animeillustdiffusion) | |
use_badhandv4 = False #@param {type: "boolean"} | |
if use_badhandv4: | |
!wget https://civitai.com/api/download/models/20068?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### badhandv4 | |
#@markdown [公式ページ](https://civitai.com/models/16993/badhandv4-animeillustdiffusion) | |
use_badhandv4 = False #@param {type: "boolean"} | |
if use_badhandv4: | |
!wget https://civitai.com/api/download/models/20068?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### unaestheticXL | Negative TI(_Jug6) | |
#@markdown [公式ページ](https://civitai.com/models/119032/unaestheticxl-or-negative-ti) | |
use_unaesthetic_xl_jug6 = False #@param {type: "boolean"} | |
if use_unaesthetic_xl_jug6 and not use_blue_pencil_xl: | |
!wget https://civitai.com/api/download/models/207934?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### unaestheticXL | Negative TI(_Sky3.1) | |
#@markdown [公式ページ](https://civitai.com/models/119032/unaestheticxl-or-negative-ti) | |
use_unaesthetic_xl_sky31 = False #@param {type: "boolean"} | |
if use_unaesthetic_xl_sky31 and not use_blue_pencil_xl: | |
!wget https://civitai.com/api/download/models/175819?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### unaestheticXL | Negative TI(_AYv1) | |
#@markdown [公式ページ](https://civitai.com/models/119032/unaestheticxl-or-negative-ti) | |
use_unaesthetic_xl_ayv1 = False #@param {type: "boolean"} | |
if use_unaesthetic_xl_ayv1 and not use_blue_pencil_xl: | |
!wget https://civitai.com/api/download/models/162146?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown ### unaestheticXL | Negative TI(_Alb2) | |
#@markdown [公式ページ](https://civitai.com/models/119032/unaestheticxl-or-negative-ti) | |
use_unaesthetic_xl_alb2 = False #@param {type: "boolean"} | |
if use_unaesthetic_xl_alb2 and not use_blue_pencil_xl: | |
!wget https://civitai.com/api/download/models/363593?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/embeddings/ | |
#@markdown --- | |
#@markdown ## Upscaler | |
#@markdown ### 4x-UltraSharp | |
#@markdown [公式ページ](https://openmodeldb.info/models/4x-UltraSharp) | |
#@markdown #### ダウンロードについて | |
#@markdown こちらはMegaにファイルがホストされている関係でプログラム側から直接ダウンロードが出来ません。[4x-UltraSharp](https://openmodeldb.info/models/4x-UltraSharp)より直接ダウンロードした上で、/content/stable-diffusion-webui/models/ESRGANにファイルを格納してご利用ください。 | |
#@markdown ### 4x-AnimeSharp | |
#@markdown [公式ページ](https://openmodeldb.info/models/4x-AnimeSharp) | |
#@markdown #### ダウンロードについて | |
#@markdown こちらはMegaにファイルがホストされている関係でプログラム側から直接ダウンロードが出来ません。[4x-AnimeSharp](https://openmodeldb.info/models/4x-AnimeSharp)より直接ダウンロードした上で、/content/stable-diffusion-webui/models/ESRGANにファイルを格納してご利用ください。 | |
#@markdown --- | |
#@markdown ## 拡張機能 | |
#@markdown 導入したい拡張機能にチェックを入れてください | |
#@markdown ### After Detailer | |
#@markdown [公式ページ](https://github.com/Bing-su/adetailer) | |
#@markdown [使い方を確認する(YouTube)](https://youtu.be/WJfhNjzjMIE) | |
use_after_detailer = False #@param {type: "boolean"} | |
if use_after_detailer: | |
!git clone https://github.com/Bing-su/adetailer.git /content/stable-diffusion-webui/extensions/adetailer | |
# ADetailer (After Detailer) Lips Model (URL: https://civitai.com/models/142240/adetailer-after-detailer-lips-model) | |
!mkdir -p /content/stable-diffusion-webui/models/adetailer | |
!wget https://civitai.com/api/download/models/157700?token={civitai_api_key} --content-disposition --directory-prefix=/content/stable-diffusion-webui/models/adetailer | |
!unzip /content/stable-diffusion-webui/models/adetailer/adetailerAfterDetailer_v10.zip -d /content/stable-diffusion-webui/models/adetailer/ | |
#@markdown ### Rembg | |
#@markdown [公式ページ](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg) | |
#@markdown [使い方を確認する(YouTube)](https://youtu.be/nK9M7NYgZDI) | |
use_rembg = False #@param {type: "boolean"} | |
if use_rembg: | |
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git /content/stable-diffusion-webui/extensions/stable-diffusion-webui-rembg | |
#@markdown ### sd-webui-enable-checker | |
#@markdown [公式ページ](https://github.com/shirayu/sd-webui-enable-checker) | |
#@markdown [使い方を確認する(YouTube)](https://youtu.be/e_LTlWbKTaE) | |
use_sd_webui_enable_chacker = False #@param {type: "boolean"} | |
if use_sd_webui_enable_chacker: | |
!git clone https://github.com/shirayu/sd-webui-enable-checker.git /content/stable-diffusion-webui/extensions/sd-webui-enable-checker | |
#@markdown ### Easy Generate Forever | |
#@markdown [公式ページ](https://github.com/blue-pen5805/sdweb-easy-generate-forever) | |
#@markdown [使い方を確認する(YouTube)](https://youtu.be/e_LTlWbKTaE) | |
use_easy_generate_forever = False #@param {type: "boolean"} | |
if use_easy_generate_forever: | |
!git clone https://github.com/blue-pen5805/sdweb-easy-generate-forever.git /content/stable-diffusion-webui/extensions/sdweb-easy-generate-forever | |
#@markdown ### sd_katanuki | |
#@markdown [公式ページ](https://github.com/aka7774/sd_katanuki) | |
#@markdown [使い方を確認する(YouTube)](https://youtu.be/3WiiXMWierk) | |
use_sd_katanuki = False #@param {type: "boolean"} | |
if use_sd_katanuki: | |
!git clone https://github.com/aka7774/sd_katanuki.git /content/stable-diffusion-webui/extensions/sd_katanuki | |
#@markdown ### Booru tag autocompletion for A1111 | |
#@markdown [公式ページ](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete) | |
use_booru_tag_autocompletion_for_a1111 = False #@param {type: "boolean"} | |
if use_booru_tag_autocompletion_for_a1111: | |
!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git /content/stable-diffusion-webui/extensions/tag-autocomplete | |
#@markdown ### AnimateDiff | |
#@markdown [公式ページ](https://github.com/continue-revolution/sd-webui-animatediff) | |
#@markdown [使い方を確認する(YouTube)](https://youtu.be/jzt8LXczMb4) | |
use_animate_diff = False #@param {type: "boolean"} | |
if use_animate_diff: | |
# AnimateDiffの導入 | |
!git clone https://github.com/continue-revolution/sd-webui-animatediff.git /content/stable-diffusion-webui/extensions/sd-webui-animatediff | |
#@markdown 以下にチェックをつけると、AnimateDiff用のmodelはv15_v3のみをダウンロードするようにします。チェックをつけたほうがセットアップ処理の時間削減に繋がります。(v15_v2のみのチェックボックスと併用可能です) | |
only_use_animate_diff_v15_v3 = False #@param {type: "boolean"} | |
if only_use_animate_diff_v15_v3: | |
# AnimateDiff用のモーションモジュールダウンロード (v15_v3) | |
!wget https://huggingface.co/conrevo/AnimateDiff-A1111/resolve/main/motion_module/mm_sd15_v3.safetensors --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
#@markdown 以下にチェックをつけると、AnimateDiff用のmodelはv15_v2のみをダウンロードするようにします。チェックをつけたほうがセットアップ処理の時間削減に繋がります。(v15_v3のみのチェックボックスと併用可能です) | |
only_use_animate_diff_v15_v2 = False #@param {type: "boolean"} | |
if only_use_animate_diff_v15_v2: | |
# AnimateDiff用のモーションモジュールダウンロード (v15_v2) | |
!wget https://huggingface.co/guoyww/animatediff/resolve/refs%2Fpr%2F3/mm_sd_v15_v2.safetensors --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
if only_use_animate_diff_v15_v3 is False and only_use_animate_diff_v15_v2 is False and use_animate_diff is True: | |
!wget https://huggingface.co/guoyww/animatediff/resolve/refs%2Fpr%2F3/mm_sd_v14.safetensors --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
!wget https://huggingface.co/guoyww/animatediff/resolve/refs%2Fpr%2F3/mm_sd_v15.safetensors --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
!wget https://huggingface.co/guoyww/animatediff/resolve/refs%2Fpr%2F3/mm_sd_v15_v2.safetensors --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
!wget https://huggingface.co/conrevo/AnimateDiff-A1111/resolve/main/motion_module/mm_sd15_v3.safetensors --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-animatediff/model | |
#@markdown ### Deforum Stable Diffusion — official extension for AUTOMATIC1111's webui | |
#@markdown [公式ページ](https://github.com/deforum-art/sd-webui-deforum) | |
use_sd_webui_deforum = False #@param {type: "boolean"} | |
if use_sd_webui_deforum: | |
!git clone https://github.com/deforum-art/sd-webui-deforum.git /content/stable-diffusion-webui/extensions/deforum | |
#@markdown ### Inpaint Anything for Stable Diffusion Web UI | |
#@markdown [公式ページ](https://github.com/Uminosachi/sd-webui-inpaint-anything) | |
use_sd_webui_inpaint_anything = False #@param {type: "boolean"} | |
if use_sd_webui_inpaint_anything: | |
# Inpaint Anything for Stable Diffusion Web UI | |
!git clone https://github.com/Uminosachi/sd-webui-inpaint-anything.git /content/stable-diffusion-webui/extensions/sd-webui-inpaint-anything | |
#@markdown ### Segment Anything for Stable Diffusion WebUI | |
#@markdown [公式ページ](https://github.com/continue-revolution/sd-webui-segment-anything) | |
use_sd_webui_segment_anything = False #@param {type: "boolean"} | |
if use_sd_webui_segment_anything: | |
# Segment Anything for Stable Diffusion WebUI | |
!git clone https://github.com/continue-revolution/sd-webui-segment-anything.git /content/stable-diffusion-webui/extensions/sd-webui-segment-anything | |
# 必要なモデルファイルをダウンロード - Meta AI (Colab利用前提のためhuge, largeのみダウンロード) | |
!wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-segment-anything/models/sam | |
!wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth --directory-prefix=/content/stable-diffusion-webui/extensions/sd-webui-segment-anything/models/sam | |
#@markdown ### sd-webui-freeu | |
#@markdown [公式ページ](https://github.com/ljleb/sd-webui-freeu) | |
use_sd_webui_freeu = False #@param {type: "boolean"} | |
if use_sd_webui_freeu: | |
!git clone https://github.com/ljleb/sd-webui-freeu.git /content/stable-diffusion-webui/extensions/sd-webui-freeu | |
#@markdown ### ReActor for Stable Diffusion | |
#@markdown [公式ページ](https://github.com/Gourieff/sd-webui-reactor) | |
use_sd_webui_reactor = False #@param {type: "boolean"} | |
if use_sd_webui_reactor: | |
!git clone https://github.com/Gourieff/sd-webui-reactor.git /content/stable-diffusion-webui/extensions/sd-webui-reactor | |
#@markdown ### SadTalker | |
#@markdown #### 注意 | |
#@markdown Colabで実行した場合、動画が生成される前にエラー表示となってしまいます。 | |
#@markdown しかし生成された動画ファイルは以下のパスに出力されていますので、そちらから直接ダウンロードしてください。 | |
#@markdown /content/stable-diffusion-webui/results | |
#@markdown [公式ページ](https://github.com/OpenTalker/SadTalker) | |
use_sad_talker = False #@param {type: "boolean"} | |
if use_sad_talker: | |
!git clone https://github.com/OpenTalker/SadTalker.git /content/stable-diffusion-webui/extensions/SadTalker | |
!mkdir /content/sad-talker | |
!wget https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00109-model.pth.tar --directory-prefix=/content/sad-talker | |
!wget https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00229-model.pth.tar --directory-prefix=/content/sad-talker | |
!wget https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_256.safetensors --directory-prefix=/content/sad-talker | |
!wget https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_512.safetensors --directory-prefix=/content/sad-talker | |
%env SADTALKER_CHECKPOINTS=/content/sad-talker | |
cmd_args += " --no-gradio-queue --disable-safe-unpickle" | |
#@markdown ### TrainTrain | |
#@markdown [公式ページ](https://github.com/hako-mikan/sd-webui-traintrain) | |
use_traintrain = False #@param {type: "boolean"} | |
if use_traintrain: | |
!git clone https://github.com/hako-mikan/sd-webui-traintrain.git /content/stable-diffusion-webui/extensions/sd-webui-traintrain | |
#@markdown ### Dataset Tag Editor | |
#@markdown [公式ページ](https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor) | |
use_dataset_tag_editor = False #@param {type: "boolean"} | |
if use_dataset_tag_editor: | |
!git clone https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor.git /content/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor | |
#@markdown ### sd-civitai-browser (CivBrowser) | |
#@markdown [公式ページ](https://github.com/SignalFlagZ/sd-webui-civbrowser) | |
use_sd_webui_civbrowser = False #@param {type: "boolean"} | |
if use_sd_webui_civbrowser: | |
!git clone https://github.com/SignalFlagZ/sd-webui-civbrowser.git /content/stable-diffusion-webui/extensions/sd-webui-civbrowser | |
#@markdown ### LoRA Block Weight | |
#@markdown [公式ページ](https://github.com/hako-mikan/sd-webui-lora-block-weight) | |
use_lora_block_weight = False #@param {type: "boolean"} | |
if use_lora_block_weight: | |
!git clone https://github.com/hako-mikan/sd-webui-lora-block-weight.git /content/stable-diffusion-webui/extensions/sd-webui-lora-block-weight | |
#@markdown ### Mov2mov | |
#@markdown [公式ページ](https://github.com/Scholar01/sd-webui-mov2mov) | |
use_mov2mov = False #@param {type: "boolean"} | |
if use_mov2mov: | |
!git clone https://github.com/Scholar01/sd-webui-mov2mov.git /content/stable-diffusion-webui/extensions/sd-webui-mov2mov | |
#@markdown ### SuperMerger | |
#@markdown [公式ページ](https://github.com/hako-mikan/sd-webui-supermerger) | |
use_super_merger = False #@param {type: "boolean"} | |
if use_super_merger: | |
!git clone https://github.com/hako-mikan/sd-webui-supermerger.git /content/stable-diffusion-webui/extensions/sd-webui-supermerger | |
#@markdown ### Stable Diffusion webui Infinite Image Browsing | |
#@markdown [公式ページ](https://github.com/zanllp/sd-webui-infinite-image-browsing) | |
use_sd_webui_infinite_image_browsing = False #@param {type: "boolean"} | |
if use_sd_webui_infinite_image_browsing: | |
!git clone https://github.com/zanllp/sd-webui-infinite-image-browsing.git /content/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing | |
#@markdown ### SearchMyPNG | |
#@markdown [公式ページ](https://github.com/hina-choco/SearchMyPNG) | |
use_search_my_png = False #@param {type: "boolean"} | |
if use_search_my_png: | |
!git clone https://github.com/hina-choco/SearchMyPNG.git /content/stable-diffusion-webui/extensions/SearchMyPNG | |
#@markdown ### sd-forge-ic-light | |
#@markdown [公式ページ](https://github.com/huchenlei/sd-forge-ic-light) | |
use_sd_forge_ic_light = False #@param {type: "boolean"} | |
if use_sd_forge_ic_light: | |
!git clone https://github.com/huchenlei/sd-webui-model-patcher.git /content/stable-diffusion-webui/extensions/sd-webui-model-patcher | |
!git clone https://github.com/huchenlei/sd-forge-ic-light.git /content/stable-diffusion-webui/extensions/sd-forge-ic-light | |
!mkdir -p /content/stable-diffusion-webui/models/ic-light/ | |
!wget https://github.com/Haoming02/sd-forge-ic-light/releases/download/mdl/IC-Light.SD15.FBC.safetensors --directory-prefix=/content/stable-diffusion-webui/models/ic-light/ | |
!wget https://github.com/Haoming02/sd-forge-ic-light/releases/download/mdl/IC-Light.SD15.FC.safetensors --directory-prefix=/content/stable-diffusion-webui/models/ic-light/ | |
# google driveを利用している場合、モデルとLoRA、Embeddings、拡張機能をそれぞれStable Diffusion web UI側のフォルダに格納する | |
if use_google_drive: | |
# ファイルの数がゼロの場合は処理しない | |
if len(os.listdir("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/checkpoints/")) != 0: | |
# もしフォルダが存在しない場合は作成する | |
!mkdir -p /content/stable-diffusion-webui/models/Stable-diffusion/ | |
!cp -r /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/checkpoints/* /content/stable-diffusion-webui/models/Stable-diffusion/ | |
if len(os.listdir("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/loras/")) != 0: | |
# もしフォルダが存在しない場合は作成する | |
!mkdir -p /content/stable-diffusion-webui/models/Lora/ | |
!cp -r /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/loras/* /content/stable-diffusion-webui/models/Lora/ | |
if len(os.listdir("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/embeddings/")) != 0: | |
# もしフォルダが存在しない場合は作成する | |
!mkdir -p /content/stable-diffusion-webui/models/embeddings/ | |
!cp -r /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/models/embeddings/* /content/stable-diffusion-webui/embeddings/ | |
if len(os.listdir("/content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/extensions/")) != 0: | |
# もしフォルダが存在しない場合は作成する | |
!mkdir -p /content/stable-diffusion-webui/extensions/ | |
!cp -r /content/drive/MyDrive/sd-webui-google-colab-setup/stable-diffusion-webui/extensions/* /content/stable-diffusion-webui/extensions/ | |
# Web UIを実行 | |
!python launch.py {cmd_args} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WoW