0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[stablediffusion WebUI]ControlNetのインストールがうまくいかなかった話

0
Posted at

stablediffusionにControlNetを導入するとき、mediapipeというモジュールでエラーが発生し正しくインストールできずに困っていた...

module 'mediapipe' has no attribute 'solutions

エラー文で検索してみたところ、redditで解決方法を見つけた。
https://www.reddit.com/r/comfyui/comments/1q039th/attributeerror_module_mediapipe_has_no_attribute/

どうやらmediapipeの最新版ではsolutionsがサポートされていないらしく、古いバージョンを入手しないといけないらしい。

とりあえず、stablediffusion webUIのある場所のvenv/scripts/activate.batをコマンドラインから実行して仮想環境に入る。

mediapipeをアンインストールし、バージョン0.10.14をインストール

pip uninstall mediapipe
pip install mediapipe==0.10.14

再度stablediffusion webUIを起動したところ、エラーも発生せずに起動してくれた。
webUIではGenerationタブのseedの下でControlNetが使えるようになっている
image.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?