MLOps_VideoAnomalyDetection icon indicating copy to clipboard operation
MLOps_VideoAnomalyDetection copied to clipboard

“Keras requires TensorFlow 2.2 or higher”!!

Open mandar-18 opened this issue 4 years ago • 4 comments

The config.yml pins tensorflow==1.15. However no Keras version is pinned. Thus, after execution of conda env create -f config/environment.yml latest version of Keras (i.e. 2.4.3) gets installed. While executing train.py locally, it throws Error “Keras requires TensorFlow 2.2 or higher” I think pinning appropriate version of keras would help. What it is?

mandar-18 avatar Jul 26 '20 21:07 mandar-18

I got the same problem. Downgrade Keras to 2.2.4 still not working. Now we want to know what Keras version in the original environment?

nguyenanhtuan1008 avatar Sep 09 '20 07:09 nguyenanhtuan1008

the solution is to install Keras 2.3.1

nguyenanhtuan1008 avatar Sep 09 '20 09:09 nguyenanhtuan1008

the solution is to install Keras 2.3.1

Have tried installing Keras 2.3.1? Did it work for you in conda environment?

mandar-18 avatar Sep 09 '20 11:09 mandar-18

Yes. Worked! Should try it. using conda!

nguyenanhtuan1008 avatar Sep 10 '20 14:09 nguyenanhtuan1008