stable-diffusion

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

stable-diffusion

Thumbnail of post image 156

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

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

stable-diffusion

Thumbnail of post image 041

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

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

stable-diffusion

Thumbnail of post image 034

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

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

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

stable-diffusion

Thumbnail of post image 049

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

controlnet_aux

annotator

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

stable-diffusion

Thumbnail of post image 122

方法

|pipeを設定した後

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

以前の方法pipe.safety_check ...

stable-diffusion

Thumbnail of post image 190

準備やり方

パラメーター

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

stable-diffusion

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

stable-diffusion

Thumbnail of post image 046

前準備

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

txt2img stablediffusioncontrolnetpipelinefrom diffusers import StableDiffusionControlNetPip

stable-diffusion

Thumbnail of post image 031

ライブラリーのインストールとフォルダの作成#!pip install -q diffusers transformers xformers git+ install omegaconf!pip install compel!pip inst ...