Stable Diffusion (Diffusers) / Google Colab の環境でControlNet 1.1 を使ってバッチ処理で画像を作成する#1
ライブラリーのインストールとフォルダの作成#!pip install -q diffusers transformers xformers git+ install omegaconf!pip install compel!pip inst ...
Stable Diffusion web UI(AUTOMATIC1111) を使用しないでGoogle Colab でControlNet を使う方法 (StableDiffusionControlNetPipeline)
Google ColabでリモートUIが使用できなくなりそうなので別の方法を試します
DiffusersDiffusers は、分子の画像、音声、さらには 3D 構造を生成するための最先端の事前トレーニング済み ...
Stable Diffusion web UI(AUTOMATIC1111) Google Colab 写真から背景を削除する拡張機能 Rembg
インストール 使用方法
拡張機能をインストールした後、Extras タブで rembg の UI を見つけます。
初期設定にする!git clone /content/stable-diffusion-webui/
Stable Diffusion web UI(AUTOMATIC1111) Google Colab VAEファイルを切り替える
画面から
Setting画面『User interface』をクリック
Quicksetting list『sd_model_checkpoint,sd_vae』
『Apply settings』をクリックし、『 ...
Stable Diffusion web UI(AUTOMATIC1111) Google Colab ControlNet 1.1 モデルファイルをダウンロードするコマンド aria2対応
コマンド!apt-get -y install -qq aria2 !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M -d/content/stable-diffusion-we ...
Stable Diffusion web UI(AUTOMATIC1111) Google Colab モデルファイルをダウンロードするコマンドを作成するバッチファイル aria2対応
バッチファイル::!apt-get -y install -qq aria2 del C:\app\Perl\sdmodelurl.txtdel C:\app\Perl\sdmodelurl2.txtfor/f "tokens=1,2,3* ...
Stable Diffusion web UI(AUTOMATIC1111) Google Colab 初期設定を変えて起動するためのui-config.jsonを変更するsedスクリプト
ui-config.jsonを変更するsedスクリプト サンプル
!sed -i -e ‘s/\”img2img\/Input directory\/value\”: \”\” ...
Stable Diffusion web UI(AUTOMATIC1111) Google Colab でControlNetを使う
ControlNet
ControlNet は、条件を追加して拡散モデルを制御するニューラル ネットワーク構造です。
色塗りしたり画像通りに色々なポーズをとることができます
ControlNetのインストールWe ...
Stable Diffusion web UI(AUTOMATIC1111) Google Colab でカスタムスクリプトを使ってみる
カスタムスクリプト
txt2img2img
カスタム スクリプトをインストールするには、スクリプト ディレクトリに配置し、 タブの下部にある ボタンをクリックします。
Improved prompt matrixtxt2img2img
Stable Diffusion web UI(AUTOMATIC1111) Google Colab で動画の拡張機能 を使う
seed_travel,shift-attentionとmoviepyをインストール
通常のインストールが終わった後に下記処理を実行してください
!git clone extensions/seed_travel