ImportError: no module named 'keras.utils.visualize_util'

Hi, when I try to run the code in keras, it shows me the following error:

from keras.utils.visualize_util import plot ImportError: No module named 'keras.utils.visualize_util' 

How can i solve this? thanks

+9
deep-learning keras
source share
2 answers

You will have to either fix the code manually or downgrade Keras.

After examining the commit history of this module, you can see that it was renamed on February 28, 2017 from visualize_util to vis_utils . The plot function has also been renamed to plot_model .

You will need to update the code to reflect these changes, or use the correct version of Keras in which the code you are using was developed or tested.

+26
source share

using

from keras.utils import plot_model

instead

0
source share

All Articles