bat,windows

Thumbnail of post image 004

指定された数ごとに分割する@echo offsetlocal enabledelayedexpansionREM フォルダのパスと分割数を設定set sourceDir="D:\data2\00in"set splitC ...

stable-diffusion

Thumbnail of post image 074

Google Colaboratory

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

stable-diffusion

Thumbnail of post image 116

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

モデル

Meichidark_Mix

NeverEnding Dream (NED)

majicMIX realistic

stable-diffusion

Thumbnail of post image 018

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

Civitai

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

stable-diffusion

Thumbnail of post image 019

LoRA の読み込みの高速化

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

pipe.load_lora_weights(state_dict ...

stable-diffusion

Thumbnail of post image 071

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

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

stable-diffusion

Thumbnail of post image 005

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

DWpose

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

pip install contro ...

stable-diffusion

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

stable-diffusion

Thumbnail of post image 107

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

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

stable-diffusion

Thumbnail of post image 162

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

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