ModuleNotFoundError: No module named ‘keras.src.preprocessing’

  Kiến thức lập trình

I am getting this error when running my deep learning model app using flask in my conda env, the model is in h5 format. Funny thing is this module doesn’t exist. My keras version is 3.1.1 and keras-preprocessing version is 1.1.2

I expected the model to run.
ModuleNotFoundError: No module named ‘keras.src.preprocessing’

LEAVE A COMMENT