When I tried to convert a .h5 model by using this command in the terminal
tensorflowjs_converter --input_format keras model.h5 ./folder
I got an output that says “ValueError: Expected Keras version 2; got Keras version 3.3.3”.
So, I reinstalled keras for keras 2.6.0, but THAT didn’t work because tensorflow 2.16.1 requires keras to be at least version 3.0.0. So, the logical thing I tried to do was to downgrade tensorflow to a version that is compatible to keras 2.6.0, but there isn’t a version of tensorflow that I can choose to install that actually is. There’s only two versions of tensorflow that I can choose from: tensorflow 2.16.0rc and tensorflow 2.16.1, and neither are compatible with keras 2.6.0. I’m kind of new to all of this, so if my problem seems trivial, don’t overthink it.
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.