romptnとは?
AI活用を無料相談する
Q&Aで質問する
ログインすると、Q&Aで質問・回答できたり、AIツールをブックマークできます。
新着の質問
読書感想文
AIゆりこの記事に関して
オーダーメイドai 年間払いについて
ComfyUIでの画像生成におけるエラーの解決方法を教えて
中学校の国語の教師をしているのですが、日々のカリキュラム作りで悩んでいます
AI Headshots
Comfyuiについて
Inpaint-anithingエラーについて
昭和33年は西暦何年
ChatGPTの機能
romptn aiからのご紹介
Stable Diffusion WebUI エラー対応

Stable Diffusion WebUI エラー対応

匿名ユーザー
2024年03月04日

googlecolab でStable Diffusion WebUIの起動ができなくなってしまいました。
下記内容の表示がでているのですが、わかる方いましたら教えて頂きたいです。


Style database not found: /content/gdrive/MyDrive/sd/stable-diffusion-webui/styles.csv
ControlNet preprocessor location: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
2024-03-04 05:42:43,246 - ControlNet - INFO - ControlNet v1.1.441
2024-03-04 05:42:51,940 - ControlNet - INFO - ControlNet v1.1.441
Loading weights [ca28aa4a44] from /content/gdrive/MyDrive/Colab Notebooks/model/yayoiMix_v25.safetensors
2024-03-04 05:43:15,012 - ControlNet - INFO - ControlNet UI callback registered.
Creating model from config: /content/gdrive/MyDrive/sd/stable-diffusion-webui/configs/v1-inference.yaml
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 273, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 122, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 227, in app
solved_result = await solve_dependencies(
File "/usr/local/lib/python3.10/dist-packages/fastapi/dependencies/utils.py", line 545, in solve_dependencies
solved = await run_in_threadpool(call, **sub_values)
File "/usr/local/lib/python3.10/dist-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
AttributeError: partially initialized module 'anyio._backends._asyncio' has no attribute 'run_sync_in_worker_thread' (most likely due to a circular import)
Running on public URL: https://********.gradio.live
✔ Connected
Startup time: 249.3s (launcher: 1.3s, import torch: 9.7s, import gradio: 1.3s, setup paths: 39.8s, import ldm: 1.3s, initialize shared: 12.3s, other imports: 57.7s, setup codeformer: 14.8s, setup gfpgan: 0.7s, list SD models: 2.5s, load scripts: 69.7s, load upscalers: 1.3s, reload hypernetworks: 1.5s, initialize extra networks: 8.4s, create ui: 17.1s, gradio launch: 9.8s, add APIs: 0.1s).
loading stable diffusion model: AttributeError
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 147, in load_model
shared.sd_model # noqa: B018
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared_items.py", line 128, in sd_model
return modules.sd_models.model_data.get_sd_model()
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 621, in get_sd_model
load_model()
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 749, in load_model
load_model_weights(sd_model, checkpoint_info, state_dict, timer)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 370, in load_model_weights
if devices.fp8:
AttributeError: module 'modules.devices' has no attribute 'fp8'

回答 1件
匿名ユーザー
2024年03月06日

私も同じエラーが出ており、調べていました!

https://github.com/TheLastBen/fast-stable-diffusion/issues/2753
こちらに同じようなStable Diffusionのエラーを解決しているページがあって、その人はすべてのStable Diffusionのフォルダを削除してからpythonを起動しなおして解決したみたいな感じで書いてました。おそらく全部はじめからやり直したほうがよさそうです、、、

あなたの回答が助けになります。ログインして回答してみませんか?
romptn Q&AでAIの悩みを解決しよう!
  • ChatGPTで〇〇を上手にしたい
  • Stable Diffusionで作りたい画像ができない
  • スライドを作るならどのAIが一番いい?
など、AIに関するお悩みがあれば投稿してみてください。
詳しい人が解決してくれるかもしれません。