stable-diffusion

Thumbnail of post image 080

概要

77トークンを超えるプロンプトを使用する
VAE,Lora,textual_inversion,を使用する
txt2img/img2img対応
from_single_file対応
NSFWフィルタ ...

stable-diffusion

Thumbnail of post image 082

Google Colaboratory

PythonをGPUを使って動かせる環境です。Stable Diffusion これをインストールすることができますが無料枠でWEBUIを使用することができなくなったので無料で使うにはDiffus ...

stable-diffusion

Thumbnail of post image 033

AI画像で使用できるモデルを調べてみました

モデル

Meichidark_Mix

NeverEnding Dream (NED)

majicMIX realistic

stable-diffusion

Thumbnail of post image 198

Stable Diffusionで使えるプロンプト、ネガティブプロンプトは他の人が作った画像のプロンプトを見るとわかります

Civitai

Civitaiはモデルデータだけでなく画像データも大量にアップロードされています。そ ...

stable-diffusion

Thumbnail of post image 155

LoRA の読み込みの高速化

ダウンロードしたA1111 形式の CivitAI LoRA チェックポイントをロードできるようになりましたが高速化も対応されました

pipe.load_lora_weights(state_dict ...

stable-diffusion

Thumbnail of post image 056

今回はダウンロードしたモデルデータを使用できるように対応しました

コード# -*- coding: utf-8 -*-import requestsfrom PIL import Imagefrom io import Byte ...

stable-diffusion

Thumbnail of post image 149

DWposeはOpenpose fullより詳細に顔や指を表現できる全身用プリプロセッサです

DWpose

ControlNet auxiliary modelsを使って作成します

pip install contro ...

stable-diffusion

Thumbnail of post image 190
VAEfrom diffusers.models import AutoencoderKL#vae = "stabilityai/sd-vae-ft-ema"#@param {type:"string" ...

stable-diffusion

Thumbnail of post image 189

通常では77トークンを超えるプロンプトを使用すると切り捨てされてしまいます。それを回避する方法を説明します

The following part of your input was truncated because CL ...

stable-diffusion

Thumbnail of post image 116

GPU固定でプログラムをされているとCPUでは動きません

/usr/local/lib/python3.10/dist-packages/torch/cuda/init.py in _lazy_init()
245 ...