![見出し画像](https://assets.st-note.com/production/uploads/images/132840163/rectangle_large_type_2_acd69580a9d402a8d71f6f7069a0568c.png?width=800)
Stable Diffusionの起動に失敗するときの対処法
You are running torch 2.1.0+cu121. The program is tested to work with torch 2.1.2. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version. Use --skip-version-check commandline argument to disable this check. You are running xformers 0.0.23+3f74d96.d20231218. The program is tested to work with xformers 0.0.23.post1. To reinstall the desired version, run with commandline flag --reinstall-xformers. Use --skip-version-check commandline argument to disable this check. ✔ Connected Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 162, in <module> webui() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 109, in webui ui.setup_ui_api(app) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 1242, in setup_ui_api app.mount("/webui-assets", fastapi.staticfiles.StaticFiles(directory=launch_utils.repo_dir('stable-diffusion-webui-assets')), name="webui-assets") File "/usr/local/lib/python3.10/dist-packages/starlette/staticfiles.py", line 57, in __init__ raise RuntimeError(f"Directory '{directory}' does not exist") RuntimeError: Directory '/content/gdrive/MyDrive/sd/stable-diffusion-webui/repositories/stable-diffusion-webui-assets' does not exist Applying attention optimization: xformers... done. ==============================
というエラーが出て
TheLastBen/fast-stable-diffusion
が起動できない状況がありました。
対処方法としては[Requirements]セルのあと辺りに
!mkdir -p /content/gdrive/MyDrive/sd/stable-diffusion-webui/repositories/stable-diffusion-webui-assets %cd /content/gdrive/MyDrive/sd/stable-diffusion-webui/repositories/stable-diffusion-webui-assets !git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git %cd /content/gdrive/MyDrive/sd/stable-diffusion-webui
のコードを追加してやればとりあえず大丈夫ということだそうです。
自分も解消できました。備忘録でした。
または
こちらも試してみてください。
この記事が気に入ったらサポートをしてみませんか?