stable-diffusion

Thumbnail of post image 007

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

DWpose

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

pip install contro ...

stable-diffusion

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

stable-diffusion

Thumbnail of post image 067

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

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

stable-diffusion

Thumbnail of post image 178

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

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

stable-diffusion

Thumbnail of post image 044

png画像にはメタ情報があり呪文がそこに書かれています。それを見ることができるWindowsユーティリティーを紹介します。

TweakPNGtEXt パラメーターのところを見ます

TweakPNG は、PNG 画像ファイルを ...

stable-diffusion

Thumbnail of post image 143

Stable DiffusionのControlNetで使えるOpenPose画像をあらかじめ用意することを考えます

controlnet_aux

annotator

Pythonを使用します。モデルは自動的にダ ...

stable-diffusion

Thumbnail of post image 060

方法

|pipeを設定した後

pipe.safety_checker = lambda images, **kwargs: (images, * len(images))

以前の方法pipe.safety_check ...

stable-diffusion

Thumbnail of post image 014

準備やり方

パラメーター

model_id = “stabilityai/stable-diffusion-2-1”
controlnet_processor_id = “Dion ...

stable-diffusion

Thumbnail of post image 148
前準備img2img StableDiffusionControlNetImg2ImgPipelinefrom diffusers import StableDiffusionControlNetPipeline, ControlNetMo ...

stable-diffusion

Thumbnail of post image 181

前準備

こちらの作業を行ってください

txt2img stablediffusioncontrolnetpipelinefrom diffusers import StableDiffusionControlNetPip