Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

3
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.

TensorFlowでAlreadyExistsErrorがでた

Posted at

エラー内容

環境

  • Windows10 x PowerShell
  • python3.9
  • TensorFlow=2.6.0
  • CUDA 11.4
  • cuDNN 8.2

Windows10にTensorFlow GPU環境を構築し、学習を回そうとしたら次のエラーがでた

tensorflow.python.framework.errors_impl.AlreadyExistsError: Another metric with the same name already exists.
同名のメトリクスを2回読み込んでるよ!的なやつ。
同じモジュールを2回importするとでるやつだけど、心当たりがない。

調べてみるとTensorFlowが持ってるKerasのバージョンとオリジナルKerasのバージョンのミスマッチがあると起こるらしい。(クソすぎでは)
pip listをするとkeras==2.7.0だったので、
pip install keras==2.6.*をすると動くようになった

3
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
3
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?