LoginSignup
3
0

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