ノートブックの変更
下記 URL で StableDiffusionUI-Voldemort.ipynbを開いて名前を付けて保存します
https://colab.research.google.com/drive/1Iy-xW9t1-OQWhb0hNxueGij8phCyluOh
Kill the runtime.を書き換えます
!COMMANDLINE_ARGS=" --skip-torch-cuda-test --exit" REQS_FILE="requirements.txt" python launch.py
Launch web ui. を書き換えます
!COMMANDLINE_ARGS="--share --gradio-debug --skip-torch-cuda-test --precision full --no-half --gradio-auth me:qwerty" REQS_FILE="requirements.txt" python launch.py
--skip-torch-cuda-test --precision full --no-half
このオプションを付けないと次のエラーが出ます
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'
修正が変更したら上から順番に実行していきます
ひとつの画像を作るのに20分ぐらいかかりました
おまけ
チェックボックスで切り替えできるやり方です
仮で起動
vars = f"--exit"
no_gpu = False # @param {type:"boolean"}
if no_gpu:
vars += f" --skip-torch-cuda-test --precision full --no-half "
!COMMANDLINE_ARGS="""{vars}""" REQS_FILE="requirements.txt" python launch.py
ローンチウェブ画面起動
vars = f"--share --gradio-debug"
vars += f" --deepdanbooru --gradio-img2img-tool color-sketch --enable-insecure-extension-access --gradio-auth me:qwerty"
no_gpu = False # @param {type:"boolean"}
if no_gpu:
vars += f" --skip-torch-cuda-test --precision full --no-half "
!COMMANDLINE_ARGS="""{vars}""" REQS_FILE="requirements.txt" python launch.py