Stable Diffusion 2.0をwebuiで試す

記事の概要

「stable-diffusion-webui」が「Stable Diffusion 2.0」に対応したので試したみた。

「stable-diffusion-webui」のインストール方法は下記記事に記載。

koubou-rei.com

環境

項目 情報
OS Windows11
GPU NVIDIA GeForce RTX 3080Ti

Stable Diffusion2.0のモデルデータをダウンロード

stabilityai/stable-diffusion-2 · Hugging Face

↑のリンクから 768-v-ema.ckpt をダウンロードして、

stable-diffusion-webui > models > Stable-diffusion に配置。

https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml

↑のファイルをダウンロードして、

768-v-ema.yaml に名前を変更し、

ckptファイルと同じフォルダに配置。

画像生成を試す

webuiを起動して、チェックポイントを768-v-ema.ckpt に変更し、

以下のプロンプトで画像を生成。

a photograph of an astronaut riding a horse

A fantasy landscape, trending on artstation