facebook twitter hatena line email

「AI/StableDiffusion/Mac/AUTOMATIC1111」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(起動)
(起動)
行14: 行14:
 
#インストール時の最後に出てくるhttp~をブラウザに入れると表示できる
 
#インストール時の最後に出てくるhttp~をブラウザに入れると表示できる
 
ttp://127.0.0.1:7860
 
ttp://127.0.0.1:7860
 +
 +
==テキストから画像生成の実行==
 +
promptに文字を入れてgenerateボタンを押す
 +
 +
===LayerNormKernelImplエラーが出る場合===
 +
エラー詳細
 +
<pre>
 +
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
 +
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'
 +
</pre>
 +
以下で起動したらエラーが起きなくなった。
 +
<pre>
 +
./webui.sh --skip-torch-cuda-test --no-half --use-cpu all
 +
</pre>
 +
参考:https://wikiwiki.jp/sd_toshiaki/%E3%82%A8%E3%83%A9%E3%83%BC%E8%A7%A3%E6%B1%BA%E3%83%A1%E3%83%A2#i429e71f
  
 
==モデル切り替え==
 
==モデル切り替え==
 
#stable-diffusion-webui/models/Stable-diffusionの下にsafetensorsファイルを入れる
 
#stable-diffusion-webui/models/Stable-diffusionの下にsafetensorsファイルを入れる

2023年4月23日 (日) 13:09時点における版

AUTOMATICとは

mac(intel/m1/m2)やwindowsで使えるstable-diffusion

インストール

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
sh webui.sh

参考:https://gift-by-gifted.com/stablediffusion-3/

起動

  1. インストール時の最後に出てくるhttp~をブラウザに入れると表示できる

ttp://127.0.0.1:7860

テキストから画像生成の実行

promptに文字を入れてgenerateボタンを押す

LayerNormKernelImplエラーが出る場合

エラー詳細

return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

以下で起動したらエラーが起きなくなった。

./webui.sh --skip-torch-cuda-test --no-half --use-cpu all

参考:https://wikiwiki.jp/sd_toshiaki/%E3%82%A8%E3%83%A9%E3%83%BC%E8%A7%A3%E6%B1%BA%E3%83%A1%E3%83%A2#i429e71f

モデル切り替え

  1. stable-diffusion-webui/models/Stable-diffusionの下にsafetensorsファイルを入れる