Cannot import name 'np_utils' from 'keras.utils'

I get this error while working on image-classifier dnn on the computer vision course

ImportError: cannot import name ‘np_utils’ from ‘keras.utils’ (/usr/local/lib/python3.10/dist-packages/keras/utils/

From a Terminal try: pip install np_utils

1 Like

Hi @kevinprasetyo,

It looks like np_utils has been removed from the keras.utils package. I updated that example for the course, which should work now: