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 Environment Setup | |
### setup ComfyUI ### | |
from pathlib import Path | |
OPTIONS = {} | |
USE_GOOGLE_DRIVE = False #@param {type:"boolean"} | |
UPDATE_COMFY_UI = True #@param {type:"boolean"} | |
USE_COMFYUI_MANAGER = True #@param {type:"boolean"} |
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 Environment Setup | |
### setup ComfyUI ### | |
from pathlib import Path | |
OPTIONS = {} | |
USE_GOOGLE_DRIVE = False #@param {type:"boolean"} | |
UPDATE_COMFY_UI = True #@param {type:"boolean"} | |
USE_COMFYUI_MANAGER = True #@param {type:"boolean"} |
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 新型Forge(最新版)をGoogle Colabで起動するためのコマンド | |
#@markdown ## このColabノートブックについて | |
#@markdown [Stable Diffusion web UI Forge](https://github.com/lllyasviel/stable-diffusion-webui-forge) をGoogle Colabで起動するためのノートブックとなります。 | |
#@markdown 各項目には公式ページへのリンクをつけています。利用の際は公式ページよりライセンスなどを確認した上でご利用ください。 | |
### Stable Diffusion web UIインストール | |
# stable diffusion webuiのリポジトリをクローンして、クローンしたフォルダに移動 | |
!git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git |
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
# こちらのコマンドは以下を参照して作成しています | |
# https://github.com/shinshin86/IC-Light/tree/add-share-option?tab=readme-ov-file#use-google-colab | |
!git clone -b add-share-option https://github.com/shinshin86/IC-Light.git | |
%cd IC-Light | |
!pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 | |
!pip install -r requirements.txt | |
!python gradio_demo.py --share | |
# 背景も指定できるbackground-conditioned demoを試す際は以下のコメントを外し、 |
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 ComfyUIで対象動画の動きを参照してAnimateDiff(AnimateLCM)でAI動画を作るためのノートブック | |
# こちらのColabノートブックはComfyUI Manager側で用意されているノートブックを参考にして作成しています | |
# ComfyUI Manager: https://github.com/ltdrdata/ComfyUI-Manager | |
from pathlib import Path | |
OPTIONS = {} | |
#@markdown ## 起動設定 |
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 Forge(最新版)をGoogle Colabで起動するためのコマンド | |
#@markdown ## このColabノートブックについて | |
#@markdown [Stable Diffusion web UI Forge](https://github.com/lllyasviel/stable-diffusion-webui-forge) をGoogle Colabで起動するためのノートブックとなります。 | |
#@markdown 利用したいモデルや拡張機能、LoRAなどにチェックを入れた上で実行ボタンを押すことで、設定した内容でStable Diffusion web UIが起動します。 | |
#@markdown また各項目には公式ページへのリンクをつけています。利用の際は公式ページよりライセンスなどを確認した上でご利用ください。 | |
### 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 FooocusをGoogle Colabで起動するためのコマンド | |
#@markdown ## このColabノートブックについて | |
#@markdown [Fooocus](https://github.com/lllyasviel/Fooocus) をGoogle Colabで起動するためのノートブックとなります。 | |
#@markdown 利用したいモデルにチェックを入れた上で実行ボタンを押すことで、設定した内容でFooocusが起動します。 | |
#@markdown また各項目には公式ページへのリンクをつけています。利用の際は公式ページよりライセンスなどを確認した上でご利用ください。 | |
### Fooocusインストール |
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
### kohya-ss/sd-scriptsをGoogle Colab上で扱うためのスクリプト ### | |
# 以下の事前準備が必要です | |
# 1. /content配下(ルート配下)にtrain-dataフォルダを作成する | |
# 2. train-dataフォルダ内に学習用の画像とtrain.tomlファイルアップロードする | |
# | |
# こちらはuroko cloudというLoRAを作成するサンプルとなっています。 | |
# train_network.pyを実行している箇所で、適宜 "--output_name" の引数を変更してください | |
# | |
# また学習のベースモデルとしてはchilled_remix v2を用いています。 | |
# ベースモデルを変更する際はモデルのダウンロード箇所と、"--pretrained_model_name_or_path"の引数を変更してください |
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
command_file: null | |
commands: null | |
compute_environment: LOCAL_MACHINE | |
deepspeed_config: {} | |
distributed_type: 'NO' | |
downcast_bf16: 'no' | |
dynamo_backend: 'NO' | |
fsdp_config: {} | |
gpu_ids: all | |
machine_rank: 0 |
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
### AnimateDiffをControlNetを用いて利用するための起動コマンド、その1 ### | |
# こちらのコマンドは以下のTDSさんによるX、ならびにnoteの投稿を参照して作成したものです | |
# X URL : https://twitter.com/TDS_95514874/status/1694482538297991440 | |
# note URL : https://note.com/tds_/n/n5aad9ef8a9b1 | |
# | |
# 実行手順: | |
# このコマンドはweb UI実行後に取得されるSampling methodsのDDIM関連のコードを差し替える必要があるため、一度webUIを実行した後、 | |
# 再度別のコマンドを実行するという、二段階での実行を必要とします。 | |
# | |
# 1.『AnimateDiffをControlNetを用いて利用するための起動コマンド』はその1とその2に分かれていますので、それぞれを別のコードブロックにまずは貼り付けてください |