0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AttributeError: partially initialized module 'cv2' has no attribute 'dnn'

Posted at

MMAction2を使って研究を進めている中で、何度も掲題のエラーが発生したため、備忘録・困っている方のために投稿することにしました。

解決策

自分は以下サイトを参考に、/Users/apple/[環境名]/lib/[pythonバージョン]/site-packages/cv2/typing/init .pyファイルから 169 行目をコメントアウトすることで修正できました。

169 行目をコメントアウトします。

init.py
#  LayerId = cv2.dnn.DictValue

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?