stable-diffusion-2-depth
🤗 : https://huggingface.co/stabilityai/stable-diffusion-2-depth/tree/main
Stable Diffusion web UIで使う
https://huggingface.co/stabilityai/stable-diffusion-2-depth/tree/mainから512-depth-ema.safetensors(or .ckpt)をダウンロードする
https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-midas-inference.yamlからconfigをテキストエディタにコピペ
これを512-depth-ema.yamlにリネーム
上2つを/model/Stable-diffusionに置く
web UIを起動して、モデルを512-depth-ema.safetensorsに
image2imageで画像を生成すると勝手にdepth2imgとして生成する
元 / depth2img / img2img(SD1.5)
https://gyazo.com/1449bd77bac858b77da62b58a0fb3d5ehttps://gyazo.com/517b1a1a01bd94320068721594cbb4efhttps://gyazo.com/64c6eac2988372f285d9d82679bd1703
code:depth2img / img2img
Stuffed cat on the white wood table,button eyes
DPM++ SDE / step 30 / Denoising strength 0.5
1枚だけだと分かりづらいものの、全体的にimg2imgはぬいぐるみの形が非常に不安定
depth2imgはとても安定してる
Denoising strengthが1(元の画像無視)でも深度マップの形状は保持される
https://gyazo.com/469003a26b9eee7e8a831b5f016b7e9dhttps://gyazo.com/d976c7b15b42116399944bd3ab61f412https://gyazo.com/f7d3b7f3b82c828274eccda3052bfb7f